20 lines
528 B
C#
20 lines
528 B
C#
namespace Zennysoft.Ma.Adapter;
|
|
|
|
public interface IInventory
|
|
{
|
|
public bool PickUpItem(InventoryItem item);
|
|
|
|
public List<InventoryItem> Items { get; }
|
|
|
|
public bool TryAdd(InventoryItem inventoryItem);
|
|
|
|
public bool TryInsert(InventoryItem inventoryItem, int index);
|
|
|
|
public void Remove(InventoryItem inventoryItem);
|
|
|
|
public void Sort(EquipableItem currentWeapon, EquipableItem currentArmor, EquipableItem currentAccessory);
|
|
|
|
public event Action<string> BroadcastMessage;
|
|
public event Action InventoryChanged;
|
|
}
|