EntitySnapshotEntry
Defined in: packages/save/src/snapshot/types.ts:51
Serialized state for a single entity.
Properties
Section titled “Properties”childName?
Section titled “childName?”
optionalchildName?:string
Defined in: packages/save/src/snapshot/types.ts:63
The name this entity was registered under in parent.addChild().
components
Section titled “components”components:
ComponentSnapshot[]
Defined in: packages/save/src/snapshot/types.ts:57
Auto-collected component snapshots.
id:
number
Defined in: packages/save/src/snapshot/types.ts:53
Entity runtime ID at save time (used to restore references).
parentId?
Section titled “parentId?”
optionalparentId?:number
Defined in: packages/save/src/snapshot/types.ts:61
Save-time ID of the parent entity, if this is a child.
type:
string
Defined in: packages/save/src/snapshot/types.ts:55
Entity type identifier (from
Serializable
Section titled “Serializable”decorator).
userData?
Section titled “userData?”
optionaluserData?:unknown
Defined in: packages/save/src/snapshot/types.ts:59
User-defined entity data (from entity.serialize()).