/// <summary> /// Adds a plugin to the global list of plugins. /// </summary> /// <param name="plugin">The plugin.</param> public static void AddPlugin(Plugin plugin) { _plugins.Add(plugin); }
public void RegisterPlugin(Plugin plugin) { if (plugin == null) { throw new NullReferenceException("plugin"); } plugin.Init(this); Plugins.Add(plugin); }