Table of Contents

Struct ClientCommand<T>

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

One command as a system reads it: who sent it, which of that client's it is, the client frame it belongs to, and its value.

public readonly struct ClientCommand<T> where T : unmanaged

Type Parameters

T

The command's struct, as the application declared it.

Inherited Members

Properties

ClientTick

The client's tick when it produced the batch this command arrived in. Shared by every command of that batch.

public uint ClientTick { get; }

Property Value

uint

Realm

The realm the client held when it built the command (12-realms § 2.5) — the session's realm at ClientTick. A command whose realm-framed field was built in a realm the session has left never arrives (ACK REALM_CHANGED); one without such a field arrives with the realm it was built in, for the application to judge.

public RealmId Realm { get; }

Property Value

RealmId

Seq

The client's sequence number. One space per session across every command type; it wraps, and is compared with RFC 1982 serial arithmetic.

public ushort Seq { get; }

Property Value

ushort

Session

Which session sent it.

public SessionId Session { get; }

Property Value

SessionId

Value

The decoded command.

public T Value { get; }

Property Value

T