extends |
Protocol |
---|
San Andreas Multiplayer Protocol Class (samp) Note: Player information will not be returned if player count is over 256
Methods | ||
---|---|---|
public
|
beforeSend(Server $server)
|
# |
public
|
processResponse(): array
|
# |
protected
|
processStatus(Buffer $buffer): array
|
# |
protected
|
processPlayers(Buffer $buffer): array
|
# |
protected
|
processRules(Buffer $buffer): array
|
# |
Methods inherited from GameQ\Protocol |
---|
__construct(), __toString(), portDiff(), findQueryPort(), joinLink(), name(), nameLong(), state(), getProtocol(), transport(), options(), getPacket(), packetResponse(), hasChallenge(), challengeParseAndApply(), challengeApply(), getNormalize(), |
Properties | |||
---|---|---|---|
protected
|
array
|
$packets = [
self::PACKET_STATUS => "SAMP%si",
self::PACKET_PLAYERS => "SAMP%sd",
self::PACKET_RULES => "SAMP%sr",
]
|
# |
protected
|
array
|
$responses = ["\x69" => "processStatus", "\x64" => "processPlayers", "\x72" => "processRules"]
|
# |
protected
|
string
|
$protocol = 'samp'
|
# |
protected
|
string
|
$name = 'samp'
|
# |
protected
|
string
|
$name_long = "San Andreas Multiplayer"
|
# |
protected
|
string
|
$server_code = null
|
# |
protected
|
string
|
$join_link = "samp://%s:%d/"
|
# |
protected
|
array
|
$normalize = [
'general' => [
'dedicated' => 'dedicated',
'hostname' => ['hostname', 'servername'],
'mapname' => 'mapname',
'maxplayers' => 'max_players',
'numplayers' => 'num_players',
'password' => 'password',
],
'player' => ['name' => 'name', 'score' => 'score', 'ping' => 'ping'],
]
|
# |
Properties inherited from GameQ\Protocol |
---|
$port_diff, $transport, $process_methods, $packets_response, $result, $options, $state, |