MCPcopy Create free account
hub / github.com/Illation/ETEngine / ~EcsController

Method ~EcsController

Engine/source/EtFramework/ECS/EcsController.cpp:30–47  ·  view source on GitHub ↗

-------------------------- EcsController::d-tor

Source from the content-addressed store, hash-verified

28// EcsController::d-tor
29//
30EcsController::~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/////////////////////

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected