mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-02 13:53:40 +01:00
Add IJobGauges (#1265)
This commit is contained in:
parent
9ebfbb7871
commit
1d5c3cee11
2 changed files with 28 additions and 9 deletions
21
Dalamud/Plugin/Services/IJobGauges.cs
Normal file
21
Dalamud/Plugin/Services/IJobGauges.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
using Dalamud.Game.ClientState.JobGauge.Types;
|
||||
|
||||
namespace Dalamud.Plugin.Services;
|
||||
|
||||
/// <summary>
|
||||
/// This class converts in-memory Job gauge data to structs.
|
||||
/// </summary>
|
||||
public interface IJobGauges
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the address of the JobGauge data.
|
||||
/// </summary>
|
||||
public nint Address { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Get the JobGauge for a given job.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">A JobGauge struct from ClientState.Structs.JobGauge.</typeparam>
|
||||
/// <returns>A JobGauge.</returns>
|
||||
public T Get<T>() where T : JobGaugeBase;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue