diff --git a/logic/controller/nono.go b/logic/controller/nono.go index aac6b265..4b3976f8 100644 --- a/logic/controller/nono.go +++ b/logic/controller/nono.go @@ -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 +} diff --git a/logic/service/nono/nono.go b/logic/service/nono/nono.go index c67bb478..74bbd027 100644 --- a/logic/service/nono/nono.go +++ b/logic/service/nono/nono.go @@ -88,8 +88,14 @@ type NonoFollowOutInfo struct { type SwitchFlyingInboundInfo struct { Head player.TomeeHeader `cmd:"2112" struc:"[0]pad"` Type uint32 `description:"开关, 0为取消飞行模式, 大于0为开启飞行模式" codec:"auto" uint:"true"` // 对应@FieldDescription、@UInt、@AutoCodec -} // SwitchFlyingOutboundInfo 对应Java的SwitchFlyingOutboundInfo类 +} type SwitchFlyingOutboundInfo struct { UserId uint32 `description:"玩家账号ID" codec:"auto" uint:"true"` // 对应@FieldDescription、@UInt、@AutoCodec Type uint32 `description:"开关, 0为取消飞行模式, 大于0为开启飞行模式" codec:"auto" uint:"true"` // 对应@FieldDescription、@UInt、@AutoCodec } +type PetCureInboundInfo struct { + Head player.TomeeHeader `cmd:"2306" struc:"[0]pad"` + Type uint32 `description:"开关, 0为取消飞行模式, 大于0为开启飞行模式" codec:"auto" uint:"true"` // 对应@FieldDescription、@UInt、@AutoCodec +} +type PetCureOutboundEmpty struct { +}