-------------------------- EcsController::d-tor
| 28 | // EcsController::d-tor |
| 29 | // |
| 30 | EcsController::~EcsController() |
| 31 | { |
| 32 | // delete archetypes |
| 33 | for (ArchetypeContainer& container : m_HierachyLevels) |
| 34 | { |
| 35 | for (std::pair<T_Hash const, Archetype*>& arch : container.archetypes) |
| 36 | { |
| 37 | delete arch.second; |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | // delete systems |
| 42 | for (RegisteredSystem* const sys : m_Systems) |
| 43 | { |
| 44 | delete sys->system; |
| 45 | delete sys; |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | // entity managment |
| 50 | ///////////////////// |
nothing calls this directly
no outgoing calls
no test coverage detected