Sonolus Wiki

Entity Data

Entity Data block is used as generic data storage.

Identifier

const EntityDataId = 4001

Values

IndexInitial ValueDescription
0-31?Generic data

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

Access

CallbackReadWrite
preprocess
spawnTime
despawnTime
initialize
updateSequential
updateParallel
terminate
updateSpawn

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.