39 lines
1.6 KiB
Go
39 lines
1.6 KiB
Go
|
|
package item
|
||
|
|
|
||
|
|
import (
|
||
|
|
"blazing/logic/service/common"
|
||
|
|
"blazing/modules/blazing/model"
|
||
|
|
)
|
||
|
|
|
||
|
|
// C2S_USE_PET_ITEM_OUT_OF_FIGHT 客户端→服务端:非战斗场景使用宠物道具
|
||
|
|
type C2S_USE_PET_ITEM_OUT_OF_FIGHT struct {
|
||
|
|
Head common.TomeeHeader `cmd:"2326" struc:"skip"`
|
||
|
|
CatchTime uint32 `json:"catch_time"` // 使用物品的精灵的捕获时间
|
||
|
|
ItemID uint32 `json:"item_id"` // 使用的物品ID
|
||
|
|
}
|
||
|
|
|
||
|
|
// S2C_USE_PET_ITEM_OUT_OF_FIGHT 服务端→客户端:非战斗场景使用宠物道具回包
|
||
|
|
type S2C_USE_PET_ITEM_OUT_OF_FIGHT struct {
|
||
|
|
CatchTime uint32 `json:"catch_time"` // 使用物品的精灵的捕获时间
|
||
|
|
ID uint32 `json:"id"` // 精灵ID
|
||
|
|
Nick string `struc:"[16]byte" fieldDesc:"16字节昵称" json:"nick"`
|
||
|
|
Nature uint32 `json:"nature"` // 精灵性格
|
||
|
|
Dv uint32 `json:"dv"` // 精灵个体值
|
||
|
|
Level uint32 `json:"lv"` // 精灵等级
|
||
|
|
Hp uint32 `json:"hp"` // 当前血量
|
||
|
|
MaxHp uint32 `json:"maxhp"` // 最大血量
|
||
|
|
Exp uint32 `json:"exp"` // 升级所需经验
|
||
|
|
// * ev:生命学习力,攻击学习力,防御学习力,特攻学习力,特防学习力,速度学习力
|
||
|
|
Ev [6]uint32 `fieldDesc:"属性" `
|
||
|
|
// * battle_lv: atk(0), def(1), sp_atk(2), sp_def(3), spd(4), accuracy(5)
|
||
|
|
Prop [5]uint32 `fieldDesc:"属性" `
|
||
|
|
SkillList []model.SkillInfo `json:"skilllist"` // 技能数组
|
||
|
|
}
|
||
|
|
type C2S_PET_RESET_NATURE struct {
|
||
|
|
Head common.TomeeHeader `cmd:"2343" struc:"skip"`
|
||
|
|
|
||
|
|
CatchTime uint32 // 精灵捕捉时间
|
||
|
|
Nature uint32 // 目标性格值
|
||
|
|
ItemId uint32 // 消耗的物品ID
|
||
|
|
}
|