コード例 #1
0
        public void Initialize()
        {
            if (!PluginDirectory.Exists)
            {
                PluginDirectory.Create();
            }

            PluginWatcher.GetInstance().AddWatcher(Type, Extension, Path.Combine(Util.GetRootFolder(), "Save"));
            PluginLoader.GetInstance().PluginLoaders.Add(Type, this);
            LoadPlugins();
        }
コード例 #2
0
        public void Initialize()
        {
            if (!PluginDirectory.Exists)
            {
                PluginDirectory.Create();
            }

            typeof(MoonSharp.Interpreter.Platforms.PlatformAutoDetector).SetFieldValueValue("m_AutoDetectionsDone", true);
            typeof(MoonSharp.Interpreter.Platforms.PlatformAutoDetector).SetFieldValueValue("<IsRunningOnUnity>k__BackingField", true);
            typeof(MoonSharp.Interpreter.Platforms.PlatformAutoDetector).SetFieldValueValue("<IsRunningOnMono>k__BackingField", true);
            typeof(MoonSharp.Interpreter.Platforms.PlatformAutoDetector).SetFieldValueValue("<IsRunningOnClr4>k__BackingField", true);
            PluginWatcher.GetInstance().AddWatcher(Type, Extension, Path.Combine(Util.GetRootFolder(), "Save"));
            PluginLoader.GetInstance().PluginLoaders.Add(Type, this);
            LoadPlugins();
        }
コード例 #3
0
 public void Initialize()
 {
     PluginWatcher.GetInstance().AddWatcher(Type, Extension, Path.Combine(Util.GetRootFolder(), "Modules"));
     PluginLoader.GetInstance().PluginLoaders.Add(Type, this);
     LoadPlugins();
 }