void OnCreateLobby(CreateLobbyPackage dp) { Lobby l = new Lobby(); lobbies.Add(l); ResponsePackage rp = new ResponsePackage(); rp.ResponseId = dp.Id; rp.ResponseMessage = l.LobbyId.ToString(); Client.Write(dp.SenderTcpClient, rp); Console.WriteLine("Created lobby"); }