MCPcopy Create free account
hub / github.com/alecthomas/entityx / reset

Method reset

entityx/Entity.cc:41–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41void 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
53EntityCreatedEvent::~EntityCreatedEvent() {}
54EntityDestroyedEvent::~EntityDestroyedEvent() {}

Callers 3

Entity_test.ccFile · 0.45
destroyMethod · 0.45
removeMethod · 0.45

Calls 1

destroyMethod · 0.45

Tested by

no test coverage detected