protected function processDetailsGoldSource(Buffer $buffer)
    {

        // Set the result to a new result instance
        $result = new Result();

        $result->add('address', $buffer->readString());
        $result->add('hostname', $buffer->readString());
        $result->add('map', $buffer->readString());
        $result->add('game_dir', $buffer->readString());
        $result->add('game_descr', $buffer->readString());
        $result->add('num_players', $buffer->readInt8());
        $result->add('max_players', $buffer->readInt8());
        $result->add('version', $buffer->readInt8());
        $result->add('dedicated', $buffer->read());
        $result->add('os', $buffer->read());
        $result->add('password', $buffer->readInt8());

        // Mod section
        $result->add('ismod', $buffer->readInt8());

        // We only run these if ismod is 1 (true)
        if ($result->get('ismod') == 1) {
            $result->add('mod_urlinfo', $buffer->readString());
            $result->add('mod_urldl', $buffer->readString());
            $buffer->skip();
            $result->add('mod_version', $buffer->readInt32Signed());
            $result->add('mod_size', $buffer->readInt32Signed());
            $result->add('mod_type', $buffer->readInt8());
            $result->add('mod_cldll', $buffer->readInt8());
        }

        $result->add('secure', $buffer->readInt8());
        $result->add('num_bots', $buffer->readInt8());

        unset($buffer);

        return $result->fetch();
    }
protected function processDetailsGoldSource(Buffer $buffer)
    {

        // Set the result to a new result instance
        $result = new Result();

        $result->add('address', $buffer->readString());
        $result->add('hostname', $buffer->readString());
        $result->add('map', $buffer->readString());
        $result->add('game_dir', $buffer->readString());
        $result->add('game_descr', $buffer->readString());
        $result->add('num_players', $buffer->readInt8());
        $result->add('max_players', $buffer->readInt8());
        $result->add('version', $buffer->readInt8());
        $result->add('dedicated', $buffer->read());
        $result->add('os', $buffer->read());
        $result->add('password', $buffer->readInt8());

        // Mod section
        $result->add('ismod', $buffer->readInt8());

        // We only run these if ismod is 1 (true)
        if ($result->get('ismod') == 1) {
            $result->add('mod_urlinfo', $buffer->readString());
            $result->add('mod_urldl', $buffer->readString());
            $buffer->skip();
            $result->add('mod_version', $buffer->readInt32Signed());
            $result->add('mod_size', $buffer->readInt32Signed());
            $result->add('mod_type', $buffer->readInt8());
            $result->add('mod_cldll', $buffer->readInt8());
        }

        $result->add('secure', $buffer->readInt8());
        $result->add('num_bots', $buffer->readInt8());

        unset($buffer);

        return $result->fetch();
    }
protected function processDetailsGoldSource ( Buffer $ buffer ) { // Set the result to a new result instance $ result = new Result ( ) ; $ result -> add ( 'address' , $ buffer -> readString ( ) ) ; $ result -> add ( 'hostname' , $ buffer -> readString ( ) ) ; $ result -> add ( 'map' , $ buffer -> readString ( ) ) ; $ result -> add ( 'game_dir' , $ buffer -> readString ( ) ) ; $ result -> add ( 'game_descr' , $ buffer -> readString ( ) ) ; $ result -> add ( 'num_players' , $ buffer -> readInt8 ( ) ) ; $ result -> add ( 'max_players' , $ buffer -> readInt8 ( ) ) ; $ result -> add ( 'version' , $ buffer -> readInt8 ( ) ) ; $ result -> add ( 'dedicated' , $ buffer -> read ( ) ) ; $ result -> add ( 'os' , $ buffer -> read ( ) ) ; $ result -> add ( 'password' , $ buffer -> readInt8 ( ) ) ; // Mod section $ result -> add ( 'ismod' , $ buffer -> readInt8 ( ) ) ; // We only run these if ismod is 1 (true) if ( $ result -> get ( 'ismod' ) == 1 ) { $ result -> add ( 'mod_urlinfo' , $ buffer -> readString ( ) ) ; $ result -> add ( 'mod_urldl' , $ buffer -> readString ( ) ) ; $ buffer -> skip ( ) ; $ result -> add ( 'mod_version' , $ buffer -> readInt32Signed ( ) ) ; $ result -> add ( 'mod_size' , $ buffer -> readInt32Signed ( ) ) ; $ result -> add ( 'mod_type' , $ buffer -> readInt8 ( ) ) ; $ result -> add ( 'mod_cldll' , $ buffer -> readInt8 ( ) ) ; } $ result -> add ( 'secure' , $ buffer -> readInt8 ( ) ) ; $ result -> add ( 'num_bots' , $ buffer -> readInt8 ( ) ) ; unset ( $ buffer ) ; return $ result -> fetch ( ) ; }
Handles processing the server details from goldsource response

@param \GameQ\Buffer $buffer

@return array
@throws \GameQ\Exception\Protocol
Handles processing the server details from goldsource response