Class ClientState
This class represents the state of the game client at the time of access.
Inheritance
Implements
Inherited Members
Namespace: Dalamud.Game.ClientState
Assembly: Dalamud.dll
Syntax
public class ClientState : INotifyPropertyChanged, IDisposable
Constructors
| Improve this Doc View SourceClientState(Dalamud, DalamudStartInfo, SigScanner)
Set up client state access.
Declaration
public ClientState(Dalamud dalamud, DalamudStartInfo startInfo, SigScanner scanner)
Parameters
| Type | Name | Description |
|---|---|---|
| Dalamud | dalamud | Dalamud instance |
| DalamudStartInfo | startInfo | StartInfo of the current Dalamud launch |
| SigScanner | scanner | Sig scanner |
Fields
| Improve this Doc View SourceActors
The table of all present actors.
Declaration
public readonly ActorTable Actors
Field Value
| Type | Description |
|---|---|
| ActorTable |
ClientLanguage
Declaration
public readonly ClientLanguage ClientLanguage
Field Value
| Type | Description |
|---|---|
| ClientLanguage |
Condition
Provides access to client conditions/player state. Allows you to check if a player is in a duty, mounted, etc.
Declaration
public Condition Condition
Field Value
| Type | Description |
|---|---|
| Condition |
JobGauges
The class facilitating Job Gauge data access
Declaration
public JobGauges JobGauges
Field Value
| Type | Description |
|---|---|
| JobGauges |
KeyState
Provides access to the keypress state of keyboard keys in game.
Declaration
public KeyState KeyState
Field Value
| Type | Description |
|---|---|
| KeyState |
PartyList
The class facilitating party list data access
Declaration
public PartyList PartyList
Field Value
| Type | Description |
|---|---|
| PartyList |
Targets
The class facilitating target data access
Declaration
public Targets Targets
Field Value
| Type | Description |
|---|---|
| Targets |
TerritoryChanged
Event that gets fired when the current Territory changes.
Declaration
public EventHandler<ushort> TerritoryChanged
Field Value
| Type | Description |
|---|---|
| System.EventHandler<System.UInt16> |
TerritoryType
The current Territory the player resides in.
Declaration
public ushort TerritoryType
Field Value
| Type | Description |
|---|---|
| System.UInt16 |
Properties
| Improve this Doc View SourceIsLoggedIn
Gets a value indicating whether a character is logged in.
Declaration
public bool IsLoggedIn { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
LocalContentId
The content ID of the local character.
Declaration
public ulong LocalContentId { get; }
Property Value
| Type | Description |
|---|---|
| System.UInt64 |
LocalPlayer
The local player character, if one is present.
Declaration
[CanBeNull]
public PlayerCharacter LocalPlayer { get; }
Property Value
| Type | Description |
|---|---|
| PlayerCharacter |
Methods
| Improve this Doc View SourceDispose()
Declaration
public void Dispose()
Enable()
Declaration
public void Enable()
Events
| Improve this Doc View SourceCfPop
Event that gets fired when a duty is ready.
Declaration
public event EventHandler<ContentFinderCondition> CfPop
Event Type
| Type | Description |
|---|---|
| System.EventHandler<Lumina.Excel.GeneratedSheets.ContentFinderCondition> |
OnLogin
Event that fires when a character is logging in.
Declaration
public event EventHandler OnLogin
Event Type
| Type | Description |
|---|---|
| System.EventHandler |
OnLogout
Event that fires when a character is logging out.
Declaration
public event EventHandler OnLogout
Event Type
| Type | Description |
|---|---|
| System.EventHandler |
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
| Type | Description |
|---|---|
| System.ComponentModel.PropertyChangedEventHandler |