BetterPartyFinder/BetterPartyFinder/Plugin.cs

37 lines
1.3 KiB
C#
Raw Normal View History

using Dalamud.Plugin;
2021-01-14 04:06:35 +00:00
namespace BetterPartyFinder {
public class Plugin : IDalamudPlugin {
public string Name => "Better Party Finder";
internal DalamudPluginInterface Interface { get; private set; } = null!;
internal Configuration Config { get; private set; } = null!;
private Filter Filter { get; set; } = null!;
internal PluginUi Ui { get; set; } = null!;
private Commands Commands { get; set; } = null!;
2021-03-17 20:44:57 +00:00
internal GameFunctions Functions { get; set; } = null!;
2021-01-14 04:06:35 +00:00
public void Initialize(DalamudPluginInterface pluginInterface) {
this.Interface = pluginInterface;
2021-01-14 22:12:30 +00:00
this.Config = Configuration.Load(this) ?? new Configuration();
2021-01-14 04:06:35 +00:00
this.Config.Initialise(this);
this.Functions = new GameFunctions(this);
this.Filter = new Filter(this);
this.Ui = new PluginUi(this);
this.Commands = new Commands(this);
2021-01-14 04:06:35 +00:00
// start task to determine maximum item level (based on max chestpiece)
Util.CalculateMaxItemLevel(this.Interface.Data);
2021-01-14 04:06:35 +00:00
}
public void Dispose() {
this.Commands.Dispose();
2021-01-14 04:06:35 +00:00
this.Ui.Dispose();
this.Filter.Dispose();
this.Functions.Dispose();
}
}
}