- 移除 common/data/socket 目录下的大部分文件 - 新增 service 目录,将 Player 和 Conn 结构体移至该目录 - 更新 LogicClient 中的方法签名,使用 service 包的类型 - 重构 Controller 中的方法,适应新的 service 包结构
21 lines
575 B
Go
21 lines
575 B
Go
package pet
|
||
|
||
import "blazing/logic/service"
|
||
|
||
type GetPetListInboundEmpty struct {
|
||
Head service.TomeeHeader `cmd:"2303" struc:"[0]pad"`
|
||
}
|
||
type GetPetListOutboundInfo struct {
|
||
ShortInfoListLen uint32 `struc:"int32,sizeof=ShortInfoList"`
|
||
ShortInfoList []PetShortInfo
|
||
}
|
||
|
||
// PetShortInfo 精灵简要信息结构体
|
||
type PetShortInfo struct {
|
||
ID uint32 // 精灵类型ID(对应Java中的id)
|
||
CatchTime uint32 // 精灵生成时间
|
||
Level uint32 // 精灵等级
|
||
SkinID uint32 // 精灵皮肤ID
|
||
Shiny uint32 // 精灵是否闪光(0=否,1=是)
|
||
}
|