mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
add(DRKGauge): Add DeliriumComboStep, and its enum DeliriumStep (#2198)
This commit is contained in:
parent
82dd4629cb
commit
23c87015b6
2 changed files with 35 additions and 1 deletions
19
Dalamud/Game/ClientState/JobGauge/Enums/DeliriumStep.cs
Normal file
19
Dalamud/Game/ClientState/JobGauge/Enums/DeliriumStep.cs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
namespace Dalamud.Game.ClientState.JobGauge.Enums;
|
||||
|
||||
public enum DeliriumStep
|
||||
{
|
||||
/// <summary>
|
||||
/// Scarlet Delirium can be used.
|
||||
/// </summary>
|
||||
SCARLET_DELIRIUM = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Comeuppance can be used.
|
||||
/// </summary>
|
||||
COMEUPPANCE = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Torcleaver can be used.
|
||||
/// </summary>
|
||||
TORCLEAVER = 2,
|
||||
}
|
||||
|
|
@ -1,9 +1,12 @@
|
|||
using Dalamud.Game.ClientState.JobGauge.Enums;
|
||||
using FFXIVClientStructs.FFXIV.Client.Game.Gauge;
|
||||
|
||||
namespace Dalamud.Game.ClientState.JobGauge.Types;
|
||||
|
||||
/// <summary>
|
||||
/// In-memory DRK job gauge.
|
||||
/// </summary>
|
||||
public unsafe class DRKGauge : JobGaugeBase<FFXIVClientStructs.FFXIV.Client.Game.Gauge.DarkKnightGauge>
|
||||
public unsafe class DRKGauge : JobGaugeBase<DarkKnightGauge>
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="DRKGauge"/> class.
|
||||
|
|
@ -34,4 +37,16 @@ public unsafe class DRKGauge : JobGaugeBase<FFXIVClientStructs.FFXIV.Client.Game
|
|||
/// </summary>
|
||||
/// <returns><c>true</c> or <c>false</c>.</returns>
|
||||
public bool HasDarkArts => this.Struct->DarkArtsState > 0;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the step of the Delirium Combo (Scarlet Delirium, Comeuppance,
|
||||
/// Torcleaver) that the player is on.<br/>
|
||||
/// Does not in any way consider whether the player is still under Delirium, or
|
||||
/// if the player still has stacks of Delirium to use.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Value will persist until combo is finished OR
|
||||
/// if the combo is not completed then the value will stay until about halfway into Delirium's cooldown.
|
||||
/// </remarks>
|
||||
public DeliriumStep DeliriumComboStep => (DeliriumStep)this.Struct->DeliriumStep;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue