Skip to content

Engine

Defined in: Engine.ts:50

The top-level entry point. Owns the plugin registry, game loop, scene manager, and DI container.

new Engine(config?): Engine

Defined in: Engine.ts:75

EngineConfig

Engine

readonly assets: AssetManager

Defined in: Engine.ts:68

The asset manager.


readonly context: EngineContext

Defined in: Engine.ts:52

The dependency injection container.


readonly events: EventBus<EngineEvents>

Defined in: Engine.ts:56

The event bus.


readonly inspector: Inspector

Defined in: Engine.ts:62

The inspector (debug queries).


readonly logger: Logger

Defined in: Engine.ts:60

The logger.


readonly loop: GameLoop

Defined in: Engine.ts:58

The game loop.


readonly scenes: SceneManager

Defined in: Engine.ts:54

The scene manager.

destroy(): void

Defined in: Engine.ts:187

Stop the engine. Destroys all scenes, plugins, and the game loop.

void


start(): Promise<void>

Defined in: Engine.ts:141

Start the engine. Installs plugins in topological order, starts the game loop.

Promise<void>


use(plugin): this

Defined in: Engine.ts:129

Register a plugin. Must be called before start().

Plugin

this