/// <summary> /// Adds an item to the <see cref="ContainedItems"/> list if not in yet /// </summary> /// <param name="item"></param> internal void AddContainedItem(CalendarItem item) { if (!ContainedItems.Contains(item)) { ContainedItems.Add(item); } }
public Chest() { foreach (ITEM_TYPE itemToAdd in Enum.GetValues(typeof(ITEM_TYPE))) { ContainedItems.Add(new Item(itemToAdd)); } }
public void AddContainedItem(IEntity item) { ContainedItems.Add(item); }