2025-11-08 01:30:53 +08:00
|
|
|
|
package info
|
|
|
|
|
|
|
2025-11-08 16:38:41 +08:00
|
|
|
|
// UsePetIteminfo 对应Java的UsePetIteminfo,实现OutboundMessage接口
|
|
|
|
|
|
type UsePetIteminfo struct {
|
2025-11-08 01:30:53 +08:00
|
|
|
|
UserID uint32 `description:"玩家ID" codec:"userId"` // @UInt long 对应Go的uint32(无符号64位)
|
|
|
|
|
|
ItemID uint32 `description:"使用的物品ID" codec:"itemId"` // 结构体标签模拟@FieldDescription和@AutoCodec注解
|
|
|
|
|
|
UserHp uint32 `description:"用户血量 这里是原始HP+药剂回复的HP总和 比如我只有20血使用了150药剂 这里应该是170 使用PP药剂 这里为原始HP" codec:"userHp"`
|
|
|
|
|
|
//这里实现是int, 可以+血
|
|
|
|
|
|
|
|
|
|
|
|
ChangeHp int32 `description:"改变血量 药剂增加的血量 使用PP药剂这里为0 实际增加PP为Note USE Skill包" codec:"changeHp"`
|
|
|
|
|
|
}
|