Skip to main content

DamageDebugDisplay.DamageHolder

A private class in Root.Township, the global namespace. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.

Debug text for one player's last three attacks: damage, type and the follow, direction and weight factors.

Constructors​

MemberWhat it is
DamageHolder()Creates a DamageDebugDisplay.DamageHolder with default values.

Fields​

2 private and internal fields
MemberWhat it is
private const string formatFormat string for an attack line.
private Queue<string> lastAttacksThe last three attack lines.

Properties​

MemberWhat it is
bool HasChanged { get; private set; }True after an attack was added, until Text is read.
string Text { get; }The stored attack lines joined. Reading it clears HasChanged.

Methods​

MemberWhat it is
void AddAttack(float damage, float followValue, float followMultiplier, float directionValue, float directionMultiplier, float weight, float weightPenalty, string dmgType)Adds a formatted line for an attack, keeping only the last three.
void Clean()Clears the stored attacks.

Used in​

Members of other types that take, return or hold a DamageHolder: