Inheritance: CountedInstance
Example #1
0
File: Inv.cs Project: Notulp/Pluton
        public bool Add(InvItem item)
        {
            ItemContainer con;
            if (item.containerPref == InvItem.ContainerPreference.Belt)
                con = InnerBelt;
            else if (item.containerPref == InvItem.ContainerPreference.Wear)
                con = InnerWear;
            else
                con = InnerMain;

            bool flag = _inv.GiveItem(item._item, con);
            if (!flag) {
                flag = _inv.GiveItem(item._item);
            }

            return flag;
        }
Example #2
0
        public void Notice(InvItem item)
        {
            string msg = String.Format("{0} {1}", item.ItemID, item.Quantity);

            Notice(msg);
        }
Example #3
0
        public void Notice(LoadOutItem loItem)
        {
            string msg = String.Format("{0} {1}", InvItem.GetItemID(loItem.Name), loItem.Amount);

            Notice(msg);
        }
Example #4
0
 public bool Add(InvItem item, ItemContainer con)
 {
     return(_inv.GiveItem(item._item, con));
 }
Example #5
0
 public bool Add(InvItem item)
 {
     return(Add(new LoadOutItem(item.Name, item.Quantity)));
 }
Example #6
0
File: Inv.cs Project: Notulp/Pluton
 public void Notice(InvItem item)
 {
     string msg = String.Format("{0} {1}", item.ItemID, item.Quantity);
     Notice(msg);
 }
Example #7
0
File: Inv.cs Project: Notulp/Pluton
 public bool Add(InvItem item, ItemContainer con)
 {
     return _inv.GiveItem(item._item, con);
 }
Example #8
0
 public bool CanStack(InvItem item)
 {
     return(_item.CanStack(item._item));
 }
Example #9
0
 public bool CanStack(InvItem item)
 {
     return _item.CanStack(item._item);
 }
Example #10
0
 public bool Add(InvItem item)
 {
     return Add(new LoadOutItem(item.Name, item.Quantity));
 }
Example #11
0
 public bool Add(string longNameOrShortNameOrPrefab, int amount)
 {
     return(_inv.GiveItem(InvItem.GetItemID(longNameOrShortNameOrPrefab), amount, true));
 }