Point lights

This commit is contained in:
Confideo-IOM
2026-08-28 16:36:25 +01:00
parent 30538ae7ab
commit e3d37e3f8a
60 changed files with 458 additions and 184 deletions
+12 -2
View File
@@ -75,7 +75,8 @@ public:
// Entity signature does not match system signature - erase from set
else
{
system->DestroyComponents(entity_id);
//system->DestroyComponents(entity_id);
//system->DeleteComponent(entity_id);
system->Entities.erase(entity_id);
system->EntitiesToCreate.erase(entity_id);
}
@@ -87,11 +88,20 @@ public:
for (auto const& pair : m_systems)
{
auto const& system = pair.second;
system->DestroyComponents(entity_id);
system->DeleteComponent(entity_id);
//system->EntitiesToDelete.insert(entity_id);
system->Entities.erase(entity_id);
system->EntitiesToCreate.erase(entity_id);
}
}
void DeleteComponents()
{
for (auto const& pair : m_systems)
{
auto const& system = pair.second;
system->DeleteComponents();
}
}
void InitialiseComponents()
{
for (auto const& pair : m_systems)