1
This commit is contained in:
parent
c95cb8b4ca
commit
879287447a
@ -1,14 +1,14 @@
|
|||||||
package player
|
package player
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"sync"
|
||||||
)
|
)
|
||||||
|
|
||||||
type playerMgr struct {
|
type playerMgr struct {
|
||||||
accountIdHash map[string]*player
|
accountIdHash sync.Map
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *playerMgr) Init() {
|
func (this *playerMgr) Init() {
|
||||||
this.accountIdHash = make(map[string]*player)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *playerMgr) UnInit() {
|
func (this *playerMgr) UnInit() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user