Files
bl/logic/service/task/CompleteTask.go
昔念 75e428f62e refactor(blazing): 重构任务系统并优化相关功能
- 重构了任务系统的数据结构和执行逻辑
- 优化了地图加载和怪物刷新机制
- 改进了宠物系统的基础架构
- 调整了玩家信息和背包的处理方式
- 统一了数据访问层的接口和实现
2025-08-30 21:59:52 +08:00

24 lines
1.3 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 task
import "blazing/common/socket/handler"
type CompleteTaskInboundInfo struct {
Head handler.TomeeHeader `cmd:"2202|2233" struc:"[0]pad"`
TaskId uint32 `json:"taskId" description:"任务ID"` // 任务ID对应Java的@UInt long
OutState uint32 `json:"outState" 分支"` // 当前状态1表示完成任务对应Java的@UInt long
}
type CompleteTaskOutboundInfo struct {
TaskId uint32 `json:"taskId" description:"任务ID"` // 任务ID对应Java的@UInt long
PetTypeId uint32 `json:"petTypeId" description:"发放的精灵ID"` // 发放的精灵ID对应Java的@UInt long
CaptureTime uint32 `json:"captureTime" description:"发放的精灵捕获时间"` // 发放的精灵捕获时间对应Java的@UInt long
ItemLen uint32 `struc:"sizeof=ItemList"`
ItemList []ItemInfo `json:"itemList" description:"发放物品的数组"` // 发放物品的数组对应Java的List<ItemInfo>
}
// ItemInfo 对应Java的ItemInfo类
// 用于表示发放物品的信息
type ItemInfo struct {
ItemId uint32 `json:"itemId" description:"发放物品ID"` // 发放物品ID对应Java的@UInt long
ItemCount uint32 `json:"itemCount" description:"发放物品的数量"` // 发放物品的数量对应Java的@UInt long
}