Exemple #1
0
 public static void InitializeSystem(IRootManager manager, IPlatform platform)
 {
     if (!Central.m_LogInitialized)
         throw new InvalidOperationException("Moai central management system does not have logging infrastructure initialized before starting main application execution.");
     if (Central.m_Initialized)
         throw new InvalidOperationException("Moai central management system can not be initialized twice.");
     Central.m_Initialized = true;
     Central.Manager = manager;
     Central.Platform = platform;
 }
Exemple #2
0
 public static void InitializeSystem(IRootManager manager, IPlatform platform)
 {
     if (!Central.m_LogInitialized)
     {
         throw new InvalidOperationException("Moai central management system does not have logging infrastructure initialized before starting main application execution.");
     }
     if (Central.m_Initialized)
     {
         throw new InvalidOperationException("Moai central management system can not be initialized twice.");
     }
     Central.m_Initialized = true;
     Central.Manager       = manager;
     Central.Platform      = platform;
 }