1
This commit is contained in:
36
Src/Inventory/IPlayerInventory.cs
Normal file
36
Src/Inventory/IPlayerInventory.cs
Normal 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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user