GameModeObjectActor class
Object of a game mode in the level.
Purely visual actor that shows a Jazz2::
Base classes
- class Jazz2::Actors::ActorBase
- Base class of an object.
Public types
-
enum class Visual : std::
uint8_t { ControlPoint, Jail, Flag } - Kind of the visual.
Public static functions
- static void Preload(const ActorActivationDetails& details)
- Preloads all assets required by this actor.
Constructors, destructors, conversion operators
Public functions
-
void SetVisual(Visual visual,
std::
uint8_t team, float progress, bool facingLeft = false) - Changes what the actor shows,
teamis0xFFfor no team.
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.
Enum documentation
enum class Jazz2:: Actors:: Multiplayer:: GameModeObjectActor:: Visual : std:: uint8_t
Kind of the visual.
| Enumerators | |
|---|---|
| ControlPoint |
Giant gem in the color of the owning team, translucent while nobody owns it |
| Jail |
Base in the color of the team |
| Flag |
Flag in the color of the carrier's team |