extends |
Protocol |
---|
GameSpy2 Protocol class Given the ability for non utf-8 characters to be used as hostnames, player names, etc... this version returns all strings utf-8 encoded. To access the proper version of a string response you must use Str::utf8ToIso() on the specific response.
Methods | ||
---|---|---|
public
|
processResponse(): array
|
# |
protected
|
processDetails(Buffer $buffer): array
|
# |
protected
|
processPlayers(Buffer $buffer): array
|
# |
protected
|
parsePlayerTeam(string $dataType, Buffer &$buffer, Result &$result)
|
# |
Properties | |||
---|---|---|---|
protected
|
int
|
$state = self::STATE_BETA
|
# |
protected
|
array
|
$packets = [
self::PACKET_DETAILS => "\xFE\xFD\x00\x43\x4F\x52\x59\xFF\x00\x00",
self::PACKET_PLAYERS => "\xFE\xFD\x00\x43\x4F\x52\x58\x00\xFF\xFF",
]
|
# |
protected
|
array
|
$responses = ["\x00\x43\x4F\x52\x59" => "processDetails", "\x00\x43\x4F\x52\x58" => "processPlayers"]
|
# |
protected
|
string
|
$protocol = 'gamespy2'
|
# |
protected
|
string
|
$name = 'gamespy2'
|
# |
protected
|
string
|
$name_long = "GameSpy2 Server"
|
# |
protected
|
array
|
$normalize = [
'general' => [
'dedicated' => 'dedicated',
'gametype' => 'gametype',
'hostname' => 'hostname',
'mapname' => 'mapname',
'maxplayers' => 'maxplayers',
'mod' => 'mod',
'numplayers' => 'numplayers',
'password' => 'password',
],
]
|
# |
Properties inherited from GameQ\Protocol |
---|
$port_diff, $transport, $process_methods, $packets_response, $result, $options, $join_link |