本文整理汇总了PHP中Autoloader::loadEvents方法的典型用法代码示例。如果您正苦于以下问题:PHP Autoloader::loadEvents方法的具体用法?PHP Autoloader::loadEvents怎么用?PHP Autoloader::loadEvents使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Autoloader
的用法示例。
在下文中一共展示了Autoloader::loadEvents方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: HeaderManager
$headermanager = new HeaderManager();
$furnidataparser = new FurnidataParser();
$headermanager->LoadHeader("PRODUCTION-201506161211-776084490");
$config->init("res://habbo.conf");
$webserverapi = new WebServerAPI($config->get("api.webserver.token"), $config->get("api.webserver.token.allowed"), $config->get("api.webserver.whitelist"), $config->get("api.webserver.whitelist.ip"));
$rsa->SetPrivate($config->get("crypto.rsaN"), $config->get("crypto.rsaE"), $config->get("crypto.rsaD"));
$pooling = new DatabasePooling($config->get("db.hostname"), $config->get("db.port"), $config->get("db.username"), $config->get("db.password"), $config->get("db.name"), $config->get("db.pool.minsize"), $config->get("db.pool.maxsize"));
$database = new Database();
$database->pool =& $pooling;
$cache = new CacheLoader($database);
$roommanager = new RoomManager($database, $cache);
$roommanager->getRoom(16);
$roommanager->getRoom(17);
$roommanager->getRoom(18);
$events = array();
$autoloader->loadEvents();
Console::WriteLine("Loaded " . count($events) . " events !");
$furnidataparser->setCache();
Console::WriteLine("Loaded " . count($furnidataparser->floorItems) . " floor items and " . count($furnidataparser->wallItems) . " wall items !");
$server = new ServerSocket();
$server->bind($config->get("game.tcp.bindip"), $config->get("game.tcp.port"));
$service = ThreadPool::createFixed($config->get("game.tcp.conlimit"));
$index = new IndexManager();
if ($config->get("api.webserver.enabled")) {
$webserverapi->start($config->get("api.webserver.port"));
}
Console::WriteLine("Server -> READY! (" . $config->get("game.tcp.bindip") . ":" . $config->get("game.tcp.port") . ")");
$environment = new Environment();
foreach ($autoloader->getClassArray() as $class) {
$environment->importClass($class);
}