Jazz2::Actors::Multiplayer::RemoteActor class

Remote object in online session.

Base classes

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

Constructors, destructors, conversion operators

RemoteActor()

Public functions

void AssignMetadata(std::uint8_t flags, ActorState state, StringView path, AnimState anim, float rotation, float scaleX, float scaleY, ActorRendererType rendererType)
void SyncPositionWithServer(Vector2f pos)
void SyncAnimationWithServer(AnimState anim, float rotation, float scaleX, float scaleY, Actors::ActorRendererType rendererType)
void SyncMiscWithServer(std::uint8_t flags)

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.