This repository has been archived by the owner on Feb 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Auth.h
177 lines (149 loc) · 5.28 KB
/
Auth.h
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
/******************************************************************************
* This file is part of plNetLog. *
* *
* plNetLog is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* plNetLog is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with plNetLog. If not, see <http://www.gnu.org/licenses/>. *
******************************************************************************/
#include "plNetLog.h"
enum
{
// Global
kCli2Auth_PingRequest = 0,
// Client
kCli2Auth_ClientRegisterRequest,
kCli2Auth_ClientSetCCRLevel,
// Account
kCli2Auth_AcctLoginRequest,
kCli2Auth_AcctSetEulaVersion,
kCli2Auth_AcctSetDataRequest,
kCli2Auth_AcctSetPlayerRequest,
kCli2Auth_AcctCreateRequest,
kCli2Auth_AcctChangePasswordRequest,
kCli2Auth_AcctSetRolesRequest,
kCli2Auth_AcctSetBillingTypeRequest,
kCli2Auth_AcctActivateRequest,
kCli2Auth_AcctCreateFromKeyRequest,
// Player
kCli2Auth_PlayerDeleteRequest,
kCli2Auth_PlayerUndeleteRequest,
kCli2Auth_PlayerSelectRequest,
kCli2Auth_PlayerRenameRequest,
kCli2Auth_PlayerCreateRequest,
kCli2Auth_PlayerSetStatus,
kCli2Auth_PlayerChat,
kCli2Auth_UpgradeVisitorRequest,
kCli2Auth_SetPlayerBanStatusRequest,
kCli2Auth_KickPlayer,
kCli2Auth_ChangePlayerNameRequest,
kCli2Auth_SendFriendInviteRequest,
// Vault
kCli2Auth_VaultNodeCreate,
kCli2Auth_VaultNodeFetch,
kCli2Auth_VaultNodeSave,
kCli2Auth_VaultNodeDelete,
kCli2Auth_VaultNodeAdd,
kCli2Auth_VaultNodeRemove,
kCli2Auth_VaultFetchNodeRefs,
kCli2Auth_VaultInitAgeRequest,
kCli2Auth_VaultNodeFind,
kCli2Auth_VaultSetSeen,
kCli2Auth_VaultSendNode,
// Ages
kCli2Auth_AgeRequest,
// File-related
kCli2Auth_FileListRequest,
kCli2Auth_FileDownloadRequest,
kCli2Auth_FileDownloadChunkAck,
// Game
kCli2Auth_PropagateBuffer,
// Public ages
kCli2Auth_GetPublicAgeList,
kCli2Auth_SetAgePublic,
// Log Messages
kCli2Auth_LogPythonTraceback,
kCli2Auth_LogStackDump,
kCli2Auth_LogClientDebuggerConnect,
// Score
kCli2Auth_ScoreCreate,
kCli2Auth_ScoreDelete,
kCli2Auth_ScoreGetScores,
kCli2Auth_ScoreAddPoints,
kCli2Auth_ScoreTransferPoints,
kCli2Auth_ScoreSetPoints,
kCli2Auth_ScoreGetRanks,
kCli2Auth_AccountExistsRequest,
// -------------------------------------------------------------- //
// Global
kAuth2Cli_PingReply = 0,
kAuth2Cli_ServerAddr,
kAuth2Cli_NotifyNewBuild,
// Client
kAuth2Cli_ClientRegisterReply,
// Account
kAuth2Cli_AcctLoginReply,
kAuth2Cli_AcctData,
kAuth2Cli_AcctPlayerInfo,
kAuth2Cli_AcctSetPlayerReply,
kAuth2Cli_AcctCreateReply,
kAuth2Cli_AcctChangePasswordReply,
kAuth2Cli_AcctSetRolesReply,
kAuth2Cli_AcctSetBillingTypeReply,
kAuth2Cli_AcctActivateReply,
kAuth2Cli_AcctCreateFromKeyReply,
// Player
kAuth2Cli_PlayerList,
kAuth2Cli_PlayerChat,
kAuth2Cli_PlayerCreateReply,
kAuth2Cli_PlayerDeleteReply,
kAuth2Cli_UpgradeVisitorReply,
kAuth2Cli_SetPlayerBanStatusReply,
kAuth2Cli_ChangePlayerNameReply,
kAuth2Cli_SendFriendInviteReply,
// Friends
kAuth2Cli_FriendNotify,
// Vault
kAuth2Cli_VaultNodeCreated,
kAuth2Cli_VaultNodeFetched,
kAuth2Cli_VaultNodeChanged,
kAuth2Cli_VaultNodeDeleted,
kAuth2Cli_VaultNodeAdded,
kAuth2Cli_VaultNodeRemoved,
kAuth2Cli_VaultNodeRefsFetched,
kAuth2Cli_VaultInitAgeReply,
kAuth2Cli_VaultNodeFindReply,
kAuth2Cli_VaultSaveNodeReply,
kAuth2Cli_VaultAddNodeReply,
kAuth2Cli_VaultRemoveNodeReply,
// Ages
kAuth2Cli_AgeReply,
// File-related
kAuth2Cli_FileListReply,
kAuth2Cli_FileDownloadChunk,
// Game
kAuth2Cli_PropagateBuffer,
// Admin
kAuth2Cli_KickedOff,
// Public ages
kAuth2Cli_PublicAgeList,
// Score
kAuth2Cli_ScoreCreateReply,
kAuth2Cli_ScoreDeleteReply,
kAuth2Cli_ScoreGetScoresReply,
kAuth2Cli_ScoreAddPointsReply,
kAuth2Cli_ScoreTransferPointsReply,
kAuth2Cli_ScoreSetPointsReply,
kAuth2Cli_ScoreGetRanksReply,
kAuth2Cli_AccountExistsReply,
};
bool Auth_Factory(QTreeWidget* logger, QString timeFmt, int direction,
ChunkBuffer& buffer);