46 lines
1.4 KiB
C#
Executable File
46 lines
1.4 KiB
C#
Executable File
using Dalamud.IoC;
|
|
using Dalamud.Plugin;
|
|
using Dalamud.Plugin.Services;
|
|
using XivCommon;
|
|
|
|
namespace BurntToast {
|
|
public class BurntToast : IDalamudPlugin {
|
|
internal static string Name => "Burnt Toast";
|
|
|
|
[PluginService]
|
|
internal DalamudPluginInterface Interface { get; private init; } = null!;
|
|
|
|
[PluginService]
|
|
internal IChatGui ChatGui { get; private init; } = null!;
|
|
|
|
[PluginService]
|
|
internal ICommandManager CommandManager { get; private init; } = null!;
|
|
|
|
[PluginService]
|
|
internal IToastGui ToastGui { get; private init; } = null!;
|
|
|
|
internal Configuration Config { get; }
|
|
internal PluginUi Ui { get; }
|
|
internal XivCommonBase Common { get; }
|
|
private Commands Commands { get; }
|
|
private Filter Filter { get; }
|
|
|
|
public BurntToast() {
|
|
this.Config = this.Interface.GetPluginConfig() as Configuration ?? new Configuration();
|
|
this.Config.Initialise(this);
|
|
|
|
this.Ui = new PluginUi(this);
|
|
this.Commands = new Commands(this);
|
|
this.Common = new XivCommonBase(this.Interface, Hooks.BattleTalk);
|
|
this.Filter = new Filter(this);
|
|
}
|
|
|
|
public void Dispose() {
|
|
this.Filter.Dispose();
|
|
this.Common.Dispose();
|
|
this.Commands.Dispose();
|
|
this.Ui.Dispose();
|
|
}
|
|
}
|
|
}
|