public function startMap($map, $nbLaps)
    {
        // Load firs X records for this map.
        $this->recordsHandler->loadForMap($map->uId, $nbLaps);

        // Load time information for remaining players.
        $this->recordsHandler->loadForPlayers($map->uId, $nbLaps, $this->allPlayersGroup->getLogins());

        // Let others know that records information is now available.
        $this->dispatchEvent(['event' => 'loaded', 'records' => $this->recordsHandler->getRecords()]);
    }
public function startMap($map, $nbLaps)
    {
        // Load firs X records for this map.
        $this->recordsHandler->loadForMap($map->uId, $nbLaps);

        // Load time information for remaining players.
        $this->recordsHandler->loadForPlayers($map->uId, $nbLaps, $this->allPlayersGroup->getLogins());

        // Let others know that records information is now available.
        $this->dispatchEvent(['event' => 'loaded', 'records' => $this->recordsHandler->getRecords()]);
    }
public function startMap ( $ map , $ nbLaps ) { // Load firs X records for this map. $ this -> recordsHandler -> loadForMap ( $ map -> uId , $ nbLaps ) ; // Load time information for remaining players. $ this -> recordsHandler -> loadForPlayers ( $ map -> uId , $ nbLaps , $ this -> allPlayersGroup -> getLogins ( ) ) ; // Let others know that records information is now available. $ this -> dispatchEvent ( [ 'event' => 'loaded' , 'records' => $ this -> recordsHandler -> getRecords ( ) ] ) ; }
Start plugin for a certain map.

@param Map $map
@param int $nbLaps

@throws \Propel\Runtime\Exception\PropelException
Start plugin for a certain map .