Example #1
0
 public void Initialize()
 {
     Logger.LogWarning("Initializing");
     PluginWatcher.GetInstance().AddWatcher(Type, Extension);
     PluginLoader.GetInstance().PluginLoaders.Add(Type, this);
     Logger.LogWarning("loading");
     LoadPlugins();
 }
Example #2
0
 public void Initialize()
 {
     ReflectionExtensions.SetFieldValueValue(typeof(MoonSharp.Interpreter.Platforms.PlatformAutoDetector), "m_AutoDetectionsDone", true);
     ReflectionExtensions.SetFieldValueValue(typeof(MoonSharp.Interpreter.Platforms.PlatformAutoDetector), "<IsRunningOnUnity>k__BackingField", true);
     ReflectionExtensions.SetFieldValueValue(typeof(MoonSharp.Interpreter.Platforms.PlatformAutoDetector), "<IsRunningOnMono>k__BackingField", true);
     ReflectionExtensions.SetFieldValueValue(typeof(MoonSharp.Interpreter.Platforms.PlatformAutoDetector), "<IsRunningOnClr4>k__BackingField", true);
     PluginWatcher.GetInstance().AddWatcher(Type, Extension);
     PluginLoader.GetInstance().PluginLoaders.Add(Type, this);
     LoadPlugins();
 }
Example #3
0
 public void Initialize()
 {
     PluginWatcher.GetInstance().AddWatcher(Type, Extension);
     PluginLoader.GetInstance().PluginLoaders.Add(Type, this);
     LoadPlugins();
 }