From 659825ea783cdf57f7b1150bfd8a8191217b76ef Mon Sep 17 00:00:00 2001 From: Zoryn Aaron Date: Thu, 3 Mar 2016 09:44:10 -0500 Subject: pu to work from another location --- StardewModdingAPI/Inheritance/SGame.cs | 37 +++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) (limited to 'StardewModdingAPI/Inheritance/SGame.cs') diff --git a/StardewModdingAPI/Inheritance/SGame.cs b/StardewModdingAPI/Inheritance/SGame.cs index 99db73d9..bed57e34 100644 --- a/StardewModdingAPI/Inheritance/SGame.cs +++ b/StardewModdingAPI/Inheritance/SGame.cs @@ -2,11 +2,16 @@ using System.Collections.Generic; using System.Linq; using System.Reflection; +using System.Xml.Serialization; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using StardewValley; +using StardewValley.Characters; using StardewValley.Menus; +using StardewValley.Monsters; +using StardewValley.Quests; +using StardewValley.TerrainFeatures; namespace StardewModdingAPI.Inheritance { @@ -53,7 +58,37 @@ namespace StardewModdingAPI.Inheritance { if (Program.debug) { - //SaveGame.serializer. + SaveGame.serializer = new XmlSerializer(typeof (SaveGame), new Type[28] + { + typeof (Tool), + typeof (GameLocation), + typeof (Crow), + typeof (Duggy), + typeof (Bug), + typeof (BigSlime), + typeof (Fireball), + typeof (Ghost), + typeof (Child), + typeof (Pet), + typeof (Dog), + typeof (StardewValley.Characters.Cat), + typeof (Horse), + typeof (GreenSlime), + typeof (LavaCrab), + typeof (RockCrab), + typeof (ShadowGuy), + typeof (SkeletonMage), + typeof (SquidKid), + typeof (Grub), + typeof (Fly), + typeof (DustSpirit), + typeof (Quest), + typeof (MetalHead), + typeof (ShadowGirl), + typeof (Monster), + typeof (TerrainFeature), + typeof (SObject) + }); } } -- cgit