EntitySaveContext
What an entity-scope save’s read and restore receive.
Extends
Section titled “Extends”Extended by
Section titled “Extended by”Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
account |
SaveAccount |
- |
entities |
readonly Entity[] |
The entities this record of the player’s keeps beside the player entity and saved entities: what the player built for themselves, registered with addRecordEntity or spawned by the record’s restore. A read reaches these and no other entity of the world; the world’s own things are the world’s record’s. |
entity |
Entity |
The player’s saved entity, such as the character, a dragon or a pet. |
player |
PlayerEntity |
The player entity, which the core makes as the player joins. |
savedAs |
string |
The name it is saved as: main unless the game names another. |
target |
Entity |
The entity the save is kept on: the player entity here, and the saved entity in an entity’s scope, so a save a game may keep in either reads one field. |
world |
World |
The world, to read: restore writes through its writer. |