Table of Contents

Struct RunStateChange

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

A run-state transition, as OnRunStateChanged reports it.

public readonly struct RunStateChange : IEquatable<RunStateChange>
Implements
Inherited Members

Constructors

RunStateChange(RunState, RunState, long, ControlSource)

A run-state transition, as OnRunStateChanged reports it.

public RunStateChange(RunState Previous, RunState Current, long TickNumber, ControlSource Source)

Parameters

Previous RunState

The state before.

Current RunState

The state after.

TickNumber long

The number the next tick to run carries (CurrentTickNumber at the transition).

Source ControlSource

Who caused it.

Properties

Current

The state after.

public RunState Current { get; init; }

Property Value

RunState

Previous

The state before.

public RunState Previous { get; init; }

Property Value

RunState

Source

Who caused it.

public ControlSource Source { get; init; }

Property Value

ControlSource

TickNumber

The number the next tick to run carries (CurrentTickNumber at the transition).

public long TickNumber { get; init; }

Property Value

long

Methods

Deconstruct(out RunState, out RunState, out long, out ControlSource)

public void Deconstruct(out RunState Previous, out RunState Current, out long TickNumber, out ControlSource Source)

Parameters

Previous RunState
Current RunState
TickNumber long
Source ControlSource

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

Equals(RunStateChange)

public bool Equals(RunStateChange other)

Parameters

other RunStateChange

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(RunStateChange, RunStateChange)

public static bool operator ==(RunStateChange left, RunStateChange right)

Parameters

left RunStateChange
right RunStateChange

Returns

bool

operator !=(RunStateChange, RunStateChange)

public static bool operator !=(RunStateChange left, RunStateChange right)

Parameters

left RunStateChange
right RunStateChange

Returns

bool