예제 #1
0
 public virtual bool RemoveItem(AInventoryItem item)
 {
     if (!Items.Remove(item))
     {
         return(false);
     }
     OnRemoveItemEvents.Invoke();
     return(true);
 }
예제 #2
0
        ////////// Item Management //////////

        public virtual bool AddItem(AInventoryItem item)
        {
            if (Size == Capacity)
            {
                return(false);
            }
            Items.Add(item);
            OnAddItemEvents.Invoke();
            return(true);
        }
예제 #3
0
        ////////// Research //////////

        public bool Contains(AInventoryItem item)
        {
            return(Items.Contains(item));
        }