Point lights
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user