From 406a41f228a7ff547777128096c93a9fc83c5bf1 Mon Sep 17 00:00:00 2001 From: Jason Thompson Date: Thu, 30 Sep 2021 17:50:45 -0500 Subject: [PATCH] Added AdvertiseGame to SteamUsers for use in clients. --- Facepunch.Steamworks/SteamUser.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Facepunch.Steamworks/SteamUser.cs b/Facepunch.Steamworks/SteamUser.cs index e481d84..c9e6016 100644 --- a/Facepunch.Steamworks/SteamUser.cs +++ b/Facepunch.Steamworks/SteamUser.cs @@ -434,6 +434,12 @@ namespace Steamworks /// public static bool IsPhoneRequiringVerification => Internal.BIsPhoneRequiringVerification(); + /// + /// Sets the rich presence data for an unsecured game server that the user is playing on. + /// This allows friends to be able to view the game info and join your game. + /// + public static void AdvertiseGame( SteamId steamId, uint ipServer, ushort portServer ) => Internal.AdvertiseGame( steamId, ipServer, portServer ); + /// /// Requests an application ticket encrypted with the secret "encrypted app ticket key". /// The encryption key can be obtained from the Encrypted App Ticket Key page on the App Admin for your app. @@ -510,4 +516,4 @@ namespace Steamworks return new DurationControl { _inner = response.Value }; } } -} \ No newline at end of file +}