extends |
Protocol |
---|
Unreal 2 Protocol class
Methods | ||
---|---|---|
public
|
processResponse(): array
|
# |
protected
|
processDetails(Buffer $buffer): mixed
|
# |
protected
|
processPlayers(Buffer $buffer): mixed
|
# |
protected
|
processRules(Buffer $buffer): mixed
|
# |
Properties | |||
---|---|---|---|
protected
|
array
|
$packets = [
self::PACKET_DETAILS => "\x79\x00\x00\x00\x00",
self::PACKET_RULES => "\x79\x00\x00\x00\x01",
self::PACKET_PLAYERS => "\x79\x00\x00\x00\x02",
]
|
# |
protected
|
array
|
$responses = [
"\x80\x00\x00\x00\x00" => "processDetails",
"\x80\x00\x00\x00\x01" => "processRules",
"\x80\x00\x00\x00\x02" => "processPlayers",
]
|
# |
protected
|
string
|
$protocol = 'unreal2'
|
# |
protected
|
string
|
$name = 'unreal2'
|
# |
protected
|
string
|
$name_long = "Unreal 2"
|
# |
protected
|
array
|
$normalize = [
'general' => [
'dedicated' => 'ServerMode',
'gametype' => 'gametype',
'hostname' => 'servername',
'mapname' => 'mapname',
'maxplayers' => 'maxplayers',
'numplayers' => 'numplayers',
'password' => 'password',
],
'player' => ['name' => 'name', 'score' => 'score'],
]
|
# |
Properties inherited from GameQ\Protocol |
---|
$port_diff, $transport, $process_methods, $packets_response, $result, $options, $state, $join_link |