public override void HandleRemovedFromManager(PluginManager manager) { CallHook("Unloaded", null); CallHook("Unload", null); Watcher.RemoveMapping(Name); base.HandleRemovedFromManager(manager); }
/// <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); }
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); }
/// <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()"); }