(GameCooker.EventType type)
| 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 | { |
nothing calls this directly
no test coverage detected