Sonolus Wiki

Entity Shared Memory

Entity Shared Memory block is used as generic memory storage that are accessible by other entities.

Identifier

const EntitySharedMemoryId = 4002

Values

IndexInitial ValueDescription
0-310Generic memory

Access

CallbackReadWrite
preprocess
spawnTime
despawnTime
initialize
updateSequential
updateParallel
terminate
updateSpawn

Remarks

Entity Shared Memory is simply a view into Entity Shared Memory Array.

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