TruWorlds

ChatMessageData

Network-serializable payload for a single chat message.

Fields

Guid Guid

Unique identifier for the message; reused across retransmissions of the same logical message.

ExpectedMessageLength int

The expected total length of MessageString, used to size pending placeholders before content arrives.

FromPlayerId int?

The player ID of the sender, or null when the message is system-originated.

MessageString string

The message text. May be truncated to ChatMessage.MAX_MESSAGE_LENGTH characters.

IsPending bool

True while the message is awaiting filter completion or remote delivery.

Color Color3?

Optional display color for the message; defaults to white when null.