From 53cb19301364dc5c9105f1140f900de731252254 Mon Sep 17 00:00:00 2001 From: Raymond Date: Fri, 27 Aug 2021 22:02:42 -0400 Subject: [PATCH] DNCGauge break: ulong->uint, feat: expose all steps --- .../Game/ClientState/JobGauge/Types/DNCGauge.cs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Dalamud/Game/ClientState/JobGauge/Types/DNCGauge.cs b/Dalamud/Game/ClientState/JobGauge/Types/DNCGauge.cs index 09c829523..7ae2b7bca 100644 --- a/Dalamud/Game/ClientState/JobGauge/Types/DNCGauge.cs +++ b/Dalamud/Game/ClientState/JobGauge/Types/DNCGauge.cs @@ -31,11 +31,25 @@ namespace Dalamud.Game.ClientState.JobGauge.Types /// public byte CompletedSteps => this.Struct->StepIndex; + /// + /// Gets all the steps in the current dance. + /// + 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; + } + } + /// /// Gets the next step in the current dance. /// /// The next dance step action ID. - public ulong NextStep => (ulong)(15999 + this.Struct->DanceSteps[this.Struct->StepIndex] - 1); + public uint NextStep => 15999u + this.Struct->DanceSteps[this.Struct->StepIndex] - 1; /// /// Gets a value indicating whether the player is dancing or not.