1
This commit is contained in:
parent
2ee42ed3b1
commit
c36ab3105a
@ -186,7 +186,12 @@ func (this *playerMgr) reportServerState(masterIp string, masterPort int32) {
|
||||
}
|
||||
|
||||
func (this *playerMgr) GetPlayerByAccountId(accountId string) common.Player {
|
||||
return this.internalGetPlayerByAccountId(accountId)
|
||||
hum := this.internalGetPlayerByAccountId(accountId)
|
||||
if hum != nil {
|
||||
return hum
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
func (this *playerMgr) internalGetPlayerByAccountId(accountId string) *player {
|
||||
@ -198,7 +203,12 @@ func (this *playerMgr) internalGetPlayerByAccountId(accountId string) *player {
|
||||
}
|
||||
|
||||
func (this *playerMgr) GetPlayerBySocket(socket f5.WspCliConn) common.Player {
|
||||
return this.internalGetPlayerBySocket(socket)
|
||||
hum := this.internalGetPlayerBySocket(socket)
|
||||
if hum != nil {
|
||||
return hum
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
func (this *playerMgr) internalGetPlayerBySocket(socket f5.WspCliConn) *player {
|
||||
|
Loading…
x
Reference in New Issue
Block a user