Esempio n. 1
0
        public bool RemoveItem(StoryItem item)
        {
            int SlotsEmptied = item.SlotsOccupied;

            SlotsFull -= SlotsEmptied;


            Items.Remove(item);
            return(true);
        }
Esempio n. 2
0
        public bool AddItem(StoryItem item)
        {
            int SlotsRequested = item.SlotsOccupied;

            SlotsFull += SlotsRequested;

            if (SlotsFull <= MaxSlots)
            {
                Items.Add(item);
                item.LocationKey = this.KeyValue;
                return(true);
            }

            SlotsFull -= SlotsRequested;
            return(false);
        }
Esempio n. 3
0
 public void AddItem(StoryItem item)
 {
     //Set the items location to this room
     item.LocationKey = this.KeyValue;
     RoomItems.Add(item);
 }