public function request()
    {
        $scriptSettings = $this->gameDataStorage->getScriptOptions();
        $currentMap = $this->mapStorage->getCurrentMap();

        $nbLaps = 1;
        if ($currentMap->lapRace) {
            $nbLaps = $currentMap->nbLaps;
        }

        if ($scriptSettings['S_ForceLapsNb'] != -1) {
            $nbLaps = $scriptSettings['S_ForceLapsNb'];
        }

        $this->dispatch('set', [$nbLaps]);
    }
public function request()
    {
        $scriptSettings = $this->gameDataStorage->getScriptOptions();
        $currentMap = $this->mapStorage->getCurrentMap();

        $nbLaps = 1;
        if ($currentMap->lapRace) {
            $nbLaps = $currentMap->nbLaps;
        }

        if ($scriptSettings['S_ForceLapsNb'] != -1) {
            $nbLaps = $scriptSettings['S_ForceLapsNb'];
        }

        $this->dispatch('set', [$nbLaps]);
    }
public function request ( ) { $ scriptSettings = $ this -> gameDataStorage -> getScriptOptions ( ) ; $ currentMap = $ this -> mapStorage -> getCurrentMap ( ) ; $ nbLaps = 1 ; if ( $ currentMap -> lapRace ) { $ nbLaps = $ currentMap -> nbLaps ; } if ( $ scriptSettings [ 'S_ForceLapsNb' ] != - 1 ) { $ nbLaps = $ scriptSettings [ 'S_ForceLapsNb' ] ; } $ this -> dispatch ( 'set' , [ $ nbLaps ] ) ; }
Request call to fetch something..

@return void
Request call to fetch something ..