2025-09-01 01:03:46 +08:00
|
|
|
|
package pet
|
|
|
|
|
|
|
2025-11-19 16:11:02 +08:00
|
|
|
|
import "blazing/logic/service/common"
|
2025-09-01 01:03:46 +08:00
|
|
|
|
|
|
|
|
|
|
type GetPetListInboundEmpty struct {
|
2025-11-24 11:56:20 +08:00
|
|
|
|
Head common.TomeeHeader `cmd:"2303" struc:"skip"`
|
|
|
|
|
|
}
|
|
|
|
|
|
type GetPetListFreeInboundEmpty struct {
|
|
|
|
|
|
Head common.TomeeHeader `cmd:"2320" struc:"skip"`
|
2025-09-01 01:03:46 +08:00
|
|
|
|
}
|
|
|
|
|
|
type GetPetListOutboundInfo struct {
|
|
|
|
|
|
ShortInfoListLen uint32 `struc:"int32,sizeof=ShortInfoList"`
|
|
|
|
|
|
ShortInfoList []PetShortInfo
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// PetShortInfo 精灵简要信息结构体
|
|
|
|
|
|
type PetShortInfo struct {
|
2025-09-21 08:07:17 +00:00
|
|
|
|
ID uint32 // 精灵类型ID(
|
2025-09-01 01:03:46 +08:00
|
|
|
|
CatchTime uint32 // 精灵生成时间
|
2025-09-01 01:31:42 +08:00
|
|
|
|
Level uint32 // 精灵等级
|
|
|
|
|
|
SkinID uint32 // 精灵皮肤ID
|
|
|
|
|
|
Shiny uint32 // 精灵是否闪光(0=否,1=是)
|
2025-09-01 01:03:46 +08:00
|
|
|
|
}
|
2025-11-26 01:33:48 +08:00
|
|
|
|
|
|
|
|
|
|
// C2S_PetFusion 前端(Client)到后端(Server)的精灵融合请求包
|
|
|
|
|
|
type C2S_PetFusion struct {
|
|
|
|
|
|
Head common.TomeeHeader `cmd:"2351" struc:"skip"`
|
|
|
|
|
|
Mcatchtime uint32 `json:"mcatchtime" msgpack:"mcatchtime"` // 主精灵的时间戳
|
|
|
|
|
|
Auxcatchtime uint32 `json:"auxcatchtime" msgpack:"auxcatchtime"` // 副精灵的时间戳
|
2025-12-02 03:59:28 +08:00
|
|
|
|
Item1 [4]uint32 `json:"item1" msgpack:"item1"` // 物品序号1
|
|
|
|
|
|
|
|
|
|
|
|
GoldItem1 uint32 `json:"gold_item1" msgpack:"gold_item1"` // 0代表未放置 金豆物品1(C#:gold_item1)
|
|
|
|
|
|
GoldItem2 uint32 `json:"gold_item2" msgpack:"gold_item2"` // 0代表未放置 金豆物品2(C#:gold_item2)
|
2025-11-26 01:33:48 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// PetFusionInfo 精灵融合结果详情(后端回包嵌套结构体)
|
|
|
|
|
|
type PetFusionInfo struct {
|
|
|
|
|
|
ObtainTime uint32 `json:"obtainTime" msgpack:"obtainTime"` // 如果获得时间为0 则代表融合失败
|
|
|
|
|
|
SoulID uint32 `json:"soulID" msgpack:"soulID"` // 元神珠的id 融合失败为0
|
|
|
|
|
|
StarterCpTm uint32 `json:"starterCpTm" msgpack:"starterCpTm"` // 融合失败为0
|
|
|
|
|
|
CostItemFlag uint32 `json:"costItemFlag" msgpack:"costItemFlag"` // 是不是消耗掉了金豆道具 1代表消耗道具
|
|
|
|
|
|
}
|