Example #1
0
 /// <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);
 }
Example #2
0
 public void RegisterPlugin(Plugin plugin)
 {
     if (plugin == null)
     {
         throw new NullReferenceException("plugin");
     }
     plugin.Init(this);
     Plugins.Add(plugin);
 }