public override void LoadPreviousGame(SaveData saveData) { networkComms.RegisteredPlayers = saveData.RegisteredPlayers; heatSystem.HeatLevel = saveData.HeatLevel; researchControl.UnlockedTechs = saveData.UnlockedTechs; npcGroupManager.LoadSaveData(saveData.NpcGroupSaveDatas); convoySpawner.RestoreSpawnTimeFromSave(saveData.NextSpawnTime); researchHacking.RestoreSaveData(saveData.HackingData); modBuildWhenGameStarted = saveData.BuildWhenGameStarted; baseManager.LoadSaveData(saveData.GCorpBaseSaveDatas); mikiScrapManager.LoadSaveData(saveData.MikiScrapSaveDatas); //V26 modBuildWhenLastSaved = saveData.BuildWhenSaved; heatSystem.HeatDifficulty = saveData.HeatDifficultySetting; if (heatSystem.HeatDifficulty < 1) { heatSystem.HeatDifficulty = 1; } if (heatSystem.HeatDifficulty > 3) { GCorpBase.SetFastBackupDelay(); } else { GCorpBase.SetNormalBackupDelay(); } heatSystem.MultiplayerScaling = saveData.MultiplayerScaling; // Move to the end so other saved info is already loadedf missionSystem = new MissionSystem(modBuildWhenLastSaved, gameVersion, saveData.MissionStartTimeBinary, saveData.ExcludedMissionPrompts, audioSystem, researchControl); }
public override void StartedNewGame() { missionSystem = new MissionSystem(modBuildWhenLastSaved, gameVersion, MyAPIGateway.Session.GameDateTime.ToBinary(), new HashSet <int>(), audioSystem, researchControl); modBuildWhenGameStarted = CurrentModVersion; }