Table of Contents

Delegate ChatCommand

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Delegate for chat commands.

public delegate bool ChatCommand(IPlayerCharacter character, ChatBroadcast msg)

Parameters

character IPlayerCharacter
Delegate for chat commands.
msg ChatBroadcast
Delegate for chat commands.

Returns

bool
Delegate for chat commands.

Remarks

The return value is currently ignored by TryParseCommand(string, IPlayerCharacter, ChatBroadcast): a slash command is consumed and never written to the chat log, whatever it returns. It was documented as "true if the chat message should be written to the database", which was never honoured — persisting a command would need a channel and a sanitized body it does not have. Kept in the signature so every existing command compiles unchanged.