Skip to content

Commit

Permalink
Serialization and deserialization with metatrackers.
Browse files Browse the repository at this point in the history
  • Loading branch information
RealityMachina committed May 25, 2018
1 parent a8123a7 commit 7c8be51
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions PunchinOut/SaveGamePatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ static void Postfix(GameInstanceSave __instance)
}
}

[HarmonyPatch(typeof(GameInstanceSave), "Load")]
public static class GameInstanceSave_Load_Patch
[HarmonyPatch(typeof(GameInstance), "Load")]
public static class GameInstance_Load_Patch
{
static void Prefix(GameInstanceSave __instance)
static void Prefix(GameInstanceSave save)
{
Holder.Resync(__instance.SaveTime);
Holder.Resync(save.SaveTime);
}
}
}
6 changes: 3 additions & 3 deletions PunchinOut/panicTracker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ public PanicTracker(Mech mech)

public class MetaTracker
{
public List<PanicTracker> TrackedPilots { get; private set; }
public DateTime SaveGameTimeStamp { get; private set; }
public string SimGameGUID { get; private set; }
public List<PanicTracker> TrackedPilots { get; set; }
public DateTime SaveGameTimeStamp { get; set; }
public string SimGameGUID { get; set; }

public MetaTracker()
{
Expand Down

0 comments on commit 7c8be51

Please sign in to comment.