Class UnitSandbox.Result

Namespace
TDMaker.Editor
Assembly
TDMaker.Editor.dll

Outcome of a headless run.

public sealed class UnitSandbox.Result
Inheritance
UnitSandbox.Result
Inherited Members

Constructors

Result()

public Result()

Fields

AverageKill

Kill times from spawn (seconds): average, fastest, slowest (NaN when nothing died).

public double AverageKill

Field Value

double

CompanionRefills

Companions that arrived, and how many of them refilled a slot that had held one before.

public int CompanionRefills

Field Value

int

CompanionsSpawned

Companions that arrived, and how many of them refilled a slot that had held one before.

public int CompanionsSpawned

Field Value

int

DamageToEnemies

Health removed from enemies.

public double DamageToEnemies

Field Value

double

DamageToFriendly

Health removed from friendly units (soldiers and heroes).

public double DamageToFriendly

Field Value

double

Error

Bake or run error, or null.

public string Error

Field Value

string

FastestKill

Kill times from spawn (seconds): average, fastest, slowest (NaN when nothing died).

public double FastestKill

Field Value

double

FriendlyDeaths

Deaths of friendly soldiers and heroes.

public int FriendlyDeaths

Field Value

int

GoldEarned

Gold earned from kills.

public int GoldEarned

Field Value

int

Killed

Enemies spawned (including split-offs), killed, leaked.

public int Killed

Field Value

int

Leaked

Enemies spawned (including split-offs), killed, leaked.

public int Leaked

Field Value

int

LivesLost

Lives lost.

public int LivesLost

Field Value

int

MinesThrown

Mines thrown by mine fields, and traps or mines that went off.

public int MinesThrown

Field Value

int

Phase

Final phase (Running when the time limit was hit).

public GamePhase Phase

Field Value

GamePhase

RemainsRaised

Bodies reserved by raise casts, and units raised from them.

public int RemainsRaised

Field Value

int

RemainsReserved

Bodies reserved by raise casts, and units raised from them.

public int RemainsReserved

Field Value

int

Seconds

Game seconds simulated.

public double Seconds

Field Value

double

SlowestKill

Kill times from spawn (seconds): average, fastest, slowest (NaN when nothing died).

public double SlowestKill

Field Value

double

Sources

Damage by source, largest first.

public List<UnitSandbox.SourceRow> Sources

Field Value

List<UnitSandbox.SourceRow>

Spawned

Enemies spawned (including split-offs), killed, leaked.

public int Spawned

Field Value

int

StateHash

Final core state hash (equal for equal inputs).

public ulong StateHash

Field Value

ulong

TrapsTriggered

Mines thrown by mine fields, and traps or mines that went off.

public int TrapsTriggered

Field Value

int

UnitsDowned

Same-unit falls (each is not a kill) and finished rises (returns, successors and raised units).

public int UnitsDowned

Field Value

int

UnitsRisen

Same-unit falls (each is not a kill) and finished rises (returns, successors and raised units).

public int UnitsRisen

Field Value

int

Properties

HasReleaseMechanics

Whether any mine, companion, return or raise event happened.

public bool HasReleaseMechanics { get; }

Property Value

bool

Outcome

The verdict of the run: Held only when nothing leaked and no life was lost; Leaked as soon as one enemy got through (even though the test level, with its spare lives, ends in victory); TimeLimit when enemies were still alive at the limit.

public UnitSandbox.Verdict Outcome { get; }

Property Value

UnitSandbox.Verdict

Remaining

Enemies still alive when the run stopped (time limit).

public int Remaining { get; }

Property Value

int

Summary

One line for the verdict, for example "Leaked 10 of 10 (lives lost 20)" or "Held: all 10 stopped".

public string Summary { get; }

Property Value

string

Methods

ToString()

Multi-line report.

public override string ToString()

Returns

string