refactor(fight): 重构战斗模块

- 移除未使用的结构体和接口
- 优化战斗准备和邀请逻辑
- 调整玩家和怪物信息的处理方式
- 更新战斗相关的数据结构
- 重构战斗模式和邀请相关代码
This commit is contained in:
2025-09-02 00:45:29 +08:00
parent 0dbb7d9a8d
commit 39893e4df9
16 changed files with 408 additions and 325 deletions

View File

@@ -55,5 +55,17 @@ type FitmentAllInboundEmpty struct {
type FitmentAllOutboundInfo struct {
FitmentsLen uint32 `json:"fitmentsLen" struc:"sizeof=Fitments"`
// 基地摆放物品的数组, 就算没有摆放物品, 也必带一个小屋的参数
Fitments []FitmentShowInfo `codec:"auto" json:"fitments"`
Fitments []FitmentItemInfo `codec:"auto" json:"fitments"`
}
// FitmentItemInfo 对应Java的FitmentItemInfo类
type FitmentItemInfo struct {
// Id 家具id 或 默认房型id: 500001对应Java的@UInt long id
Id uint32 `json:"id"`
// UsedCount 使用数量默认房型id项目的使用数据固定为1对应Java的@UInt long usedCount
UsedCount uint32 `json:"usedCount"`
// AllCount 拥有数量默认房型id项目的拥有数量固定为1对应Java的@UInt long allCount
AllCount uint32 `json:"allCount"`
}