EventHelperChangeEquipment 方法 |
更换装备的物品.
物品必须先在行囊中或装备栏中, 之后才能装备.
命名空间: GameData.Domains.TaiwuEvent.EventHelper程序集: GameData (在 GameData.exe 中) 版本:1.0.0
语法public static void ChangeEquipment(
int charId,
sbyte srcSlot,
sbyte destSlot,
ItemKey srcItemKey
)
参数
- charId Int32
- 角色Id
- srcSlot SByte
- 物品之前所在的装备格. 物品之前在行囊中时, 此值为 -1. EquipmentSlot
- destSlot SByte
- 物品要被移动到的装备格. 物品要移动到行囊中时, 此值为 -1. EquipmentSlot
- srcItemKey ItemKey
- 物品之前在行囊中时, 物品的 Key. 不在行囊中时, Id 值为 -1.
参见