コード例 #1
0
        public static void NewGame()
        {
            //TODO: User must set a username....somehow

            var save = new Save();

            save.ExperiencedStories = new List <string>();
            if (DevMode == true)
            {
                if (ProfileName == "98")
                {
                    save.CurrentOS = "98";
                    save.ThemeName = "default98";
                }
                else
                {
                    save.CurrentOS = "95";
                    save.ThemeName = "default95";
                    currentTheme   = new Default95Theme();
                }
            }
            else
            {
                save.CurrentOS = "95";
                save.ThemeName = "default95";
                currentTheme   = new Default95Theme();
            }
            CurrentSave = save;

            CheckFiles();
            SaveGame();
        }
コード例 #2
0
        public static void SetTheme()
        {
            switch (CurrentSave.ThemeName)
            {
            case "default95":
                currentTheme = new Default95Theme();
                break;

            case "dangeranimals":
                currentTheme = new DangerousCreaturesTheme();
                break;

            case "insidepc":
                currentTheme = new InsideComputerTheme();
                break;
            }
        }