Exemple #1
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);
        }
Exemple #2
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));
        }