2018-05-09 08:21:59 +08:00
|
|
|
|
using StardewValley;
|
|
|
|
|
using System;
|
2018-05-07 20:41:16 +08:00
|
|
|
|
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;
|
2018-05-09 08:21:59 +08:00
|
|
|
|
public string recipientID;
|
2018-05-07 20:41:16 +08:00
|
|
|
|
|
|
|
|
|
public DataInfo()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public DataInfo(string Type,object Data)
|
|
|
|
|
{
|
|
|
|
|
this.type = Type;
|
|
|
|
|
this.data = Data;
|
2018-05-09 08:21:59 +08:00
|
|
|
|
this.recipientID = "";
|
2018-05-07 20:41:16 +08:00
|
|
|
|
}
|
|
|
|
|
|
2018-05-09 08:21:59 +08:00
|
|
|
|
public DataInfo(string Type, object Data, Farmer farmer)
|
|
|
|
|
{
|
|
|
|
|
this.type = Type;
|
|
|
|
|
this.data = Data;
|
|
|
|
|
this.recipientID = farmer.UniqueMultiplayerID.ToString();
|
|
|
|
|
}
|
2018-05-07 20:41:16 +08:00
|
|
|
|
|
2018-05-09 08:21:59 +08:00
|
|
|
|
public DataInfo(string Type, object Data, string uniqueID)
|
|
|
|
|
{
|
|
|
|
|
this.type = Type;
|
|
|
|
|
this.data = Data;
|
|
|
|
|
this.recipientID = uniqueID;
|
|
|
|
|
}
|
2018-05-07 20:41:16 +08:00
|
|
|
|
}
|
|
|
|
|
}
|