From d98f7fd1fe1b6a61a4d698aaf3dbc5b336a33cde Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Wed, 6 Dec 2017 12:11:37 +0000 Subject: [PATCH] Added Leaderboard.OnBoardInformation callback --- Facepunch.Steamworks/Client/Leaderboard.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Facepunch.Steamworks/Client/Leaderboard.cs b/Facepunch.Steamworks/Client/Leaderboard.cs index 6212da5..5b6c731 100644 --- a/Facepunch.Steamworks/Client/Leaderboard.cs +++ b/Facepunch.Steamworks/Client/Leaderboard.cs @@ -100,6 +100,11 @@ namespace Facepunch.Steamworks return true; } + /// + /// Called when the leaderboard information is successfully recieved from Steam + /// + public Action OnBoardInformation; + internal void OnBoardCreated( LeaderboardFindResult_t result, bool error ) { if ( error || ( result.LeaderboardFound == 0 ) ) @@ -114,6 +119,8 @@ namespace Facepunch.Steamworks { Name = client.native.userstats.GetLeaderboardName( BoardId ); TotalEntries = client.native.userstats.GetLeaderboardEntryCount( BoardId ); + + OnBoardInformation?.Invoke(); } }