extends |
Protocol |
---|
Quake3 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\xFF\x67\x65\x74\x73\x74\x61\x74\x75\x73\x0A"]
|
# |
protected
|
array
|
$responses = ["\xFF\xFF\xFF\xFFstatusResponse" => 'processStatus']
|
# |
protected
|
string
|
$protocol = 'quake3'
|
# |
protected
|
string
|
$name = 'quake3'
|
# |
protected
|
string
|
$name_long = "Quake 3 Server"
|
# |
protected
|
array
|
$normalize = [
'general' => [
'gametype' => 'gamename',
'hostname' => 'sv_hostname',
'mapname' => 'mapname',
'maxplayers' => 'sv_maxclients',
'mod' => 'g_gametype',
'numplayers' => 'clients',
'password' => ['g_needpass', 'pswrd'],
],
'player' => ['name' => 'name', 'ping' => 'ping', 'score' => 'frags'],
]
|
# |
Properties inherited from GameQ\Protocol |
---|
$port_diff, $transport, $process_methods, $packets_response, $result, $options, $state, $join_link |