Table of Contents

Class PlayerGameStatsComponent

Namespace
Uncreated.Warfare.Stats
Assembly
Uncreated.Warfare.dll
public class PlayerGameStatsComponent : IPlayerComponent, IDisposable, ILeaderboardRow
Inheritance
PlayerGameStatsComponent
Implements
Inherited Members

Properties

LongestShot

public LongestShot LongestShot { get; set; }

Property Value

LongestShot

Player

public WarfarePlayer Player { get; }

Property Value

WarfarePlayer

Stats

This array is the stats of the player's active team. This gets switched out to a different array when they change teams.

public double[] Stats { get; }

Property Value

double[]

Methods

AddToStat(int, double)

public void AddToStat(int index, double value)

Parameters

index int
value double

AddToStat(int, int)

public void AddToStat(int index, int value)

Parameters

index int
value int

AddToStat(string?, double)

public void AddToStat(string? statName, double value)

Parameters

statName string
value double

AddToStat(string?, int)

public void AddToStat(string? statName, int value)

Parameters

statName string
value int

GetStatValue(LeaderboardPhaseStatInfo)

public double GetStatValue(LeaderboardPhaseStatInfo stat)

Parameters

stat LeaderboardPhaseStatInfo

Returns

double