EachRestoreContext
What a per-entity world save’s onEntityRestore receives: the entity
the engine made from the record, with the save’s kept fields set, and
what it writes with.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
entity |
Entity |
The entity, its kept trait’s fields as the record holds them and each field that holds an entity set to the one its record names. |
world |
World |
The world, to read: every record’s entity exists before the first hook runs, so findEntityByPersistentId(world, id) finds the one a record names. |
writer |
Authority |
The world’s authority: a world’s records restore as it loads, before any player joins. |