Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
JoinInitialAreaCommand
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 pack
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace AqwSocketClient\Commands;
6
7use AqwSocketClient\Interfaces\CommandInterface;
8use AqwSocketClient\Packet;
9use 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 */
20final class JoinInitialAreaCommand implements CommandInterface
21{
22    #[Override]
23    public function pack(): Packet
24    {
25        return Packet::packetify('%xt%zm%firstJoin%1%');
26    }
27}