aozhiwei 583e193fce 1
2024-11-22 16:28:31 +08:00

31 lines
439 B
Go

package mt
import (
"q5"
"f5"
"main/mtb"
"strings"
)
type Item struct {
mtb.Item
buffList []int32
}
type ItemTable struct {
f5.IdMetaTable[Item]
}
func (this *Item) Init1() {
if this.Item.GetBuffList() != "" {
tmpStrs := strings.Split(this.Item.GetBuffList(), "|")
for _, val := range(tmpStrs) {
q5.AppendSlice(&this.buffList, q5.ToInt32(val))
}
}
}
func (this *Item) GetBuffList() []int32 {
return this.buffList
}