Ver Fonte

Introduce Plugin class instance

SheepGoMeh há 2 anos atrás
pai
commit
a8b463419d
1 ficheiros alterados com 4 adições e 0 exclusões
  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);