Interface ICondition
Provides access to conditions (generally player state). You can check whether a player is in combat, mounted, etc.
Assembly: Dalamud.dll
View Source
public interface ICondition
Properties
MaxEntries
Gets the current max number of conditions.
View Source
int MaxEntries { get; }
Address
Gets the condition array base pointer.
View Source
nint Address { get; }
this[int]
Check the value of a specific condition/state flag.
View Source
bool this[int flag] { get; }
this[ConditionFlag]
Check the value of a specific condition/state flag.
View Source
bool this[ConditionFlag flag] { get; }
Methods
AsReadOnlySet()
Convert the conditions array to a set of all set condition flags.
View Source
IReadOnlySet<ConditionFlag> AsReadOnlySet()
Returns
System.Collections.Generic.IReadOnlySet<Dalamud.Game.ClientState.Conditions.ConditionFlag>
: Returns a set.### Any()
Check if any condition flags are set.
View Source
bool Any()
Returns
System.Boolean
: Whether any single flag is set.### Any(params ConditionFlag[])
Check if any provided condition flags are set.
View Source
bool Any(params ConditionFlag[] flags)
Returns
System.Boolean
: Whether any single provided flag is set.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.ClientState.Conditions.ConditionFlag[] | flags | The condition flags to check. |
AnyExcept(params ConditionFlag[])
Check that the specified condition flags are not present in the current conditions.
View Source
bool AnyExcept(params ConditionFlag[] except)
Returns
System.Boolean
: Returns false if any of the listed conditions are present, true otherwise.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.ClientState.Conditions.ConditionFlag[] | except | The array of flags to check. |
OnlyAny(params ConditionFlag[])
Check that only any of the condition flags specified are set.
View Source
bool OnlyAny(params ConditionFlag[] other)
Returns
System.Boolean
: Returns a bool.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.ClientState.Conditions.ConditionFlag[] | other | The array of flags to check. |
EqualTo(params ConditionFlag[])
Check that only the specified flags are set. Unlike Dalamud.Plugin.Services.ICondition.OnlyAny(Dalamud.Game.ClientState.Conditions.ConditionFlag%5b%5d)
, this method requires that all the
specified flags are set and no others are present.
View Source
bool EqualTo(params ConditionFlag[] other)
Returns
System.Boolean
: Returns a bool.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.ClientState.Conditions.ConditionFlag[] | other | The array of flags to check. |
Events
ConditionChange
Event that gets fired when a condition is set. Should only get fired for actual changes, so the previous value will always be !value.
View Source
event ICondition.ConditionChangeDelegate? ConditionChange