Table of Contents

Struct WaitForRealSeconds

Namespace
Gravitas.Support
Assembly
Gravitas.dll

A coroutine yield instruction that waits for a specified duration on the owning context's deterministic clock.

public readonly struct WaitForRealSeconds : ILockedYieldInstruction, IEnumerator, IDisposable
Implements
Inherited Members

Constructors

WaitForRealSeconds(GravitasWorldContext, Fixed64)

Creates an instruction that waits for a nonnegative duration on the context's deterministic clock.

public WaitForRealSeconds(GravitasWorldContext context, Fixed64 seconds)

Parameters

context GravitasWorldContext
seconds Fixed64

Properties

Context

Gets the deterministic world context that owns this instruction's clock.

public GravitasWorldContext Context { get; }

Property Value

GravitasWorldContext

Current

public object? Current { get; }

Property Value

object

KeepWaiting

Indicates if coroutine should be kept suspended.

public bool KeepWaiting { get; }

Property Value

bool

Methods

Dispose()

public void Dispose()

MoveNext()

public bool MoveNext()

Returns

bool

Reset()

public void Reset()