Class ClientState
This class represents the state of the game client at the time of access.
Inheritance
System.Object
ClientState
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Dalamud.Game.ClientState
Assembly: Dalamud.dll
Syntax
public sealed class ClientState : IDisposable
Properties
| Improve this Doc View SourceClientLanguage
Gets the language of the client.
Declaration
public ClientLanguage ClientLanguage { get; }
Property Value
| Type | Description |
|---|---|
| ClientLanguage |
IsLoggedIn
Gets a value indicating whether a character is logged in.
Declaration
public bool IsLoggedIn { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
LocalContentId
Gets the content ID of the local character.
Declaration
public ulong LocalContentId { get; }
Property Value
| Type | Description |
|---|---|
| System.UInt64 |
LocalPlayer
Gets the local player character, if one is present.
Declaration
public PlayerCharacter LocalPlayer { get; }
Property Value
| Type | Description |
|---|---|
| PlayerCharacter |
TerritoryType
Gets the current Territory the player resides in.
Declaration
public ushort TerritoryType { get; }
Property Value
| Type | Description |
|---|---|
| System.UInt16 |
Methods
| Improve this Doc View SourceEnable()
Enable this module.
Declaration
public void Enable()
Events
| Improve this Doc View SourceCfPop
Event that gets fired when a duty is ready.
Declaration
public event EventHandler<Lumina.Excel.GeneratedSheets.ContentFinderCondition> CfPop
Event Type
| Type | Description |
|---|---|
| System.EventHandler<Lumina.Excel.GeneratedSheets.ContentFinderCondition> |
Login
Event that fires when a character is logging in.
Declaration
public event EventHandler Login
Event Type
| Type | Description |
|---|---|
| System.EventHandler |
Logout
Event that fires when a character is logging out.
Declaration
public event EventHandler Logout
Event Type
| Type | Description |
|---|---|
| System.EventHandler |
TerritoryChanged
Event that gets fired when the current Territory changes.
Declaration
public event EventHandler<ushort> TerritoryChanged
Event Type
| Type | Description |
|---|---|
| System.EventHandler<System.UInt16> |
Explicit Interface Implementations
| Improve this Doc View SourceIDisposable.Dispose()
Dispose of managed and unmanaged resources.
Declaration
void IDisposable.Dispose()
Implements
System.IDisposable