Data Structures

Enums and Structs for chat data

The MP_ChatSystem uses standardized structures to ensure absolute memory safety and O(1) serialization performance across the network. These are defined in MP_ChatData.h.

Enum: EMP_ChatChannel

Defines standard channel types:

  • Global
  • Team
  • Party
  • Private
  • System
  • Admin

Enum: EMP_MessageState

Tracks the state of a message:

  • Normal
  • Edited
  • Deleted

Struct: FMP_ChatRoomDesc

Configuration for creating a room.

PropertyTypeDescription
RoomIDStringThe unique identifier key.
RoomNameStringDisplay name.
CreatorPlayerIDStringNetwork ID of the creator.
ChannelTypeEMP_ChatChannelCategorization.
bPersistentBooleanIf true, the room saves to disk.
bAdminOnlyBooleanIf true, only admins can send messages.
MaxMessagesIntegerHard limit on buffer size (0 = unlimited).

Struct: FMP_ChatMessage

The actual message payload replicated to clients. (FastArray Item)

PropertyTypeDescription
MessageIDStringUnique identifier.
SenderIDStringSender's Network ID.
SenderNameStringSender's display name.
MessageTextStringThe text body.
TimestampInt64Server-synced time.
MessageStateEMP_MessageStateNormal, Edited, or Deleted.