Class TierTable

Namespace
SurvivorsMaker.Run
Assembly
SurvivorsMaker.Run.dll

Tier odds by progress (wave in arena mode, level in field mode).

public sealed class TierTable
Inheritance
TierTable
Inherited Members

Constructors

TierTable()

public TierTable()

Fields

BaseTotal

public float BaseTotal

Field Value

float

Higher

Weights for tiers 1, 2, … (tier 0 takes the remainder).

public List<TierWeight> Higher

Field Value

List<TierWeight>

Properties

TierCount

public int TierCount { get; }

Property Value

int

Methods

Roll(int, SimRandom, List<float>)

Rolls a tier (one random draw). Returns 0 when all weights are 0.

public int Roll(int progress, SimRandom random, List<float> scratch)

Parameters

progress int
random SimRandom
scratch List<float>

Returns

int

Weights(int, List<float>)

Fills weights (cleared first) with one weight per tier.

public void Weights(int progress, List<float> weights)

Parameters

progress int
weights List<float>