Files
bl/common/data/xmlres/evllve.go

23 lines
673 B
Go
Raw Normal View History

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"` // 进化道具数量(可选)
}