private static void <SaveGame> m__0() { ScribeMetaHeaderUtility.WriteMetaHeader(); Game game = Current.Game; Scribe_Deep.Look <Game>(ref game, "game", new object[0]); }
public static void SaveScenario(Scenario scen, string absFilePath) { try { scen.fileName = Path.GetFileNameWithoutExtension(absFilePath); SafeSaver.Save(absFilePath, "savedscenario", delegate { ScribeMetaHeaderUtility.WriteMetaHeader(); Scribe_Deep.Look <Scenario>(ref scen, "scenario", new object[0]); }, false); } catch (Exception ex) { Log.Error("Exception while saving world: " + ex.ToString(), false); } }
public static void SaveGame(string fileName) { try { SafeSaver.Save(GenFilePaths.FilePathForSavedGame(fileName), "savegame", delegate { ScribeMetaHeaderUtility.WriteMetaHeader(); Game target = Current.Game; Scribe_Deep.Look(ref target, "game"); }, Find.GameInfo.permadeathMode); lastSaveTick = Find.TickManager.TicksGame; } catch (Exception arg) { Log.Error("Exception while saving game: " + arg); } }
public static void SaveGame(string fileName) { try { string path = GenFilePaths.FilePathForSavedGame(fileName); SafeSaver.Save(path, "savegame", delegate { ScribeMetaHeaderUtility.WriteMetaHeader(); Game game = Current.Game; Scribe_Deep.Look <Game>(ref game, "game", new object[0]); }, Find.GameInfo.permadeathMode); GameDataSaveLoader.lastSaveTick = Find.TickManager.TicksGame; } catch (Exception arg) { Log.Error("Exception while saving game: " + arg, false); } }
internal void <> m__0() { ScribeMetaHeaderUtility.WriteMetaHeader(); Scribe_Deep.Look <Scenario>(ref this.scen, "scenario", new object[0]); }