Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
JsonMessageType
n/a
0 / 0
n/a
0 / 0
0
n/a
0 / 0
1<?php
2
3declare(strict_types=1);
4
5namespace AqwSocketClient\Enums;
6
7/**
8 * Defines the possible message types found within the **JSON formatted messages**
9 * received from the AQW server.
10 */
11enum JsonMessageType: string
12{
13    /**
14     * Message related to a player equipping an item.
15     */
16    case EquipItem = 'equipItem';
17
18    /**
19     * Message related to a player unequipping an item.
20     */
21    case UnequipItem = 'unequipItem';
22
23    /**
24     * Message related to a player changing the appearance of a currently equipped item.
25     */
26    case WearItem = 'wearItem';
27
28    /**
29     * Message related to the player joining areas.
30     */
31    case JoinedArea = 'moveToArea';
32
33    /**
34     * Message related to the player inventory loaded.
35     */
36    case InventoryLoaded = 'loadInventoryBig';
37
38    /**
39     * Message related to quests information
40     */
41    case QuestsLoaded = 'getQuests';
42
43    /**
44     * Message related to player cosmetic preferences loaded.
45     */
46    case PreferencesLoaded = 'loadPrefs';
47}