ZPL - Entity System module [ABANDONED]
This module offers zero-cost speed low memory footprint entity allocator and de-allocator. On top of that, user has the ability to attach components onto entities and iterate over them.
Important note
- Component pool of type X can be used ONLY BY ONE entity pool.
- Entity pool can use MULTIPLE component pools of type X.
- Entity handles SHALL NOT BE mixed-up with DIFFERENT entity pools / component pools.
- Entity's components HAVE TO BE detached BEFORE the entity gets destroyed.
Usage
typedef struct ZPLE_COMP_DECLARE(transform); void // NOTE(ZaKlaus): Put this EXACTLY to one source file! int