| 39 | } |
| 40 | |
| 41 | void EntityManager::reset() { |
| 42 | for (Entity entity : entities_for_debugging()) entity.destroy(); |
| 43 | for (BasePool *pool : component_pools_) { |
| 44 | if (pool) delete pool; |
| 45 | } |
| 46 | component_pools_.clear(); |
| 47 | entity_component_mask_.clear(); |
| 48 | entity_version_.clear(); |
| 49 | free_list_.clear(); |
| 50 | index_counter_ = 0; |
| 51 | } |
| 52 | |
| 53 | EntityCreatedEvent::~EntityCreatedEvent() {} |
| 54 | EntityDestroyedEvent::~EntityDestroyedEvent() {} |
no test coverage detected