Liza Carvelli
e4c55f7086
iHUEABYKAB0WIQTa9butFCxnjN0YMdtxmfjXJ9VfZwUCZR0bzQAKCRBxmfjXJ9Vf Z4owAQCVRaakSOdehfMGuXkOo4pjqTaMn3a5mrhJrLQUDytE2AEAsh/7AhsVFGDW jRFev0bwtim9TabfLfEKcqhlLfiQDwg= =HkpP -----END PGP SIGNATURE----- gpgsig -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQTa9butFCxnjN0YMdtxmfjXJ9VfZwUCZR0cvgAKCRBxmfjXJ9Vf Z+IWAQC/QV0IPf+ivipkb/O8yVtqqxSfjyJ4O3+6O2E39VaNBAEAvcGCh6N+fhlI UI2xaTIRuXtHc4vzhKWb9hVKQz075AE= =khmi -----END PGP SIGNATURE----- Merge tag 'v1.4.7' # -----BEGIN PGP SIGNATURE----- # # iHUEABYKAB0WIQTa9butFCxnjN0YMdtxmfjXJ9VfZwUCZR0bzQAKCRBxmfjXJ9Vf # Z4owAQCVRaakSOdehfMGuXkOo4pjqTaMn3a5mrhJrLQUDytE2AEAsh/7AhsVFGDW # jRFev0bwtim9TabfLfEKcqhlLfiQDwg= # =HkpP # -----END PGP SIGNATURE----- # gpg: Signatur vom 04.10.2023 10:01:17 W. Europe Daylight Time # gpg: mittels EDDSA-Schlüssel DAF5BBAD142C678CDD1831DB7199F8D727D55F67 # gpg: Korrekte Signatur von "Liza Carvelli <liza@liza.sh>" [ultimativ] # Conflicts: # QuestMap/Plugin.cs # QuestMap/QuestMap.yaml
59 lines
1.9 KiB
C#
59 lines
1.9 KiB
C#
using System.Threading.Channels;
|
|
using Dalamud.IoC;
|
|
using Dalamud.Plugin;
|
|
using Dalamud.Plugin.Services;
|
|
using XivCommon;
|
|
|
|
namespace QuestMap {
|
|
// ReSharper disable once ClassNeverInstantiated.Global
|
|
internal class Plugin : IDalamudPlugin {
|
|
internal static string Name => "Quest Map";
|
|
|
|
[PluginService]
|
|
internal DalamudPluginInterface Interface { get; init; } = null!;
|
|
|
|
[PluginService]
|
|
internal IClientState ClientState { get; init; } = null!;
|
|
|
|
[PluginService]
|
|
internal ICommandManager CommandManager { get; init; } = null!;
|
|
|
|
[PluginService]
|
|
internal IDataManager DataManager { get; init; } = null!;
|
|
|
|
[PluginService]
|
|
internal IGameGui GameGui { get; init; } = null!;
|
|
|
|
[PluginService]
|
|
internal ITextureProvider TextureProvider { get; init; } = null!;
|
|
|
|
internal XivCommonBase Common { get; }
|
|
internal Configuration Config { get; }
|
|
internal Quests Quests { get; }
|
|
internal PluginUi Ui { get; }
|
|
private Commands Commands { get; }
|
|
|
|
public Plugin(DalamudPluginInterface pi) {
|
|
pi.Inject(this); // not sure why [PluginInterface] above aren't initialized by dalamud, but they're null
|
|
this.Common = new XivCommonBase(this.Interface);
|
|
this.Config = this.Interface.GetPluginConfig() as Configuration ?? new Configuration();
|
|
|
|
var graphChannel = Channel.CreateUnbounded<GraphInfo>();
|
|
this.Quests = new Quests(this, graphChannel.Writer);
|
|
this.Ui = new PluginUi(this, graphChannel.Reader);
|
|
|
|
this.Commands = new Commands(this);
|
|
}
|
|
|
|
public void Dispose() {
|
|
this.Commands.Dispose();
|
|
this.Ui.Dispose();
|
|
this.Common.Dispose();
|
|
}
|
|
|
|
internal void SaveConfig() {
|
|
this.Interface.SavePluginConfig(this.Config);
|
|
}
|
|
}
|
|
}
|