This commit is contained in:
2022-12-16 23:36:51 +04:00
parent 4d8ed1105a
commit fa6ace4dc8
12 changed files with 54 additions and 60 deletions
+3 -1
View File
@@ -50,7 +50,7 @@ public sealed class CreateHandler: IHandler
var lobbyPlayer = context.LobbyPlayer;
var roomPlayer = new RoomPlayer(lobbyPlayer.Connection, lobbyPlayer.Id, lobbyPlayer.Name);
var room = new Room(roomId, information, new PluginBase());
var room = new Room(roomId, information);
room.AddPlayer(roomPlayer);
context.Room?.RemovePlayer(context.RoomPlayer);
@@ -62,6 +62,8 @@ public sealed class CreateHandler: IHandler
JoinSuccess(roomPlayer, room, writer);
context.Loop.Run(room);
_logger.Trace($"Player {context.Connection.Id}|{context.LobbyPlayer.Name} joined to room {room.Id}");
}