extends |
Protocol |
---|
Counter-Strike 2d Protocol Class Note: Unable to make player information calls work as the protocol does not like parallel requests
Methods | ||
---|---|---|
public
|
processResponse(): array
|
# |
protected
|
processDetails(Buffer $buffer): array
|
# |
protected
|
processPlayers(Buffer $buffer): array
|
# |
protected
|
readFlag($flags, $offset): bool
|
# |
Properties | |||
---|---|---|---|
protected
|
array
|
$packets = [self::PACKET_STATUS => "\x01\x00\xFB\x01", self::PACKET_PLAYERS => "\x01\x00\xFB\x05"]
|
# |
protected
|
array
|
$responses = ["\x01\x00\xFB\x01" => "processDetails", "\x01\x00\xFB\x05" => "processPlayers"]
|
# |
protected
|
string
|
$protocol = 'cs2d'
|
# |
protected
|
string
|
$name = 'cs2d'
|
# |
protected
|
string
|
$name_long = "Counter-Strike 2d"
|
# |
protected
|
string
|
$join_link = "cs2d://%s:%d/"
|
# |
protected
|
array
|
$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'],
]
|
# |
Properties inherited from GameQ\Protocol |
---|
$port_diff, $transport, $process_methods, $packets_response, $result, $options, $state, |