Table of Contents

Class PlayerCommandBase

Namespace
Shard.Gameplay.Universe.World.Commands
Assembly
Shard.Gameplay.Universe.dll

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

name string
description string
aliases string[]

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

context CommandContext
player Player
world World
store World
avatar Entity

ExecuteAsync(CommandContext, CancellationToken)

public override sealed ValueTask ExecuteAsync(CommandContext context, CancellationToken cancellationToken)

Parameters

context CommandContext
cancellationToken CancellationToken

Returns

ValueTask