Class PlayerCommandBase
Command that runs one synchronous body against the invoking Player's current avatar.
public abstract class PlayerCommandBase : AsyncCommandBase, IAsyncCommand, ICommand
- Inheritance
-
PlayerCommandBase
- Implements
- Derived
- Inherited Members
Remarks
Dispatch enters the exact captured World before calling Execute(CommandContext, Player, World, World, Entity). The Store and Entity are borrowed for that call only and must not be retained or used by asynchronous work.
Constructors
PlayerCommandBase(string, string, params string[])
Command that runs one synchronous body against the invoking Player's current avatar.
protected PlayerCommandBase(string name, string description, params string[] aliases)
Parameters
Remarks
Dispatch enters the exact captured World before calling Execute(CommandContext, Player, World, World, Entity). The Store and Entity are borrowed for that call only and must not be retained or used by asynchronous work.
Methods
Execute(CommandContext, Player, World, World, Entity)
protected abstract void Execute(CommandContext context, Player player, World world, World store, Entity avatar)
Parameters
contextCommandContextplayerPlayerworldWorldstoreWorldavatarEntity
ExecuteAsync(CommandContext, CancellationToken)
public override sealed ValueTask ExecuteAsync(CommandContext context, CancellationToken cancellationToken)
Parameters
contextCommandContextcancellationTokenCancellationToken