|
Capycore Engine
0.1.0
A simple and lightweight game engine written in C++ based on the Unity API architecture.
|
Central engine class managing core services and lifecycle. More...
#include <engine.h>
Static Public Member Functions | |
| static Engine & | instance () |
| Retrieves the singleton engine instance. | |
| static void | initialize () |
| Initializes the engine and its core services. | |
| static void | quit () |
| Shuts down the engine and cleans up resources. | |
Public Attributes | |
| const std::unique_ptr< ServiceContainer > | services |
Central engine class managing core services and lifecycle.
Provides access to global services via the ServiceContainer. Responsible for engine initialization and shutdown.
|
static |
Initializes the engine and its core services.
Must be called before using any engine functionality as it sets up necessary systems. This registers all except the core services, as they utilize the engine instance.
|
static |
Retrieves the singleton engine instance.
Initializes the engine if not already done and should be the first call made. This only initializes the CORE services; call initialize() to set up all services.
|
static |
Shuts down the engine and cleans up resources.
Should be called at application exit to ensure proper resource management.
| const std::unique_ptr<ServiceContainer> Engine::services |