Merge pull request #512 from daemitus/break_dnc_gauge

This commit is contained in:
goaaats 2021-08-28 16:52:05 +02:00 committed by GitHub
commit 6d5d358a04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,11 +31,25 @@ namespace Dalamud.Game.ClientState.JobGauge.Types
/// </summary> /// </summary>
public byte CompletedSteps => this.Struct->StepIndex; public byte CompletedSteps => this.Struct->StepIndex;
/// <summary>
/// Gets all the steps in the current dance.
/// </summary>
public unsafe uint[] Steps
{
get
{
var arr = new uint[4];
for (var i = 0; i < 4; i++)
arr[i] = this.Struct->DanceSteps[i] + 15999u - 1;
return arr;
}
}
/// <summary> /// <summary>
/// Gets the next step in the current dance. /// Gets the next step in the current dance.
/// </summary> /// </summary>
/// <returns>The next dance step action ID.</returns> /// <returns>The next dance step action ID.</returns>
public ulong NextStep => (ulong)(15999 + this.Struct->DanceSteps[this.Struct->StepIndex] - 1); public uint NextStep => 15999u + this.Struct->DanceSteps[this.Struct->StepIndex] - 1;
/// <summary> /// <summary>
/// Gets a value indicating whether the player is dancing or not. /// Gets a value indicating whether the player is dancing or not.