Serialization interfaces (#62)

This commit is contained in:
Leath Cooper 2019-12-30 15:16:35 -05:00 • committed by Kamron Batman
parent 5e2be2d7b6
commit 5c8821b11c
2406 changed files with 10100 additions and 9350 deletions

View file

@ -211,13 +211,13 @@ namespace Server.Engines.MLQuests
public virtual TimeSpan GetRestartDelay() => TimeSpan.FromSeconds(Utility.Random(1, 5) * 30);
public static void Serialize(GenericWriter writer, MLQuest quest)
public static void Serialize(IGenericWriter writer, MLQuest quest)
{
MLQuestSystem.WriteQuestRef(writer, quest);
writer.Write(quest.Version);
}
public static void Deserialize(GenericReader reader, int version)
public static void Deserialize(IGenericReader reader, int version)
{
MLQuest quest = MLQuestSystem.ReadQuestRef(reader);
int oldVersion = reader.ReadInt();