2using System.Runtime.CompilerServices;
61 FriendshipRequested = 0x02,
65 RequestingFriendship = 0x80,
66 RequestingInfo = 0x100,
68 IgnoredFriend = 0x400,
84 [MethodImpl(MethodImplOptions.InternalCall)]
87 [MethodImpl(MethodImplOptions.InternalCall)]
95 [MethodImpl(MethodImplOptions.InternalCall)]
96 private static extern int INTERNAL_GetPersonaState();
100 return INTERNAL_GetSmallFriendAvatar(ref steamID);
105 return INTERNAL_GetMediumFriendAvatar(ref steamID);
110 return INTERNAL_GetLargeFriendAvatar(ref steamID);
113 [MethodImpl(MethodImplOptions.InternalCall)]
114 private static extern int INTERNAL_GetSmallFriendAvatar(ref
User.
SteamID steamID);
116 [MethodImpl(MethodImplOptions.InternalCall)]
117 private static extern int INTERNAL_GetMediumFriendAvatar(ref
User.
SteamID steamID);
119 [MethodImpl(MethodImplOptions.InternalCall)]
120 private static extern int INTERNAL_GetLargeFriendAvatar(ref
User.
SteamID steamID);
124 INTERNAL_ActivateGameOverlay((
int)dialogType);
129 INTERNAL_ActivateGameOverlayToUser((
int)dialogType, ref steamID);
134 INTERNAL_ActivateGameOverlayToWebPage(url, (
int)mode);
137 [MethodImpl(MethodImplOptions.InternalCall)]
138 private static extern void INTERNAL_ActivateGameOverlay(
int dialogType);
140 [MethodImpl(MethodImplOptions.InternalCall)]
141 private static extern void INTERNAL_ActivateGameOverlayToUser(
int dialogType, ref
User.
SteamID steamID);
143 [MethodImpl(MethodImplOptions.InternalCall)]
144 private static extern void INTERNAL_ActivateGameOverlayToWebPage(
string url,
int mode);
146 [MethodImpl(MethodImplOptions.InternalCall)]
151 INTERNAL_CloseClanChatWindowInSteam(ref
id);
154 [MethodImpl(MethodImplOptions.InternalCall)]
155 private static extern void INTERNAL_CloseClanChatWindowInSteam(ref
User.
SteamID id);
159 return INTERNAL_GetFriendCount((
int)flags);
164 INTERNAL_GetFriendByIndex((
int)flags, index, out
User.
SteamID steamID);
169 [MethodImpl(MethodImplOptions.InternalCall)]
170 private static extern int INTERNAL_GetFriendCount(
int flags);
172 [MethodImpl(MethodImplOptions.InternalCall)]
173 private static extern void INTERNAL_GetFriendByIndex(
int flags,
int index, out
User.
SteamID steamID);
177 return INTERNAL_GetFriendPersonaName(ref steamID);
182 return (
PersonaState)INTERNAL_GetFriendPersonaState(ref steamID);
185 [MethodImpl(MethodImplOptions.InternalCall)]
186 private static extern string INTERNAL_GetFriendPersonaName(ref
User.
SteamID steamID);
188 [MethodImpl(MethodImplOptions.InternalCall)]
189 private static extern int INTERNAL_GetFriendPersonaState(ref
User.
SteamID steamID);
193 return INTERNAL_GetFriendCoplayGame(ref steamID);
196 [MethodImpl(MethodImplOptions.InternalCall)]
197 private static extern UInt32 INTERNAL_GetFriendCoplayGame(ref
User.
SteamID steamID);
204 [MethodImpl(MethodImplOptions.InternalCall)]
205 private static extern int INTERNAL_GetFriendRelationship(ref
User.
SteamID steamID);
209 return INTERNAL_GetFriendRichPresenceKeyCount(ref steamID);
212 [MethodImpl(MethodImplOptions.InternalCall)]
213 private static extern int INTERNAL_GetFriendRichPresenceKeyCount(ref
User.
SteamID steamID);
217 return INTERNAL_GetFriendRichPresenceKeyByIndex(ref steamID, index);
220 [MethodImpl(MethodImplOptions.InternalCall)]
221 private static extern string INTERNAL_GetFriendRichPresenceKeyByIndex(ref
User.
SteamID steamID,
int index);
225 return INTERNAL_GetFriendRichPresence(ref steamID, key);
228 [MethodImpl(MethodImplOptions.InternalCall)]
229 private static extern string INTERNAL_GetFriendRichPresence(ref
User.
SteamID steamID,
string key);
231 private static void RunAvatarImageLoadedCallbacks(
User.
SteamID steamID,
int image,
int width,
int height)
236 private static void RunGameOverlayActivatedCallbacks(
bool active)
static string GetFriendPersonaName(User.SteamID steamID)
static PersonaState GetPersonaState()
delegate void AvatarImageLoaded(User.SteamID steamID, int image, int width, int height)
static int GetFriendRichPresenceKeyCount(User.SteamID steamID)
static string GetFriendRichPresenceKeyByIndex(User.SteamID steamID, int index)
ActivateGameOverlayToWebPageMode
static void ActivateGameOverlayToUser(OverlayUserDialogType dialogType, User.SteamID steamID)
static void ActivateGameOverlayToWebPage(string url, ActivateGameOverlayToWebPageMode mode)
static User.SteamID GetFriendByIndex(FriendFlags flags, int index)
delegate void GameOverlayActivated(bool active)
static bool RequestUserInformation(User.SteamID steamIDUser, bool requireNameOnly)
static FriendRelationship GetFriendRelationship(User.SteamID steamID)
static UInt32 GetFriendCoplayGame(User.SteamID steamID)
static GameOverlayActivated OnGameOverlayActivated
static int GetMediumFriendAvatar(User.SteamID steamID)
static int GetSmallFriendAvatar(User.SteamID steamID)
static int GetFriendCount(FriendFlags flags)
static void ClearRichPresence()
static void ActivateGameOverlay(OverlayDialogType dialogType)
static string GetFriendRichPresence(User.SteamID steamID, string key)
static int GetLargeFriendAvatar(User.SteamID steamID)
static string GetPersonaName()
static AvatarImageLoaded OnAvatarImageLoaded
static PersonaState GetFriendPersonaState(User.SteamID steamID)
static void CloseClanChatWindowInSteam(User.SteamID id)