优化连接

This commit is contained in:
kercylan98
2023-05-06 15:53:31 +08:00
parent dae2982090
commit 41b0417338
18 changed files with 21 additions and 305 deletions
-2
View File
@@ -8,8 +8,6 @@ type Room[PlayerID comparable, P Player[PlayerID]] interface {
GetGuid() int64
// GetPlayerLimit 获取玩家人数上限
GetPlayerLimit() int
// GetPlayerWithConnID 根据连接ID获取玩家
GetPlayerWithConnID(id string) P
// GetPlayer 根据玩家id获取玩家
GetPlayer(id PlayerID) P
// GetPlayers 获取房间中的所有玩家