1
This commit is contained in:
parent
305b92dd25
commit
ca9cabd3d3
@ -19,10 +19,6 @@ type ItemTable struct {
|
|||||||
itemIdHash *q5.ConcurrentMap[int64, *Item]
|
itemIdHash *q5.ConcurrentMap[int64, *Item]
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *Item) Init1() {
|
|
||||||
this.lowerName = strings.ToLower(this.GetName())
|
|
||||||
}
|
|
||||||
|
|
||||||
func (this *ItemTable) PostInit1() {
|
func (this *ItemTable) PostInit1() {
|
||||||
this.itemIdHash = new(q5.ConcurrentMap[int64, *Item])
|
this.itemIdHash = new(q5.ConcurrentMap[int64, *Item])
|
||||||
items := []struct {
|
items := []struct {
|
||||||
@ -41,6 +37,9 @@ func (this *ItemTable) PostInit1() {
|
|||||||
p.Name = langMeta.GetEn()
|
p.Name = langMeta.GetEn()
|
||||||
p.Type = ele.GetType()
|
p.Type = ele.GetType()
|
||||||
p.SubType = ele.GetSubType()
|
p.SubType = ele.GetSubType()
|
||||||
|
|
||||||
|
ele.lowerName = strings.ToLower(langMeta.GetEn())
|
||||||
|
this.itemIdHash.Store(q5.ToInt64(ele.GetId()), ele)
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user