KernelAPI reference
Class RunResult
Namespace: MicroEngine.Core
Assembly: MicroEngine.dll
Guide: Game lifecycle and time
How a run ended.
public sealed record RunResult : IEquatable<RunResult>Inheritance
Implements
Constructors
RunResult(long, long, IReadOnlyList<string>, Exception?)
How a run ended.
public RunResult(long Updates, long Frames, IReadOnlyList<string> Captures, Exception? Error)Parameters
Updates long
Fixed updates simulated.
Frames long
Frames rendered.
Captures IReadOnlyList<string>
Paths of the screenshots written by the script, in order.
Error Exception?
The exception that stopped the run, or null when it ended normally.
Properties
Captures
Paths of the screenshots written by the script, in order.
public IReadOnlyList<string> Captures { get; init; }Property Value
Error
The exception that stopped the run, or null when it ended normally.
public Exception? Error { get; init; }Property Value
Frames
Frames rendered.
public long Frames { get; init; }Property Value
Updates
Fixed updates simulated.
public long Updates { get; init; }Property Value
Methods
<Clone>$()
public RunResult <Clone>$()Returns
Deconstruct(out long, out long, out IReadOnlyList<string>, out Exception?)
public void Deconstruct(out long Updates, out long Frames, out IReadOnlyList<string> Captures, out Exception? Error)Parameters
Updates long
Frames long
Captures IReadOnlyList<string>
Error Exception?
Equals(object?)
public override bool Equals(object? obj)Parameters
obj object?
Returns
Equals(RunResult?)
public bool Equals(RunResult? other)Parameters
other RunResult?
Returns
GetHashCode()
public override int GetHashCode()Returns
ToString()
public override string ToString()Returns
Operators
operator ==(RunResult?, RunResult?)
public static bool operator ==(RunResult? left, RunResult? right)Parameters
left RunResult?
right RunResult?
Returns
operator !=(RunResult?, RunResult?)
public static bool operator !=(RunResult? left, RunResult? right)Parameters
left RunResult?
right RunResult?