Esempio n. 1
0
        public static void LoadGame(SaveFile saveFile)
        {
            if (saveFile != null)
            {
                GalaxyController.ResetGalaxy();
                MerchantController.CreateNewMerchant();

                //Default (these should always load):
                saveFile.Load_PlanetarySystems();
                saveFile.Load_Player();

                switch (saveFile.GameState)
                {
                default:
                case SaveFile_GameState.Galaxy:
                    GameUIController.CreateGalaxyScreen();
                    break;

                case SaveFile_GameState.PlanetarySystem:
                    GameUIController.CreatePlanetarySystemScreen();
                    saveFile.Load_CurrentPlanetarySystem();
                    break;

                case SaveFile_GameState.Citadel:
                    GameUIController.CreateCitadelScreen();
                    break;
                }
            }
        }
Esempio n. 2
0
        public static void NewGame()
        {
            MerchantController.CreateNewMerchant();
            PlayerController.CreateNewPlayer();

            //Assign the player the first ship template:
            ShipyardController.AssignPlayerShip(ShipyardController.PlayerShipTemplates[0]);

            GalaxyController.CreateNewGalaxy();

            GameUIController.CreateGalaxyScreen();
        }