Table of Contents

Struct StepResult

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

What a Step(int) ran.

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

Constructors

StepResult(long, long, int, bool)

What a Step(int) ran.

public StepResult(long FirstTick, long LastTick, int Executed, bool Preempted)

Parameters

FirstTick long

The first tick that started after the call, or LastTick + 1 when none did.

LastTick long

The last tick that ran before the boundary that completed the step.

Executed int

How many ticks ran between the call and that boundary: LastTick - FirstTick + 1. More than asked when a later Step added its ticks to this one's (budgets add).

Preempted bool

A Pause(TimeSpan) or a Resume() ended the step before its ticks ran out.

Properties

Executed

How many ticks ran between the call and that boundary: LastTick - FirstTick + 1. More than asked when a later Step added its ticks to this one's (budgets add).

public int Executed { get; init; }

Property Value

int

FirstTick

The first tick that started after the call, or LastTick + 1 when none did.

public long FirstTick { get; init; }

Property Value

long

LastTick

The last tick that ran before the boundary that completed the step.

public long LastTick { get; init; }

Property Value

long

Preempted

A Pause(TimeSpan) or a Resume() ended the step before its ticks ran out.

public bool Preempted { get; init; }

Property Value

bool

Methods

Deconstruct(out long, out long, out int, out bool)

public void Deconstruct(out long FirstTick, out long LastTick, out int Executed, out bool Preempted)

Parameters

FirstTick long
LastTick long
Executed int
Preempted bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

Equals(StepResult)

public bool Equals(StepResult other)

Parameters

other StepResult

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(StepResult, StepResult)

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

Parameters

left StepResult
right StepResult

Returns

bool

operator !=(StepResult, StepResult)

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

Parameters

left StepResult
right StepResult

Returns

bool