summaryrefslogtreecommitdiff
path: root/StardewModdingAPI/Inheritance/SGame.cs
diff options
context:
space:
mode:
authorZoryn Aaron <zoryn4163@gmail.com>2016-03-03 09:44:10 -0500
committerZoryn Aaron <zoryn4163@gmail.com>2016-03-03 09:44:10 -0500
commit659825ea783cdf57f7b1150bfd8a8191217b76ef (patch)
treeeaa65b3f6693f5e89d7ac82d8039fa097ecf9a01 /StardewModdingAPI/Inheritance/SGame.cs
parent250559d227fa3a8148ad97d75a725ed0a47a0f4f (diff)
downloadSMAPI-659825ea783cdf57f7b1150bfd8a8191217b76ef.tar.gz
SMAPI-659825ea783cdf57f7b1150bfd8a8191217b76ef.tar.bz2
SMAPI-659825ea783cdf57f7b1150bfd8a8191217b76ef.zip
pu to work from another location
Diffstat (limited to 'StardewModdingAPI/Inheritance/SGame.cs')
-rw-r--r--StardewModdingAPI/Inheritance/SGame.cs37
1 files changed, 36 insertions, 1 deletions
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)
+ });
}
}