Delegate CommandPrecheck<T>
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
commandTThe decoded command.
Returns
Type Parameters
TThe 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
Methods
BeginInvoke(in T, AsyncCallback, object)
public virtual IAsyncResult BeginInvoke(in T command, AsyncCallback callback, object @object)
Parameters
commandTcallbackAsyncCallbackobjectobject
Returns
EndInvoke(in T, IAsyncResult)
public virtual bool EndInvoke(in T command, IAsyncResult result)
Parameters
commandTresultIAsyncResult
Returns
Invoke(in T)
public virtual bool Invoke(in T command)
Parameters
commandT