src/Analyzers/PlayerMetaAnalyzer.php
protected function readPlayerMeta($i)
    {
        $player = new Player($this->rec);
        $player->number = $i;
        $player->index = $this->readHeader('l', 4);
        $human = $this->readHeader('l', 4);
        $length = $this->readHeader('L', 4);
        if ($length) {
            $player->name = $this->readHeaderRaw($length);
        } else {
            $player->name = '';
        }
        $player->humanRaw = $human;
        $player->human = $human === 0x02;
        $player->spectator = $human === 0x06;
        return $player;
    }
protected function readPlayerMeta($i)
    {
        $player = new Player($this->rec);
        $player->number = $i;
        $player->index = $this->readHeader('l', 4);
        $human = $this->readHeader('l', 4);
        $length = $this->readHeader('L', 4);
        if ($length) {
            $player->name = $this->readHeaderRaw($length);
        } else {
            $player->name = '';
        }
        $player->humanRaw = $human;
        $player->human = $human === 0x02;
        $player->spectator = $human === 0x06;
        return $player;
    }
protected function readPlayerMeta ( $ i ) { $ player = new Player ( $ this -> rec ) ; $ player -> number = $ i ; $ player -> index = $ this -> readHeader ( 'l' , 4 ) ; $ human = $ this -> readHeader ( 'l' , 4 ) ; $ length = $ this -> readHeader ( 'L' , 4 ) ; if ( $ length ) { $ player -> name = $ this -> readHeaderRaw ( $ length ) ; } else { $ player -> name = '' ; } $ player -> humanRaw = $ human ; $ player -> human = $ human === 0x02 ; $ player -> spectator = $ human === 0x06 ; return $ player ; }
Reads a player meta info block for a single player. This just includes
their nickname, index and "human" status. More information about players
is stored later on in the recorded game file and is read by the
PlayerInfoBlockAnalyzer.

Player meta structure:
int32 index;
int32 human; // indicates whether player is AI/human/spectator
uint32 nameLength;
char name[nameLength];

@return \RecAnalyst\Model\Player
Reads a player meta info block for a single player . This just includes their nickname index and human status . More information about players is stored later on in the recorded game file and is read by the PlayerInfoBlockAnalyzer .