Class WorldCommandBase
Command that runs one synchronous body in the invoking Player's current World.
public abstract class WorldCommandBase : AsyncCommandBase, IAsyncCommand, ICommand
- Inheritance
-
WorldCommandBase
- Implements
- Inherited Members
Remarks
The Store is borrowed for Execute(CommandContext, World, World) only. Explicit World selection for terminal senders is not supported until command argument processing owns a World resolver.
Constructors
WorldCommandBase(string, string, params string[])
Command that runs one synchronous body in the invoking Player's current World.
protected WorldCommandBase(string name, string description, params string[] aliases)
Parameters
Remarks
The Store is borrowed for Execute(CommandContext, World, World) only. Explicit World selection for terminal senders is not supported until command argument processing owns a World resolver.
Methods
Execute(CommandContext, World, World)
protected abstract void Execute(CommandContext context, World world, World store)
Parameters
contextCommandContextworldWorldstoreWorld
ExecuteAsync(CommandContext, CancellationToken)
public override sealed ValueTask ExecuteAsync(CommandContext context, CancellationToken cancellationToken)
Parameters
contextCommandContextcancellationTokenCancellationToken