Example #1
0
 public PlayerInfo(ProxySocket socket)
 {
     _socket = socket;
     for (var i = 1; i <= 50; i++)
     {
         BagItems[i] = new BagItem();
     }
     for (var i = 1; i <= 6; i++)
     {
         Equips[i] = new BagItem();
     }
     for (var i = 1; i <= 4; i++)
     {
         Pets[i] = new Pet();
     }
 }
Example #2
0
 public void CopyTo(BagItem bagItem)
 {
     bagItem.Id      = Id;
     bagItem.Qty     = Qty;
     bagItem.Durable = Durable;
 }