From 23b33043320f8fab07105393a5ae3b1807b2bb4d Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Mon, 24 Feb 2020 13:28:27 +0000 Subject: [PATCH] RequestUserStats to RequestUserStatsAsync --- Facepunch.Steamworks.Test/GameServerStatsTest.cs | 2 +- Facepunch.Steamworks.Test/UserStatsTest.cs | 2 +- Facepunch.Steamworks/SteamServerStats.cs | 2 +- Facepunch.Steamworks/Structs/Friend.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Facepunch.Steamworks.Test/GameServerStatsTest.cs b/Facepunch.Steamworks.Test/GameServerStatsTest.cs index 85dfcea..b1f2cbb 100644 --- a/Facepunch.Steamworks.Test/GameServerStatsTest.cs +++ b/Facepunch.Steamworks.Test/GameServerStatsTest.cs @@ -18,7 +18,7 @@ namespace Steamworks [TestMethod] public async Task GetAchievement() { - var result = await SteamServerStats.RequestUserStats( Garry ); + var result = await SteamServerStats.RequestUserStatsAsync( Garry ); Assert.AreEqual( result, Result.OK ); var value = SteamServerStats.GetAchievement( Garry, "COLLECT_100_WOOD" ); diff --git a/Facepunch.Steamworks.Test/UserStatsTest.cs b/Facepunch.Steamworks.Test/UserStatsTest.cs index 077d5d3..0969447 100644 --- a/Facepunch.Steamworks.Test/UserStatsTest.cs +++ b/Facepunch.Steamworks.Test/UserStatsTest.cs @@ -174,7 +174,7 @@ namespace Steamworks var friend = new Friend( 76561197965732579 ); // Hezzy // Download stats - var status = await friend.RequestUserStats(); + var status = await friend.RequestUserStatsAsync(); Assert.AreNotEqual( false, status ); var deaths = friend.GetStatInt( "deaths" ); diff --git a/Facepunch.Steamworks/SteamServerStats.cs b/Facepunch.Steamworks/SteamServerStats.cs index f848694..2de7b0f 100644 --- a/Facepunch.Steamworks/SteamServerStats.cs +++ b/Facepunch.Steamworks/SteamServerStats.cs @@ -22,7 +22,7 @@ namespace Steamworks /// If the user has no stats will return fail /// these stats will only be auto-updated for clients playing on the server /// - public static async Task RequestUserStats( SteamId steamid ) + public static async Task RequestUserStatsAsync( SteamId steamid ) { var r = await Internal.RequestUserStats( steamid ); if ( !r.HasValue ) return Result.Fail; diff --git a/Facepunch.Steamworks/Structs/Friend.cs b/Facepunch.Steamworks/Structs/Friend.cs index 79b5f64..5be8f94 100644 --- a/Facepunch.Steamworks/Structs/Friend.cs +++ b/Facepunch.Steamworks/Structs/Friend.cs @@ -189,7 +189,7 @@ namespace Steamworks /// Tries to get download the latest user stats /// /// True if successful, False if failure - public async Task RequestUserStats() + public async Task RequestUserStatsAsync() { var result = await SteamUserStats.Internal.RequestUserStats( Id ); return result.HasValue && result.Value.Result == Result.OK;