Ejemplo n.º 1
0
 private void OnGameCookerEvent(GameCooker.EventType eventType, ref GameCooker.Options options)
 {
     if (eventType == GameCooker.EventType.BuildFailed)
     {
         FocusOrShow();
     }
 }
Ejemplo n.º 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;
     }
 }
Ejemplo n.º 3
0
 private void OnGameCookerEvent(GameCooker.EventType eventType, ref GameCooker.Options options)
 {
     if (eventType == GameCooker.EventType.BuildFailed && !Editor.IsHeadlessMode)
     {
         FocusOrShow();
     }
 }
Ejemplo n.º 4
0
        private void OnGameCookerEvent(GameCooker.EventType eventType, ref GameCooker.Options options)
        {
            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);
            }
        }