This commit is contained in:
aozhiwei 2023-08-14 13:34:10 +08:00
parent 48d37a3b62
commit 1dad19af98
4 changed files with 15 additions and 1 deletions

11
server/imserver/player.go Normal file
View File

@ -0,0 +1,11 @@
package main
import (
"f5"
)
type Player struct {
socket f5.WspCliConn
accountId string
sessionId string
}

View File

@ -10,6 +10,8 @@ import (
type PlayerMgr struct { type PlayerMgr struct {
cs.MsgHandlerImpl cs.MsgHandlerImpl
accountIdHash map[string]*Player
socketHash map[f5.WspCliConn]*Player
} }
func (this *PlayerMgr) init() { func (this *PlayerMgr) init() {

1
server/imserver/types.go Normal file
View File

@ -0,0 +1 @@
package main

2
third_party/f5 vendored

@ -1 +1 @@
Subproject commit 9a0acf9f39369b15cb8b0e277897ef5ce1ec5abb Subproject commit 7c4682d82b60d39963b55f9bd7f5db567067f022