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.
| Property | Type | Description |
|---|---|---|
| RoomID | String | The unique identifier key. |
| RoomName | String | Display name. |
| CreatorPlayerID | String | Network ID of the creator. |
| ChannelType | EMP_ChatChannel | Categorization. |
| bPersistent | Boolean | If true, the room saves to disk. |
| bAdminOnly | Boolean | If true, only admins can send messages. |
| MaxMessages | Integer | Hard limit on buffer size (0 = unlimited). |
Struct: FMP_ChatMessage
The actual message payload replicated to clients. (FastArray Item)
| Property | Type | Description |
|---|---|---|
| MessageID | String | Unique identifier. |
| SenderID | String | Sender's Network ID. |
| SenderName | String | Sender's display name. |
| MessageText | String | The text body. |
| Timestamp | Int64 | Server-synced time. |
| MessageState | EMP_MessageState | Normal, Edited, or Deleted. |