This commit is contained in:
goaaats 2021-12-09 18:49:40 +01:00
parent a110cfc59b
commit 4fe92a59a0
No known key found for this signature in database
GPG key ID: F18F057873895461
5 changed files with 89 additions and 10 deletions

View file

@ -0,0 +1,28 @@
namespace Dalamud.Game.ClientState.JobGauge.Enums
{
/// <summary>
/// MNK Chakra types.
/// </summary>
public enum Chakra : byte
{
/// <summary>
/// No card.
/// </summary>
NONE = 0,
/// <summary>
/// The Coeurl chakra.
/// </summary>
COEURL = 1,
/// <summary>
/// The Raptor chakra.
/// </summary>
RAPTOR = 2,
/// <summary>
/// The Opo-Opo chakra.
/// </summary>
OPOOPO = 3,
}
}

View file

@ -0,0 +1,26 @@
using System;
namespace Dalamud.Game.ClientState.JobGauge.Enums
{
/// <summary>
/// MNK Nadi types.
/// </summary>
[Flags]
public enum Nadi : byte
{
/// <summary>
/// No card.
/// </summary>
NONE = 0,
/// <summary>
/// The Lunar nadi.
/// </summary>
LUNAR = 2,
/// <summary>
/// The Solar nadi.
/// </summary>
SOLAR = 4,
}
}

View file

@ -70,10 +70,5 @@ namespace Dalamud.Game.ClientState.JobGauge.Types
/// </summary>
/// <returns><c>true</c> or <c>false</c>.</returns>
public bool IsParadoxActive => this.Struct->ParadoxActive;
/// <summary>
/// Gets a value indicating which kind of Enochian is active.
/// </summary>
public EnochianFlags EnochianFlags => this.Struct->EnochianFlags;
}
}

View file

@ -1,5 +1,7 @@
using System;
using FFXIVClientStructs.FFXIV.Client.Game.Gauge;
using System.Linq;
using Dalamud.Game.ClientState.JobGauge.Enums;
namespace Dalamud.Game.ClientState.JobGauge.Types
{
@ -18,13 +20,21 @@ namespace Dalamud.Game.ClientState.JobGauge.Types
}
/// <summary>
/// Gets the number of Chakra available, per Chakra type.
/// Gets the types of Chakra available.
/// </summary>
public ChakraType[] Chakra => this.Struct->CurrentChakra;
/// <remarks>
/// This will always return an array of size 3, inactive Chakra are represented by <see cref="Chakra.NONE"/>.
/// </remarks>
public Chakra[] Chakra => this.Struct->CurrentChakra.Select(c => (Chakra)c).ToArray();
/// <summary>
/// Gets the kind of Nadi available.
/// Gets the types of Nadi available.
/// </summary>
public NadiFlags Nadi => this.Struct->Nadi;
public Nadi Nadi => (Nadi)this.Struct->Nadi;
/// <summary>
/// Gets the time remaining that Blitz is active.
/// </summary>
public ushort BlitzTimeRemaining => this.Struct->BlitzTimeRemaining;
}
}

View file

@ -20,5 +20,25 @@ namespace Dalamud.Game.ClientState.JobGauge.Types
/// Gets the amount of Soul available.
/// </summary>
public byte Soul => this.Struct->Soul;
/// <summary>
/// Gets the amount of Shroud available.
/// </summary>
public byte Shroud => this.Struct->Shroud;
/// <summary>
/// Gets the time remaining that Enshrouded is active.
/// </summary>
public ushort EnshroudedTimeRemaining => this.Struct->EnshroudedTimeRemaining;
/// <summary>
/// Gets the amount of Lemure Shroud available.
/// </summary>
public byte LemureShroud => this.Struct->LemureShroud;
/// <summary>
/// Gets the amount of Void Shroud available.
/// </summary>
public byte VoidShroud => this.Struct->VoidShroud;
}
}