コード例 #1
0
ファイル: Item.cs プロジェクト: meekersX/deathreconstruction
 public Item(uint itemID, CM_Physics.PublicWeenieDesc wdesc)
 {
     ID   = itemID;
     Name = wdesc._name.ToString();
     if (wdesc._plural_name != null)
     {
         PluralName = wdesc._plural_name.ToString();
     }
     else
     {
         PluralName = Name + "s";
     }
     Value     = wdesc._value;
     StackSize = wdesc._stackSize;
     if (StackSize == 0)
     {
         StackSize = 1;
     }
     ContainerID  = wdesc._containerID;
     Type         = wdesc._type;
     BondedStatus = BondedStatusEnum.Normal_BondedStatus;
     Wcid         = wdesc._wcid;
     WielderID    = wdesc._wielderID;
 }