DCES
DCES is a library that provides a variant of the Entity Component System: https://en.wikipedia.org/wiki/Entity–component–system.
Features:
- Filter and sort entities for systems
- Define priorities (run order) for systems
The library is still WIP. API changes are possible.
Example
extern crate dces;
use *;
;
Future features
- Concurrency of systems with same priority
- Advanced example
- Book
World
- Developer Interface
- Iterate over ES
- Handles ECS
ECM: Entity Component Manager (singelton)
- Knows all entities as ids
- Contains vector of all components
- Components referenced by entity ids
ES: Entity System (0..n)
- Knows filtered subset of entities e.g. render entities for render system
- Provides one system run function
- Read and write to components