Class CharacterEntity
Database entity representing a player character.
public class CharacterEntity : IVersionedEntity
- Inheritance
-
CharacterEntity
- Implements
- Inherited Members
Properties
Abilities
Navigation collection of character ability entries.
public ICollection<CharacterAbilityEntity> Abilities { get; set; }
Property Value
AccessLevel
Access level / permission tier for this character.
public byte AccessLevel { get; set; }
Property Value
Account
Account name that owns this character.
public string Account { get; set; }
Property Value
Achievements
Navigation collection of character achievements.
public ICollection<CharacterAchievementEntity> Achievements { get; set; }
Property Value
Archetypes
Navigation collection of character archetype entries.
public ICollection<CharacterArchetypeEntity> Archetypes { get; set; }
Property Value
Attributes
Navigation collection of character attribute entries.
public ICollection<CharacterAttributeEntity> Attributes { get; set; }
Property Value
BindScene
Bind point scene name.
public string BindScene { get; set; }
Property Value
BindX
Bind point world position X.
Uses float for Unity Vector3 compatibility.
public float BindX { get; set; }
Property Value
BindY
Bind point world position Y.
public float BindY { get; set; }
Property Value
BindZ
Bind point world position Z.
public float BindZ { get; set; }
Property Value
Buffs
Navigation collection of active character buffs.
public ICollection<CharacterBuffEntity> Buffs { get; set; }
Property Value
Deleted
Soft delete flag.
public bool Deleted { get; set; }
Property Value
Faction
Navigation collection of character faction standings.
public ICollection<CharacterFactionEntity> Faction { get; set; }
Property Value
Flags
Character flags bitmask (e.g. for status effects or customization flags).
public int Flags { get; set; }
Property Value
Friends
Navigation collection of character friend entries.
public ICollection<CharacterFriendEntity> Friends { get; set; }
Property Value
Guild
Navigation reference to the guild membership record.
public CharacterGuildEntity Guild { get; set; }
Property Value
ID
Primary key.
public long ID { get; set; }
Property Value
InstanceID
Instance ID of the current instance the character occupies (0 if over-world).
public long InstanceID { get; set; }
Property Value
InstanceRotW
Instance spawn rotation W component (quaternion).
public float InstanceRotW { get; set; }
Property Value
InstanceRotX
Instance spawn rotation X component.
public float InstanceRotX { get; set; }
Property Value
InstanceRotY
Instance spawn rotation Y component.
public float InstanceRotY { get; set; }
Property Value
InstanceRotZ
Instance spawn rotation Z component.
public float InstanceRotZ { get; set; }
Property Value
InstanceX
Instance spawn position X.
Uses float for Unity Vector3 compatibility.
public float InstanceX { get; set; }
Property Value
InstanceY
Instance spawn position Y.
public float InstanceY { get; set; }
Property Value
InstanceZ
Instance spawn position Z.
public float InstanceZ { get; set; }
Property Value
ItemCooldowns
Navigation collection of character item cooldowns.
public ICollection<CharacterItemCooldownEntity> ItemCooldowns { get; set; }
Property Value
Items
Navigation collection of every item this character owns, across all containers.
public ICollection<CharacterItemEntity> Items { get; set; }
Property Value
Remarks
Replaces the separate Inventory, Equipment and Bank collections; the container an item sits in is now a column on the row rather than a choice of table.
KnownAbilities
Navigation collection of character known ability entries.
public ICollection<CharacterKnownAbilityEntity> KnownAbilities { get; set; }
Property Value
LastChannelSwitchUtc
When this character last switched open-world channel (UTC), or MinValue if it never has.
public DateTime LastChannelSwitchUtc { get; set; }
Property Value
Remarks
Persisted rather than held in memory because a channel switch is implemented as a disconnect: the character is released here and re-routed by the world server, quite possibly to a different scene server. Any cooldown kept per connection — or even per process — is therefore reset by the very act it is meant to limit, and only ever throttles switches that failed. This is the only place the limit can live and still mean anything.
LastSaved
Timestamp of the last save operation (UTC).
public DateTime LastSaved { get; set; }
Property Value
LockReason
Why it was locked, as staff wrote it.
public string? LockReason { get; set; }
Property Value
LockedAt
When the current lock was placed.
public DateTime? LockedAt { get; set; }
Property Value
LockedBy
The staff account that placed the lock.
public string? LockedBy { get; set; }
Property Value
LockedUntil
When a staff character lock lapses (UTC), or null when the character is not locked.
public DateTime? LockedUntil { get; set; }
Property Value
Remarks
A lock keeps the character out of the world while staff work on it: character select refuses it and a scene server that holds it kicks it. The lock is in force only while this instant is in the future, so an expired lock needs nothing to clear it.
There is deliberately no lock without an end. A forgotten permanent lock strands a player with no message they can act on; an operator who needs longer extends it on purpose.
ModelIndex
Character model/prefab index.
public int ModelIndex { get; set; }
Property Value
MuteReason
What the operator gave as the reason for the mute.
public string? MuteReason { get; set; }
Property Value
Muted
Whether this one character is muted in chat.
public bool Muted { get; set; }
Property Value
Remarks
Beside the account's own mute rather than instead of it: a character mute leaves the player's other characters able to talk, which is the proportionate answer when only one of them was the problem. MutedUntil null with this set means no end. Never written by the save path, whose UPDATE names its columns explicitly.
MutedBy
Account of the operator who applied the mute. Not a foreign key, deliberately.
public string? MutedBy { get; set; }
Property Value
MutedUntil
When the character's mute lifts (UTC), or null for a mute with no end.
public DateTime? MutedUntil { get; set; }
Property Value
Name
Character display name.
public string Name { get; set; }
Property Value
Remarks
[COLLATE NOCASE for case insensitive compare. this way we can't both create 'Archer' and 'archer' as characters] note: the collation has been added in the DbContext OnModelCreating function since the Postgres provider doesn't support collations via attributes
NameLowercase
Lowercase copy of Name for case-insensitive lookups.
public string NameLowercase { get; set; }
Property Value
Party
Navigation reference to the party membership record.
public CharacterPartyEntity Party { get; set; }
Property Value
PetBuffs
Navigation collection of pet buff entries.
public ICollection<CharacterPetBuffEntity> PetBuffs { get; set; }
Property Value
Pets
Navigation reference to the character's pet.
public ICollection<CharacterPetEntity> Pets { get; set; }
Property Value
Quests
Navigation collection of character quest progress entries.
public ICollection<CharacterQuestEntity> Quests { get; set; }
Property Value
RaceID
Character race template ID.
public int RaceID { get; set; }
Property Value
RotW
Current rotation W component (quaternion).
public float RotW { get; set; }
Property Value
RotX
Current rotation X component.
public float RotX { get; set; }
Property Value
RotY
Current rotation Y component.
public float RotY { get; set; }
Property Value
RotZ
Current rotation Z component.
public float RotZ { get; set; }
Property Value
SceneHandle
Current scene handle the character is in.
public long SceneHandle { get; set; }
Property Value
SceneName
Current scene name the character is in.
public string SceneName { get; set; }
Property Value
Selected
Whether this character is the currently selected/active character for the account.
public bool Selected { get; set; }
Property Value
SessionLeaseExpiresUtc
Lease expiry timestamp for dead-server recovery. A server should extend this periodically while it still owns the character.
public DateTime SessionLeaseExpiresUtc { get; set; }
Property Value
SessionOwnerServerId
Current owning Scene Server instance ID (0 means unowned).
public long SessionOwnerServerId { get; set; }
Property Value
SessionOwnerToken
Ownership token that changes every successful claim (Guid.Empty means unowned). Used to prevent stale releases/transitions.
public Guid SessionOwnerToken { get; set; }
Property Value
SessionState
Distributed session state used to coordinate ownership/claims across servers.
public CharacterSessionState SessionState { get; set; }
Property Value
Skills
Navigation collection of character skill entries.
public ICollection<CharacterSkillEntity> Skills { get; set; }
Property Value
TimeCreated
Row creation timestamp (UTC).
public DateTime TimeCreated { get; set; }
Property Value
TimeDeleted
Timestamp when the character was soft-deleted (UTC), or null if not deleted.
public DateTime? TimeDeleted { get; set; }
Property Value
Version
Concurrency version for optimistic locking.
public long Version { get; set; }
Property Value
WorldServerID
World server ID this character belongs to.
public long WorldServerID { get; set; }
Property Value
X
Current world position X.
Uses float for direct compatibility with Unity's Vector3.
Precision is approximately 1.5 cm at 10 km from origin; suitable
for most game worlds but may exhibit jitter past ~100 km.
public float X { get; set; }
Property Value
Y
Current world position Y.
public float Y { get; set; }
Property Value
Z
Current world position Z.
public float Z { get; set; }