Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        public void JoinLobby(int lobby)
        {
            InTrainingLobby     = false;
            Program.GameStarted = false;

            if (SteamMatches.InLobby())
            {
                try { SteamMatches.LeaveLobby(); } catch { }
            }
            ;

            SteamMatches.JoinLobby(lobby, OnJoinLobby, OnLobbyChatUpdate, OnLobbyChatMsg, OnLobbyDataUpdate);
        }
Exemplo n.º 3
0
        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));
        }
Exemplo n.º 4
0
 public void LeaveLobby()
 {
     Console.WriteLine("leaving lobby");
     SteamMatches.LeaveLobby();
 }