Struct ClientCommand<T>
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
TThe 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
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
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
Session
Which session sent it.
public SessionId Session { get; }
Property Value
Value
The decoded command.
public T Value { get; }
Property Value
- T