2025-08-28 21:35:56 +00:00
|
|
|
|
package nono
|
|
|
|
|
|
|
2025-11-19 16:11:02 +08:00
|
|
|
|
import "blazing/logic/service/common"
|
2025-08-28 21:35:56 +00:00
|
|
|
|
|
|
|
|
|
|
// NonoOutboundInfo 用于表示Nono相关的出站信息
|
|
|
|
|
|
type NonoOutboundInfo struct {
|
|
|
|
|
|
// UserID: 米米号,对应uint32类型,无符号
|
|
|
|
|
|
UserID uint32
|
|
|
|
|
|
|
|
|
|
|
|
// Num: 未知,对应uint32类型,无符号
|
|
|
|
|
|
Num uint32
|
|
|
|
|
|
|
|
|
|
|
|
// Flying: 飞行状态 0为不飞行 大于0为飞行模式,对应uint32类型,无符号
|
|
|
|
|
|
Flying uint32
|
|
|
|
|
|
|
|
|
|
|
|
// Nick: 16字节,固定长度16字节字符串
|
|
|
|
|
|
Nick string `struc:"[16]byte"`
|
|
|
|
|
|
|
|
|
|
|
|
// SuperNono: 是不是超能nono,对应uint32类型,无符号
|
|
|
|
|
|
SuperNono uint32
|
|
|
|
|
|
|
|
|
|
|
|
// Color: nono颜色 00 rgb,对应uint32类型,无符号
|
|
|
|
|
|
Color uint32
|
|
|
|
|
|
|
|
|
|
|
|
// Power: 未知, 返回的实际数值要*1000,对应uint32类型,无符号
|
|
|
|
|
|
Power uint32
|
|
|
|
|
|
|
|
|
|
|
|
// Mate: 未知, 返回的实际数值要*1000,对应uint32类型,无符号
|
|
|
|
|
|
Mate uint32
|
|
|
|
|
|
|
|
|
|
|
|
// IQ: 未知,对应uint32类型,无符号
|
|
|
|
|
|
IQ uint32
|
|
|
|
|
|
|
|
|
|
|
|
// AI: 未知,对应uint16类型,无符号短整数
|
|
|
|
|
|
AI uint16
|
|
|
|
|
|
|
|
|
|
|
|
// Birth: 未知, 返回的实际数值要除以1000,对应uint32类型,无符号
|
|
|
|
|
|
Birth uint32
|
|
|
|
|
|
|
|
|
|
|
|
// ChargeTime: 充电时间,对应uint32类型,无符号
|
|
|
|
|
|
ChargeTime uint32
|
|
|
|
|
|
|
|
|
|
|
|
// Func: 20字节,固定长度20字节数组
|
|
|
|
|
|
Func [20]byte
|
|
|
|
|
|
|
|
|
|
|
|
// SuperEnergy: 超能nono能力,对应uint32类型,无符号
|
|
|
|
|
|
SuperEnergy uint32
|
|
|
|
|
|
|
|
|
|
|
|
// SuperLevel: 超能nono等级,对应uint32类型,无符号
|
|
|
|
|
|
SuperLevel uint32
|
|
|
|
|
|
|
|
|
|
|
|
// SuperStage: 超能nono阶段,对应uint32类型,无符号
|
|
|
|
|
|
SuperStage uint32
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type NonoInboundInfo struct {
|
2025-11-24 11:56:20 +08:00
|
|
|
|
Head common.TomeeHeader `cmd:"9003" struc:"skip"`
|
2025-08-28 21:35:56 +00:00
|
|
|
|
|
2025-09-21 08:07:17 +00:00
|
|
|
|
// 米米号
|
|
|
|
|
|
UserID uint32
|
2025-08-28 21:35:56 +00:00
|
|
|
|
}
|
2025-09-26 13:33:55 +08:00
|
|
|
|
type NonoFollowOrHomeInInfo struct {
|
2025-11-24 11:56:20 +08:00
|
|
|
|
Head common.TomeeHeader `cmd:"9019" struc:"skip"`
|
2025-09-26 13:33:55 +08:00
|
|
|
|
|
|
|
|
|
|
// Flag 1为跟随 0为收回 且如果为收回收回 那么后续结构不需要发送
|
|
|
|
|
|
// 对应Java的@UInt long类型,在Go中使用uint64
|
|
|
|
|
|
Flag uint32 `fieldDescription:"1为跟随 0为收回 且如果为收回 那么后续结构不需要发送" uint:"true"`
|
|
|
|
|
|
}
|
|
|
|
|
|
type NonoFollowOutInfo struct {
|
|
|
|
|
|
// UserID 米米号,对应Java的@UInt long,改为uint32
|
|
|
|
|
|
UserID uint32 `fieldDescription:"米米号" uint:"true"`
|
|
|
|
|
|
|
|
|
|
|
|
// SuperStage 设置的值与下面的flag变量相同,改为uint32
|
|
|
|
|
|
SuperStage uint32 `fieldDescription:"设置的值与下面的flag变量相同" uint:"true"`
|
|
|
|
|
|
|
|
|
|
|
|
// Flag 1为跟随 0为收回,不序列化,改为uint32
|
|
|
|
|
|
Flag uint32 `fieldDescription:"1为跟随 0为收回 且如果为收回 那么后续结构不需要发送, 不序列化" uint:"true" serialize:"false"`
|
|
|
|
|
|
|
|
|
|
|
|
// NonoNick nono名字 补到16字节
|
2025-10-20 00:23:16 +08:00
|
|
|
|
Nick string `struc:"[16]byte"`
|
2025-09-26 13:33:55 +08:00
|
|
|
|
|
|
|
|
|
|
// Color nono颜色 rpg,改为uint32
|
|
|
|
|
|
Color uint32 `fieldDescription:"nono颜色 rpg" uint:"true"`
|
|
|
|
|
|
|
|
|
|
|
|
// Power 能量值 前端显示除以1000后的值,改为uint32
|
|
|
|
|
|
Power uint32 `fieldDescription:"能量值 前端显示除以1000后的值" uint:"true"`
|
|
|
|
|
|
}
|
2025-10-20 00:23:16 +08:00
|
|
|
|
type SwitchFlyingInboundInfo struct {
|
2025-11-24 11:56:20 +08:00
|
|
|
|
Head common.TomeeHeader `cmd:"2112" struc:"skip"`
|
2025-10-20 00:23:16 +08:00
|
|
|
|
Type uint32 `description:"开关, 0为取消飞行模式, 大于0为开启飞行模式" codec:"auto" uint:"true"` // 对应@FieldDescription、@UInt、@AutoCodec
|
2025-10-21 23:00:00 +08:00
|
|
|
|
}
|
2025-10-20 00:23:16 +08:00
|
|
|
|
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
|
|
|
|
|
|
}
|
2025-10-21 23:00:00 +08:00
|
|
|
|
type PetCureInboundInfo struct {
|
2025-11-24 11:56:20 +08:00
|
|
|
|
Head common.TomeeHeader `cmd:"2306" struc:"skip"`
|
2025-10-21 23:00:00 +08:00
|
|
|
|
}
|
|
|
|
|
|
type PetCureOutboundEmpty struct {
|
|
|
|
|
|
}
|