コード例 #1
0
 public static void Unload()
 {
     foreach (var plugin in m_plugins)
     {
         plugin.Dispose();
     }
     m_plugins.Clear();
     m_instance.Dispose();
     m_instance = null;
 }
コード例 #2
0
        public static void Load()
        {
            Debug.Assert(m_instance == null, "Loading plugins multiple times without unload!");
            if (m_gamePluginAssembly != null)
            {
                LoadPlugins(m_gamePluginAssembly);
            }

            if (m_userPluginAssembly != null)
            {
                LoadPlugins(m_userPluginAssembly);
            }

            m_instance = new MyPlugins();
        }
コード例 #3
0
ファイル: MyPlugins.cs プロジェクト: warex0/SpaceEngineers
        public static void Unload()
        {
            foreach (var plugin in m_plugins)
            {
                plugin.Dispose();
            }
            m_plugins.Clear();
            m_instance.Dispose();
            m_instance = null;

            m_gamePluginAssembly  = null;
            m_userPluginAssembly  = null;
            m_sandboxAssembly     = null;
            m_sandboxGameAssembly = null;
        }
コード例 #4
0
        public static void Unload()
        {
            foreach (var plugin in m_plugins)
            {
                plugin.Dispose();
            }
            m_plugins.Clear();
            m_instance.Dispose();
            m_instance = null;

            m_gamePluginAssembly = null;
            m_userPluginAssembly = null;
            m_sandboxAssembly = null;
            m_sandboxGameAssembly = null;
            m_gameObjBuildersPlugin = null;
        }
コード例 #5
0
        public static void Load()
        {
            Debug.Assert(m_instance == null, "Loading plugins multiple times without unload!");
            if (m_gamePluginAssembly != null)
                LoadPlugins(m_gamePluginAssembly);

            if (m_userPluginAssembly != null)
                LoadPlugins(m_userPluginAssembly);

            m_instance = new MyPlugins();
        }
コード例 #6
0
 public static void Unload()
 {
     foreach (var plugin in m_plugins)
     {
         plugin.Dispose();
     }
     m_plugins.Clear();
     m_instance.Dispose();
     m_instance = null;
 }