This commit is contained in:
CortexCore
2025-04-14 15:39:24 +08:00
parent 5fceb6f885
commit 3f9d9f19ce
50 changed files with 683 additions and 41 deletions

View File

@@ -11,6 +11,7 @@ namespace Net.Project.B.Inventory
/// </summary>
public interface IPlayerInventory
{
int Size { get; }
/// <summary>
/// 背包
/// </summary>
@@ -31,6 +32,11 @@ namespace Net.Project.B.Inventory
/// </summary>
event Action<IRuntimeItem> OnUsedItem;
event Func<IRuntimeItem,bool> ConsumeFactory;
event Action<IRuntimeItem> OnConsumedItem;
void UseItem(int id);
void ConsumeItem(int id);
}
}