38 lines
1.4 KiB
Go
38 lines
1.4 KiB
Go
package pet
|
||
|
||
import (
|
||
"blazing/logic/service/common"
|
||
)
|
||
|
||
// PetBargeListInboundInfo 对应Java的PetBargeListInboundInfo,实现InboundMessage接口
|
||
type PetBargeListInboundInfo struct {
|
||
Head common.TomeeHeader `cmd:"2309" struc:"skip"`
|
||
StartPetId uint32 `description:"开始精灵id" codec:"startPetId"`
|
||
EndPetId uint32 `description:"结束精灵id" codec:"endPetId"` // 字段标签模拟注解功能(描述、编解码标识)
|
||
}
|
||
type C2S_9756 struct {
|
||
Head common.TomeeHeader `cmd:"9756" struc:"skip"`
|
||
}
|
||
|
||
// PetBargeListInfo 对应Java的PetBargeListInfo类
|
||
type PetBargeListInfo struct {
|
||
PetId uint32 `description:"精灵ID"`
|
||
EnCntCnt uint32 `description:"未知"` // public字段在Go中通过首字母大写导出
|
||
IsCatched uint32 `description:"捕获记录"` // 结构体标签模拟@FieldDescription注解
|
||
IsKilled uint32 `description:"击杀记录"` // 字段名采用帕斯卡命名法(首字母大写)以匹配Java的public访问权限
|
||
}
|
||
type PetBargeListOutboundInfo struct {
|
||
// 对应Java的List<PetBargeListInfo>,Go中用切片+指针实现动态列表
|
||
PetBargeListLen uint32 `struc:"sizeof=PetBargeList"`
|
||
PetBargeList []PetBargeListInfo `description:"返回的精灵信息" codec:"petBargeList"`
|
||
}
|
||
|
||
type S2C_9756 struct {
|
||
UseEV uint32 //用掉的学习力
|
||
}
|
||
|
||
type S2C_50006 struct {
|
||
ItemID uint32
|
||
Count uint32
|
||
}
|