Stardew_Valley_Mods/GeneralMods/ModdedUtilitiesNetworking/Framework/DataInfo.cs

42 lines
938 B
C#
Raw Normal View History

using StardewValley;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ModdedUtilitiesNetworking.Framework
{
public class DataInfo
{
public string type;
public object data;
public string recipientID;
public DataInfo()
{
}
public DataInfo(string Type,object Data)
{
this.type = Type;
this.data = Data;
this.recipientID = "";
}
public DataInfo(string Type, object Data, Farmer farmer)
{
this.type = Type;
this.data = Data;
this.recipientID = farmer.UniqueMultiplayerID.ToString();
}
public DataInfo(string Type, object Data, string uniqueID)
{
this.type = Type;
this.data = Data;
this.recipientID = uniqueID;
}
}
}