mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-01 05:13:40 +01:00
feat: add DataManager to plugin interface
This commit is contained in:
parent
0d27e971fc
commit
d447bc7c61
1 changed files with 8 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ using System.Runtime.InteropServices;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Dalamud.Configuration;
|
||||
using Dalamud.Data;
|
||||
using Dalamud.Game;
|
||||
using Dalamud.Game.ClientState;
|
||||
using Dalamud.Game.Command;
|
||||
|
|
@ -39,10 +40,16 @@ namespace Dalamud.Plugin
|
|||
/// </summary>
|
||||
public readonly UiBuilder UiBuilder;
|
||||
|
||||
/// <summary>
|
||||
/// A <see cref="SigScanner">SigScanner</see> instance targeting the main module of the FFXIV process.
|
||||
/// </summary>
|
||||
public readonly SigScanner TargetModuleScanner;
|
||||
|
||||
/// <summary>
|
||||
/// A <see cref="DataManager">DataManager</see> instance which allows you to access game data needed by the main dalamud features.
|
||||
/// </summary>
|
||||
public readonly DataManager Data;
|
||||
|
||||
private readonly Dalamud dalamud;
|
||||
private readonly string pluginName;
|
||||
|
||||
|
|
@ -56,6 +63,7 @@ namespace Dalamud.Plugin
|
|||
this.ClientState = dalamud.ClientState;
|
||||
this.UiBuilder = new UiBuilder(dalamud.InterfaceManager, pluginName);
|
||||
this.TargetModuleScanner = dalamud.SigScanner;
|
||||
this.Data = dalamud.Data;
|
||||
|
||||
this.dalamud = dalamud;
|
||||
this.pluginName = pluginName;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue