package xmlres import "github.com/ECUST-XX/xml" // CondEvolves 根节点结构体 type CondEvolves struct { XMLName xml.Name `xml:"CondEvolves"` Evolves []Evolve `xml:"Evolve"` } // Evolve 进化配置结构体 type Evolve struct { ID int `xml:"ID,attr"` // 进化ID(属性) Branches []Branch `xml:"Branch"` // 进化分支列表 } // Branch 进化分支结构体 type Branch struct { MonTo int `xml:"MonTo,attr"` // 进化目标精灵ID EvolvItem int `xml:"EvolvItem,attr,omitempty"` // 进化道具ID(可选) EvolvItemCount int `xml:"EvolvItemCount,attr,omitempty"` // 进化道具数量(可选) }