Inheritance: CountedInstance
Beispiel #1
0
        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;
        }
Beispiel #2
0
        public void Notice(InvItem item)
        {
            string msg = String.Format("{0} {1}", item.ItemID, item.Quantity);

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

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