Table of Contents

Class CharacterAdminData

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

A character as an operator needs to see it.

public sealed class CharacterAdminData
Inheritance
CharacterAdminData
Inherited Members

Remarks

Deliberately not CharacterData. That type is the game's transfer shape and carries neither the soft-delete columns nor the session lease, because the game never loads a deleted character and a server already knows whether it holds the lease itself. An operator needs exactly those two things: whether the row is deleted, and whether somebody is holding it.

It carries no sub-entity data. Attributes, items and the rest are separate queries, and loading them for a list of search results would be a join per row for data no list shows.

Properties

AccessLevel

The character's own access level, separate from the account's.

public byte AccessLevel { get; set; }

Property Value

byte

Account

Owning account name.

public string Account { get; set; }

Property Value

string

BindScene

Respawn scene.

public string BindScene { get; set; }

Property Value

string

Deleted

Whether the row is soft-deleted.

public bool Deleted { get; set; }

Property Value

bool

ID

Primary key.

public long ID { get; set; }

Property Value

long

LastSaved

When the row was last written.

public DateTime LastSaved { get; set; }

Property Value

DateTime

LockReason

Why it was locked.

public string? LockReason { get; set; }

Property Value

string

LockedAt

When the lock was placed.

public DateTime? LockedAt { get; set; }

Property Value

DateTime?

LockedBy

The staff account that placed the lock.

public string? LockedBy { get; set; }

Property Value

string

LockedUntil

When the staff lock lapses (UTC), or null when none was placed. Past means not in force.

public DateTime? LockedUntil { get; set; }

Property Value

DateTime?

Name

Display name, with the deletion marker stripped when the row is deleted.

public string Name { get; set; }

Property Value

string

RaceID

Race template ID. The panel has no template table, so it shows the ID.

public int RaceID { get; set; }

Property Value

int

SceneName

Current scene.

public string SceneName { get; set; }

Property Value

string

Selected

Whether this is the account's selected character.

public bool Selected { get; set; }

Property Value

bool

SessionLeaseExpiresUtc

When the lease lapses. The epoch means no lease was ever taken.

public DateTime SessionLeaseExpiresUtc { get; set; }

Property Value

DateTime

SessionOwnerServerID

The scene server holding the lease, or 0.

public long SessionOwnerServerID { get; set; }

Property Value

long

SessionState

0 offline, 1 online. Mirrors CharacterSessionState.

public int SessionState { get; set; }

Property Value

int

StoredName

The name as the row actually stores it, which for a deleted character carries the DELETED marker and a GUID. Shown so an operator can tell the two apart.

public string StoredName { get; set; }

Property Value

string

TimeCreated

When the character was created.

public DateTime TimeCreated { get; set; }

Property Value

DateTime

TimeDeleted

When it was soft-deleted, if it was.

public DateTime? TimeDeleted { get; set; }

Property Value

DateTime?

Version

Row version, which the persistence layer moves on every save.

public long Version { get; set; }

Property Value

long

WorldServerID

The world server the character last belonged to.

public long WorldServerID { get; set; }

Property Value

long

X

Position.

public float X { get; set; }

Property Value

float

Y

Position.

public float Y { get; set; }

Property Value

float

Z

Position.

public float Z { get; set; }

Property Value

float