コード例 #1
0
ファイル: CSharpPlugin.cs プロジェクト: Feramor/Oxide
        public override void HandleRemovedFromManager(PluginManager manager)
        {
            CallHook("Unloaded", null);
            CallHook("Unload", null);

            Watcher.RemoveMapping(Name);

            base.HandleRemovedFromManager(manager);
        }
コード例 #2
0
ファイル: PythonPlugin.cs プロジェクト: Feramor/Oxide
        /// <summary>
        /// Called when this plugin has been removed from the specified manager
        /// </summary>
        /// <param name="manager"></param>
        public override void HandleRemovedFromManager(PluginManager manager)
        {
            // Let plugin know that it's unloading
            CallFunction("Unload", null);

            // Remove us from the watcher
            watcher.RemoveMapping(Name);

            // Call base
            base.HandleRemovedFromManager(manager);
        }
コード例 #3
0
ファイル: CSharpPlugin.cs プロジェクト: Ansj88/Oxide
        public override void HandleRemovedFromManager(PluginManager manager)
        {
            CallHook("Unloaded", null);
            CallHook("Unload", null);

            Watcher.RemoveMapping(Name);

            foreach (var name in pluginReferences.Keys)
            {
                pluginReferences[name].SetValue(this, null);
            }

            base.HandleRemovedFromManager(manager);
        }
コード例 #4
0
        /// <summary>
        /// Called when this plugin has been removed from the specified manager
        /// </summary>
        /// <param name="manager"></param>
        public override void HandleRemovedFromManager(PluginManager manager)
        {
            // Let plugin know that it's unloading
            OnCallHook("Unload", null);

            // Remove us from the watcher
            watcher.RemoveMapping(Name);

            // Call base
            base.HandleRemovedFromManager(manager);

            Table.Dispose();
            LuaEnvironment.DeleteObject(this);
            LuaEnvironment.DoString("collectgarbage()");
        }