// Token: 0x06001A5B RID: 6747 RVA: 0x00070750 File Offset: 0x0006E950
 private static void OnInvitedToGame(SteamFriend steamFriend, string connectString)
 {
     Debug.LogFormat("OnGameRichPresenceJoinRequested connectString=\"{0}\" steamFriend=\"{1}\"", new object[]
     {
         connectString,
         steamFriend.Name
     });
     string[] array = connectString.Split(new char[]
     {
         ' '
     });
     if (array.Length >= 2)
     {
         CSteamID csteamID;
         if (array[0] == "+connect_steamworks_p2p" && CSteamID.TryParse(array[1], out csteamID))
         {
             if (!SteamworksLobbyManager.ownsLobby)
             {
                 SteamworksLobbyManager.LeaveLobby();
             }
             QuitConfirmationHelper.IssueQuitCommand(null, "connect_steamworks_p2p " + csteamID.value);
         }
         CSteamID csteamID2;
         if (array[0] == "+steam_lobby_join" && CSteamID.TryParse(array[1], out csteamID2))
         {
             if (!SteamworksLobbyManager.ownsLobby)
             {
                 SteamworksLobbyManager.LeaveLobby();
             }
             QuitConfirmationHelper.IssueQuitCommand(null, "steam_lobby_join " + csteamID2.value);
         }
     }
 }
        // Token: 0x06001887 RID: 6279 RVA: 0x00069BC4 File Offset: 0x00067DC4
        public static void IssueQuitCommand(Action action)
        {
            if (!QuitConfirmationHelper.IsQuitConfirmationRequired())
            {
                action();
                return;
            }
            QuitConfirmationHelper.NetworkStatus networkStatus;
            if (NetworkUser.readOnlyInstancesList.Count <= NetworkUser.readOnlyLocalPlayersList.Count)
            {
                networkStatus = QuitConfirmationHelper.NetworkStatus.SinglePlayer;
            }
            else if (NetworkServer.active)
            {
                networkStatus = QuitConfirmationHelper.NetworkStatus.Host;
            }
            else
            {
                networkStatus = QuitConfirmationHelper.NetworkStatus.Client;
            }
            string token;

            switch (networkStatus)
            {
            case QuitConfirmationHelper.NetworkStatus.None:
                token = "";
                break;

            case QuitConfirmationHelper.NetworkStatus.SinglePlayer:
                token = "QUIT_RUN_CONFIRM_DIALOG_BODY_SINGLEPLAYER";
                break;

            case QuitConfirmationHelper.NetworkStatus.Client:
                token = "QUIT_RUN_CONFIRM_DIALOG_BODY_CLIENT";
                break;

            case QuitConfirmationHelper.NetworkStatus.Host:
                token = "QUIT_RUN_CONFIRM_DIALOG_BODY_HOST";
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }
            SimpleDialogBox simpleDialogBox = SimpleDialogBox.Create(null);

            simpleDialogBox.headerToken      = new SimpleDialogBox.TokenParamsPair("QUIT_RUN_CONFIRM_DIALOG_TITLE", Array.Empty <object>());
            simpleDialogBox.descriptionToken = new SimpleDialogBox.TokenParamsPair(token, Array.Empty <object>());
            simpleDialogBox.AddActionButton(new UnityAction(action.Invoke), "DIALOG_OPTION_YES", Array.Empty <object>());
            simpleDialogBox.AddCancelButton("CANCEL", Array.Empty <object>());
        }
        // Token: 0x06001A5C RID: 6748 RVA: 0x0007081C File Offset: 0x0006EA1C
        private static void OnGameServerChangeRequested(string address, string password)
        {
            Debug.LogFormat("OnGameServerChangeRequested address=\"{0}\"", new object[]
            {
                address
            });
            if (!SteamworksLobbyManager.ownsLobby)
            {
                SteamworksLobbyManager.LeaveLobby();
            }
            string consoleCmd = string.Format("cl_password \"{0}\"; connect \"{1}\"", Util.EscapeQuotes(password), Util.EscapeQuotes(address));

            QuitConfirmationHelper.IssueQuitCommand(null, consoleCmd);
        }