public void LeaveGame() { // Use this if you want leaving a game to return you to the lobby, // rather than returning you to the main menu. //return ReturnToLobby(sender, e); LeaveGameNetwork(); SteamMatches.LeaveLobby(); ReturnToMainMenu(); }
public void JoinLobby(int lobby) { InTrainingLobby = false; Program.GameStarted = false; if (SteamMatches.InLobby()) { try { SteamMatches.LeaveLobby(); } catch { } } ; SteamMatches.JoinLobby(lobby, OnJoinLobby, OnLobbyChatUpdate, OnLobbyChatMsg, OnLobbyDataUpdate); }
public void CreateLobby(string lobbyType, bool trainingLobby) { InTrainingLobby = trainingLobby; Program.GameStarted = false; if (!SteamCore.SteamIsConnected()) { SteamCore.SetOfflineMode(true); } if (SteamMatches.InLobby()) { try { SteamMatches.LeaveLobby(); } catch { } } ; SteamMatches.CreateLobby(OnCreateLobby, StringToLobbyType(lobbyType)); }
public void LeaveLobby() { Console.WriteLine("leaving lobby"); SteamMatches.LeaveLobby(); }