Пример #1
0
        public static void InitializeSaveData(FileInfo globalDataFile)
        {
            BackendInitializer.InitializeSaveData(globalDataFile);

            if (globalDataFile is null)
            {
                SaveSystem.AddGlobalSave(new FrontendGlobalSave());
                SaveSystem.AddSessionSave <FrontendSessionSave>();
            }
            else
            {
                throw new Backend.Tools.InDevelopmentExceptionThatBreaksOnRelease();
            }
        }
Пример #2
0
        public static void InitializeSaveData(FileInfo globalDataFile)
        {
            if (globalDataFile is null)
            {
                //initialize the saves.
                SaveSystem.AddGlobalSave(new BackendGlobalSave(GameEngine.defaultDifficultyIndex));
                SaveSystem.AddSessionSave <BackendSessionSave>();
            }
            else
            {
                //deserialize the global save data for the backend save.
                //initialize the
                throw new Tools.InDevelopmentExceptionThatBreaksOnRelease();
            }

            GameEngine.LoadFileBackend(globalDataFile);
        }