Exemplo n.º 1
0
 function onUnload()
 {
     Monitor::getInstance()->stop();
     Stats::EraseAll();
     Stats::Clear();
     parent::onUnload();
 }
Exemplo n.º 2
0
 function onUnload()
 {
     $this->queueable = array();
     $this->queue = array();
     $this->lastWorst = array();
     $this->mapsPlayed = array();
     $this->lastActivityTime = array();
     ActionHandler::getInstance()->deleteAction($this->enterQueueAction);
     ActionHandler::getInstance()->deleteAction($this->leaveQueueAction);
     Queue::EraseAll();
     Queue::Clear();
     FreeSpot::EraseAll();
     parent::onUnload();
 }
Exemplo n.º 3
0
 /**
  * Call a public method of a registered Plugin.
  * @param Plugin $caller
  * @param string $pluginId
  * @param string $pluginMethod
  * @param array $methodArgs
  * @throws Exception
  */
 function callPublicMethod(Plugin $caller, $pluginId, $pluginMethod, $methodArgs)
 {
     if (!isset($this->loadedPlugins[$pluginId])) {
         throw new Exception('Plugin "' . $pluginId . '" which you want to call a method from, does not exist!');
     }
     $plugin = $this->loadedPlugins[$pluginId];
     array_push($methodArgs, $caller->getId());
     $method = $plugin->getPublicMethod($pluginMethod);
     return $method->invokeArgs($plugin, $methodArgs);
 }
Exemplo n.º 4
0
 function onUnload()
 {
     if ($this->matchMakingService instanceof Services\MatchMakingService && $this->matchId) {
         $this->matchMakingService->updateMatchState($this->matchId, Services\Match::FINISHED);
         $this->end();
     }
     $this->connection->customizeQuitDialog('', '', true, 0);
     parent::onUnload();
 }
Exemplo n.º 5
0
 function onUnload()
 {
     Vote::Unload();
     Vote::EraseAll();
     parent::onUnload();
 }
Exemplo n.º 6
0
 function onUnload()
 {
     $this->db->execute('DELETE FROM Servers WHERE hostname = %s AND port = %d', $this->db->quote(Config::getInstance()->host), Config::getInstance()->port);
     parent::onUnload();
 }
Exemplo n.º 7
0
 function onUnload()
 {
     $this->setLobbyInfo(false);
     parent::onUnload();
 }
Exemplo n.º 8
0
 function onUnload()
 {
     ChooseMode::EraseAll();
     parent::onUnload();
 }
Exemplo n.º 9
0
 function onUnload()
 {
     Menu::EraseAll();
     parent::onUnload();
 }
Exemplo n.º 10
0
 function onUnload()
 {
     parent::onUnload();
     Manager::ErasePlugins();
     if ($this->threadId) {
         ThreadHandler::getInstance()->killThread($this->threadId);
     }
 }