-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Plugin.cs
37 lines (31 loc) · 886 Bytes
/
Plugin.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using Dalamud.Plugin;
namespace Huntly;
public sealed class Plugin : IDalamudPlugin
{
public static string Name = "Huntly";
public static HashSet<IDisposable> Disposable = new HashSet<IDisposable>();
public Plugin(
IDalamudPluginInterface Interface
)
{
// Build Service Interface
SystemService.Initialize(Interface);
// Register WindowSystem
SystemService.PluginInterface.UiBuilder.Draw += SystemService.WindowSystem.Draw;
// Register Module
var x = ScoutModule.Create();
// ConductorModule.Create();
x.Toggle();
}
public void Dispose()
{
// Automatically Purge Disposables
foreach (var Disposing in Disposable)
{
Disposing.Dispose();
}
// Remove Windows
SystemService.PluginInterface.UiBuilder.Draw -= SystemService.WindowSystem.Draw;
SystemService.WindowSystem.RemoveAllWindows();
}
}