public void OnCreateLobby(bool result) { if (result) { Console.WriteLine("Failure during lobby creation."); return; } Program.GameStarted = false; SteamMatches.SetLobbyMemberLimit(64); SetLobbyName(); SteamMatches.SetLobbyData("NumPlayers", "1"); SteamMatches.SetLobbyData("NumSpectators", "0"); SteamMatches.SetLobbyData("MaxPlayers", "4"); if (InTrainingLobby) { SteamMatches.SetLobbyJoinable(false); } Console.WriteLine("Trying to join the created lobby."); SteamMatches.JoinCreatedLobby(OnJoinLobby, OnLobbyChatUpdate, OnLobbyChatMsg, OnLobbyDataUpdate); }