Пример #1
0
        public void LoadPlugins()
        {
            Plugins = new List <DBPlugin>();
            Addons  = new List <DBAddon>();
            Events  = new List <DBEvent>();


            //Load commands
            CommandsLoader CMDLoader = new CommandsLoader(pluginCMDFolder, pluginCMDExtension);

            CMDLoader.OnCommandLoaded += OnCommandLoaded;
            Plugins = CMDLoader.LoadCommands();

            //Load addons
            AddonsLoader ADDLoader = new AddonsLoader(pluginADDFolder, pluginADDExtension);

            ADDLoader.OnAddonLoaded += OnAddonLoaded;
            Addons = ADDLoader.LoadAddons();

            //Load Events
            EventsLoader EVLoader = new EventsLoader(pluginEVEFolder, pluginEVEExtension);

            EVLoader.EventLoad += OnEventLoaded;
            Events              = EVLoader.LoadEvents();
        }
Пример #2
0
        public void LoadPlugins()
        {
            Plugins = new List <DBPlugin>();
            Events  = new List <DBEvent>();

            Functions.WriteLogFile("Starting plugin loader...\n");

            //Load commands
            CommandsLoader CMDLoader = new CommandsLoader(pluginCMDFolder, pluginCMDExtension);

            CMDLoader.OnCommandLoaded     += OnCommandLoaded;
            CMDLoader.OnCommandFileLoaded += OnCommandFileLoaded;
            Plugins = CMDLoader.LoadCommands();


            //Load Events
            EventsLoader EVLoader = new EventsLoader(pluginEVEFolder, pluginEVEExtension);

            EVLoader.EventLoad       += OnEventLoaded;
            EVLoader.EventFileLoaded += EventFileLoaded;
            Events = EVLoader.LoadEvents();
        }