AttachUgc

This commit is contained in:
Garry Newman 2019-04-17 10:39:58 +01:00
parent ddd5cc03f3
commit 934bd2154a
2 changed files with 19 additions and 0 deletions

View File

@ -47,6 +47,16 @@ public struct Leaderboard
return LeaderboardUpdate.From( r.Value );
}
/// <summary>
/// Attaches a piece of user generated content the user's entry on a leaderboard
/// </summary>
public async Task<Result> AttachUgc( Ugc file )
{
var r = await SteamUserStats.Internal.AttachLeaderboardUGC( Id, file.Handle );
if ( !r.HasValue ) return Result.Fail;
return r.Value.Result;
}
/// <summary>
/// Used to query for a sequential range of leaderboard entries by leaderboard Sort.

View File

@ -0,0 +1,9 @@
using System.Linq;
namespace Steamworks.Data
{
public struct Ugc
{
internal UGCHandle_t Handle;
}
}