Table of Contents

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

characterId long

The character identifier.

characterName string

The character name.

accountName string

The account name.

worldServerId long

The world server identifier.

channel ChatChannel

The chat channel.

message string

The chat message content.

receivedTicks long

UTC timestamp in ticks when the message was received.

Fields

AccountName

The account name associated with this chat message.

public readonly string AccountName

Field Value

string

Channel

The chat channel this message was sent to.

public readonly ChatChannel Channel

Field Value

ChatChannel

CharacterId

The character identifier associated with this chat message.

public readonly long CharacterId

Field Value

long

CharacterName

The character name associated with this chat message.

public readonly string CharacterName

Field Value

string

Message

The chat message content.

public readonly string Message

Field Value

string

ReceivedTicks

UTC timestamp in ticks when the message was received by the server.

public readonly long ReceivedTicks

Field Value

long

WorldServerId

The world server identifier that received this chat message.

public readonly long WorldServerId

Field Value

long