Interface ICommandMessages
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
gameStateGameState
Returns
- string
GetValidationError(GameState)
string GetValidationError(GameState gameState)
Parameters
gameStateGameState
Returns
- string