Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| JoinInitialAreaCommand | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| pack | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace AqwSocketClient\Commands; |
| 6 | |
| 7 | use AqwSocketClient\Interfaces\CommandInterface; |
| 8 | use AqwSocketClient\Packet; |
| 9 | use Override; |
| 10 | |
| 11 | /** |
| 12 | * Represents the initial **'firstJoin' command** sent to the AQW server |
| 13 | * immediately after a successful socket connection. |
| 14 | * |
| 15 | * This command is typically required by the server protocol to initiate |
| 16 | * the client's session and receive the initial data. |
| 17 | * |
| 18 | * Move player to battleon |
| 19 | */ |
| 20 | final class JoinInitialAreaCommand implements CommandInterface |
| 21 | { |
| 22 | #[Override] |
| 23 | public function pack(): Packet |
| 24 | { |
| 25 | return Packet::packetify('%xt%zm%firstJoin%1%'); |
| 26 | } |
| 27 | } |