extends |
Gamespy4 |
---|
Just Cause 2 Multiplayer Protocol Class Special thanks to Woet for some insight on packing
Methods | ||
---|---|---|
protected
|
processDetails(Buffer &$buffer, Result &$result): void
|
# |
protected
|
processPlayersAndTeams(Buffer &$buffer, Result &$result): void
|
# |
Methods inherited from GameQ\Protocols\Gamespy3 |
---|
challengeParseAndApply(), processResponse(), cleanPackets(), |
Methods inherited from GameQ\Protocol |
---|
__construct(), __toString(), portDiff(), findQueryPort(), joinLink(), name(), nameLong(), state(), getProtocol(), transport(), options(), getPacket(), packetResponse(), hasChallenge(), challengeApply(), getNormalize(), beforeSend(), |
Properties | |||
---|---|---|---|
protected
|
string
|
$name = 'justcause2'
|
# |
protected
|
string
|
$name_long = "Just Cause 2 Multiplayer"
|
# |
protected
|
string
|
$join_link = "steam://connect/%s:%d/"
|
# |
protected
|
array
|
$packets = [
self::PACKET_CHALLENGE => "\xFE\xFD\x09\x10\x20\x30\x40",
self::PACKET_ALL => "\xFE\xFD\x00\x10\x20\x30\x40%s\xFF\xFF\xFF\x02",
]
|
# |
protected
|
string
|
$packetSplit = "/\\x00\\x00\\x00/m"
|
# |
protected
|
array
|
$normalize = [
'general' => [
'dedicated' => 'dedicated',
'gametype' => 'gametype',
'hostname' => 'hostname',
'mapname' => 'mapname',
'maxplayers' => 'maxplayers',
'numplayers' => 'numplayers',
'password' => 'password',
],
'player' => ['name' => 'name', 'ping' => 'ping'],
]
|
# |
Properties inherited from GameQ\Protocols\Gamespy3 |
---|
$protocol, |
Properties inherited from GameQ\Protocol |
---|
$port_diff, $transport, $responses, $process_methods, $packets_response, $result, $options, $state, |