protected function parsePlayersExtra(Buffer &$buffer, Result &$result)
    {
        // Iterate over the extra player info
        while (($id = $buffer->readInt8()) != 32) {
            $result->addPlayer('total_xp', $buffer->readFloat32());
            $result->addPlayer('teamname', $buffer->readString());
            $result->addPlayer('total_kills', $buffer->readInt32());
            $result->addPlayer('total_deaths', $buffer->readInt32());
        }

        // @todo: Add team stuff

        // Free some memory
        unset($id);
    }
protected function parsePlayersExtra(Buffer &$buffer, Result &$result)
    {
        // Iterate over the extra player info
        while (($id = $buffer->readInt8()) != 32) {
            $result->addPlayer('total_xp', $buffer->readFloat32());
            $result->addPlayer('teamname', $buffer->readString());
            $result->addPlayer('total_kills', $buffer->readInt32());
            $result->addPlayer('total_deaths', $buffer->readInt32());
        }

        // @todo: Add team stuff

        // Free some memory
        unset($id);
    }
protected function parsePlayersExtra ( Buffer & $ buffer , Result & $ result ) { // Iterate over the extra player info while ( ( $ id = $ buffer -> readInt8 ( ) ) != 32 ) { $ result -> addPlayer ( 'total_xp' , $ buffer -> readFloat32 ( ) ) ; $ result -> addPlayer ( 'teamname' , $ buffer -> readString ( ) ) ; $ result -> addPlayer ( 'total_kills' , $ buffer -> readInt32 ( ) ) ; $ result -> addPlayer ( 'total_deaths' , $ buffer -> readInt32 ( ) ) ; } // @todo: Add team stuff // Free some memory unset ( $ id ) ; }
Handle parsing extra player data

@param Buffer $buffer
@param Result $result
Handle parsing extra player data