Exemplo n.º 1
0
 /// <summary>
 /// Loads all plugins in the ./build/Plugins directory.
 /// </summary>
 /// <param name="PluginManager"></param>
 public static void LoadAllPlugins(IPluginManager PluginManager)
 {
     String[] files = Directory.GetFiles("./Plugins/", "*.dll");
     foreach (var s in files)
     {
         PluginManager.Add(s.Split('/').Last());
     }
 }