Table of Contents

Struct CommandBatch<T>.Enumerator

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

Walks a CommandBatch<T>.

public struct CommandBatch<T>.Enumerator
Inherited Members

Properties

Current

The command at the cursor.

public readonly ref readonly ClientCommand<T> Current { get; }

Property Value

ClientCommand<T>

Remarks

A reference into the enumerator itself, so foreach (ref readonly var c in …) binds without a copy at the call site and stays valid exactly as long as foreach keeps it — until the next step.

Methods

MoveNext()

Advances the cursor.

public bool MoveNext()

Returns

bool

false at the end of the batch.