Class Condition
Provides access to conditions (generally player state). You can check whether a player is in combat, mounted, etc.
Inheritance
System.Object
Condition
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.Conditions
Assembly: Dalamud.dll
Syntax
public sealed class Condition : IDisposable
Fields
| Improve this Doc View SourceMaxConditionEntries
The current max number of conditions. You can get this just by looking at the condition sheet and how many rows it has.
Declaration
public const int MaxConditionEntries = 100
Field Value
| Type | Description |
|---|---|
| System.Int32 |
Properties
| Improve this Doc View SourceAddress
Gets the condition array base pointer.
Declaration
public IntPtr Address { get; }
Property Value
| Type | Description |
|---|---|
| System.IntPtr |
Item[ConditionFlag]
Check the value of a specific condition/state flag.
Declaration
public bool this[ConditionFlag flag] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| ConditionFlag | flag |
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Item[Int32]
Check the value of a specific condition/state flag.
Declaration
public bool this[int flag] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | flag | The condition flag to check. |
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Methods
| Improve this Doc View SourceAny()
Check if any condition flags are set.
Declaration
public bool Any()
Returns
| Type | Description |
|---|---|
| System.Boolean | Whether any single flag is set. |
Enable()
Enables the hooks of the Condition class function.
Declaration
public void Enable()
Finalize()
Finalizes an instance of the Condition class.
Declaration
protected void Finalize()
Events
| Improve this Doc View SourceConditionChange
Event that gets fired when a condition is set. Should only get fired for actual changes, so the previous value will always be !value.
Declaration
public event Condition.ConditionChangeDelegate ConditionChange
Event Type
| Type | Description |
|---|---|
| Condition.ConditionChangeDelegate |
Explicit Interface Implementations
| Improve this Doc View SourceIDisposable.Dispose()
Disposes this instance, alongside its hooks.
Declaration
void IDisposable.Dispose()
Implements
System.IDisposable