Interface: IProject
User-authored entry point. Owns scenes and which one is active; gameplay code lives in Script subclasses on entities. OnInit runs once after Engine+backend are up; OnClose on teardown. No per-tick hook — the active scene's systems do the work.
Properties
| Property | Modifier | Type |
|---|---|---|
name | readonly | string |
version | readonly | string |
Methods
GetActiveScene()
ts
GetActiveScene(): Scene | null;Returns
Scene | null
OnClose()
ts
OnClose(): void;Returns
void
OnInit()
ts
OnInit(engine): Promise<boolean>;Parameters
| Parameter | Type |
|---|---|
engine | IEngine |
Returns
Promise<boolean>