2025-09-22 09:15:26 +00:00
|
|
|
|
package user
|
2025-08-22 22:40:32 +08:00
|
|
|
|
|
2025-11-19 16:11:02 +08:00
|
|
|
|
import "blazing/logic/service/common"
|
2025-08-22 22:40:32 +08:00
|
|
|
|
|
|
|
|
|
|
type CreatePlayerInboundInfo struct { //这里直接使用组合来实现将传入的原始头部数据和结构体参数序列化
|
2025-11-24 11:56:20 +08:00
|
|
|
|
Head common.TomeeHeader `cmd:"108" struc:"skip"` //玩家登录
|
2025-08-22 22:40:32 +08:00
|
|
|
|
|
2025-08-26 23:22:10 +00:00
|
|
|
|
// 玩家昵称,@ArraySerialize注解
|
2025-08-22 22:40:32 +08:00
|
|
|
|
Nickname string `struc:"[16]byte"` // 固定长度16字节
|
2025-08-26 23:22:10 +00:00
|
|
|
|
// 机器人人物颜色 rgb,@UInt注解
|
2025-08-22 22:40:32 +08:00
|
|
|
|
Color uint32 `fieldDescription:"机器人人物颜色 rgb" uint:"true"`
|
|
|
|
|
|
}
|
|
|
|
|
|
type CreatePlayerOutInfo struct {
|
|
|
|
|
|
|
|
|
|
|
|
//不用回包,因为前端已经处理了
|
|
|
|
|
|
|
|
|
|
|
|
}
|
2025-09-10 00:41:09 +08:00
|
|
|
|
|
|
|
|
|
|
type ChangePlayerNameInboundInfo struct {
|
2025-11-24 11:56:20 +08:00
|
|
|
|
Head common.TomeeHeader `cmd:"2061" struc:"skip"` //玩家登录
|
2025-09-10 00:41:09 +08:00
|
|
|
|
|
2025-09-21 08:07:17 +00:00
|
|
|
|
// 玩家昵称
|
2025-09-10 00:41:09 +08:00
|
|
|
|
Nickname string `struc:"[16]byte"` // 固定长度16字节
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type ChangePlayerNameOutboundInfo struct {
|
2025-09-21 08:07:17 +00:00
|
|
|
|
UserID uint32
|
2025-09-10 00:41:09 +08:00
|
|
|
|
Nickname string `struc:"[16]byte"` // 固定长度16字节
|
|
|
|
|
|
}
|
2026-01-19 18:51:56 +08:00
|
|
|
|
type ChangeTitleInboundInfo struct {
|
|
|
|
|
|
Head common.TomeeHeader `cmd:"3404" struc:"skip"` //玩家登录
|
|
|
|
|
|
TileID uint32
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type ChangeTitleOutboundInfo struct {
|
|
|
|
|
|
UserID uint32
|
|
|
|
|
|
TileID uint32
|
|
|
|
|
|
}
|