28 lines
637 B
C#
Executable File
28 lines
637 B
C#
Executable File
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;
|
|
}
|
|
}
|
|
}
|
|
}
|