ecsalt (ecsalt v2.0.1)
View SourceEntity Component System
Summary
Functions
Stop the ECS and delete the ETS tables
Create a new ECS world with default ETS options. Returns an opaque world record used by all other API functions.
For every registered system, trigger the proc callback with some extra data specified by Data and gather results.
Convert the component list for a given entity ID to a map. Warning: this can potentially create an unbounded number of atoms!
Types
Functions
-spec delete(world()) -> ok.
Stop the ECS and delete the ETS tables
-spec new() -> world().
Create a new ECS world with default ETS options. Returns an opaque world record used by all other API functions.
See also new/1, especially if you need to start ECSalt with public tables for multi-process access.
For every registered system, trigger the proc callback with some extra data specified by Data and gather results.
Convert the component list for a given entity ID to a map. Warning: this can potentially create an unbounded number of atoms!