Exemple #1
0
        public override void OnNewGame()
        {
            // Written, 11.05.2019

            this.timerSaveData = new GameSaveTimerSaveData()
            {
                startedFromNewGame = true
            };
            SaveLoad.SerializeSaveFile(this, this.timerSaveData, SAVE_FILE_NAME);
        }
Exemple #2
0
        public override void OnLoad()
        {
            // Written, 11.05.2019

            this.timerSaveData = this.LoadData();

            if (this.timerSaveData is null)
            {
                this.timerSaveData = new GameSaveTimerSaveData()
                {
                    startedFromNewGame = false
                };
            }
            GameSaveTimerSaveData.gameStartTime = this.timerSaveData.timePassed;

            ModConsole.Print(this.Name + ": Loaded");
        }