fix(space): 修复地图节点配置序列化问题并调整时间间隔

- 为MapBossInfo结构体的Config字段添加`struc:"skip"`标签,
解决配置信息序列化时的问题

- 将Space.Next方法的时间间隔从分钟级别调整为秒级别,
修改随机时间范围为10-30秒,便于测试和调试
```
This commit is contained in:
昔念
2026-03-08 01:23:06 +08:00
parent e9b9443c06
commit ecd63bdea5
2 changed files with 5 additions and 5 deletions

View File

@@ -41,10 +41,10 @@ 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
IsShow int32 `struc:"uint32" json:"is_show"` // 雷伊首次出现的时候给2,正常精灵给1,雷伊是否首次出现的判断是否首次刷新,
PosInfo []model.Pos `struc:"skip"`
PosIndex uint32 `struc:"skip"`
Config configm.MapNode `struc:"skip"`
}
// 这里存储星球的map