mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-25 14:15:47 +03:00
AttachUgc
This commit is contained in:
parent
ddd5cc03f3
commit
934bd2154a
@ -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.
|
||||
|
9
Facepunch.Steamworks/Structs/Ugc.cs
Normal file
9
Facepunch.Steamworks/Structs/Ugc.cs
Normal file
@ -0,0 +1,9 @@
|
||||
using System.Linq;
|
||||
|
||||
namespace Steamworks.Data
|
||||
{
|
||||
public struct Ugc
|
||||
{
|
||||
internal UGCHandle_t Handle;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user