Jazz2::Actors::Solid::Bridge class

Bridge.

A span the player can walk across that sags downward under their weight and springs back once they step off, made up of individually drawn pieces. Several visual styles exist (rope, vine, stone, log, etc.) depending on the level theme.

Base classes

class Jazz2::Actors::ActorBase
Base class of an object.

Public static functions

static void Preload(const ActorActivationDetails& details)
Preloads all assets required by this actor.

Constructors, destructors, conversion operators

Bridge()
Creates a new instance.
~Bridge()

Protected functions

auto OnActivatedAsync(const 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.
void OnUpdateHitbox() override
Called when the hitbox needs to be updated.
auto OnDraw(RenderQueue& renderQueue) -> bool override
Called when the object needs to be drawn.
void OnPacketReceived(MemoryStream& packet) override
Applies authoritative sag state received from the server (clients only, in multiplayer).