refactor(common): 重构宠物相关数据结构和命名
- 将 PetMM 结构体重命名为 PetInfo,更准确地反映其用途 - 更新了相关文件中的结构体引用和变量命名 - 优化了部分代码的格式和注释
This commit is contained in:
@@ -31,7 +31,7 @@ var (
|
||||
MonsterMap map[int]TMapConfig
|
||||
//Skill MovesTbl //技能配置
|
||||
SkillMap map[int]Move
|
||||
PetMAP map[int]PetMM //宠物配置
|
||||
PetMAP map[int]PetInfo //宠物配置
|
||||
NatureRootMap map[int]NatureItem
|
||||
)
|
||||
|
||||
@@ -54,7 +54,7 @@ func initfile() {
|
||||
|
||||
})
|
||||
pet := getXml[Monsters](path + "226.xml")
|
||||
PetMAP = utils.ToMap[PetMM, int](pet.Monsters, func(m PetMM) int {
|
||||
PetMAP = utils.ToMap[PetInfo, int](pet.Monsters, func(m PetInfo) int {
|
||||
return m.ID
|
||||
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user