| Function | Description |
|---|---|
create |
Create an entity |
destroy(e) |
Destroy the entity by ID |
destroy<T>() |
Destroy the entity by component(s)/tag |
valid |
Check whether the entity ID is valid |
version |
Get version stored in the entity ID |
current |
Get actual version of the entity |
| Function | Description |
|---|---|
assign |
Create new component/tag |
replace |
Replace existing component/tag |
accommodate |
Create new or replace existing component/tag |
has |
Check whether the entity has the component(s)/tag |
get |
Get existing component(s)/tag from the entity |
remove |
Remove existing component/tag from the entity |
reset<T>(e) |
Remove component from the entity |
reset<T>() |
Remove all components of the given type |
reset() |
Remove all entities and components |
attachee |
Get entity of the given tag |
| Function | Description |
|---|---|
construction.connect |
Add callback for the component/tag construction |
construction.disconnect |
Remove callback for the component/tag construction |
destruction.connect |
Add callback for the component/tag destruction |
destruction.disconnect |
Remove callback for the component/tag destruction |
| Function | Description |
|---|---|
view<T>() |
Create standard view for given component type(s) |
view<T>(raw_t) |
Create raw view for given component type |
view<T>(persistent_t) |
Create persistent view for given component types |
view(begin, end) |
Create runtime view for given dynamic component types |
prepare<T>() |
Prepare for using persisten view for given component types |
each |
Iterate over each entity |
orphans |
Iterate over each entity without components and tags |
| Function | Description |
|---|---|
type<T>() |
Get dynamic type of the component/tag |
sort<T>(c, s) |
Sort components of the given type using compare function and sort algorithm |
sort<T1, T2>() |
Sort components to minimize cache missies during iteration over <T1, T2> |
snapshot |
Get snapshot for serialization |
restore |
Get snapshot loader for deserialization |