void SystemManager::CreateInstance(uint16 maxEntityCount, uint8 maxPhaseCount)
{
	if(GetSingletonPtr() == NULL)
		new SystemManager(maxEntityCount, maxPhaseCount);
}
Esempio n. 2
0
 static T* Instance()
 {
     return GetSingletonPtr();
 }
Esempio n. 3
0
 static T& GetSingletonRef()
 {
     return *GetSingletonPtr();
 }
		//--------------------------------------------------------
		/// Get Singleton
		//--------------------------------------------------------
		JavaInterfaceManager& JavaInterfaceManager::GetSingleton()
		{
			return *GetSingletonPtr();
		}
Esempio n. 5
0
CController& CController::GetSingleton ( )
{
    return *GetSingletonPtr ( );
}
void ActorFactory::CreateInstance()
{
	if(GetSingletonPtr() == NULL)
		new ActorFactory();
}