22 lines
587 B
C#
22 lines
587 B
C#
namespace Zennysoft.Ma.Adapter;
|
|
|
|
public interface IInventory
|
|
{
|
|
public bool PickUpItem(IBaseInventoryItem item);
|
|
|
|
public List<IBaseInventoryItem> Items { get; }
|
|
|
|
public bool TryAdd(IBaseInventoryItem inventoryItem);
|
|
|
|
public bool TryInsert(IBaseInventoryItem inventoryItem, int index);
|
|
|
|
public void Remove(IBaseInventoryItem inventoryItem);
|
|
|
|
public bool Sort(IWeapon currentWeapon, IArmor currentArmor, IAccessory currentAccessory, IEquipableItem ammo);
|
|
|
|
public bool AtCapacity();
|
|
|
|
public event Action<string> BroadcastMessage;
|
|
public event Action InventoryChanged;
|
|
}
|