31 lines
1022 B
Go
31 lines
1022 B
Go
package pet
|
||
|
||
import (
|
||
"blazing/common/socket/handler"
|
||
"blazing/modules/blazing/model"
|
||
)
|
||
|
||
type InInfo struct {
|
||
Head handler.TomeeHeader `cmd:"2301" struc:"[0]pad"`
|
||
|
||
CatchTime uint32
|
||
}
|
||
|
||
type OutInfo struct {
|
||
model.PetInfo
|
||
}
|
||
|
||
// PetReleaseOutboundInfo 宠物释放出站消息
|
||
type PetReleaseOutboundInfo struct {
|
||
HomeEnergy uint32 `json:"home_energy" fieldDescription:"暂定0" autoCodec:"true" uint:"true"`
|
||
FirstPetTime uint32 `json:"first_pet_time" fieldDescription:"精灵生成时间" autoCodec:"true" uint:"true"`
|
||
PetInfo []model.PetInfo `json:"pet_info" fieldDescription:"精灵信息" autoCodec:"true"`
|
||
}
|
||
|
||
// 放入背包或者加入仓库
|
||
type PetReleaseInboundInfo struct {
|
||
Head handler.TomeeHeader `cmd:"2304" struc:"[0]pad"`
|
||
CatchTime uint32 `json:"catch_time" fieldDescription:"精灵生成时间" autoCodec:"true" uint:"true"`
|
||
Flag uint32 `json:"flag" fieldDescription:"0为放入仓库,1为放入背包" autoCodec:"true" uint:"true"`
|
||
}
|