Beispiel #1
0
 public void Load(UserData data)
 {
     _data = data;
     for (int i = 0; i < data.Inventory.Count; i++)
     {
         Items.Add(ItemBase.GetItem(data.Inventory[i]));
     }
 }
Beispiel #2
0
 public void Load(UserData data)
 {
     _data = data;
     for (int i = 0; i < _data.Equipment.Count; i++)
     {
         EquipmentItem item = (EquipmentItem)ItemBase.GetItem(_data.Equipment[i]);
         Items.Add(item);
         item.Equip(Player);
     }
 }
Beispiel #3
0
 protected override Item DeserializeItem(NetworkReader reader)
 {
     return(ItemBase.GetItem(reader.ReadInt32()));
 }