コード例 #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
ファイル: OutputLogWindow.cs プロジェクト: kingland/FlaxAPI
 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();
     }
 }
コード例 #5
0
 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);
     }
 }