예제 #1
0
 public static void Stop()
 {
     Logger.log(31, Category.Engine, Severity.Info, "Engine shutting down");
     TickEngine.Dispose();
     EventEngine.ProcessEvents(); //Wait for next tick so all events get calculated
     StateEngine.Dispose();
 }
예제 #2
0
 public static void Init()
 {
     if (!entitiesInitialized)
     {
         Entities.Settings.BuildingSettings.MakeSettings();
         Entities.Settings.UnitSettings.MakeSettings();
         Entities.Settings.ItemSettings.MakeSettings();
         entitiesInitialized = true;
     }
     StateEngine.Init();
     TickEngine.init();
 }