Properties |
protected
|
|
$packets = [
self::PACKET_STATUS => "\x00\x00\x00\x21\x1b\x00\x00\x00\x01\x00\x00\x00\x0a\x00\x00\x00serverInfo\x00",
self::PACKET_VERSION => "\x00\x00\x00\x22\x18\x00\x00\x00\x01\x00\x00\x00\x07\x00\x00\x00version\x00",
self::PACKET_PLAYERS => "\x00\x00\x00\x23\x24\x00\x00\x00\x02\x00\x00\x00\x0b\x00\x00\x00listPlayers\x00\x03\x00\x00\x00\x61ll\x00",
]
Array of packets we want to query.
Array of packets we want to query.
|
#
|
protected
|
|
$responses = [1627389952 => "processDetails", 1644167168 => "processVersion", 1660944384 => "processPlayers"]
Use the response flag to figure out what method to run
Use the response flag to figure out what method to run
|
#
|
protected
|
|
$transport = self::TRANSPORT_TCP
The transport mode for this protocol is TCP
The transport mode for this protocol is TCP
|
#
|
protected
|
|
$protocol = 'bf3'
The query protocol used to make the call
The query protocol used to make the call
|
#
|
protected
|
|
$name = 'bf3'
String name of this protocol class
String name of this protocol class
|
#
|
protected
|
|
$name_long = "Battlefield 3"
Longer string name of this protocol class
Longer string name of this protocol class
|
#
|
protected
|
|
$join_link = null
The client join link
|
#
|
protected
|
|
$port_diff = 22000
query_port = client_port + 22000
47200 = 25200 + 22000
query_port = client_port + 22000
47200 = 25200 + 22000
|
#
|
protected
|
|
$normalize = [
'general' => [
'dedicated' => 'dedicated',
'hostname' => 'hostname',
'mapname' => 'map',
'maxplayers' => 'max_players',
'numplayers' => 'num_players',
'password' => 'password',
],
'player' => ['name' => 'name', 'score' => 'score', 'ping' => 'ping'],
'team' => ['score' => 'tickets'],
]
Normalize settings for this protocol
Normalize settings for this protocol
|
#
|