Example #1
0
 private void BootTaskRunInstaller()
 {
     if (CoreManager.InstallerCore.Run())
     {
         StandardOut.Notice("Install", StringLocale.GetString("CORE:BOOT_INSTALL_SAVING"));
         SaveConfigInstallation();
     }
 }
Example #2
0
        private void BootTaskLoadConfig()
        {
            string configPath = Environment.GetEnvironmentVariable("BLUEDOT_CONFIG_PATH");

            StandardOut.Notice("Boot", StringLocale.GetString("CORE:BOOT_LOADING_CONFIG_AT") + configPath);
            Config = new XmlConfig(configPath);

            StandardOut.Notice("Boot", StringLocale.GetString("CORE:BOOT_INSTALL_CHECKING"));
            bool mainInstallRequired = PrepareInstall(); // Register the main installation if required.
        }
Example #3
0
        private void BootTaskStartPlugins()
        {
            List <Task> taskList = new List <Task>();

            StandardOut.Notice("Plugin Manager", StringLocale.GetString("CORE:BOOT_PLUGINS_STARTING"));
            foreach (Plugin plugin in PluginManager.GetLoadedPlugins())
            {
                taskList.Add(Task.Factory.StartNew(() => { PluginManager.StartPlugin(plugin); }));
            }
            Task.WaitAll(taskList.ToArray());
            StandardOut.Notice("Plugin Manager", StringLocale.GetString("CORE:BOOT_PLUGINS_STARTED"));
        }
Example #4
0
        private void BootTaskLoadPlugins()
        {
            List <Task> taskList = new List <Task>();

            StandardOut.Notice("Plugin Manager", StringLocale.GetString("CORE:BOOT_PLUGINS_LOADING"));
            foreach (string path in PluginManager.GetAllPotentialPluginPaths())
            {
                taskList.Add(Task.Factory.StartNew(() => { PluginManager.LoadPluginAtPath(path); }));
            }
            Task.WaitAll(taskList.ToArray());
            StandardOut.Notice("Plugin Manager", StringLocale.GetString("CORE:BOOT_PLUGINS_LOADED"));
        }
Example #5
0
 private void BootTaskConnectMySql()
 {
     StandardOut.Notice("MySQL", StringLocale.GetString("CORE:BOOT_MYSQL_PREPARE"));
     MySqlConnectionProvider = new MySqlConnectionProvider
     {
         Host     = Config.ValueAsString("/config/mysql/host"),
         Port     = Config.ValueAsUshort("/config/mysql/port", 3306),
         User     = Config.ValueAsString("/config/mysql/user"),
         Password = Config.ValueAsString("/config/mysql/password"),
         Database = Config.ValueAsString("/config/mysql/database")
     };
     StandardOut.Notice("MySQL", StringLocale.GetString("CORE:BOOT_MYSQL_READY"));
 }
Example #6
0
 public void BootTaskStartWebAdmin()
 {
     StandardOut.Notice("Web Admin", StringLocale.GetString("CORE:BOOT_WEBADMIN_PREPARE"));
     WebAdminManager = new WebAdminManager(Config.ValueAsUshort("/config/webadmin/port", 14480));
     StandardOut.Notice("Web Admin", StringLocale.GetString("CORE:BOOT_WEBADMIN_READY"));
 }
Example #7
0
 public void BootTaskPrepareRooms()
 {
     StandardOut.Notice("Room Distributor", StringLocale.GetString("CORE:BOOT_ROOMDISTRIBUTOR_PREPARE"));
     RoomDistributor = new RoomDistributor();
     StandardOut.Notice("Room Distributor", StringLocale.GetString("CORE:BOOT_ROOMDISTRIBUTOR_READY"));
 }
Example #8
0
 public void BootTaskPrepareHabbos()
 {
     StandardOut.Notice("Habbo Distributor", StringLocale.GetString("CORE:BOOT_HABBODISTRIBUTOR_PREPARE"));
     HabboDistributor = new HabboDistributor();
     StandardOut.Notice("Habbo Distributor", StringLocale.GetString("CORE:BOOT_HABBODISTRIBUTOR_READY"));
 }
Example #9
0
 public void BootTaskPreparePermissions()
 {
     StandardOut.Notice("Permission Distributor", StringLocale.GetString("CORE:BOOT_PERMISSIONS_PREPARE"));
     PermissionDistributor = new PermissionDistributor();
     StandardOut.Notice("Permission Distributor", StringLocale.GetString("CORE:BOOT_PERMISSIONS_READY"));
 }
Example #10
0
 public void BootTaskPrepareFigures()
 {
     StandardOut.Notice("Habbo Figure Factory", StringLocale.GetString("CORE:BOOT_FIGURES_PREPARE"));
     HabboFigureFactory = new HabboFigureFactory();
     StandardOut.Notice("Habbo Figure Factory", StringLocale.GetString("CORE:BOOT_FIGURES_READY"));
 }