Exemple #1
0
        public void testLevel(LevelDescriptor level, ProgressNotifier pn)
        {
            try
            {
                string origStartScene = GameStartScene;
                pn.Progress = .2f;

                cleanProject();
                pn.Progress = .3f;

                CompileManager.Instance.compile();
                DirectoryCopy(PathLib, PathBuildLib, true);
                DirectoryCopy(PathMedia, PathBuildMedia, true);

                pn.Progress = .6f;

                string statePath = InstanceManager.Instance.convertToGobs(FileGameDataLibrary, level.Level);
                GameStartScene = level.Name;

                pn.Progress = .7f;

                DirectoryCopy(ResourceFiles.CompileLib, PathBuildLib, true);
                DirectoryCopy(ResourceFiles.CompileMedia, PathBuildMedia, true);
                File.Copy(ResourceFiles.LibExe, FileBuildGameExePath);
                File.Copy(PATH_COMPILE_EXE_CONFIG, FileBuildGameConfigPath);
                createGameSettings();

                pn.Progress = .8f;
                runGame();
                pn.Progress = 1;

                GameStartScene = origStartScene;
            }
            catch (WhiskeyException we)
            {
                we.displayMessageBox();
            }
        }
Exemple #2
0
 public void testLevel(LevelDescriptor level)
 {
     testLevel(level, new DefaultProgressNotifier());
 }