20 lines
656 B
Go
20 lines
656 B
Go
package pet
|
||
|
||
import "blazing/logic/service/common"
|
||
|
||
// 实现InboundMessage接口,用于处理宠物设置经验的入站消息
|
||
type PetSetExpInboundInfo struct {
|
||
Head common.TomeeHeader `cmd:"2318" struc:"skip"`
|
||
// CatchTime 精灵获取时间,对应Java的@UInt long
|
||
CatchTime uint32 `fieldDescription:"精灵获取时间" uint:"true" autoCodec:"true"`
|
||
|
||
// Exp 分配经验,对应Java的@UInt long
|
||
Exp int64 `struc:"uint32"`
|
||
}
|
||
|
||
// 实现OutboundMessage接口,用于处理宠物设置经验的出站消息
|
||
type PetSetExpOutboundInfo struct {
|
||
// Exp 剩余累计经验,对应Java的@UInt long
|
||
Exp int64 `struc:"uint32"`
|
||
}
|