extends |
Protocol |
---|
Quake2 Protocol Class Handles processing Quake 3 servers
Methods | ||
---|---|---|
public
|
processResponse(): mixed
|
# |
protected
|
processStatus(Buffer $buffer): array
|
# |
protected
|
processServerInfo(Buffer $buffer): array
|
# |
protected
|
processPlayers(Buffer $buffer): array
|
# |
Properties | |||
---|---|---|---|
protected
|
array
|
$packets = [self::PACKET_STATUS => "\xFF\xFF\xFF\xFFstatus\x00"]
|
# |
protected
|
array
|
$responses = ["\xFF\xFF\xFF\xFF\x70\x72\x69\x6e\x74" => 'processStatus']
|
# |
protected
|
string
|
$protocol = 'quake2'
|
# |
protected
|
string
|
$name = 'quake2'
|
# |
protected
|
string
|
$name_long = "Quake 2 Server"
|
# |
protected
|
array
|
$normalize = [
'general' => [
'gametype' => 'gamename',
'hostname' => 'hostname',
'mapname' => 'mapname',
'maxplayers' => 'maxclients',
'mod' => 'g_gametype',
'numplayers' => 'clients',
'password' => 'password',
],
'player' => ['name' => 'name', 'ping' => 'ping', 'score' => 'frags'],
]
|
# |
Properties inherited from GameQ\Protocol |
---|
$port_diff, $transport, $process_methods, $packets_response, $result, $options, $state, $join_link |