Files
bl/common/data/xml/monster_refresh.go
昔念 c4e80f80e4 refactor(common): 优化怪物刷新相关结构体定义
- 移除 SuperMaps 结构体中未使用的 Text 字段
- 简化 SuperMaps 结构体的 Maps 字段定义
- 在 go.work 文件中添加 common/serialize/xml 模块
2025-06-30 00:50:05 +08:00

21 lines
406 B
Go

package main
import (
"github.com/ECUST-XX/xml"
)
type SuperMaps struct {
XMLName xml.Name `xml:"superMaps"`
//Text string `xml:",chardata"`
Maps []Maps `xml:"maps"`
}
type Maps struct {
Text string `xml:",chardata"`
ID string `xml:"id,attr"`
Name string `xml:"name,attr"`
X string `xml:"x,attr"`
Y string `xml:"y,attr"`
// Galaxy string `xml:"galaxy,attr"`
}