public InventoryItem GetRealOne() { var real = new InventoryItem(); real.quantity = quantity; real.dirty = dirty; real.dirtyQuantity = dirtyQuantity; real.data = data.GetRealOne(); return(real); }
public EquipmentItem GetRealOne() { var real = new EquipmentItem(); real.durability = durability; //real.dirty = dirty; real.bodyIndex = bodyIndex; real.slotIndex = slotIndex; real.data = data.GetRealOne(); return(real); }
public void OnAfterDeserialize() { data = clone.GetRealOne(); }