22 lines
704 B
Go
22 lines
704 B
Go
|
|
package xmlres
|
||
|
|
|
||
|
|
import "github.com/ECUST-XX/xml"
|
||
|
|
|
||
|
|
// NatureItem 表示单个性格修正项
|
||
|
|
type NatureItem struct {
|
||
|
|
ID int `xml:"id,attr"`
|
||
|
|
Name string `xml:"name,attr"`
|
||
|
|
AttackCorrect float64 `xml:"m_attack,attr"` // 攻击修正
|
||
|
|
DefenseCorrect float64 `xml:"m_defence,attr"` // 防御修正
|
||
|
|
SaCorrect float64 `xml:"m_SA,attr"` // 特攻修正
|
||
|
|
SdCorrect float64 `xml:"m_SD,attr"` // 特防修正
|
||
|
|
SpeedCorrect float64 `xml:"m_speed,attr"` // 速度修正
|
||
|
|
Desc string `xml:"desc,attr"` // 描述
|
||
|
|
}
|
||
|
|
|
||
|
|
// NatureRoot 表示XML根节点
|
||
|
|
type NatureRoot struct {
|
||
|
|
XMLName xml.Name `xml:"root"`
|
||
|
|
Items []NatureItem `xml:"item"`
|
||
|
|
}
|