```
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

feat(space): 添加地图模型配置支持并优化BOSS信息结构

添加MapModel字段到MapBossInfo结构体中,用于存储更完整的BOSS模型数据,
修改初始化逻辑从新的MapModel服务获取数据,并更新HP恢复逻辑使用新模型数据。

同时优化MapNode配置表结构,移除冗余字段并调整数据查询逻辑,
将IsBroadcast字段类型改为uint32以
This commit is contained in:
昔念
2026-04-01 06:27:03 +08:00
parent 977fc78cf6
commit 1b6586aedc
7 changed files with 145 additions and 53 deletions

View File

@@ -41,10 +41,11 @@ type MapBossInfo struct {
Region uint32 `json:"region" protobuf:"2,req,name=region"` //index,直接给boss的节点ID
Hp int32 `struc:"uint32" json:"hp" protobuf:"3,req,name=hp"` // HP值蘑菇怪为A其他BOSS暂未明确用途可能无实际作用
Pos model.Pos
IsShow int32 `struc:"uint32" json:"is_show"` // 雷伊首次出现的时候给2,正常精灵给1,雷伊是否首次出现的判断是否首次刷新,
PosInfo []model.Pos `struc:"skip"`
PosIndex uint32 `struc:"skip"`
Config configm.MapNode `struc:"skip"`
IsShow int32 `struc:"uint32" json:"is_show"` // 雷伊首次出现的时候给2,正常精灵给1,雷伊是否首次出现的判断是否首次刷新,
PosInfo []model.Pos `struc:"skip"`
PosIndex uint32 `struc:"skip"`
Config configm.MapNode `struc:"skip"`
Model configm.MapModel `struc:"skip"`
}
// 这里存储星球的map