Skip to content

Plugin

Defined in: types.ts:19

Plugin interface for extending the engine.

readonly optional dependencies?: readonly string[]

Defined in: types.ts:25

Names of plugins this plugin depends on.


readonly name: string

Defined in: types.ts:21

Unique plugin name.


readonly version: string

Defined in: types.ts:23

Semantic version string.

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

Defined in: types.ts:27

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

EngineContext

void | Promise<void>


optional onDestroy(): void

Defined in: types.ts:33

Called when the engine is destroyed.

void


optional onStart(): void

Defined in: types.ts:31

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

void


optional registerSystems(scheduler): void

Defined in: types.ts:29

Register systems with the scheduler. Called after install.

SystemScheduler

void