# Interface: BackpackItemSwapEventHandler

▸ (this: void, event: BackpackItemSwapEvent): void

背包物品交换 事件处理函数

# 参数:

属性 类型
this void
event BackpackItemSwapEvent

BackpackItemSwapEvent

属性 类型 描述
backpackId number 所属背包 ID
swappedPositions keyof [] 对换的两个位置
type Swap 事件类型,由具体的事件构造时提供

# 返回值:

void