示例#1
0
 public ItemBag(ItemFightStats itemFightStats, string itemName, int itemPrice,
                ItemUseData itemUseData, Sprite itemSprite, int maxBagSize, List <Item> items)
     : base(itemFightStats, itemName, itemPrice, itemUseData, itemSprite)
 {
     this.maxBagSize = maxBagSize;
     this.items      = items;
 }
示例#2
0
 //ctr for non eatable items
 public Item(ItemFightStats itemFightStats, string itemName, int itemPrice,
             ItemUseData itemUseData, Sprite itemSprite, int capacity, List <Item> innerItems)
 {
     this.stats          = new ItemStats(PlayerStats.NONE, 0, 0, 0);
     this.id             = GenerateId(itemName, stats);
     this.ItemFightStats = itemFightStats;
     this.itemName       = itemName;
     this.itemPrice      = itemPrice;
     this.itemUseData    = itemUseData;
     this.itemSprite     = itemSprite;
     this.capacity       = capacity;
     this.innerItems     = innerItems;
 }