35 lines
1.2 KiB
C#
Executable File
35 lines
1.2 KiB
C#
Executable File
using System.Threading.Tasks;
|
|
using Dalamud.Plugin;
|
|
|
|
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!;
|
|
internal GameFunctions Functions { get; private set; } = null!;
|
|
internal Filter Filter { get; set; } = null!;
|
|
private PluginUi Ui { get; set; } = null!;
|
|
|
|
public void Initialize(DalamudPluginInterface pluginInterface) {
|
|
this.Interface = pluginInterface;
|
|
|
|
this.Config = (Configuration?) this.Interface.GetPluginConfig() ?? new Configuration();
|
|
this.Config.Initialise(this);
|
|
|
|
this.Functions = new GameFunctions(this);
|
|
this.Filter = new Filter(this);
|
|
this.Ui = new PluginUi(this);
|
|
|
|
// start task to determine maximum item level (based on max chestpiece)
|
|
Task.Run(() => Util.CalculateMaxItemLevel(this.Interface.Data));
|
|
}
|
|
|
|
public void Dispose() {
|
|
this.Ui.Dispose();
|
|
this.Filter.Dispose();
|
|
this.Functions.Dispose();
|
|
}
|
|
}
|
|
}
|