muddesigner/Mud Designer/MudEngine/GameObjects/Bag.cs
Scionwest_cp 1416c7149b
2009-12-08 10:35:07 -08:00

33 lines
719 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MudDesigner.MudEngine.GameObjects.Items;
namespace MudDesigner.MudEngine.GameObjects
{
public class Bag : BaseObject
{
/// <summary>
/// Gets or Sets the size of the bag.
/// </summary>
public int Size
{
get;
set;
}
private List<Items.BaseItem> Items { get; set; }
public void Add(BaseItem item)
{
if (Items.Count < Size)
Items.Add(item);
}
public int GetSlotsRemaining()
{
return Size - Items.Count;
}
}
}