mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
merge #709
This commit is contained in:
parent
a110cfc59b
commit
4fe92a59a0
5 changed files with 89 additions and 10 deletions
28
Dalamud/Game/ClientState/JobGauge/Enums/Chakra.cs
Normal file
28
Dalamud/Game/ClientState/JobGauge/Enums/Chakra.cs
Normal 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,
|
||||
}
|
||||
}
|
||||
26
Dalamud/Game/ClientState/JobGauge/Enums/Nadi.cs
Normal file
26
Dalamud/Game/ClientState/JobGauge/Enums/Nadi.cs
Normal 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,
|
||||
}
|
||||
}
|
||||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue