Procházet zdrojové kódy

Introduce Plugin class instance

SheepGoMeh před 2 roky
rodič
revize
a8b463419d
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  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);