extends |
Protocol |
---|
Battlefield 3 Protocol Class Good place for doc status and info is http://www.fpsadmin.com/forum/showthread.php?t=24134
Methods | ||
---|---|---|
public
|
processResponse(): array
|
# |
protected
|
decode(Buffer $buffer): array
|
# |
protected
|
processDetails(Buffer $buffer): array
|
# |
protected
|
processVersion(Buffer $buffer): array
|
# |
protected
|
processPlayers(Buffer $buffer): array
|
# |
Properties | |||
---|---|---|---|
protected
|
array
|
$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",
]
|
# |
protected
|
array
|
$responses = [1627389952 => "processDetails", 1644167168 => "processVersion", 1660944384 => "processPlayers"]
|
# |
protected
|
string
|
$transport = self::TRANSPORT_TCP
|
# |
protected
|
string
|
$protocol = 'bf3'
|
# |
protected
|
string
|
$name = 'bf3'
|
# |
protected
|
string
|
$name_long = "Battlefield 3"
|
# |
protected
|
int
|
$port_diff = 22000
|
# |
protected
|
array
|
$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'],
]
|
# |
Properties inherited from GameQ\Protocol |
---|
$process_methods, $packets_response, $result, $options, $state, $join_link |