- 移除 SuperMaps 结构体中未使用的 Text 字段 - 简化 SuperMaps 结构体的 Maps 字段定义 - 在 go.work 文件中添加 common/serialize/xml 模块
21 lines
406 B
Go
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"`
|
|
}
|