Files
bl/common/data/xmlres/effect.go
2025-09-19 00:29:55 +08:00

31 lines
1.7 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package xmlres
import "github.com/ECUST-XX/xml"
// -------------------------- 1. 定义XML映射结构体 --------------------------
// NewSe 对应XML根节点 <NewSe>
type NewSe struct {
XMLName xml.Name `xml:"NewSe"` // 根节点名称
SeIdxList []NewSeIdx `xml:"NewSeIdx"` // 子节点列表 <NewSeIdx>
}
// NewSeIdx 对应XML子节点 <NewSeIdx>,映射所有属性
type NewSeIdx struct {
// 必选属性(所有<NewSeIdx>都包含)
Idx string `xml:"Idx,attr"` // 特效索引(如"1006"
Stat string `xml:"Stat,attr"` // 特效状态1:永久,2:有次数,4:异能特质,5:特殊,7:战队技能)
Eid string `xml:"Eid,attr"` // 特效ID关联前面的1-83、401-420、501-503等
Args string `xml:"Args,attr"` // 特效参数(空格分隔,如"1 5"
ArgsS []int
// 可选属性(部分<NewSeIdx>包含)
CanReset *string `xml:"CanReset,attr,omitempty"` // 是否可重置1:是)
Desc *string `xml:"Desc,attr,omitempty"` // 特效简称(如"叶绿"
Intro *string `xml:"Intro,attr,omitempty"` // 特效描述(如"草属性技能威力增加5%"
StarLevel *string `xml:"StarLevel,attr,omitempty"` // 星级0-5
Times *string `xml:"Times,attr,omitempty"` // 有效次数仅Stat=2时生效
ItemId *string `xml:"ItemId,attr,omitempty"` // 关联道具ID如"300030"
Des *string `xml:"Des,attr,omitempty"` // 道具/次数特效描述
AdditionType *string `xml:"AdditionType,attr,omitempty"` // 加成类型1:种族值,2:技能威力,3:固定属性)
AdditionNum *string `xml:"AdditionNum,attr,omitempty"` // 加成数值
}