Struct PendingChatPersist
- Namespace
- FishMMO.Server.Core.World.SceneServer
- Assembly
- FishMMO.Server.dll
Immutable struct for a chat message pending batch DB persistence. Captured on the main or async thread, consumed on the periodic flush background thread. Stores the receive timestamp as ticks to avoid DateTime allocation on the hot path; converted to DateTime only at the DB boundary.
public readonly struct PendingChatPersist
- Inherited Members
Constructors
PendingChatPersist(long, string, string, long, ChatChannel, string, long)
Initializes a new pending chat persist entry for batch DB persistence.
public PendingChatPersist(long characterId, string characterName, string accountName, long worldServerId, ChatChannel channel, string message, long receivedTicks)
Parameters
characterIdlongThe character identifier.
characterNamestringThe character name.
accountNamestringThe account name.
worldServerIdlongThe world server identifier.
channelChatChannelThe chat channel.
messagestringThe chat message content.
receivedTickslongUTC timestamp in ticks when the message was received.
Fields
AccountName
The account name associated with this chat message.
public readonly string AccountName
Field Value
Channel
The chat channel this message was sent to.
public readonly ChatChannel Channel
Field Value
CharacterId
The character identifier associated with this chat message.
public readonly long CharacterId
Field Value
CharacterName
The character name associated with this chat message.
public readonly string CharacterName
Field Value
Message
The chat message content.
public readonly string Message
Field Value
ReceivedTicks
UTC timestamp in ticks when the message was received by the server.
public readonly long ReceivedTicks
Field Value
WorldServerId
The world server identifier that received this chat message.
public readonly long WorldServerId