Files
bl/logic/service/item/auto.go
昔念 180d735706
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
11
2026-02-14 07:36:05 +08:00

71 lines
2.6 KiB
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 item
import "blazing/logic/service/common"
// ==============================
// 双倍经验加速器相关协议 (cmd: 2327)
// ==============================
// C2S_USE_SPEEDUP_ITEM 前端→后端:使用双倍经验加速器请求
// cmd: 2327入站协议号
type C2S_USE_SPEEDUP_ITEM struct {
Head common.TomeeHeader `cmd:"2327" struc:"skip"` // 协议头skip 表示序列化时跳过
ItemID uint32 // 使用的双倍经验物品id
}
// S2C_USE_SPEEDUP_ITEM 后端→前端:使用双倍经验加速器回包
type S2C_USE_SPEEDUP_ITEM struct {
TwoTimes uint32 // 双倍经验加速器的剩余次数
ThreeTimes uint32 // 三倍经验加速器的剩余次数
}
// ==============================
// 能量吸收器相关协议 (cmd: 2331)
// ==============================
// C2S_USE_ENERGY_XISHOU 前端→后端:使用能量吸收器请求
// cmd: 2331入站协议号
type C2S_USE_ENERGY_XISHOU struct {
Head common.TomeeHeader `cmd:"2331" struc:"skip"` // 协议头skip 表示序列化时跳过
ItemID uint32 // 使用的能量吸收器物品id
}
// S2C_USE_ENERGY_XISHOU 后端→前端:使用能量吸收器回包
type S2C_USE_ENERGY_XISHOU struct {
EnergyTimes uint32 // 剩余能量吸收器次数
}
// ==============================
// 自动战斗仪相关协议 (cmd: 2329)
// ==============================
// C2S_USE_AUTO_FIGHT_ITEM 前端→后端:使用自动战斗仪请求
// cmd: 2329入站协议号
type C2S_USE_AUTO_FIGHT_ITEM struct {
Head common.TomeeHeader `cmd:"2329" struc:"skip"` // 协议头skip 表示序列化时跳过
ItemID uint32 // 使用的自动战斗仪物品id
}
// S2C_USE_AUTO_FIGHT_ITEM 后端→前端:使用自动战斗仪回包
type S2C_USE_AUTO_FIGHT_ITEM struct {
AutoFight uint32 // 开启自动战斗的flag前端看图参数为3需测试
AutoFightTimes uint32 // 战斗仪的剩余次数
}
// ==============================
// 开启/关闭自动战斗仪 (cmd: 2330)
// ==============================
// C2S_ON_OFF_AUTO_FIGHT 前端→后端:开启/关闭自动战斗仪请求包
// cmd: 2330入站协议号
type C2S_ON_OFF_AUTO_FIGHT struct {
Head common.TomeeHeader `cmd:"2330" struc:"skip"` // 协议头,序列化时跳过
Flag uint32 // 自动战斗开关0=关闭1=开启
}
// S2C_ON_OFF_AUTO_FIGHT 后端→前端:开启/关闭自动战斗仪回包
type S2C_ON_OFF_AUTO_FIGHT struct {
AutoFight uint32 // 自动战斗flag开启=3关闭=0需测试
AutoFightTimes uint32 // 自动战斗仪剩余次数
}