Beispiel #1
0
    public int[] AmmoBackpackMax; // store the maximum value of carried ammo here.

    //public ItemData emptyItem;

    public void Start()
    {
        for (int i = 0; i < inventoryListSlotRestriction.Length; i++)
        {
            inventoryList.Add(emptyItem.gameObject);
            ItemModelList.Add(emptyItem.gameObject);
        }
    }
Beispiel #2
0
 public ItemModelList GetAll()
 {
     ItemModelList items = new ItemModelList();
     // MOCKUP: Generate data for return
     for (int i = 0; i < 100; i++)
     {
         items.Add(new ItemModel() {Id=i,ItemName="item "+i,Description="Desc "+i, Cost=i, Price= i+1, Qty=i });
     }
     return items;
 }
Beispiel #3
0
        public ItemModelList GetAll()
        {
            ItemModelList items = new ItemModelList();

            // MOCKUP: Generate data for return
            for (int i = 0; i < 100; i++)
            {
                items.Add(new ItemModel()
                {
                    Id = i, ItemName = "item " + i, Description = "Desc " + i, Cost = i, Price = i + 1, Qty = i
                });
            }
            return(items);
        }