2023-09-28 06:05:06 +00:00
|
|
|
|
using Dalamud.Game;
|
2021-08-24 00:39:28 +00:00
|
|
|
|
using Dalamud.IoC;
|
2021-03-21 05:48:48 +00:00
|
|
|
|
using Dalamud.Plugin;
|
2023-09-28 06:05:06 +00:00
|
|
|
|
using Dalamud.Plugin.Services;
|
2021-03-21 05:48:48 +00:00
|
|
|
|
using FFXIVWeather.Lumina;
|
|
|
|
|
|
|
|
|
|
namespace Tourist {
|
|
|
|
|
// ReSharper disable once ClassNeverInstantiated.Global
|
|
|
|
|
public class Plugin : IDalamudPlugin {
|
2023-09-28 06:05:06 +00:00
|
|
|
|
public static string Name => "Tourist";
|
2021-03-21 05:48:48 +00:00
|
|
|
|
|
2023-09-28 06:05:06 +00:00
|
|
|
|
[PluginService]
|
|
|
|
|
internal static IPluginLog Log { get; private set; } = null!;
|
|
|
|
|
|
|
|
|
|
[PluginService]
|
2023-10-03 22:06:37 +00:00
|
|
|
|
internal DalamudPluginInterface Interface { get; init; }
|
2021-08-24 00:39:28 +00:00
|
|
|
|
|
|
|
|
|
[PluginService]
|
2023-09-28 06:05:06 +00:00
|
|
|
|
internal IClientState ClientState { get; init; } = null!;
|
|
|
|
|
|
|
|
|
|
[PluginService]
|
|
|
|
|
internal ICommandManager CommandManager { get; init; } = null!;
|
2021-08-24 00:39:28 +00:00
|
|
|
|
|
|
|
|
|
[PluginService]
|
2023-09-28 06:05:06 +00:00
|
|
|
|
internal IDataManager DataManager { get; init; } = null!;
|
2021-08-24 00:39:28 +00:00
|
|
|
|
|
|
|
|
|
[PluginService]
|
2023-09-28 06:05:06 +00:00
|
|
|
|
internal IFramework Framework { get; init; } = null!;
|
2021-08-24 00:39:28 +00:00
|
|
|
|
|
|
|
|
|
[PluginService]
|
2023-09-28 06:05:06 +00:00
|
|
|
|
internal IGameGui GameGui { get; init; } = null!;
|
2021-08-24 00:39:28 +00:00
|
|
|
|
|
|
|
|
|
[PluginService]
|
2023-09-28 06:05:06 +00:00
|
|
|
|
internal ISigScanner SigScanner { get; init; } = null!;
|
2021-08-24 00:39:28 +00:00
|
|
|
|
|
|
|
|
|
[PluginService]
|
2023-09-28 06:05:06 +00:00
|
|
|
|
internal IGameInteropProvider GameInteropProvider { get; init; } = null!;
|
2021-03-21 05:48:48 +00:00
|
|
|
|
|
2021-08-23 06:36:41 +00:00
|
|
|
|
internal Configuration Config { get; }
|
|
|
|
|
internal PluginUi Ui { get; }
|
|
|
|
|
internal FFXIVWeatherLuminaService Weather { get; }
|
|
|
|
|
internal GameFunctions Functions { get; }
|
|
|
|
|
private Commands Commands { get; }
|
|
|
|
|
internal Markers Markers { get; }
|
|
|
|
|
|
2021-08-24 00:39:28 +00:00
|
|
|
|
public Plugin(DalamudPluginInterface pluginInterface) {
|
2021-03-21 05:48:48 +00:00
|
|
|
|
this.Interface = pluginInterface;
|
|
|
|
|
|
|
|
|
|
this.Config = this.Interface.GetPluginConfig() as Configuration ?? new Configuration();
|
|
|
|
|
this.Config.Initialise(this);
|
|
|
|
|
|
2021-08-28 19:07:17 +00:00
|
|
|
|
this.Weather = new FFXIVWeatherLuminaService(this.DataManager.GameData);
|
2021-03-21 05:48:48 +00:00
|
|
|
|
|
|
|
|
|
this.Functions = new GameFunctions(this);
|
|
|
|
|
|
|
|
|
|
this.Markers = new Markers(this);
|
|
|
|
|
|
|
|
|
|
this.Ui = new PluginUi(this);
|
|
|
|
|
|
|
|
|
|
this.Commands = new Commands(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Dispose() {
|
|
|
|
|
this.Commands.Dispose();
|
|
|
|
|
this.Ui.Dispose();
|
|
|
|
|
this.Markers.Dispose();
|
|
|
|
|
this.Functions.Dispose();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|