public int EnterRoom(UserToken token, SocketModel message) { int roomID = message.getMessage <int>(); MatchRoom room = matchRoomMap[roomID]; int userID = cache.getId(token); userMatch.TryAdd(userID, roomID); string account = cache.getAccount(token); room.EnterRoom(token, userID, account); cache.removeGameHallAccMap(token); cache.addToRoomAccMap(token); UpdateRoomState(room, roomID); UpdateRoomListToAll(); return(1); }