ScriptSceneryObject class
Destructible scenery as an object of the game, for a level script that drives it.
Scenery is a part of its tile, which breaks by itself (see Tiles::BEHAVIOR::DESTRUCTSCENERY though - e.g. to give it a light. The object is made only where a script gave the template of the event what only an object can have (see ScriptObjectHost::STATE::SLEEP) until the tile breaks (STATE::DONE), collapsing scenery is in STATE::EXTRA for the one update it collapses in.
Base classes
- class Jazz2::Actors::ActorBase
- Base class of an object.
Constructors, destructors, conversion operators
Public functions
- auto IsCollapsing() const -> bool
- Returns
truefor the update the tile collapses in, until the next one. - auto IsBroken() const -> bool
- Returns
trueonce the tile is broken.
Protected functions
-
auto OnActivatedAsync(const Actors::
ActorActivationDetails& details) -> Task<bool> override - Called when the object is created and activated.
- void OnUpdate(float timeMult) override
- Called every frame to update the object state.
- auto OnDraw(RenderQueue& renderQueue) -> bool override
- Called when the object needs to be drawn.