public pd_ItemData CreateSaveData() { pd_ItemData data = new pd_ItemData(); data.item_idn = Info.IDN; data.item_count = Count; data.item_piece_count = PieceCount; return(data); }
public Item(pd_ItemData data) { this.Info = ItemInfoManager.Instance.GetInfoByIdn(data.item_idn); Count = data.item_count; PieceCount = data.item_piece_count; Notify = false; }
public void Set(pd_ItemData data) { Count = data.item_count; PieceCount = data.item_piece_count; if (Count == 0) { Notify = false; } }