Sonolus Wiki

Entity Data

Entity Data block is used as generic data storage.

Identifier

const EntityDataId = 22

Values

IndexInitial ValueDescription
0-31?Generic data

Values are initially set to all 0, then archetype.data will be injected, and finally entity.data will be injected.

Access

CallbackReadWrite
preprocess
spawnOrder
shouldSpawn
initialize
updateSequential
touch
updateParallel
terminate

Remarks

Entity Data is simply a view into Entity Data Array.

For entities spawned by Spawn function call, it does not have any data and cannot access this block.