public function __construct() { $bench = new Ubench(); $bench->start(); $this->reload(); $bench->end(); Emulator::getLogging()->logStart("WordFilter -> Loaded! (" . $bench->getTime() . ")"); }
public function __construct($gameEnvironment) { $bench = new Ubench(); $bench->start(); $this->gameEnvironment = $gameEnvironment; $this->onlineHabbos = array(); $bench->end(); Emulator::getLogging()->logStart("Habbo Manager -> Loaded! (" . $bench->getTime() . ")"); }
public function __construct() { $bench = new Ubench(); $bench->start(); $this->hallOfFame = new HallOfFame(); $this->newsList = new NewsList(); $bench->end(); Emulator::getLogging()->logStart("Hotelview Manager -> Loaded! (" . $bench->getTime() . ")"); }
public function getInt(string $key, int $defaultValue = 0) { if (!isset($this->texts[$key])) { Emulator::getLogging()->logErrorLine("[[TEXTS] Text key not found: " . $key); return $defaultValue; } else { return (int) $this->texts[$key]; } }
public function __construct() { $bench = new Ubench(); $bench->start(); $this->botDefenitions = array(); $this->botDefenitions["generic"] = Bot::class; $this->reload(); $bench->end(); Emulator::getLogging()->logStart("Bot Manager -> Loaded! (" . $bench->getTime() . ")"); }
public function __construct() { $bench = new Ubench(); $bench->start(); $this->guildParts = array(); $this->guilds = array(); $this->loadGuildParts(); $bench->end(); Emulator::getLogging()->logStart("Guild Manager -> Loaded! (" . $bench->getTime() . ")"); }
public function load() { $bench = new Ubench(); $bench->start(); $this->loadItemInteractions(); $this->loadItems(); $this->loadCrackable(); $this->loadSoundTracks(); $bench->end(); Emulator::getLogging()->logStart("Item Manager -> Loaded! (" . $bench->getTime() . ")"); }
public function __construct() { $bench = new Ubench(); $bench->start(); $this->permissions = array(); $this->rankNames = array(); $this->enables = array(); $this->reload(); $bench->end(); Emulator::getLogging()->logStart("Permissions Manager -> Loaded! (" . $bench->getTime() . ")"); }
public function __construct() { $bench = new Ubench(); $bench->start(); $this->petRaces = array(); $this->petData = array(); $this->loadRaces(); $this->loadPetData(); $this->loadPetCommands(); $bench->end(); Emulator::getLogging()->logStart("Pet Manager -> Loaded! (" . $bench->getTime() . ")"); }
public function __construct() { $bench = new Ubench(); $bench->start(); $this->roomCategories = array(); $this->roomLayouts = array(); $this->activeRooms = array(); $this->loadRoomCategories(); $this->loadRoomModels(); $this->loadPublicRooms(); $bench->end(); Emulator::getLogging()->logStart("Room Manager -> Loaded! (" . $bench->getTime() . ")"); }
public function __construct() { $bench = new Ubench(); $bench->start(); $this->category = array(); $this->presets = array(); $this->tickets = array(); $this->loadModTool(); $this->loadPresets(); $this->loadTickets(); $bench->end(); Emulator::getLogging()->logStart("ModTool Manager -> Loaded! (" . $bench->getTime() . ")"); }
public function getConnection() { return new PDO('mysql:host=' . $this->configurationManager->getValue("db.hostname") . ';dbname=' . $this->configurationManager->getValue("db.database"), $this->configurationManager->getValue("db.username"), $this->configurationManager->getValue("db.password"), array(PDO::ATTR_PERSISTENT => true)); if (!isset(DatabasePool::$pool)) { try { DatabasePool::$pool = new PDO('mysql:host=' . $this->configurationManager->getValue("db.hostname") . ';dbname=' . $this->configurationManager->getValue("db.database"), $this->configurationManager->getValue("db.username"), $this->configurationManager->getValue("db.password"), array(PDO::ATTR_PERSISTENT => true)); } catch (PDOException $e) { Emulator::getLogging()->logErrorLine("[DATABASE] " . $e->getMessage()); die; } } else { return DatabasePool::$pool; } }
public function __construct() { $bench = new Ubench(); $bench->start(); $this->catalogPages = array(); $this->prizes = array(); $this->giftWrappers = array(); $this->giftFurnis = array(); $this->clubItems = array(); $this->offerDefs = array(); $this->vouchers = array(); $this->initialize(); $bench->end(); Emulator::getLogging()->logStart("Catalog Manager -> Loaded! (" . $bench->getTime() . ")"); }
public function load($database) { Emulator::getLogging()->logStart("GameEnvironment -> Loading..."); $this->database = $database; $this->habboManager = new HabboManager($this); $this->hotelViewManager = new HotelViewManager(); $this->guildManager = new GuildManager(); $this->itemManager = new ItemManager(); $this->itemManager->load(); $this->catalogManager = new CatalogManager(); $this->roomManager = new RoomManager(); $this->permissionsManager = new PermissionsManager(); $this->botManager = new BotManager(); $this->modToolManager = new ModToolManager(); $this->petManager = new PetManager(); $this->achievementManager = new AchievementManager(); $this->guideManager = new GuideManager(); $this->wordFilter = new WordFilter(); Emulator::getLogging()->logStart("GameEnvironment -> Loaded!"); }
public function __construct(int $size) { $this->threadPool = new Pool($size, Worker::class, array()); Emulator::getLogging()->logStart("Thread Pool -> Loaded!"); $this->canAdd = true; }
public function databaseCleanup() { Emulator::getDatabase()->exec("UPDATE users SET online = ?;", array("0")); Emulator::getLogging()->logStart("Database -> Cleaned!"); }