src/Model/GameSettings.php
public function mapName($options = [])
    {
        $extractRmsName = isset($options['extractRMSName']) ? $options['extractRMSName'] : true;
        if ($extractRmsName && $this->isCustomMap()) {
            $nameExtractor = new MapNameExtractor($this->rec);
            $likelyName = $nameExtractor->run();
            if ($likelyName) {
                return $likelyName;
            }
        }
        return $this->rec->trans('map_names', $this->mapId);
    }
public function mapName($options = [])
    {
        $extractRmsName = isset($options['extractRMSName']) ? $options['extractRMSName'] : true;
        if ($extractRmsName && $this->isCustomMap()) {
            $nameExtractor = new MapNameExtractor($this->rec);
            $likelyName = $nameExtractor->run();
            if ($likelyName) {
                return $likelyName;
            }
        }
        return $this->rec->trans('map_names', $this->mapId);
    }
public function mapName ( $ options = [ ] ) { $ extractRmsName = isset ( $ options [ 'extractRMSName' ] ) ? $ options [ 'extractRMSName' ] : true ; if ( $ extractRmsName && $ this -> isCustomMap ( ) ) { $ nameExtractor = new MapNameExtractor ( $ this -> rec ) ; $ likelyName = $ nameExtractor -> run ( ) ; if ( $ likelyName ) { return $ likelyName ; } } return $ this -> rec -> trans ( 'map_names' , $ this -> mapId ) ; }
Get the map name.

@param array  $options  Options.
- `$options['extractRMSName']` - Whether to attempt to find the RMS
file names of custom random maps. Defaults to `true`.

@return string Map name.
Get the map name .