Table of Contents

Struct CharacterPortalData

Namespace
FishMMO.Database.Data
Assembly
FishMMO-DB.dll

One page of the portals a character has activated for themselves in one scene: a 64-bit mask where bit N is portal page * 64 + N.

public struct CharacterPortalData
Inherited Members

Remarks

The same shape as CharacterWaypointData, for the same reasons: an activation is a bit, set once and never cleared, read together on login and merged on save. Only portals scoped per character land here; a portal opened for the whole world is a row of WorldPortalStateData instead.

Merge, not replace. The write is mask | EXCLUDED.mask, so retries and two scene servers writing during a transfer converge on the union, and there is no version column to reject a stale write with.

Constructors

CharacterPortalData(long, string, short, ulong)

public CharacterPortalData(long characterID, string sceneName, short page, ulong mask)

Parameters

characterID long
sceneName string
page short
mask ulong

Fields

CharacterID

Character that activated the portals.

public readonly long CharacterID

Field Value

long

Mask

The activated bits of that page.

public readonly ulong Mask

Field Value

ulong

Page

Which 64-portal page of the scene this row holds.

public readonly short Page

Field Value

short

SceneName

The scene the portals stand in.

public readonly string SceneName

Field Value

string