# Interface: ItemRemovedFromBackpackEventHandler
▸ (this
: void, event
: ItemRemovedFromBackpackEvent): void
物品从背包移除 事件处理函数
# 参数:
属性 | 类型 |
---|---|
this | void |
event | ItemRemovedFromBackpackEvent |
ItemRemovedFromBackpackEvent
属性 | 类型 | 描述 |
---|---|---|
constructor | Constructor | - |
backpackId | number | 物品要被移除的背包 ID |
item | ReadonlyWithExtensions‹BackpackItem› | 被从背包中移除的物品 |
position | number | 物品(移除前)在背包中的位置 |
type | void | 事件类型,由具体的事件构造时提供 |
# 返回值:
void