Jazz2::Actors::Multiplayer::RemoteThunderbolt class

Remote representation of the thunderbolt in online session.

The beam sprite itself is covered by the generic synchronization, but the sparks discharging off the beam and its lights (including the muzzle flash) are spawned locally by the owning actor, so they are replayed here along the beam reconstructed from the synchronized position and rotation.

Base classes

class RemoteActor
Remote object in online session.

Constructors, destructors, conversion operators

RemoteThunderbolt()
Creates a new instance.

Public functions

void AssignMetadata(std::uint8_t flags, ActorState state, StringView path, AnimState anim, float rotation, float scaleX, float scaleY, ActorRendererType rendererType, DrawableNode::BlendingPreset blendingPreset) override
Initializes the actor from metadata received from the server.

Protected functions

void OnUpdate(float timeMult) override
Called every frame to update the object state.
void OnEmitLights(SmallVectorImpl<LightEmitter>& lights) override
Called when emitting lights.