-
Notifications
You must be signed in to change notification settings - Fork 3
/
packet-type.ts
123 lines (123 loc) · 3.87 KB
/
packet-type.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
/**
* A strongly typed representation of the packet types.
*/
export enum PacketType {
FAILURE = 'FAILURE',
CREATE_SUCCESS = 'CREATE_SUCCESS',
CREATE = 'CREATE',
PLAYERSHOOT = 'PLAYERSHOOT',
MOVE = 'MOVE',
CHATTOKEN = 'CHATTOKEN',
CHATHELLO = 'CHATHELLO',
PLAYERTEXT = 'PLAYERTEXT',
TEXT = 'TEXT',
SERVERPLAYERSHOOT = 'SERVERPLAYERSHOOT',
DAMAGE = 'DAMAGE',
UPDATE = 'UPDATE',
UPDATEACK = 'UPDATEACK',
NOTIFICATION = 'NOTIFICATION',
NEWTICK = 'NEWTICK',
INVSWAP = 'INVSWAP',
USEITEM = 'USEITEM',
SHOWEFFECT = 'SHOWEFFECT',
HELLO = 'HELLO',
GOTO = 'GOTO',
INVDROP = 'INVDROP',
INVRESULT = 'INVRESULT',
RECONNECT = 'RECONNECT',
PING = 'PING',
PONG = 'PONG',
MAPINFO = 'MAPINFO',
LOAD = 'LOAD',
PIC = 'PIC',
SETCONDITION = 'SETCONDITION',
TELEPORT = 'TELEPORT',
USEPORTAL = 'USEPORTAL',
DEATH = 'DEATH',
BUY = 'BUY',
BUYRESULT = 'BUYRESULT',
AOE = 'AOE',
GROUNDDAMAGE = 'GROUNDDAMAGE',
PLAYERHIT = 'PLAYERHIT',
ENEMYHIT = 'ENEMYHIT',
AOEACK = 'AOEACK',
SHOOTACK = 'SHOOTACK',
OTHERHIT = 'OTHERHIT',
SQUAREHIT = 'SQUAREHIT',
GOTOACK = 'GOTOACK',
EDITACCOUNTLIST = 'EDITACCOUNTLIST',
ACCOUNTLIST = 'ACCOUNTLIST',
QUESTOBJID = 'QUESTOBJID',
CHOOSENAME = 'CHOOSENAME',
NAMERESULT = 'NAMERESULT',
CREATEGUILD = 'CREATEGUILD',
GUILDRESULT = 'GUILDRESULT',
GUILDREMOVE = 'GUILDREMOVE',
GUILDINVITE = 'GUILDINVITE',
ALLYSHOOT = 'ALLYSHOOT',
ENEMYSHOOT = 'ENEMYSHOOT',
REQUESTTRADE = 'REQUESTTRADE',
TRADEREQUESTED = 'TRADEREQUESTED',
TRADESTART = 'TRADESTART',
CHANGETRADE = 'CHANGETRADE',
TRADECHANGED = 'TRADECHANGED',
ACCEPTTRADE = 'ACCEPTTRADE',
CANCELTRADE = 'CANCELTRADE',
TRADEDONE = 'TRADEDONE',
TRADEACCEPTED = 'TRADEACCEPTED',
CLIENTSTAT = 'CLIENTSTAT',
CHECKCREDITS = 'CHECKCREDITS',
ESCAPE = 'ESCAPE',
FILE = 'FILE',
INVITEDTOGUILD = 'INVITEDTOGUILD',
JOINGUILD = 'JOINGUILD',
CHANGEGUILDRANK = 'CHANGEGUILDRANK',
PLAYSOUND = 'PLAYSOUND',
GLOBAL_NOTIFICATION = 'GLOBAL_NOTIFICATION',
RESKIN = 'RESKIN',
PETUPGRADEREQUEST = 'PETUPGRADEREQUEST',
ACTIVE_PET_UPDATE_REQUEST = 'ACTIVE_PET_UPDATE_REQUEST',
ACTIVEPETUPDATE = 'ACTIVEPETUPDATE',
NEW_ABILITY = 'NEW_ABILITY',
PETYARDUPDATE = 'PETYARDUPDATE',
EVOLVE_PET = 'EVOLVE_PET',
DELETE_PET = 'DELETE_PET',
HATCH_PET = 'HATCH_PET',
ENTER_ARENA = 'ENTER_ARENA',
IMMINENT_ARENA_WAVE = 'IMMINENT_ARENA_WAVE',
ARENA_DEATH = 'ARENA_DEATH',
ACCEPT_ARENA_DEATH = 'ACCEPT_ARENA_DEATH',
VERIFY_EMAIL = 'VERIFY_EMAIL',
RESKIN_UNLOCK = 'RESKIN_UNLOCK',
PASSWORD_PROMPT = 'PASSWORD_PROMPT',
QUEST_FETCH_ASK = 'QUEST_FETCH_ASK',
QUEST_REDEEM = 'QUEST_REDEEM',
QUEST_FETCH_RESPONSE = 'QUEST_FETCH_RESPONSE',
QUEST_REDEEM_RESPONSE = 'QUEST_REDEEM_RESPONSE',
PET_CHANGE_FORM_MSG = 'PET_CHANGE_FORM_MSG',
KEY_INFO_REQUEST = 'KEY_INFO_REQUEST',
KEY_INFO_RESPONSE = 'KEY_INFO_RESPONSE',
CLAIM_LOGIN_REWARD_MSG = 'CLAIM_LOGIN_REWARD_MSG',
LOGIN_REWARD_MSG = 'LOGIN_REWARD_MSG',
QUEST_ROOM_MSG = 'QUEST_ROOM_MSG',
PET_CHANGE_SKIN_MSG = 'PET_CHANGE_SKIN_MSG',
REALM_HERO_LEFT_MSG = 'REALM_HERO_LEFT_MSG',
RESET_DAILY_QUESTS = 'RESET_DAILY_QUESTS',
NEW_CHARACTER_INFORMATION = "NEW_CHARACTER_INFORMATION",
UNLOCK_INFORMATION = "UNLOCK_INFORMATION",
QUEUE_INFORMATION = 'QUEUE_INFORMATION',
QUEUE_CANCEL = 'QUEUE_CANCEL',
VAULT_CONTENT = 'VAULT_CONTENT',
EXALTATION_BONUS_CHANGED = 'EXALTATION_BONUS_CHANGED',
REDEEM_EXALTATION_REWARD = 'REDEEM_EXALTATION_REWARD',
FORGE_REQUEST = 'FORGE_REQUEST',
FORGE_RESULT = 'FORGE_RESULT',
FORGE_UNLOCKED_BLUEPRINTS = 'FORGE_UNLOCKED_BLUEPRINTS',
SHOW_ALLY_SHOOT = 'CHANGE_ALLYSHOOT',
// TODO: implement these new packets
SHOOTACK_COUNTER = 'SHOOTACK_COUNTER',
CREEP_MOVE_MESSAGE = 'CREEP_MOVE_MESSAGE',
GET_PLAYER_LIST_MESSAGE = 'GET_PLAYER_LIST_MESSAGE',
PLAYERS_LIST_MESSAGE = 'PLAYERS_LIST_MESSAGE',
MODERATOR_ACTION_MESSAGE = 'MODERATOR_ACTION_MESSAGE'
}