Restructuring of the files

This commit is contained in:
2025-02-25 12:58:41 +02:00
parent 8a25503432
commit b37fd411c6
154 changed files with 5 additions and 12 deletions

View File

@@ -0,0 +1,31 @@
using System.Linq;
namespace Facepunch.Steamworks.Data
{
public struct LeaderboardEntry
{
public Friend User;
public int GlobalRank;
public int Score;
public int[] Details;
// UGCHandle_t m_hUGC
internal static LeaderboardEntry From( LeaderboardEntry_t e, int[] detailsBuffer )
{
var r = new LeaderboardEntry
{
User = new Friend( e.SteamIDUser ),
GlobalRank = e.GlobalRank,
Score = e.Score,
Details = null
};
if ( e.CDetails > 0 )
{
r.Details = detailsBuffer.Take( e.CDetails ).ToArray();
}
return r;
}
}
}