Since an entity is essentially tied to a manager, put it as a field in Entity. This means no need to pass entity manager when getting a component, which is more intuitive. |
||
---|---|---|
.. | ||
sc | ||
CMakeLists.txt | ||
EC.h | ||
entManager.c | ||
mempool.c | ||
mempool.h |
Since an entity is essentially tied to a manager, put it as a field in Entity. This means no need to pass entity manager when getting a component, which is more intuitive. |
||
---|---|---|
.. | ||
sc | ||
CMakeLists.txt | ||
EC.h | ||
entManager.c | ||
mempool.c | ||
mempool.h |