public CompileMessages CompileGame(bool forceRebuild, bool createMiniExeForDebug) { Factory.GUIController.ClearOutputPanel(); CompileMessages errors = new CompileMessages(); Utilities.EnsureStandardSubFoldersExist(); if (PreCompileGame != null) { PreCompileGameEventArgs evArgs = new PreCompileGameEventArgs(forceRebuild); evArgs.Errors = errors; PreCompileGame(evArgs); if (!evArgs.AllowCompilation) { Factory.GUIController.ShowOutputPanel(errors); ReportErrorsIfAppropriate(errors); return errors; } } RunPreCompilationChecks(errors); if (!errors.HasErrors) { CompileMessage result = (CompileMessage)BusyDialog.Show("Please wait while your scripts are compiled...", new BusyDialog.ProcessingHandler(CompileScripts), new CompileScriptsParameters(errors, forceRebuild)); if (result != null) { errors.Add(result); } else if (!errors.HasErrors) { if (createMiniExeForDebug) { CreateMiniEXEForDebugging(errors); } else { CreateCompiledFiles(errors, forceRebuild); } } } Factory.GUIController.ShowOutputPanel(errors); ReportErrorsIfAppropriate(errors); return errors; }
public CompileMessages CompileGame(bool forceRebuild, bool createMiniExeForDebug) { Factory.GUIController.ClearOutputPanel(); CompileMessages errors = new CompileMessages(); Utilities.EnsureStandardSubFoldersExist(); if (PreCompileGame != null) { PreCompileGameEventArgs evArgs = new PreCompileGameEventArgs(forceRebuild); evArgs.Errors = errors; PreCompileGame(evArgs); if (!evArgs.AllowCompilation) { Factory.GUIController.ShowOutputPanel(errors); ReportErrorsIfAppropriate(errors); return errors; } } RunPreCompilationChecks(errors); if (!errors.HasErrors) { CompileMessage result = (CompileMessage)BusyDialog.Show("Please wait while your scripts are compiled...", new BusyDialog.ProcessingHandler(CompileScripts), new CompileScriptsParameters(errors, forceRebuild)); if (result != null) { errors.Add(result); } else if (!errors.HasErrors) { string sourceEXE = Path.Combine(this.EditorDirectory, ENGINE_EXE_FILE_NAME); if (!File.Exists(sourceEXE)) { errors.Add(new CompileError("Cannot find the file '" + sourceEXE + "'. This file is required in order to compile your game.")); } else if (createMiniExeForDebug) { CreateMiniEXEForDebugging(sourceEXE, errors); } else { CreateCompiledFiles(sourceEXE, errors, forceRebuild); } } } Factory.GUIController.ShowOutputPanel(errors); ReportErrorsIfAppropriate(errors); return errors; }
public CompileMessages CompileGame(bool forceRebuild, bool createMiniExeForDebug) { Factory.GUIController.ClearOutputPanel(); CompileMessages errors = new CompileMessages(); Utilities.EnsureStandardSubFoldersExist(); if (PreCompileGame != null) { PreCompileGameEventArgs evArgs = new PreCompileGameEventArgs(forceRebuild); evArgs.Errors = errors; PreCompileGame(evArgs); if (!evArgs.AllowCompilation) { Factory.GUIController.ShowOutputPanel(errors); ReportErrorsIfAppropriate(errors); return errors; } } RunPreCompilationChecks(errors); if (!errors.HasErrors) { CompileMessage result = (CompileMessage)BusyDialog.Show("Patientez durant la compilation du script...", new BusyDialog.ProcessingHandler(CompileScripts), new CompileScriptsParameters(errors, forceRebuild)); if (result != null) { errors.Add(result); } else if (!errors.HasErrors) { string sourceEXE = Path.Combine(this.EditorDirectory, ENGINE_EXE_FILE_NAME); if (!File.Exists(sourceEXE)) { errors.Add(new CompileError("Fichier '" + sourceEXE + "' introuvable. La compilation du jeu requiert la présence de ce fichier.")); } else if (createMiniExeForDebug) { CreateMiniEXEForDebugging(sourceEXE, errors); } else { CreateCompiledFiles(sourceEXE, errors, forceRebuild); } } } Factory.GUIController.ShowOutputPanel(errors); ReportErrorsIfAppropriate(errors); return errors; }