Files
bl/logic/service/login/create_player.go

18 lines
558 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package login
import "blazing/common/socket/handler"
type CreatePlayerInboundInfo struct { //这里直接使用组合来实现将传入的原始头部数据和结构体参数序列化
Head handler.TomeeHeader `cmd:"108" struc:"[0]pad"` //玩家登录
// 玩家昵称,@ArraySerialize注解
Nickname string `struc:"[16]byte"` // 固定长度16字节
// 机器人人物颜色 rgb@UInt注解
Color uint32 `fieldDescription:"机器人人物颜色 rgb" uint:"true"`
}
type CreatePlayerOutInfo struct {
//不用回包,因为前端已经处理了
}