1
This commit is contained in:
parent
69b6c60c15
commit
a1ec14faaf
@ -57,6 +57,7 @@ type PlayerMgr interface {
|
||||
GetPlayerBySocket(f5.WspCliConn) Player
|
||||
GetPlayerByAccountId(string) Player
|
||||
OnSocketClose(f5.WspCliConn)
|
||||
GetRecommendPlayers(map[string]int32, map[string]int32, int32)
|
||||
}
|
||||
|
||||
type FriendMgr interface {
|
||||
|
@ -349,3 +349,14 @@ func (this *playerMgr) ProcessCMMsg(handler *cs.CsNetMsgHandler, hdr *f5.MsgHdr)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (this *playerMgr) traverseHumans(cb func(*player) bool) {
|
||||
for _, hum := range(this.accountIdHash) {
|
||||
if !cb(hum) {
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (this *playerMgr) GetRecommendPlayers(excludeHums map[string]int32, outHums map[string]int32, num int32) {
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user