Open 3D Engine GameState 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 <GameStateSystemComponent.h>
Inherits AZ::Component, AZ::TickBus::Handler, and GameStateRequestBus::Handler.
Public Member Functions | |
AZ_COMPONENT (GameStateSystemComponent, "{03A10E41-3339-42C1-A6C8-A81327CB034B}") | |
Static Public Member Functions | |
static void | Reflect (AZ::ReflectContext *context) |
AZ::ComponentDescriptor::Reflect | |
static void | GetProvidedServices (AZ::ComponentDescriptor::DependencyArrayType &provided) |
AZ::ComponentDescriptor::GetProvidedServices | |
static void | GetIncompatibleServices (AZ::ComponentDescriptor::DependencyArrayType &incompatible) |
AZ::ComponentDescriptor::GetIncompatibleServices | |
This system component manages game state instances and the transitions between them. A few default game states are implemented in the GameStateSamples Gem, and these can be extended as needed in order to provide a custom experience for each game, but it's also possible to create completely new states by inheriting from the abstract GameState::IGameState class. States are managed using a stack (pushdown automaton) in order to maintain their history.