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