2025-11-08 00:47:45 +08:00
|
|
|
|
package pet
|
|
|
|
|
|
|
2025-11-19 16:11:02 +08:00
|
|
|
|
import "blazing/logic/service/common"
|
2025-11-11 01:10:26 +08:00
|
|
|
|
|
2025-11-08 00:47:45 +08:00
|
|
|
|
// PetBargeListInboundInfo 对应Java的PetBargeListInboundInfo,实现InboundMessage接口
|
|
|
|
|
|
type PetBargeListInboundInfo struct {
|
2025-11-24 11:56:20 +08:00
|
|
|
|
Head common.TomeeHeader `cmd:"2309" struc:"skip"`
|
2025-11-11 01:10:26 +08:00
|
|
|
|
StartPetId uint32 `description:"开始精灵id" codec:"startPetId"` // @UInt long 对应Go的uint32(无符号64位)
|
|
|
|
|
|
EndPetId uint32 `description:"结束精灵id" codec:"endPetId"` // 字段标签模拟注解功能(描述、编解码标识)
|
2025-11-08 00:47:45 +08:00
|
|
|
|
}
|
2025-11-25 02:35:36 +08:00
|
|
|
|
type C2S_9756 struct {
|
|
|
|
|
|
Head common.TomeeHeader `cmd:"9756" struc:"skip"`
|
|
|
|
|
|
}
|
2025-11-08 00:47:45 +08:00
|
|
|
|
|
|
|
|
|
|
// PetBargeListInfo 对应Java的PetBargeListInfo类
|
|
|
|
|
|
type PetBargeListInfo struct {
|
2025-11-08 01:12:53 +08:00
|
|
|
|
PetId uint32 `description:"精灵ID"` // @UInt long 对应Go的uint32(无符号64位整数)
|
|
|
|
|
|
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"`
|
2025-11-08 00:47:45 +08:00
|
|
|
|
}
|
2025-11-25 00:55:10 +08:00
|
|
|
|
type PetEV struct {
|
|
|
|
|
|
Head common.TomeeHeader `cmd:"50001" struc:"skip"`
|
|
|
|
|
|
CacthTime uint32 `description:"捕捉时间" codec:"cacthTime"`
|
|
|
|
|
|
EVs [6]uint32 `description:"属性" codec:"evs"`
|
|
|
|
|
|
}
|
|
|
|
|
|
type S2C_50001 struct {
|
|
|
|
|
|
UseEV uint32 //用掉的学习力
|
|
|
|
|
|
}
|
2025-11-25 02:35:36 +08:00
|
|
|
|
type S2C_9756 struct {
|
|
|
|
|
|
UseEV uint32 //用掉的学习力
|
|
|
|
|
|
}
|