Ejemplo n.º 1
0
 /// <summary>
 /// <para> recently-played-with friends iteration</para>
 /// <para> this iterates the entire list of users recently played with, across games</para>
 /// <para> GetFriendCoplayTime() returns as a unix time</para>
 /// </summary>
 public static int GetCoplayFriendCount()
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamFriends_GetCoplayFriendCount(CSteamAPIContext.GetSteamFriends()));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// <para> returns the name for the given friends group (NULL in the case of invalid friends group IDs)</para>
 /// </summary>
 public static string GetFriendsGroupName(FriendsGroupID_t friendsGroupID)
 {
     InteropHelp.TestIfAvailableClient();
     return(InteropHelp.PtrToStringUTF8(NativeMethods.ISteamFriends_GetFriendsGroupName(CSteamAPIContext.GetSteamFriends(), friendsGroupID)));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// <para> gets up to nMembersCount members of the given friends group, if fewer exist than requested those positions' SteamIDs will be invalid</para>
 /// </summary>
 public static void GetFriendsGroupMembersList(FriendsGroupID_t friendsGroupID, CSteamID[] pOutSteamIDMembers, int nMembersCount)
 {
     InteropHelp.TestIfAvailableClient();
     NativeMethods.ISteamFriends_GetFriendsGroupMembersList(CSteamAPIContext.GetSteamFriends(), friendsGroupID, pOutSteamIDMembers, nMembersCount);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// <para> accesses old friends names - returns an empty string when their are no more items in the history</para>
 /// </summary>
 public static string GetFriendPersonaNameHistory(CSteamID steamIDFriend, int iPersonaName)
 {
     InteropHelp.TestIfAvailableClient();
     return(InteropHelp.PtrToStringUTF8(NativeMethods.ISteamFriends_GetFriendPersonaNameHistory(CSteamAPIContext.GetSteamFriends(), steamIDFriend, iPersonaName)));
 }
Ejemplo n.º 5
0
 /// <summary>
 /// <para> Returns nickname the current user has set for the specified player. Returns NULL if the no nickname has been set for that player.</para>
 /// <para> DEPRECATED: GetPersonaName follows the Steam nickname preferences, so apps shouldn't need to care about nicknames explicitly.</para>
 /// </summary>
 public static string GetPlayerNickname(CSteamID steamIDPlayer)
 {
     InteropHelp.TestIfAvailableClient();
     return(InteropHelp.PtrToStringUTF8(NativeMethods.ISteamFriends_GetPlayerNickname(CSteamAPIContext.GetSteamFriends(), steamIDPlayer)));
 }
Ejemplo n.º 6
0
 /// <summary>
 /// <para> Activates the game overlay to open an invite dialog that will send the provided Rich Presence connect string to selected friends</para>
 /// </summary>
 public static void ActivateGameOverlayInviteDialogConnectString(string pchConnectString)
 {
     InteropHelp.TestIfAvailableClient();
     using (var pchConnectString2 = new InteropHelp.UTF8StringHandle(pchConnectString)) {
         NativeMethods.ISteamFriends_ActivateGameOverlayInviteDialogConnectString(CSteamAPIContext.GetSteamFriends(), pchConnectString2);
     }
 }
Ejemplo n.º 7
0
 /// <summary>
 /// <para> returns the current status of the specified user</para>
 /// <para> this will only be known by the local user if steamIDFriend is in their friends list; on the same game server; in a chat room or lobby; or in a small group with the local user</para>
 /// </summary>
 public static EPersonaState GetFriendPersonaState(CSteamID steamIDFriend)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamFriends_GetFriendPersonaState(CSteamAPIContext.GetSteamFriends(), steamIDFriend));
 }
Ejemplo n.º 8
0
 public static CSteamID GetChatMemberByIndex(CSteamID steamIDClan, int iUser)
 {
     InteropHelp.TestIfAvailableClient();
     return((CSteamID)NativeMethods.ISteamFriends_GetChatMemberByIndex(CSteamAPIContext.GetSteamFriends(), steamIDClan, iUser));
 }
Ejemplo n.º 9
0
 /// <summary>
 /// <para> friend iteration</para>
 /// <para> takes a set of k_EFriendFlags, and returns the number of users the client knows about who meet that criteria</para>
 /// <para> then GetFriendByIndex() can then be used to return the id's of each of those users</para>
 /// </summary>
 public static int GetFriendCount(EFriendFlags iFriendFlags)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamFriends_GetFriendCount(CSteamAPIContext.GetSteamFriends(), iFriendFlags));
 }
Ejemplo n.º 10
0
 public static bool LeaveClanChatRoom(CSteamID steamIDClan)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamFriends_LeaveClanChatRoom(CSteamAPIContext.GetSteamFriends(), steamIDClan));
 }
Ejemplo n.º 11
0
 public static int GetClanChatMemberCount(CSteamID steamIDClan)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamFriends_GetClanChatMemberCount(CSteamAPIContext.GetSteamFriends(), steamIDClan));
 }
Ejemplo n.º 12
0
 /// <summary>
 /// <para> chat interface for games</para>
 /// <para> this allows in-game access to group (clan) chats from in the game</para>
 /// <para> the behavior is somewhat sophisticated, because the user may or may not be already in the group chat from outside the game or in the overlay</para>
 /// <para> use ActivateGameOverlayToUser( "chat", steamIDClan ) to open the in-game overlay version of the chat</para>
 /// </summary>
 public static SteamAPICall_t JoinClanChatRoom(CSteamID steamIDClan)
 {
     InteropHelp.TestIfAvailableClient();
     return((SteamAPICall_t)NativeMethods.ISteamFriends_JoinClanChatRoom(CSteamAPIContext.GetSteamFriends(), steamIDClan));
 }
Ejemplo n.º 13
0
 public static AppId_t GetFriendCoplayGame(CSteamID steamIDFriend)
 {
     InteropHelp.TestIfAvailableClient();
     return((AppId_t)NativeMethods.ISteamFriends_GetFriendCoplayGame(CSteamAPIContext.GetSteamFriends(), steamIDFriend));
 }
Ejemplo n.º 14
0
 public static CSteamID GetCoplayFriend(int iCoplayFriend)
 {
     InteropHelp.TestIfAvailableClient();
     return((CSteamID)NativeMethods.ISteamFriends_GetCoplayFriend(CSteamAPIContext.GetSteamFriends(), iCoplayFriend));
 }
Ejemplo n.º 15
0
 /// <summary>
 /// <para> activates game overlay to open the remote play together invite dialog. Invitations will be sent for remote play together</para>
 /// </summary>
 public static void ActivateGameOverlayRemotePlayTogetherInviteDialog(CSteamID steamIDLobby)
 {
     InteropHelp.TestIfAvailableClient();
     NativeMethods.ISteamFriends_ActivateGameOverlayRemotePlayTogetherInviteDialog(CSteamAPIContext.GetSteamFriends(), steamIDLobby);
 }
Ejemplo n.º 16
0
 public static bool IsClanChatAdmin(CSteamID steamIDClanChat, CSteamID steamIDUser)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamFriends_IsClanChatAdmin(CSteamAPIContext.GetSteamFriends(), steamIDClanChat, steamIDUser));
 }
Ejemplo n.º 17
0
 /// <summary>
 /// <para> returns the steamID of a user</para>
 /// <para> iFriend is a index of range [0, GetFriendCount())</para>
 /// <para> iFriendsFlags must be the same value as used in GetFriendCount()</para>
 /// <para> the returned CSteamID can then be used by all the functions below to access details about the user</para>
 /// </summary>
 public static CSteamID GetFriendByIndex(int iFriend, EFriendFlags iFriendFlags)
 {
     InteropHelp.TestIfAvailableClient();
     return((CSteamID)NativeMethods.ISteamFriends_GetFriendByIndex(CSteamAPIContext.GetSteamFriends(), iFriend, iFriendFlags));
 }
Ejemplo n.º 18
0
 public static bool CloseClanChatWindowInSteam(CSteamID steamIDClanChat)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamFriends_CloseClanChatWindowInSteam(CSteamAPIContext.GetSteamFriends(), steamIDClanChat));
 }
Ejemplo n.º 19
0
 /// <summary>
 /// <para> returns a relationship to a user</para>
 /// </summary>
 public static EFriendRelationship GetFriendRelationship(CSteamID steamIDFriend)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamFriends_GetFriendRelationship(CSteamAPIContext.GetSteamFriends(), steamIDFriend));
 }
Ejemplo n.º 20
0
 /// <summary>
 /// <para> peer-to-peer chat interception</para>
 /// <para> this is so you can show P2P chats inline in the game</para>
 /// </summary>
 public static bool SetListenForFriendsMessages(bool bInterceptEnabled)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamFriends_SetListenForFriendsMessages(CSteamAPIContext.GetSteamFriends(), bInterceptEnabled));
 }
Ejemplo n.º 21
0
 /// <summary>
 /// <para> returns true if the friend is actually in a game, and fills in pFriendGameInfo with an extra details</para>
 /// </summary>
 public static bool GetFriendGamePlayed(CSteamID steamIDFriend, out FriendGameInfo_t pFriendGameInfo)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamFriends_GetFriendGamePlayed(CSteamAPIContext.GetSteamFriends(), steamIDFriend, out pFriendGameInfo));
 }
Ejemplo n.º 22
0
 public static SteamAPICall_t IsFollowing(CSteamID steamID)
 {
     InteropHelp.TestIfAvailableClient();
     return((SteamAPICall_t)NativeMethods.ISteamFriends_IsFollowing(CSteamAPIContext.GetSteamFriends(), steamID));
 }
Ejemplo n.º 23
0
 /// <summary>
 /// <para> friends steam level</para>
 /// </summary>
 public static int GetFriendSteamLevel(CSteamID steamIDFriend)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamFriends_GetFriendSteamLevel(CSteamAPIContext.GetSteamFriends(), steamIDFriend));
 }
Ejemplo n.º 24
0
 public static SteamAPICall_t EnumerateFollowingList(uint unStartIndex)
 {
     InteropHelp.TestIfAvailableClient();
     return((SteamAPICall_t)NativeMethods.ISteamFriends_EnumerateFollowingList(CSteamAPIContext.GetSteamFriends(), unStartIndex));
 }
Ejemplo n.º 25
0
 /// <summary>
 /// <para> returns the friends group ID for the given index (invalid indices return k_FriendsGroupID_Invalid)</para>
 /// </summary>
 public static FriendsGroupID_t GetFriendsGroupIDByIndex(int iFG)
 {
     InteropHelp.TestIfAvailableClient();
     return((FriendsGroupID_t)NativeMethods.ISteamFriends_GetFriendsGroupIDByIndex(CSteamAPIContext.GetSteamFriends(), iFG));
 }
Ejemplo n.º 26
0
 public static bool IsClanOfficialGameGroup(CSteamID steamIDClan)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamFriends_IsClanOfficialGameGroup(CSteamAPIContext.GetSteamFriends(), steamIDClan));
 }
Ejemplo n.º 27
0
 /// <summary>
 /// <para> returns the number of members in a given friends group</para>
 /// </summary>
 public static int GetFriendsGroupMembersCount(FriendsGroupID_t friendsGroupID)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamFriends_GetFriendsGroupMembersCount(CSteamAPIContext.GetSteamFriends(), friendsGroupID));
 }
Ejemplo n.º 28
0
 /// <summary>
 /// <para>/ Return the number of chats (friends or chat rooms) with unread messages.</para>
 /// <para>/ A "priority" message is one that would generate some sort of toast or</para>
 /// <para>/ notification, and depends on user settings.</para>
 /// <para>/</para>
 /// <para>/ You can register for UnreadChatMessagesChanged_t callbacks to know when this</para>
 /// <para>/ has potentially changed.</para>
 /// </summary>
 public static int GetNumChatsWithUnreadPriorityMessages()
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamFriends_GetNumChatsWithUnreadPriorityMessages(CSteamAPIContext.GetSteamFriends()));
 }
Ejemplo n.º 29
0
 /// <summary>
 /// <para> returns true if the specified user meets any of the criteria specified in iFriendFlags</para>
 /// <para> iFriendFlags can be the union (binary or, |) of one or more k_EFriendFlags values</para>
 /// </summary>
 public static bool HasFriend(CSteamID steamIDFriend, EFriendFlags iFriendFlags)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamFriends_HasFriend(CSteamAPIContext.GetSteamFriends(), steamIDFriend, iFriendFlags));
 }
Ejemplo n.º 30
0
 /// <summary>
 /// <para> Requests rich presence for a specific user.</para>
 /// </summary>
 public static void RequestFriendRichPresence(CSteamID steamIDFriend)
 {
     InteropHelp.TestIfAvailableClient();
     NativeMethods.ISteamFriends_RequestFriendRichPresence(CSteamAPIContext.GetSteamFriends(), steamIDFriend);
 }