API GameService - shmellyorc/Box GitHub Wiki
GameService
Base class for all engine service modules. Provides centralized access to core engine systems such as rendering, audio, assets, input, and more.
Member | Type | Description |
---|---|---|
Enabled | bool |
Determines whether the service is enabled and should be updated. |
Engine | Engine (protected) |
Singleton instance of the core engine. |
Coroutine | Coroutine (protected) |
Coroutine manager for async and delayed operations. |
ScreenManager | ScreenManager (protected) |
Screen manager responsible for scene stack and transitions. |
Assets | Assets (protected) |
Asset manager for loading and accessing game content. |
SoundManager | SoundManager (protected) |
Sound manager for handling sound effects and music playback. |
Renderer | Renderer (protected) |
Renderer used for all drawing and batching operations. |
Signal | Signal (protected) |
Signal/event system for decoupled communication. |
Input | InputMap (protected) |
Current input map from the engine (keyboard, gamepad, etc.). |
Clock | Clock (protected) |
Engine's clock, used for tracking time and delta updates. |
Log | Log (protected) |
Engine's logging system. |
Rand | FastRandom (protected) |
Engine's random number generator. |
GetService | T GetService<T>() |
Retrieves a registered engine service of the specified type. |
Initialize | virtual void Initialize() |
Called once to initialize the service. Override to implement startup logic. |