18 lines
540 B
C#
18 lines
540 B
C#
using RPGCore.BackpackEquipment.Objects;
|
|
|
|
namespace RPGCore.BackpackEquipment.ObjectModules.Content
|
|
{
|
|
public interface IContentOwner
|
|
{
|
|
internal bool Add_Internal(ItemObject item, int index = -1)
|
|
{
|
|
return CanAdd(item, index) && Add(item, index);
|
|
}
|
|
|
|
internal bool Remove_Internal(ItemObject item) => Remove(item);
|
|
|
|
public bool CanAdd(ItemObject item, int index);
|
|
protected bool Add(ItemObject item, int index);
|
|
protected bool Remove(ItemObject item);
|
|
}
|
|
} |