diff --git a/Facepunch.Steamworks/Client/Friends.cs b/Facepunch.Steamworks/Client/Friends.cs index 366473b..82354f2 100644 --- a/Facepunch.Steamworks/Client/Friends.cs +++ b/Facepunch.Steamworks/Client/Friends.cs @@ -71,6 +71,19 @@ namespace Facepunch.Steamworks internal Client Client { get; set; } + /// + /// Returns null if the value doesn't exist + /// + public string GetRichPresence( string key ) + { + var val = Client.native.friends.GetFriendRichPresence( Id, key ); + if ( string.IsNullOrEmpty( val ) ) return null; + return val; + } + + /// + /// Update this friend, request the latest data from Steam's servers + /// public void Refresh() { Name = Client.native.friends.GetFriendPersonaName( Id ); @@ -95,6 +108,8 @@ namespace Facepunch.Steamworks ServerQueryPort = gameInfo.QueryPort; ServerLobbyId = gameInfo.SteamIDLobby; } + + Client.native.friends.RequestFriendRichPresence( Id ); } }