The .drft container · interface

EntsScene

A world as data. @driftengine/entities' SerializedScene is one of these.

Explained in The .drft container.

interface EntsScene
import type { EntsScene } from '@driftengine/drft';

Properties

NameTypeDescription
versionreadonlynumber
schemasreadonlyReadonly<Record<string, unknown>>What each component type looked like when this was written.
entitiesreadonlyreadonly { /** Component name → field id → value. */ readonly components: Readonly<Record<string, Readonly<Record<string, unknown>>>>; }[]