```
feat(fight): 新增使用宠物物品功能 - 在Controller中新增UsePetItemInboundInfo方法,用于处理宠物物品使用请求 - 在FightI接口中添加UseItem方法定义,支持传入捕获时间和物品ID - 修改UseItemAction结构体,增加CacthTime字段以记录宠物捕获时间 - 新增UsePetItemInboundInfo结构体,定义宠物物品使用的消息格式 - 在FightC中实现UseItem方法,将使用物品的动作发送到actionChan ```
This commit is contained in:
@@ -15,6 +15,7 @@ type FightI interface {
|
||||
Capture(c PlayerI, id uint32)
|
||||
GetRand() *rand.Rand
|
||||
LoadPercent(c PlayerI, percent int32)
|
||||
UseItem(c PlayerI, cacthid, itemid uint32)
|
||||
CanEscape() bool
|
||||
IsFirst(c PlayerI) bool
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user