Properties |
protected
|
|
$packets = [
self::PACKET_VERSION => "\x00\x00\x00\x00\x18\x00\x00\x00\x01\x00\x00\x00\x07\x00\x00\x00version\x00",
self::PACKET_STATUS => "\x00\x00\x00\x00\x1b\x00\x00\x00\x01\x00\x00\x00\x0a\x00\x00\x00serverInfo\x00",
self::PACKET_PLAYERS => "\x00\x00\x00\x00\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 = ["processVersion", "processDetails", "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 = 'bfbc2'
The query protocol used to make the call
The query protocol used to make the call
|
#
|
protected
|
|
$name = 'bfbc2'
String name of this protocol class
String name of this protocol class
|
#
|
protected
|
|
$name_long = "Battlefield Bad Company 2"
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 = 29321
query_port = client_port + 29321
48888 = 19567 + 29321
query_port = client_port + 29321
48888 = 19567 + 29321
|
#
|
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
|
#
|