Class AsyncWorldCommandBase
Asynchronous command requiring the invoking Player's current World.
public abstract class AsyncWorldCommandBase : AsyncCommandBase, IAsyncCommand, ICommand
- Inheritance
-
AsyncWorldCommandBase
- Implements
- Inherited Members
Remarks
Execution begins only after the exact Player world binding is validated. Implementations receive no Store and must enter the World again for each synchronous ECS operation. The method body starts on the World thread, so work before its first incomplete await must remain short. Explicit World selection for terminal senders is not yet supported.
Constructors
AsyncWorldCommandBase(string, string, params string[])
Asynchronous command requiring the invoking Player's current World.
protected AsyncWorldCommandBase(string name, string description, params string[] aliases)
Parameters
Remarks
Execution begins only after the exact Player world binding is validated. Implementations receive no Store and must enter the World again for each synchronous ECS operation. The method body starts on the World thread, so work before its first incomplete await must remain short. Explicit World selection for terminal senders is not yet supported.
Methods
ExecuteAsync(CommandContext, World, CancellationToken)
protected abstract ValueTask ExecuteAsync(CommandContext context, World world, CancellationToken cancellationToken)
Parameters
contextCommandContextworldWorldcancellationTokenCancellationToken
Returns
ExecuteAsync(CommandContext, CancellationToken)
public override sealed ValueTask ExecuteAsync(CommandContext context, CancellationToken cancellationToken)
Parameters
contextCommandContextcancellationTokenCancellationToken