ソースを参照

Introduce Plugin class instance

SheepGoMeh 2 年 前
コミット
a8b463419d
1 ファイル変更4 行追加0 行削除
  1. 4 0
      HuntBuddy/Plugin.cs

+ 4 - 0
HuntBuddy/Plugin.cs

@@ -32,9 +32,13 @@ namespace HuntBuddy
 		public readonly unsafe MobHuntStruct* MobHuntStruct;
 		public readonly Configuration Configuration;
 		public static TeleportConsumer? TeleportConsumer;
+		
+		public static Plugin Instance { get; internal set; } = null!;
 
 		public Plugin(DalamudPluginInterface pluginInterface)
 		{
+			Instance = this;
+
 			pluginInterface.Create<Service>();
 
 			this.commandManager = new PluginCommandManager<Plugin>(this, Service.Commands);