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
CompanionRefills
Companions that arrived, and how many of them refilled a slot that had held one before.
public int CompanionRefills
Field Value
CompanionsSpawned
Companions that arrived, and how many of them refilled a slot that had held one before.
public int CompanionsSpawned
Field Value
DamageToEnemies
Health removed from enemies.
public double DamageToEnemies
Field Value
DamageToFriendly
Health removed from friendly units (soldiers and heroes).
public double DamageToFriendly
Field Value
Error
Bake or run error, or null.
public string Error
Field Value
FastestKill
Kill times from spawn (seconds): average, fastest, slowest (NaN when nothing died).
public double FastestKill
Field Value
FriendlyDeaths
Deaths of friendly soldiers and heroes.
public int FriendlyDeaths
Field Value
GoldEarned
Gold earned from kills.
public int GoldEarned
Field Value
Killed
Enemies spawned (including split-offs), killed, leaked.
public int Killed
Field Value
Leaked
Enemies spawned (including split-offs), killed, leaked.
public int Leaked
Field Value
LivesLost
Lives lost.
public int LivesLost
Field Value
MinesThrown
Mines thrown by mine fields, and traps or mines that went off.
public int MinesThrown
Field Value
Phase
Final phase (Running when the time limit was hit).
public GamePhase Phase
Field Value
RemainsRaised
Bodies reserved by raise casts, and units raised from them.
public int RemainsRaised
Field Value
RemainsReserved
Bodies reserved by raise casts, and units raised from them.
public int RemainsReserved
Field Value
Seconds
Game seconds simulated.
public double Seconds
Field Value
SlowestKill
Kill times from spawn (seconds): average, fastest, slowest (NaN when nothing died).
public double SlowestKill
Field Value
Sources
Damage by source, largest first.
public List<UnitSandbox.SourceRow> Sources
Field Value
Spawned
Enemies spawned (including split-offs), killed, leaked.
public int Spawned
Field Value
StateHash
Final core state hash (equal for equal inputs).
public ulong StateHash
Field Value
TrapsTriggered
Mines thrown by mine fields, and traps or mines that went off.
public int TrapsTriggered
Field Value
UnitsDowned
Same-unit falls (each is not a kill) and finished rises (returns, successors and raised units).
public int UnitsDowned
Field Value
UnitsRisen
Same-unit falls (each is not a kill) and finished rises (returns, successors and raised units).
public int UnitsRisen
Field Value
Properties
HasReleaseMechanics
Whether any mine, companion, return or raise event happened.
public bool HasReleaseMechanics { get; }
Property Value
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
Remaining
Enemies still alive when the run stopped (time limit).
public int Remaining { get; }
Property Value
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
Methods
ToString()
Multi-line report.
public override string ToString()