acdream/src/AcDream.Runtime/Chat/SendChatCmd.cs

14 lines
554 B
C#

namespace AcDream.Runtime.Chat;
/// <summary>
/// Command published by chat panels to send a message. The host resolves
/// <see cref="Channel"/> + <see cref="TargetName"/> + <see cref="Text"/>
/// into the right wire opcode (Talk, Tell, or ChatChannel) and echoes
/// locally via <c>ChatLog.OnSelfSent</c>.
///
/// <para>
/// <see cref="TargetName"/> is meaningful only for
/// <see cref="ChatChannelKind.Tell"/>; ignored otherwise.
/// </para>
/// </summary>
public sealed record SendChatCmd(ChatChannelKind Channel, string? TargetName, string Text);