39 lines
908 B
C#
39 lines
908 B
C#
using Dalamud.IoC;
|
|
using Dalamud.Plugin;
|
|
using Dalamud.Plugin.Services;
|
|
|
|
namespace Screenie;
|
|
|
|
public class Plugin : IDalamudPlugin {
|
|
internal static string Name = "Heliosphere";
|
|
|
|
[PluginService]
|
|
internal static IPluginLog Log { get; private set; }
|
|
|
|
[PluginService]
|
|
internal DalamudPluginInterface Interface { get; init; }
|
|
|
|
[PluginService]
|
|
internal ICommandManager CommandManager { get; init; }
|
|
|
|
[PluginService]
|
|
internal IFramework Framework { get; init; }
|
|
|
|
internal Configuration Config { get; }
|
|
|
|
private Command Command { get; }
|
|
|
|
public Plugin() {
|
|
this.Config = this.Interface!.GetPluginConfig() as Configuration ?? new Configuration();
|
|
this.Command = new Command(this);
|
|
}
|
|
|
|
internal void SaveConfig() {
|
|
this.Interface.SavePluginConfig(this.Config);
|
|
}
|
|
|
|
public void Dispose() {
|
|
this.Command.Dispose();
|
|
}
|
|
}
|