This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9e42f92
commit 537c7cc
Showing
6 changed files
with
34 additions
and
82 deletions.
There are no files selected for viewing
Submodule ECommons
updated
14 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using FFXIVClientStructs.FFXIV.Client.System.Framework; | ||
using FFXIVClientStructs.FFXIV.Client.UI.Agent; | ||
using System.Runtime.InteropServices; | ||
|
||
namespace RotationSolver.Basic.Data; | ||
|
||
[StructLayout(LayoutKind.Explicit)] | ||
public unsafe struct Countdown | ||
{ | ||
[FieldOffset(0x28)] public float Timer; | ||
[FieldOffset(0x38)] public byte Active; | ||
[FieldOffset(0x3C)] public uint Initiator; | ||
|
||
public static unsafe Countdown* Instance => (Countdown*)Framework.Instance()->GetUiModule()->GetAgentModule()->GetAgentByInternalId(AgentId.CountDownSettingDialog); | ||
|
||
public static float TimeRemaining | ||
{ | ||
get | ||
{ | ||
var inst = Instance; | ||
return inst->Active != 0 ? inst->Timer : 0; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters