Table of Contents

Delegate CommandPrecheck<T>

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

A stateless, syntactic check run on the transport thread before a command ever reaches the tick.

public delegate bool CommandPrecheck<T>(in T command) where T : unmanaged

Parameters

command T

The decoded command.

Returns

bool

true to let the command through.

Type Parameters

T

The command type.

Remarks

It sees no engine data, deliberately: semantic validation — cooldowns, ownership, range against the current world — belongs in the system that applies the command, where the state it must agree with actually is. This rejects the impossible, not the disallowed.

Constructors

CommandPrecheck(object, nint)

public CommandPrecheck(object @object, nint method)

Parameters

object object
method nint

Methods

BeginInvoke(in T, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(in T command, AsyncCallback callback, object @object)

Parameters

command T
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(in T, IAsyncResult)

public virtual bool EndInvoke(in T command, IAsyncResult result)

Parameters

command T
result IAsyncResult

Returns

bool

Invoke(in T)

public virtual bool Invoke(in T command)

Parameters

command T

Returns

bool