Class DpsMeterModel

Namespace
SurvivorsMaker.Presentation
Assembly
SurvivorsMaker.Presentation.dll

Live damage per second per weapon slot (and the unsourced line, slot UnsourcedSlot), split by DamageChannel, over a sliding window of the current wave.

public sealed class DpsMeterModel
Inheritance
DpsMeterModel
Inherited Members

Constructors

DpsMeterModel(float)

public DpsMeterModel(float windowSeconds = 5)

Parameters

windowSeconds float

Properties

NowTick

Latest tick seen; rates are measured up to it.

public int NowTick { get; }

Property Value

int

TickSeconds

public float TickSeconds { get; }

Property Value

float

TotalRate

public float TotalRate { get; }

Property Value

float

Window

public DpsWindow Window { get; }

Property Value

DpsWindow

WindowSeconds

public float WindowSeconds { get; }

Property Value

float

Methods

Add(int, int, DamageChannel, float)

public void Add(int tick, int slot, DamageChannel channel, float amount)

Parameters

tick int
slot int
channel DamageChannel
amount float

Advance(int)

public void Advance(int tick)

Parameters

tick int

ChannelRate(int, DamageChannel)

public float ChannelRate(int slot, DamageChannel channel)

Parameters

slot int
channel DamageChannel

Returns

float

Reset(int, float)

public void Reset(int startTick, float tickSeconds)

Parameters

startTick int
tickSeconds float

SetWindowSeconds(float)

Changes the window length; takes effect at the next Reset(int, float).

public void SetWindowSeconds(float seconds)

Parameters

seconds float

Share(int)

Fraction 0–1 of all damage in the window that came from slot.

public float Share(int slot)

Parameters

slot int

Returns

float

SlotRate(int)

public float SlotRate(int slot)

Parameters

slot int

Returns

float

Slots(List<int>)

Slots that ever reported damage this run, ascending, unsourced (-1) first when present.

public void Slots(List<int> into)

Parameters

into List<int>