Module
Defined in: src/lib/module/index.ts:215
Module handle returned by registerModule. This is what gets exported from each module and imported by the runtime.
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
dependencies | readonly | readonly string[] | Module dependencies. | src/lib/module/index.ts:224 |
getService | public | <T>(ServiceClass: ServiceClass<T>) => T | undefined | Get a service instance by class. | src/lib/module/index.ts:249 |
getServices | public | () => readonly RpcModule[] | Get all registered service instances. | src/lib/module/index.ts:254 |
huds | readonly | readonly HudDefinition[] | HUD features for persistent overlay elements. | src/lib/module/index.ts:234 |
name | readonly | string | Module name. | src/lib/module/index.ts:219 |
pages | readonly | Record<string, PageDefinition> | Page features for full-screen UI routes. | src/lib/module/index.ts:229 |
start | public | () => Promise<void> | Start the module. Called by the runtime. | src/lib/module/index.ts:239 |
stop | public | () => Promise<void> | Stop the module. Called by the runtime. | src/lib/module/index.ts:244 |