feat(map): 更新地图配置和物品数据,优化XML文件结构

This commit is contained in:
1
2025-08-16 02:53:18 +00:00
parent caa901d208
commit a02de8a4b4
11 changed files with 9425 additions and 16717 deletions

View File

@@ -0,0 +1,20 @@
package xml
import (
"fmt"
"testing"
"github.com/ECUST-XX/xml"
)
func Test_main(t *testing.T) {
// 解析XML到结构体
var maps Items
t1, _ := getItemsXML()
xml.Unmarshal(t1, &maps)
//tf, _ := xml.MarshalIndentShortForm(tt, " ", " ")
fmt.Println(maps)
}