This commit is contained in:
CortexCore
2024-11-23 17:20:13 +08:00
commit bb257507bc
133 changed files with 2574 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
using System;
using System.Collections;
using System.Collections.Generic;
using BITKit;
namespace Net.Project.B.Inventory
{
/// <summary>
/// 玩家背包
/// </summary>
public interface IPlayerInventory
{
/// <summary>
/// 背包
/// </summary>
public IRuntimeItemContainer Container { get; }
/// <summary>
/// 拾取物品的工厂方法
/// </summary>
event Action<IRuntimeItem> OnPickupItemFactory;
/// <summary>
/// 使用物品的工厂方法,如果返回true则代表物品已被其他逻辑处理
/// </summary>
event Action<IRuntimeItem> UseFactory;
/// <summary>
/// 使用物品的事件,如果返回true则代表物品已被其他逻辑处理
/// </summary>
event Action<IRuntimeItem> OnUsedItem;
void UseItem(int id);
}
}