Exemple #1
0
void BaseSystem::TryLoadSystems ()
{
	BaseSystem* it ( GetFirst () );
	while( it != nullptr )
	{
		if( it->IsDynamic () )
		{
			it->SetActive ( true );
		}
		GetNext ( it );
	}
}
Exemple #2
0
void BaseSystem::TryUnloadSystems ()
{
	BaseSystem* it ( GetFirst () );
	while( it != nullptr )
	{
		if( it->IsDynamic () )
		{
			if( !it->GotJob () ) it->SetActive ( false );
		}
		GetNext ( it );
	}
}