Table of Contents

Struct WaitForNextSimulate

Namespace
Gravitas.Support
Assembly
Gravitas.dll

A coroutine yield instruction that waits until the next Gravitas simulation frame.

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

Constructors

WaitForNextSimulate(GravitasWorldContext)

Creates an instruction that waits until the context advances to another simulation frame.

public WaitForNextSimulate(GravitasWorldContext context)

Parameters

context GravitasWorldContext

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()