2025-10-20 00:23:16 +08:00
|
|
|
package controller
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"blazing/common/socket/errorcode"
|
|
|
|
|
"blazing/logic/service/nono"
|
|
|
|
|
"blazing/logic/service/player"
|
|
|
|
|
|
|
|
|
|
"github.com/jinzhu/copier"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// 处理命令: 105
|
|
|
|
|
func (h *Controller) NonoFollowOrHome(data *nono.NonoFollowOrHomeInInfo, c *player.Player) (result *nono.NonoFollowOutInfo, err errorcode.ErrorCode) { //这个时候player应该是空的
|
|
|
|
|
c.Info.NONO.Flag = data.Flag
|
|
|
|
|
result = &nono.NonoFollowOutInfo{
|
|
|
|
|
|
2025-11-01 18:36:21 +08:00
|
|
|
UserID: data.Head.UserID,
|
|
|
|
|
SuperStage: data.Flag,
|
|
|
|
|
Flag: data.Flag,
|
|
|
|
|
Nick: "",
|
|
|
|
|
Color: 0,
|
|
|
|
|
Power: 0,
|
2025-10-20 00:23:16 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 获取nono信息
|
|
|
|
|
func (h *Controller) GetNonoInfo(data *nono.NonoInboundInfo, c *player.Player) (result *nono.NonoOutboundInfo, err errorcode.ErrorCode) { //这个时候player应该是空的
|
|
|
|
|
|
|
|
|
|
result = &nono.NonoOutboundInfo{}
|
|
|
|
|
copier.Copy(result, &c.Info.NONO)
|
|
|
|
|
result.UserID = c.Info.UserID
|
|
|
|
|
|
|
|
|
|
for i := 0; i < 20; i++ {
|
|
|
|
|
result.Func[i] = 255
|
|
|
|
|
}
|
|
|
|
|
result.Num = 1
|
|
|
|
|
result.SuperNono = 1
|
|
|
|
|
result.SuperLevel = 12
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (h *Controller) SwitchFlying(data *nono.SwitchFlyingInboundInfo, c *player.Player) (result *nono.SwitchFlyingOutboundInfo, err errorcode.ErrorCode) { //这个时候player应该是空的
|
|
|
|
|
|
|
|
|
|
result = &nono.SwitchFlyingOutboundInfo{
|
2025-11-01 18:36:21 +08:00
|
|
|
UserId: data.Head.UserID,
|
|
|
|
|
Type: data.Type,
|
2025-10-20 00:23:16 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return
|
|
|
|
|
}
|
2025-10-21 23:00:00 +08:00
|
|
|
|
|
|
|
|
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
|
|
|
|
|
}
|