Пример #1
0
 private void OnGameCookerEvent(GameCooker.EventType eventType, ref GameCooker.Options options)
 {
     if (eventType == GameCooker.EventType.BuildFailed)
     {
         FocusOrShow();
     }
 }
Пример #2
0
 private void OnGameCookerEvent(GameCooker.EventType type, ref GameCooker.Options options1)
 {
     if (type == GameCooker.EventType.BuildStarted)
     {
         // Execute pre-build action
         if (!string.IsNullOrEmpty(_preBuildAction))
         {
             ExecueAction(_preBuildAction);
         }
         _preBuildAction = null;
     }
     else if (type == GameCooker.EventType.BuildDone)
     {
         // Execute post-build action
         if (!string.IsNullOrEmpty(_postBuildAction))
         {
             ExecueAction(_postBuildAction);
         }
         _postBuildAction = null;
     }
     else if (type == GameCooker.EventType.BuildFailed)
     {
         _postBuildAction = null;
     }
 }
Пример #3
0
 private void OnGameCookerEvent(GameCooker.EventType eventType)
 {
     if (eventType == GameCooker.EventType.BuildFailed && !Editor.IsHeadlessMode)
     {
         FocusOrShow();
     }
 }
Пример #4
0
 private void OnGameCookerEvent(GameCooker.EventType eventType)
 {
     if (eventType == GameCooker.EventType.BuildFailed && !Editor.IsHeadlessMode && Editor.Options.Options.Interface.FocusOutputLogOnGameBuildError)
     {
         FocusOrShow();
     }
 }
 private void OnGameCookerEvent(GameCooker.EventType eventType)
 {
     switch (eventType)
     {
     case GameCooker.EventType.BuildStarted:
         OnStart();
         OnUpdate(0, "Starting building game..");
         break;
     case GameCooker.EventType.BuildFailed:
         OnEnd();
         break;
     case GameCooker.EventType.BuildDone:
         OnEnd();
         break;
     default: throw new ArgumentOutOfRangeException(nameof(eventType), eventType, null);
     }
 }