ff::EntityDomain::~EntityDomain()
{
	for (EntityEntry &entityEntry: _entities)
	{
		if (entityEntry._valid)
		{
			DeleteEntity(entityEntry.ToEntity());
		}
	}

	for (SystemEntry &systemEntry: _systems)
	{
		ClearSystem(systemEntry);
	}

	FlushDeletedEntities();
	FlushDeletedSystems();
}
Ejemplo n.º 2
0
ParticleSystem::~ParticleSystem()
{
    ClearSystem();
    delete odeSolver;
}