Exemple #1
0
    public void TestAddAndGet()
    {
        _slots.Add(_i1);

        // Make sure the item is added to the slot
        Assert.AreEqual(_i1, _slots.Get(InventorySlots.SlotType.BODY));
    }
 /// <summary>
 /// Gets the item.
 /// </summary>
 /// <returns>The item.</returns>
 /// <param name="slotType">Slot type.</param>
 public Item GetItem(InventorySlots.SlotType slotType)
 {
     return(_inventorySlots.Get(slotType));
 }