Table of Contents

Class AsyncWorldCommandBase

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

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

name string
description string
aliases string[]

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

context CommandContext
world World
cancellationToken CancellationToken

Returns

ValueTask

ExecuteAsync(CommandContext, CancellationToken)

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

Parameters

context CommandContext
cancellationToken CancellationToken

Returns

ValueTask