Properties |
protected
|
|
$packets = [self::PACKET_STATUS => "\x01\x00\xFB\x01", self::PACKET_PLAYERS => "\x01\x00\xFB\x05"]
Array of packets we want to query.
Array of packets we want to query.
|
#
|
protected
|
|
$responses = ["\x01\x00\xFB\x01" => "processDetails", "\x01\x00\xFB\x05" => "processPlayers"]
Use the response flag to figure out what method to run
Use the response flag to figure out what method to run
|
#
|
protected
|
|
$protocol = 'cs2d'
The query protocol used to make the call
The query protocol used to make the call
|
#
|
protected
|
|
$name = 'cs2d'
String name of this protocol class
String name of this protocol class
|
#
|
protected
|
|
$name_long = "Counter-Strike 2d"
Longer string name of this protocol class
Longer string name of this protocol class
|
#
|
protected
|
|
$join_link = "cs2d://%s:%d/"
The client join link
|
#
|
protected
|
|
$normalize = [
'general' => [
'dedicated' => 'dedicated',
'gametype' => 'game_mode',
'hostname' => 'hostname',
'mapname' => 'mapname',
'maxplayers' => 'max_players',
'mod' => 'game_dir',
'numplayers' => 'num_players',
'password' => 'password',
],
'player' => ['name' => 'name', 'deaths' => 'deaths', 'score' => 'score'],
]
Normalize settings for this protocol
Normalize settings for this protocol
|
#
|