MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / OnGameCookerEvent

Function OnGameCookerEvent

Source/Editor/Windows/GameCookerWindow.cs:874–895  ·  view source on GitHub ↗
(GameCooker.EventType type)

Source from the content-addressed store, hash-verified

872 }
873
874 private void OnGameCookerEvent(GameCooker.EventType type)
875 {
876 if (type == GameCooker.EventType.BuildStarted)
877 {
878 // Execute pre-build action
879 if (!string.IsNullOrEmpty(_preBuildAction))
880 ExecuteAction(_preBuildAction);
881 _preBuildAction = null;
882 }
883 else if (type == GameCooker.EventType.BuildDone)
884 {
885 // Execute post-build action
886 if (!string.IsNullOrEmpty(_postBuildAction))
887 ExecuteAction(_postBuildAction);
888 _postBuildAction = null;
889 }
890 else if (type == GameCooker.EventType.BuildFailed)
891 {
892 _postBuildAction = null;
893 _lastBuildFailed = true;
894 }
895 }
896
897 private void ExecuteAction(string action)
898 {

Callers

nothing calls this directly

Calls 1

ExecuteActionFunction · 0.85

Tested by

no test coverage detected