Interface IClientState
This class represents the state of the game client at the time of access.
Assembly: Dalamud.dll
View Source
public interface IClientState
Properties
ClientLanguage
Gets the language of the client.
View Source
ClientLanguage ClientLanguage { get; }
TerritoryType
Gets the current Territory the player resides in.
View Source
ushort TerritoryType { get; }
MapId
Gets the current Map the player resides in.
View Source
uint MapId { get; }
LocalPlayer
Gets the local player character, if one is present.
View Source
IPlayerCharacter? LocalPlayer { get; }
LocalContentId
Gets the content ID of the local character.
View Source
ulong LocalContentId { get; }
IsLoggedIn
Gets a value indicating whether a character is logged in.
View Source
bool IsLoggedIn { get; }
IsPvP
Gets a value indicating whether or not the user is playing PvP.
View Source
bool IsPvP { get; }
IsPvPExcludingDen
Gets a value indicating whether or not the user is playing PvP, excluding the Wolves' Den.
View Source
bool IsPvPExcludingDen { get; }
IsGPosing
Gets a value indicating whether the client is currently in Group Pose (GPose) mode.
View Source
bool IsGPosing { get; }
Methods
IsClientIdle(out ConditionFlag)
Check whether the client is currently "idle". This means a player is not logged in, or is notctively in combat or doing anything that we may not want to disrupt.
View Source
bool IsClientIdle(out ConditionFlag blockingFlag)
Returns
System.Boolean
: Returns true if the client is idle, false otherwise.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.ClientState.Conditions.ConditionFlag | blockingFlag | An outvar containing the first observed condition blocking the "idle" state. 0 if idle. |
IsClientIdle()
Check whether the client is currently "idle". This means a player is not logged in, or is notctively in combat or doing anything that we may not want to disrupt.
View Source
bool IsClientIdle()
Returns
System.Boolean
: Returns true if the client is idle, false otherwise.## Events
TerritoryChanged
Event that gets fired when the current Territory changes.
View Source
event Action<ushort> TerritoryChanged
Event Type
System.Action<System.UInt16>
ClassJobChanged
Event that fires when a characters ClassJob changed.
View Source
event IClientState.ClassJobChangeDelegate? ClassJobChanged
Event Type
Dalamud.Plugin.Services.IClientState.ClassJobChangeDelegate
LevelChanged
Event that fires when <em>any</em> character level changes, including levels for a not-currently-active ClassJob (e.g. PvP matches, DoH/DoL).
View Source
event IClientState.LevelChangeDelegate? LevelChanged
Event Type
Dalamud.Plugin.Services.IClientState.LevelChangeDelegate
Login
Event that fires when a character is logging in, and the local character object is available.
View Source
event Action Login
Event Type
System.Action
Logout
Event that fires when a character is logging out.
View Source
event Action Logout
Event Type
System.Action
EnterPvP
Event that fires when a character is entering PvP.
View Source
event Action EnterPvP
Event Type
System.Action
LeavePvP
Event that fires when a character is leaving PvP.
View Source
event Action LeavePvP
Event Type
System.Action
CfPop
Event that gets fired when a duty is ready.
View Source
event Action<ContentFinderCondition> CfPop
Event Type
System.Action<Lumina.Excel.GeneratedSheets.ContentFinderCondition>