Appearance
Pool
The container used by the registry internally to store entities and component values for each component type.
Properties
size
The amount of entities contained in the pool.
Type
luaPool.size: number
entities
A buffer of all entities with the given component type.
Type
luaPool.entities: buffer
Details
0-indexed.
Sorted in the same order as
Pool.values
.- i.e.
entities[n]
's component value is located atvalues[n + 1]
.
- i.e.
values
An array of all values for the given component type.
Type
luaPool.values: Array<T>
Details
1-indexed.
Sorted in the same order as
Pool.entities
.