Struct CharacterData
Character data transfer object.
public struct CharacterData : IVersioned<CharacterData>
- Implements
- Inherited Members
- Extension Methods
Constructors
CharacterData(long, string, string, string, bool, long, string, long, string, float, float, float, long, float, float, float, float, float, float, float, int, int, float, float, float, float, float, float, float, byte, bool, int, long, DateTime, DateTime)
Initializes a new instance of the CharacterData struct.
public CharacterData(long id, string name, string nameLowercase, string account, bool selected, long worldServerID, string sceneName, long sceneHandle, string bindScene, float bindX, float bindY, float bindZ, long instanceID, float instanceX, float instanceY, float instanceZ, float instanceRotX, float instanceRotY, float instanceRotZ, float instanceRotW, int raceID, int modelIndex, float x, float y, float z, float rotX, float rotY, float rotZ, float rotW, byte accessLevel, bool online, int flags, long version, DateTime timeCreated, DateTime lastSaved)
Parameters
idlongnamestringnameLowercasestringaccountstringselectedboolworldServerIDlongsceneNamestringsceneHandlelongbindScenestringbindXfloatbindYfloatbindZfloatinstanceIDlonginstanceXfloatinstanceYfloatinstanceZfloatinstanceRotXfloatinstanceRotYfloatinstanceRotZfloatinstanceRotWfloatraceIDintmodelIndexintxfloatyfloatzfloatrotXfloatrotYfloatrotZfloatrotWfloataccessLevelbyteonlineboolflagsintversionlongtimeCreatedDateTimelastSavedDateTime
Fields
AccessLevel
Access level for permissions.
public readonly byte AccessLevel
Field Value
Account
Account name that owns this character.
public readonly string Account
Field Value
BindScene
Bind point scene name.
public readonly string BindScene
Field Value
BindX
Bind point position X.
public readonly float BindX
Field Value
BindY
Bind point position Y.
public readonly float BindY
Field Value
BindZ
Bind point position Z.
public readonly float BindZ
Field Value
Flags
Character state flags.
public readonly int Flags
Field Value
ID
Primary key.
public readonly long ID
Field Value
InstanceID
Instance ID (0 if over-world).
public readonly long InstanceID
Field Value
InstanceRotW
Instance spawn rotation W.
public readonly float InstanceRotW
Field Value
InstanceRotX
Instance spawn rotation X.
public readonly float InstanceRotX
Field Value
InstanceRotY
Instance spawn rotation Y.
public readonly float InstanceRotY
Field Value
InstanceRotZ
Instance spawn rotation Z.
public readonly float InstanceRotZ
Field Value
InstanceX
Instance spawn position X.
public readonly float InstanceX
Field Value
InstanceY
Instance spawn position Y.
public readonly float InstanceY
Field Value
InstanceZ
Instance spawn position Z.
public readonly float InstanceZ
Field Value
LastSaved
Timestamp of last save.
public readonly DateTime LastSaved
Field Value
ModelIndex
Character model index.
public readonly int ModelIndex
Field Value
Name
Character display name.
public readonly string Name
Field Value
NameLowercase
Lowercase copy of name for lookups.
public readonly string NameLowercase
Field Value
Online
Whether the character is currently online.
public readonly bool Online
Field Value
RaceID
Character race template ID.
public readonly int RaceID
Field Value
RotW
World rotation W.
public readonly float RotW
Field Value
RotX
World rotation X.
public readonly float RotX
Field Value
RotY
World rotation Y.
public readonly float RotY
Field Value
RotZ
World rotation Z.
public readonly float RotZ
Field Value
SceneHandle
Current scene handle.
public readonly long SceneHandle
Field Value
SceneName
Current scene name.
public readonly string SceneName
Field Value
Selected
Whether this is the active character.
public readonly bool Selected
Field Value
TimeCreated
Timestamp when character was created.
public readonly DateTime TimeCreated
Field Value
Version
Optimistic concurrency version.
public readonly long Version
Field Value
WorldServerID
World server ID this character belongs to.
public readonly long WorldServerID
Field Value
X
World position X.
public readonly float X
Field Value
Y
World position Y.
public readonly float Y
Field Value
Z
World position Z.
public readonly float Z
Field Value
Methods
WithFlagsVersionAndTimestamp(int, long, DateTime)
public CharacterData WithFlagsVersionAndTimestamp(int flags, long version, DateTime lastSaved)
Parameters
Returns
WithVersion(long)
Returns a new instance of this DTO with the specified version. Used by extension methods to create incremented copies.
public CharacterData WithVersion(long newVersion)
Parameters
newVersionlongThe new version value.
Returns
- CharacterData
A new instance with the updated version.