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

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

	FlushDeletedEntities();
	FlushDeletedSystems();
}
예제 #2
0
ParticleSystem::~ParticleSystem()
{
    ClearSystem();
    delete odeSolver;
}