Skip to content

Plugin

Defined in: types.ts:21

Plugin interface for extending the engine.

readonly optional dependencies?: readonly string[]

Defined in: types.ts:27

Names of plugins this plugin depends on.


readonly name: string

Defined in: types.ts:23

Unique plugin name.


readonly version: string

Defined in: types.ts:25

Semantic version string.

optional install(context): void | Promise<void>

Defined in: types.ts:29

Install services into the engine context. Called in topological order.

EngineContext

void | Promise<void>


optional onDestroy(): void

Defined in: types.ts:35

Called when the engine is destroyed.

void


optional onStart(): void | Promise<void>

Defined in: types.ts:33

Called after all plugins are installed and the engine has started.

void | Promise<void>


optional registerSystems(scheduler): void

Defined in: types.ts:31

Register systems with the scheduler. Called after install.

SystemScheduler

void