Stardew_Valley_Mods/GeneralMods/StardustCore/Serialization/SerializerDataNode.cs

28 lines
858 B
C#

using StardewValley;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StardustCore.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;
}
}
}