extends |
Protocol |
---|
Mafia 2 Multiplayer Protocol Class Loosely based on SAMP protocol Query port = server port + 1 Handles processing Mafia 2 Multiplayer servers
Methods | ||
---|---|---|
public
|
processResponse(): mixed
|
# |
protected
|
processStatus(Buffer $buffer): array
|
# |
protected
|
processServerInfo(Buffer $buffer): array
|
# |
protected
|
processPlayers(Buffer $buffer): array
|
# |
Properties | |||
---|---|---|---|
protected
|
array
|
$packets = [self::PACKET_ALL => "M2MP"]
|
# |
protected
|
array
|
$responses = ["M2MP" => 'processStatus']
|
# |
protected
|
string
|
$protocol = 'm2mp'
|
# |
protected
|
string
|
$name = 'm2mp'
|
# |
protected
|
string
|
$name_long = "Mafia 2 Multiplayer"
|
# |
protected
|
int
|
$port_diff = 1
|
# |
protected
|
array
|
$normalize = [
'general' => [
'hostname' => 'servername',
'gametype' => 'gamemode',
'maxplayers' => 'max_players',
'numplayers' => 'num_players',
'password' => 'password',
],
'player' => ['name' => 'name'],
]
|
# |
Properties inherited from GameQ\Protocol |
---|
$transport, $process_methods, $packets_response, $result, $options, $state, $join_link |