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(); } }