Files
bl/logic/service/pet/exp.go
xinian d0cf598ced
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
refactor: 将物品和货币相关字段从uint32改为int64以支持更大数值范围
2026-02-12 04:28:20 +08:00

20 lines
656 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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"`
}