zz
This commit is contained in:
24
GlobalShared/Plugin/GlobalInstance.cs
Normal file
24
GlobalShared/Plugin/GlobalInstance.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using Global.Shared.Config;
|
||||
using Global.Shared.Logging;
|
||||
|
||||
namespace Global.Shared.Plugin
|
||||
{
|
||||
public static class GlobalInstance
|
||||
{
|
||||
public static IPluginLogger Log => Plugin.Log;
|
||||
public static IGlobalPlugin Plugin { get; private set; }
|
||||
public static IPluginConfig Config => Plugin.Config;
|
||||
|
||||
public static void SetPlugin(IGlobalPlugin plugin)
|
||||
{
|
||||
Plugin = plugin;
|
||||
GlobalStatic.OcTreeHandler.Init();
|
||||
}
|
||||
|
||||
public static void Run(Action action)
|
||||
{
|
||||
Plugin.Run(action);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user