The .drft container · interface
EntsScene
A world as data. @driftengine/entities' SerializedScene is one of these.
Explained in The .drft container.
interface EntsSceneimport type { EntsScene } from '@driftengine/drft';Properties
| Name | Type | Description |
|---|---|---|
versionreadonly | number | |
schemasreadonly | Readonly<Record<string, unknown>> | What each component type looked like when this was written. |
entitiesreadonly | readonly { /** Component name → field id → value. */ readonly components: Readonly<Record<string, Readonly<Record<string, unknown>>>>; }[] |