Ejemplo n.º 1
0
 public void ItemModified(NetCargo cargo)
 {
     if (dbChar != null)
     {
         dbChar.ApplyChanges();
     }
 }
Ejemplo n.º 2
0
 public void RemoveCargo(NetCargo slot, int amount)
 {
     slot.Count -= amount;
     if (slot.Count <= 0)
     {
         Items.Remove(slot);
         if (slot.DbItem != null)
         {
             dbChar.Character.Items.Remove(slot.DbItem);
             dbChar.ApplyChanges();
         }
     }
     else if (slot.DbItem != null)
     {
         slot.DbItem.ItemCount = slot.Count;
     }
 }