mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
SGEGauge: add a Addersgall/Eukrasia
This commit is contained in:
parent
2fecf0d055
commit
f9e71c0023
1 changed files with 40 additions and 0 deletions
40
Dalamud/Game/ClientState/JobGauge/Types/SGEGauge.cs
Normal file
40
Dalamud/Game/ClientState/JobGauge/Types/SGEGauge.cs
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
using System;
|
||||
|
||||
namespace Dalamud.Game.ClientState.JobGauge.Types
|
||||
{
|
||||
/// <summary>
|
||||
/// In-memory SGE job gauge.
|
||||
/// </summary>
|
||||
public unsafe class SGEGauge : JobGaugeBase<FFXIVClientStructs.FFXIV.Client.Game.Gauge.SageGauge>
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="SGEGauge"/> class.
|
||||
/// </summary>
|
||||
/// <param name="address">Address of the job gauge.</param>
|
||||
internal SGEGauge(IntPtr address)
|
||||
: base(address)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the amount of milliseconds elapsed until the next Addersgall is available.
|
||||
/// This counts from 0 to 20_000.
|
||||
/// </summary>
|
||||
public short AddersgallTimer => this.Struct->AddersgallTimer;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the amount of Addersgall available.
|
||||
/// </summary>
|
||||
public byte Addersgall => this.Struct->Addersgall;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the amount of Addersting available.
|
||||
/// </summary>
|
||||
public byte Addersting => this.Struct->Addersting;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether Eukrasia is activated.
|
||||
/// </summary>
|
||||
public bool Eukrasia => this.Struct->Eukrasia == 1;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue