Table of Contents

Struct DamageAmountContext.StepAmountRecord

Namespace
ElectricDrill.AstraHealth.Damage
Assembly
com.electricdrill.astra-health.Runtime.dll

Immutable record representing the damage value before and after a single pipeline phase (identified by the phase type).

public readonly struct DamageAmountContext.StepAmountRecord

Constructors

StepAmountRecord(Type, long, long)

Creates a new record for a phase with the associated before/after values.

public StepAmountRecord(Type stepType, long pre, long post)

Parameters

stepType Type

Phase type.

pre long

Value before the phase.

post long

Value after the phase.

Properties

Post

Damage value immediately after the phase executes.

public long Post { get; }

Property Value

long

Pre

Damage value immediately before the phase executes.

public long Pre { get; }

Property Value

long

StepType

The type that represents the phase (for example, a reduction class). May be null for uninitialized or default records.

public Type StepType { get; }

Property Value

Type

Methods

ToString()

Compact textual representation of the record, useful for logging.

public override string ToString()

Returns

string

String in the format "{TypeName}: {Pre} -> {Post}".