private void BootTaskRunInstaller() { if (CoreManager.InstallerCore.Run()) { StandardOut.Notice("Install", StringLocale.GetString("CORE:BOOT_INSTALL_SAVING")); SaveConfigInstallation(); } }
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. }
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")); }
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")); }
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")); }
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")); }
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")); }
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")); }
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")); }
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")); }