Open 3D Engine LmbrCentral Gem API Reference
24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
|
#include <SimpleStateComponent.h>
Inherits AZ::Component, and SimpleStateComponentRequestBus::Handler.
Public Member Functions | |
AZ_COMPONENT (SimpleStateComponent, "{242D4707-BC72-4245-AC96-BCEE38BBC1B7}") | |
void | Init () override |
void | Activate () override |
void | Deactivate () override |
void | SetState (const char *stateName) override |
void | SetStateByIndex (AZ::u32 stateIndex) override |
void | SetToNextState () override |
void | SetToPreviousState () override |
void | SetToFirstState () override |
void | SetToLastState () override |
AZ::u32 | GetNumStates () override |
const char * | GetCurrentState () override |
SimpleState provides a simple state machine.
Each state is represented by a name and zero or more entities to activate when entered and deactivate when the state is left.