Table of Contents

Class LeaderboardSet

Namespace
Uncreated.Warfare.Layouts.UI.Leaderboards
Assembly
Uncreated.Warfare.dll
public class LeaderboardSet
Inheritance
LeaderboardSet
Inherited Members

Constructors

LeaderboardSet(CreateRow, LeaderboardPhaseStatInfo[], IEnumerable<LeaderboardPlayer>, Team)

public LeaderboardSet(LeaderboardSet.CreateRow callback, LeaderboardPhaseStatInfo[] stats, IEnumerable<LeaderboardPlayer> players, Team team)

Parameters

callback LeaderboardSet.CreateRow
stats LeaderboardPhaseStatInfo[]
players IEnumerable<LeaderboardPlayer>
team Team

Fields

ColumnCount

public readonly int ColumnCount

Field Value

int

Players

public readonly LeaderboardPlayer[] Players

Field Value

LeaderboardPlayer[]

Properties

Rows

public LeaderboardSet.LeaderboardRow[] Rows { get; }

Property Value

LeaderboardRow[]

Stats

public LeaderboardPhaseStatInfo[] Stats { get; }

Property Value

LeaderboardPhaseStatInfo[]

Team

public Team Team { get; }

Property Value

Team

VisibleStats

public LeaderboardPhaseStatInfo[] VisibleStats { get; }

Property Value

LeaderboardPhaseStatInfo[]

Methods

GetRowIndex(CSteamID)

public int GetRowIndex(CSteamID player)

Parameters

player CSteamID

Returns

int

GetSortMap(int, bool)

Maps row indices to which row they would show as for a player's UI if sorted by the given column.

public int[] GetSortMap(int visibleStatIndex, bool descending)

Parameters

visibleStatIndex int
descending bool

Returns

int[]

Remarks

Use like this for i in rows: ui = ui.players[invSortMap[rowIndex]];

GetStatisticIndex(string)

public int GetStatisticIndex(string statName)

Parameters

statName string

Returns

int

GetStatisticValue(int, CSteamID)

public double GetStatisticValue(int statIndex, CSteamID player)

Parameters

statIndex int
player CSteamID

Returns

double

GetStatisticValue(string, CSteamID)

public double GetStatisticValue(string statName, CSteamID player)

Parameters

statName string
player CSteamID

Returns

double