Ejemplo n.º 1
0
        private static void PlayPackage()
        {
            var packages = FileSystemHelper.SearchPackages(FileSystemHelper.GetCurrentPath()).ToList();
            var path     = ChoosePackage(packages);

            if (path == null)
            {
                ShowMenu();
                return;
            }

            var scenes = FileSystemHelper.ReadPackage(path);

            GameApplication.Init(scenes, path);
            ShowMenu();
        }
Ejemplo n.º 2
0
        private static void LoadSaved()
        {
            var saveGames = FileSystemHelper.SearchSaveGames(FileSystemHelper.GetCurrentPath()).ToList();
            var path      = ChooseSaveGame(saveGames);

            if (path == null)
            {
                ShowMenu();
                return;
            }

            var env = FileSystemHelper.ReadSavedGame(path);

            GameApplication.Init(env.AllScenes, env.PackageName, env.CurrentScene);
            ShowMenu();
        }
Ejemplo n.º 3
0
        private static void TestProject()
        {
            var projects = FileSystemHelper.GetStamProjects();
            var files    = ChooseProject(projects);

            if (files == null)
            {
                ShowMenu();
                return;
            }

            var isValid = ValidationHelper.ValidateFiles(files);

            if (!isValid)
            {
                ShowMenu();
                return;
            }

            var scenes = FileParseHelper.GetScenes(files).ToList();

            GameApplication.Init(scenes, null);
            ShowMenu();
        }