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