Capycore Engine  0.1.0
A simple and lightweight game engine written in C++ based on the Unity API architecture.
Loading...
Searching...
No Matches
Engine Class Reference

Central engine class managing core services and lifecycle. More...

#include <engine.h>

Static Public Member Functions

static Engineinstance ()
 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< ServiceContainerservices
 

Detailed Description

Central engine class managing core services and lifecycle.

Provides access to global services via the ServiceContainer. Responsible for engine initialization and shutdown.

Member Function Documentation

◆ initialize()

static void Engine::initialize ( )
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.

◆ instance()

static Engine & 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.

◆ quit()

static void Engine::quit ( )
static

Shuts down the engine and cleans up resources.

Should be called at application exit to ensure proper resource management.

Member Data Documentation

◆ services

const std::unique_ptr<ServiceContainer> Engine::services

The documentation for this class was generated from the following file: