feat(nono): 添加玩家宠物治疗功能

新增 PlayerPetCure 控制器方法和对应的入参、出参结构体,
用于处理宠物治疗逻辑。同时为 SwitchFlyingInboundInfo 结构体
补充了缺失的注释说明。
```
This commit is contained in:
2025-10-21 23:00:00 +08:00
parent a69e9882d9
commit 3270ed8c67
2 changed files with 16 additions and 1 deletions

View File

@@ -49,3 +49,12 @@ func (h *Controller) SwitchFlying(data *nono.SwitchFlyingInboundInfo, c *player.
return
}
func (h *Controller) PlayerPetCure(data *nono.PetCureInboundInfo, c *player.Player) (result *nono.PetCureOutboundEmpty, err errorcode.ErrorCode) { //这个时候player应该是空的
for i := 0; i < len(c.Info.PetList); i++ {
c.Info.PetList[i].Cure()
}
return
}