Foundation - Entity Enable #9
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
If an entity is enabled then that entity's components are ready to be manipulated. By disabling an entity we make sure that it is basically frozen at its state. This can be achieved with a simple std::unordered_map<Entity, bool>.
Any frozen Entity should be skipped when feeding the std::vector cache data on a system.
This can be done with just a component called "isEnabled" or maybe a more general component of "Status". I'm currently more leaning to isEnabled since then DKM can automatically get which entities are enabled.
oh also instead of enable I intend to call this "Active"