This commit is contained in:
aozhiwei 2024-04-15 16:19:47 +08:00
parent 69b6c60c15
commit a1ec14faaf
2 changed files with 12 additions and 0 deletions

View File

@ -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 {

View File

@ -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) {
}