Entities · interface

SerializedScene

Explained in Entities.

interface SerializedScene
import type { SerializedScene } from '@driftengine/entities';

Properties

NameTypeDescription
versionreadonly1
schemasreadonlyReadonly<Record<string, Schema>>What each component type looked like when this was written. The from half of a migration.
entitiesreadonlyreadonly { /** Component name → field id → value. Entity-typed values hold a scene index, not a handle. */ readonly components: Readonly<Record<string, Readonly<Record<string, unknown>>>>; }[]