public bool RemoveItem(StoryItem item) { int SlotsEmptied = item.SlotsOccupied; SlotsFull -= SlotsEmptied; Items.Remove(item); return(true); }
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); }
public void AddItem(StoryItem item) { //Set the items location to this room item.LocationKey = this.KeyValue; RoomItems.Add(item); }