Stardew_Valley_Mods/GeneralMods/OutDatedMods/Serialization/SerializerDataNode.cs

28 lines
845 B
C#

using StardewValley;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Serialization
{
public class SerializerDataNode
{
public delegate Item ParsingFunction(string data);
public delegate void SerializingFunction(Item item);
public delegate void WorldParsingFunction(Item obj);
public SerializingFunction serialize;
public ParsingFunction parse;
public WorldParsingFunction worldObj;
public SerializerDataNode(SerializingFunction serializeFunction, ParsingFunction parsingFunction, WorldParsingFunction worldObjectParsingFunction)
{
serialize = serializeFunction;
parse = parsingFunction;
worldObj = worldObjectParsingFunction;
}
}
}