KernelAPI reference
Class RunPreset
Namespace: MicroEngine.Core
Assembly: MicroEngine.dll
Guide: Game lifecycle and time
Defaults a composition states for the runs it hosts when neither the run (RunOptions) nor the game (Configure) chooses: a stated preset value, never a platform behaviour. A platform offers it as a capability (TryGetCapability``1); the headless platform’s preset is Deterministic, so tests that run a game headless are reproducible with no option. The platform behaves the same whatever the mode the run ends up with.
public sealed record RunPreset : IEquatable<RunPreset>Inheritance
Implements
Constructors
RunPreset()
public RunPreset()Properties
Testing
The preset for testing compositions: one fixed step per frame.
public static RunPreset Testing { get; }Property Value
TimeMode
The time mode of runs that choose none; null leaves the default, real time.
public TimeMode? TimeMode { get; init; }Property Value
Methods
<Clone>$()
public RunPreset <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
obj object?
Returns
Equals(RunPreset?)
public bool Equals(RunPreset? other)Parameters
other RunPreset?
Returns
GetHashCode()
public override int GetHashCode()Returns
ToString()
public override string ToString()Returns
Operators
operator ==(RunPreset?, RunPreset?)
public static bool operator ==(RunPreset? left, RunPreset? right)Parameters
left RunPreset?
right RunPreset?
Returns
operator !=(RunPreset?, RunPreset?)
public static bool operator !=(RunPreset? left, RunPreset? right)Parameters
left RunPreset?
right RunPreset?