bootstrap Namespace
Definition
Classes Index
| struct | ComponentRegistrar<Tuple> |
| struct | ComponentRegistrar<std::tuple< TEntityManagers... >> |
Functions Index
| void | registerAllComponents () |
|
Registers all component types with the ComponentReflector. More... | |
| std::pair< std::unique_ptr< GameWorld >, std::unique_ptr< GameLoop > > | bootstrapGameWorld (const size_t capacity=ENTITY_MANAGER_DEFAULT_CAPACITY) |
|
Creates a pre-configured GameWorld and GameLoop pair. More... | |
Functions
bootstrapGameWorld()
| inline |
Creates a pre-configured GameWorld and GameLoop pair.
The factory heap-allocates both objects and performs the minimal setup required before application-specific configuration:
- Calls registerAllComponents() via ComponentRegistrar
- Registers WorldLifecycleManager, GameStateManager, MatchStateManager, and TimerManager
- Tracks GameState and MatchState in the Session
- Registers RenderCommandBuffer, EngineCommandBuffer, and StateCommandBuffer
- Sets initial GameState to Booting
The caller receives ownership via unique_ptr and is responsible for registering Managers, configuring phases/passes, calling GameWorld::init() and GameLoop::init(), and driving the main loop.
Definition at line 146 of file bootstrap.ixx.
References registerAllComponents, helios::registerComponents and helios::engine::runtime::enginestate::rules::DefaultEngineStateTransitionRules::rules.
registerAllComponents()
| inline |
Registers all component types with the ComponentReflector.
This function must be called during engine initialization to enable runtime reflection features such as cloning, lifecycle callbacks (onAcquire, onRelease, onRemove), and enable/disable toggles.
Definition at line 83 of file bootstrap.ixx.
Reference helios::registerComponents.
Referenced by bootstrapGameWorld.
The documentation for this namespace was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.