private static void CCSteamLobbyId(ConCommandArgs args)
 {
     ConCommandException.CheckSteamworks();
     Debug.LogFormat("Lobby id = {0}", new object[]
     {
         SteamworksLobbyManager.client.Lobby.CurrentLobby
     });
 }
 private static void CCSteamLobbyCreateIfNone(ConCommandArgs args)
 {
     ConCommandException.CheckSteamworks();
     if (!SteamworksLobbyManager.client.Lobby.IsValid)
     {
         SteamworksLobbyManager.CreateLobby();
     }
 }
 private static void CCSteamLobbyPrintData(ConCommandArgs args)
 {
     ConCommandException.CheckSteamworks();
     if (SteamworksLobbyManager.client.Lobby.IsValid)
     {
         List <string> list = new List <string>();
         foreach (KeyValuePair <string, string> keyValuePair in SteamworksLobbyManager.client.Lobby.CurrentLobbyData.GetAllData())
         {
             list.Add(string.Format("\"{0}\" = \"{1}\"", keyValuePair.Key, keyValuePair.Value));
         }
         Debug.Log(string.Join("\n", list.ToArray()));
     }
 }
        private static void CCSteamLobbyInvite(ConCommandArgs args)
        {
            ConCommandException.CheckSteamworks();
            args.CheckArgumentCount(1);
            CSteamID csteamID;

            if (CSteamID.TryParse(args[0], out csteamID))
            {
                SteamworksLobbyManager.client.Lobby.InviteUserToLobby(csteamID.value);
                return;
            }
            throw new ConCommandException("Could not parse user id.");
        }
 private static void CCSteamLobbyPrintMembers(ConCommandArgs args)
 {
     ConCommandException.CheckSteamworks();
     ulong[]  memberIDs = SteamworksLobbyManager.client.Lobby.GetMemberIDs();
     string[] array     = new string[memberIDs.Length];
     for (int i = 0; i < memberIDs.Length; i++)
     {
         array[i] = string.Format("[{0}]{1} id={2} name={3}", new object[]
         {
             i,
             (SteamworksLobbyManager.client.Lobby.Owner == memberIDs[i]) ? "*" : " ",
             memberIDs[i],
             SteamworksLobbyManager.client.Friends.GetName(memberIDs[i])
         });
     }
     Debug.Log(string.Join("\n", array));
 }
        private static void CCSteamLobbyAssignOwner(ConCommandArgs args)
        {
            ConCommandException.CheckSteamworks();
            args.CheckArgumentCount(1);
            Debug.LogFormat("Promoting {0} to lobby leader...", new object[]
            {
                args[0]
            });
            CSteamID csteamID;

            if (CSteamID.TryParse(args[0], out csteamID))
            {
                SteamworksLobbyManager.client.Lobby.Owner = csteamID.value;
                return;
            }
            throw new ConCommandException("Could not parse steamID.");
        }
        private static void CCSteamLobbyJoin(ConCommandArgs args)
        {
            ConCommandException.CheckSteamworks();
            args.CheckArgumentCount(1);
            Debug.LogFormat("Joining lobby {0}...", new object[]
            {
                args[0]
            });
            CSteamID newLobbyId;

            if (CSteamID.TryParse(args[0], out newLobbyId))
            {
                SteamworksLobbyManager.JoinLobby(newLobbyId);
                return;
            }
            throw new ConCommandException("Could not parse lobby id.");
        }
        private static void CCSteamLobbyPrintList(ConCommandArgs args)
        {
            ConCommandException.CheckSteamworks();
            List <LobbyList.Lobby> lobbies = SteamworksLobbyManager.client.LobbyList.Lobbies;

            string[] array = new string[lobbies.Count];
            for (int i = 0; i < lobbies.Count; i++)
            {
                array[i] = string.Format("[{0}] id={1}\n      players={2}/{3},\n      owner=\"{4}\"", new object[]
                {
                    i,
                    lobbies[i].LobbyID,
                    lobbies[i].NumMembers,
                    lobbies[i].MemberLimit,
                    SteamworksLobbyManager.client.Friends.GetName(lobbies[i].Owner)
                });
            }
            Debug.Log(string.Join("\n", array));
        }
 // Token: 0x06000960 RID: 2400 RVA: 0x00028E33 File Offset: 0x00027033
 public void CheckArgumentCount(int count)
 {
     ConCommandException.CheckArgumentCount(this.userArgs, count);
 }
 private static void CCSteamLobbyCopyToClipboard(ConCommandArgs args)
 {
     ConCommandException.CheckSteamworks();
     GUIUtility.systemCopyBuffer = TextSerialization.ToStringInvariant(SteamworksLobbyManager.client.Lobby.CurrentLobby);
     Chat.AddMessage(Language.GetString("STEAM_COPY_LOBBY_TO_CLIPBOARD_MESSAGE"));
 }
 private static void CCSteamLobbyOpenInviteOverlay(ConCommandArgs args)
 {
     ConCommandException.CheckSteamworks();
     SteamworksLobbyManager.client.Overlay.OpenInviteDialog(SteamworksLobbyManager.client.Lobby.CurrentLobby);
 }
 private static void CCSteamLobbyLeave(ConCommandArgs args)
 {
     ConCommandException.CheckSteamworks();
     SteamworksLobbyManager.LeaveLobby();
 }
 private static void CCSteamLobbyFind(ConCommandArgs args)
 {
     ConCommandException.CheckSteamworks();
     SteamworksLobbyManager.awaitingLobbyListUpdate = true;
 }