Table of Contents

Interface ICommandMessages

Namespace
Core.Commands
Assembly
Core.dll

Optional interface for commands that provide custom messages. Commands without this use generic "executed successfully" / "failed validation". Replaces reflection-based message lookup (zero-alloc for commands that don't implement this).

public interface ICommandMessages

Methods

GetSuccessMessage(GameState)

string GetSuccessMessage(GameState gameState)

Parameters

gameState GameState

Returns

string

GetValidationError(GameState)

string GetValidationError(GameState gameState)

Parameters

gameState GameState

Returns

string