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
windowSecondsfloat
Properties
NowTick
Latest tick seen; rates are measured up to it.
public int NowTick { get; }
Property Value
TickSeconds
public float TickSeconds { get; }
Property Value
TotalRate
public float TotalRate { get; }
Property Value
Window
public DpsWindow Window { get; }
Property Value
WindowSeconds
public float WindowSeconds { get; }
Property Value
Methods
Add(int, int, DamageChannel, float)
public void Add(int tick, int slot, DamageChannel channel, float amount)
Parameters
tickintslotintchannelDamageChannelamountfloat
Advance(int)
public void Advance(int tick)
Parameters
tickint
ChannelRate(int, DamageChannel)
public float ChannelRate(int slot, DamageChannel channel)
Parameters
slotintchannelDamageChannel
Returns
Reset(int, float)
public void Reset(int startTick, float tickSeconds)
Parameters
SetWindowSeconds(float)
Changes the window length; takes effect at the next Reset(int, float).
public void SetWindowSeconds(float seconds)
Parameters
secondsfloat
Share(int)
Fraction 0–1 of all damage in the window that came from slot.
public float Share(int slot)
Parameters
slotint
Returns
SlotRate(int)
public float SlotRate(int slot)
Parameters
slotint
Returns
Slots(List<int>)
Slots that ever reported damage this run, ascending, unsourced (-1) first when present.
public void Slots(List<int> into)