31 lines
439 B
Go
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
|
|
}
|