BurntToast/BurntToast/BurntToast.cs

46 lines
1.4 KiB
C#
Raw Permalink Normal View History

2023-09-29 01:13:37 +00:00
using Dalamud.IoC;
2021-09-20 18:26:42 +00:00
using Dalamud.Plugin;
2023-09-29 01:13:37 +00:00
using Dalamud.Plugin.Services;
2021-04-12 16:51:46 +00:00
using XivCommon;
2021-04-06 14:47:32 +00:00
namespace BurntToast {
2021-04-06 14:47:32 +00:00
public class BurntToast : IDalamudPlugin {
2023-09-29 01:13:37 +00:00
internal static string Name => "Burnt Toast";
2021-04-06 14:47:32 +00:00
2021-09-20 18:26:42 +00:00
[PluginService]
internal DalamudPluginInterface Interface { get; private init; } = null!;
2021-04-06 14:47:32 +00:00
2021-09-20 18:26:42 +00:00
[PluginService]
2023-09-29 01:13:37 +00:00
internal IChatGui ChatGui { get; private init; } = null!;
2021-04-06 14:47:32 +00:00
2021-09-20 18:26:42 +00:00
[PluginService]
2023-09-29 01:13:37 +00:00
internal ICommandManager CommandManager { get; private init; } = null!;
2021-09-20 18:26:42 +00:00
[PluginService]
2023-09-29 01:13:37 +00:00
internal IToastGui ToastGui { get; private init; } = null!;
2021-09-20 18:26:42 +00:00
internal Configuration Config { get; }
internal PluginUi Ui { get; }
internal XivCommonBase Common { get; }
private Commands Commands { get; }
private Filter Filter { get; }
public BurntToast() {
2021-04-06 14:47:32 +00:00
this.Config = this.Interface.GetPluginConfig() as Configuration ?? new Configuration();
this.Config.Initialise(this);
this.Ui = new PluginUi(this);
this.Commands = new Commands(this);
2023-10-03 21:43:21 +00:00
this.Common = new XivCommonBase(this.Interface, Hooks.BattleTalk);
2021-04-06 14:47:32 +00:00
this.Filter = new Filter(this);
}
public void Dispose() {
this.Filter.Dispose();
2021-04-12 16:51:46 +00:00
this.Common.Dispose();
2021-04-06 14:47:32 +00:00
this.Commands.Dispose();
this.Ui.Dispose();
}
}
}