CTT/Server/Model/Generate/Message/Custom/NetItem.cs

28 lines
637 B
C#
Raw Normal View History

2021-04-08 20:09:59 +08:00
using System;
using System.Collections.Generic;
namespace ET
{
public partial class NetItem
{
public NetItem() { }
public NetItem(Item item)
{
if (item.IsEmpty)
{
ItemId = 0;
return;
}
this.ItemId = item.ItemId;
this.Count = item.Count;
this.IsLock = item.IsLock;
this.ItemType = item.ItemType;
if (ItemType == ItemType.EquipItem)
{
this.ServerId = item.ServerId;
this.GetSource = item.getSource;
}
}
}
}