cs2-protobuf 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dist/generated/base_gcmessages.d.ts +552 -0
- package/.dist/generated/base_gcmessages.js +4751 -0
- package/.dist/generated/base_gcmessages.wrapper.d.ts +326 -0
- package/.dist/generated/base_gcmessages.wrapper.js +655 -0
- package/.dist/generated/c_peer2peer_netmessages.d.ts +63 -0
- package/.dist/generated/c_peer2peer_netmessages.js +405 -0
- package/.dist/generated/c_peer2peer_netmessages.wrapper.d.ts +30 -0
- package/.dist/generated/c_peer2peer_netmessages.wrapper.js +63 -0
- package/.dist/generated/clientmessages.d.ts +60 -0
- package/.dist/generated/clientmessages.js +347 -0
- package/.dist/generated/clientmessages.wrapper.d.ts +26 -0
- package/.dist/generated/clientmessages.wrapper.js +55 -0
- package/.dist/generated/connectionless_netmessages.d.ts +30 -0
- package/.dist/generated/connectionless_netmessages.js +238 -0
- package/.dist/generated/connectionless_netmessages.wrapper.d.ts +14 -0
- package/.dist/generated/connectionless_netmessages.wrapper.js +31 -0
- package/.dist/generated/cs_gameevents.d.ts +68 -0
- package/.dist/generated/cs_gameevents.js +559 -0
- package/.dist/generated/cs_gameevents.wrapper.d.ts +22 -0
- package/.dist/generated/cs_gameevents.wrapper.js +47 -0
- package/.dist/generated/cs_prediction_events.d.ts +16 -0
- package/.dist/generated/cs_prediction_events.js +65 -0
- package/.dist/generated/cs_prediction_events.wrapper.d.ts +6 -0
- package/.dist/generated/cs_prediction_events.wrapper.js +15 -0
- package/.dist/generated/cs_usercmd.d.ts +47 -0
- package/.dist/generated/cs_usercmd.js +396 -0
- package/.dist/generated/cs_usercmd.wrapper.d.ts +18 -0
- package/.dist/generated/cs_usercmd.wrapper.js +39 -0
- package/.dist/generated/cstrike15_gcmessages.d.ts +1553 -0
- package/.dist/generated/cstrike15_gcmessages.js +13932 -0
- package/.dist/generated/cstrike15_gcmessages.wrapper.d.ts +626 -0
- package/.dist/generated/cstrike15_gcmessages.wrapper.js +1255 -0
- package/.dist/generated/cstrike15_usermessages.d.ts +634 -0
- package/.dist/generated/cstrike15_usermessages.js +4939 -0
- package/.dist/generated/cstrike15_usermessages.wrapper.d.ts +354 -0
- package/.dist/generated/cstrike15_usermessages.wrapper.js +711 -0
- package/.dist/generated/demo.d.ts +194 -0
- package/.dist/generated/demo.js +1521 -0
- package/.dist/generated/demo.wrapper.d.ts +114 -0
- package/.dist/generated/demo.wrapper.js +231 -0
- package/.dist/generated/econ_gcmessages.d.ts +240 -0
- package/.dist/generated/econ_gcmessages.js +511 -0
- package/.dist/generated/econ_gcmessages.wrapper.d.ts +22 -0
- package/.dist/generated/econ_gcmessages.wrapper.js +47 -0
- package/.dist/generated/engine_gcmessages.d.ts +19 -0
- package/.dist/generated/engine_gcmessages.js +151 -0
- package/.dist/generated/engine_gcmessages.wrapper.d.ts +6 -0
- package/.dist/generated/engine_gcmessages.wrapper.js +15 -0
- package/.dist/generated/fatdemo.d.ts +131 -0
- package/.dist/generated/fatdemo.js +919 -0
- package/.dist/generated/fatdemo.wrapper.d.ts +42 -0
- package/.dist/generated/fatdemo.wrapper.js +87 -0
- package/.dist/generated/gameevents.d.ts +125 -0
- package/.dist/generated/gameevents.js +972 -0
- package/.dist/generated/gameevents.wrapper.d.ts +66 -0
- package/.dist/generated/gameevents.wrapper.js +135 -0
- package/.dist/generated/gcsdk_gcmessages.d.ts +327 -0
- package/.dist/generated/gcsdk_gcmessages.js +2833 -0
- package/.dist/generated/gcsdk_gcmessages.wrapper.d.ts +166 -0
- package/.dist/generated/gcsdk_gcmessages.wrapper.js +335 -0
- package/.dist/generated/gcsystemmsgs.d.ts +250 -0
- package/.dist/generated/gcsystemmsgs.js +943 -0
- package/.dist/generated/gcsystemmsgs.wrapper.d.ts +30 -0
- package/.dist/generated/gcsystemmsgs.wrapper.js +63 -0
- package/.dist/generated/index.d.ts +35 -0
- package/.dist/generated/index.js +40 -0
- package/.dist/generated/index.wrapper.d.ts +36 -0
- package/.dist/generated/index.wrapper.js +40 -0
- package/.dist/generated/netmessages.d.ts +641 -0
- package/.dist/generated/netmessages.js +5048 -0
- package/.dist/generated/netmessages.wrapper.d.ts +294 -0
- package/.dist/generated/netmessages.wrapper.js +591 -0
- package/.dist/generated/network_connection.d.ts +124 -0
- package/.dist/generated/network_connection.js +131 -0
- package/.dist/generated/network_connection.wrapper.d.ts +1 -0
- package/.dist/generated/network_connection.wrapper.js +6 -0
- package/.dist/generated/networkbasetypes.d.ts +246 -0
- package/.dist/generated/networkbasetypes.js +1969 -0
- package/.dist/generated/networkbasetypes.wrapper.d.ts +110 -0
- package/.dist/generated/networkbasetypes.wrapper.js +223 -0
- package/.dist/generated/networksystem_protomessages.d.ts +26 -0
- package/.dist/generated/networksystem_protomessages.js +172 -0
- package/.dist/generated/networksystem_protomessages.wrapper.d.ts +22 -0
- package/.dist/generated/networksystem_protomessages.wrapper.js +47 -0
- package/.dist/generated/prediction_events.d.ts +30 -0
- package/.dist/generated/prediction_events.js +171 -0
- package/.dist/generated/prediction_events.wrapper.d.ts +14 -0
- package/.dist/generated/prediction_events.wrapper.js +31 -0
- package/.dist/generated/source2_steam_stats.d.ts +217 -0
- package/.dist/generated/source2_steam_stats.js +2070 -0
- package/.dist/generated/source2_steam_stats.wrapper.d.ts +58 -0
- package/.dist/generated/source2_steam_stats.wrapper.js +119 -0
- package/.dist/generated/steammessages.d.ts +38 -0
- package/.dist/generated/steammessages.js +257 -0
- package/.dist/generated/steammessages.wrapper.d.ts +6 -0
- package/.dist/generated/steammessages.wrapper.js +15 -0
- package/.dist/generated/steammessages_cloud.steamworkssdk.d.ts +59 -0
- package/.dist/generated/steammessages_cloud.steamworkssdk.js +424 -0
- package/.dist/generated/steammessages_cloud.steamworkssdk.wrapper.d.ts +38 -0
- package/.dist/generated/steammessages_cloud.steamworkssdk.wrapper.js +79 -0
- package/.dist/generated/steammessages_gc.d.ts +576 -0
- package/.dist/generated/steammessages_gc.js +5089 -0
- package/.dist/generated/steammessages_gc.wrapper.d.ts +322 -0
- package/.dist/generated/steammessages_gc.wrapper.js +647 -0
- package/.dist/generated/steammessages_helprequest.steamworkssdk.d.ts +20 -0
- package/.dist/generated/steammessages_helprequest.steamworkssdk.js +113 -0
- package/.dist/generated/steammessages_helprequest.steamworkssdk.wrapper.d.ts +1 -0
- package/.dist/generated/steammessages_helprequest.steamworkssdk.wrapper.js +6 -0
- package/.dist/generated/steammessages_oauth.steamworkssdk.d.ts +18 -0
- package/.dist/generated/steammessages_oauth.steamworkssdk.js +83 -0
- package/.dist/generated/steammessages_oauth.steamworkssdk.wrapper.d.ts +10 -0
- package/.dist/generated/steammessages_oauth.steamworkssdk.wrapper.js +23 -0
- package/.dist/generated/steammessages_player.steamworkssdk.d.ts +210 -0
- package/.dist/generated/steammessages_player.steamworkssdk.js +1590 -0
- package/.dist/generated/steammessages_player.steamworkssdk.wrapper.d.ts +134 -0
- package/.dist/generated/steammessages_player.steamworkssdk.wrapper.js +271 -0
- package/.dist/generated/steammessages_publishedfile.steamworkssdk.d.ts +215 -0
- package/.dist/generated/steammessages_publishedfile.steamworkssdk.js +1978 -0
- package/.dist/generated/steammessages_publishedfile.steamworkssdk.wrapper.d.ts +86 -0
- package/.dist/generated/steammessages_publishedfile.steamworkssdk.wrapper.js +175 -0
- package/.dist/generated/steammessages_unified_base.steamworkssdk.d.ts +5 -0
- package/.dist/generated/steammessages_unified_base.steamworkssdk.js +12 -0
- package/.dist/generated/steammessages_unified_base.steamworkssdk.wrapper.d.ts +1 -0
- package/.dist/generated/steammessages_unified_base.steamworkssdk.wrapper.js +6 -0
- package/.dist/generated/te.d.ts +242 -0
- package/.dist/generated/te.js +2031 -0
- package/.dist/generated/te.wrapper.d.ts +102 -0
- package/.dist/generated/te.wrapper.js +207 -0
- package/.dist/generated/uifontfile_format.d.ts +20 -0
- package/.dist/generated/uifontfile_format.js +126 -0
- package/.dist/generated/uifontfile_format.wrapper.d.ts +14 -0
- package/.dist/generated/uifontfile_format.wrapper.js +31 -0
- package/.dist/generated/usercmd.d.ts +53 -0
- package/.dist/generated/usercmd.js +463 -0
- package/.dist/generated/usercmd.wrapper.d.ts +22 -0
- package/.dist/generated/usercmd.wrapper.js +47 -0
- package/.dist/generated/usermessages.d.ts +875 -0
- package/.dist/generated/usermessages.js +7135 -0
- package/.dist/generated/usermessages.wrapper.d.ts +338 -0
- package/.dist/generated/usermessages.wrapper.js +679 -0
- package/.dist/generated/valveextensions.d.ts +8 -0
- package/.dist/generated/valveextensions.js +15 -0
- package/.dist/generated/valveextensions.wrapper.d.ts +1 -0
- package/.dist/generated/valveextensions.wrapper.js +6 -0
- package/.dist/index.d.ts +1 -0
- package/.dist/index.js +1 -0
- package/LICENSE +21 -0
- package/README.md +49 -0
- package/package.json +59 -0
|
@@ -0,0 +1,4751 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.11.8
|
|
4
|
+
// protoc v4.25.9
|
|
5
|
+
// source: base_gcmessages.proto
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
8
|
+
export var EGCBaseMsg;
|
|
9
|
+
(function (EGCBaseMsg) {
|
|
10
|
+
EGCBaseMsg[EGCBaseMsg["k_EMsgGCSystemMessage"] = 4001] = "k_EMsgGCSystemMessage";
|
|
11
|
+
EGCBaseMsg[EGCBaseMsg["k_EMsgGCReplicateConVars"] = 4002] = "k_EMsgGCReplicateConVars";
|
|
12
|
+
EGCBaseMsg[EGCBaseMsg["k_EMsgGCConVarUpdated"] = 4003] = "k_EMsgGCConVarUpdated";
|
|
13
|
+
EGCBaseMsg[EGCBaseMsg["k_EMsgGCInQueue"] = 4008] = "k_EMsgGCInQueue";
|
|
14
|
+
EGCBaseMsg[EGCBaseMsg["k_EMsgGCInviteToParty"] = 4501] = "k_EMsgGCInviteToParty";
|
|
15
|
+
EGCBaseMsg[EGCBaseMsg["k_EMsgGCInvitationCreated"] = 4502] = "k_EMsgGCInvitationCreated";
|
|
16
|
+
EGCBaseMsg[EGCBaseMsg["k_EMsgGCPartyInviteResponse"] = 4503] = "k_EMsgGCPartyInviteResponse";
|
|
17
|
+
EGCBaseMsg[EGCBaseMsg["k_EMsgGCKickFromParty"] = 4504] = "k_EMsgGCKickFromParty";
|
|
18
|
+
EGCBaseMsg[EGCBaseMsg["k_EMsgGCLeaveParty"] = 4505] = "k_EMsgGCLeaveParty";
|
|
19
|
+
EGCBaseMsg[EGCBaseMsg["k_EMsgGCServerAvailable"] = 4506] = "k_EMsgGCServerAvailable";
|
|
20
|
+
EGCBaseMsg[EGCBaseMsg["k_EMsgGCClientConnectToServer"] = 4507] = "k_EMsgGCClientConnectToServer";
|
|
21
|
+
EGCBaseMsg[EGCBaseMsg["k_EMsgGCGameServerInfo"] = 4508] = "k_EMsgGCGameServerInfo";
|
|
22
|
+
EGCBaseMsg[EGCBaseMsg["k_EMsgGCError"] = 4509] = "k_EMsgGCError";
|
|
23
|
+
EGCBaseMsg[EGCBaseMsg["k_EMsgGCReplay_UploadedToYouTube"] = 4510] = "k_EMsgGCReplay_UploadedToYouTube";
|
|
24
|
+
EGCBaseMsg[EGCBaseMsg["k_EMsgGCLANServerAvailable"] = 4511] = "k_EMsgGCLANServerAvailable";
|
|
25
|
+
EGCBaseMsg[EGCBaseMsg["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
26
|
+
})(EGCBaseMsg || (EGCBaseMsg = {}));
|
|
27
|
+
export var EGCBaseProtoObjectTypes;
|
|
28
|
+
(function (EGCBaseProtoObjectTypes) {
|
|
29
|
+
EGCBaseProtoObjectTypes[EGCBaseProtoObjectTypes["k_EProtoObjectPartyInvite"] = 1001] = "k_EProtoObjectPartyInvite";
|
|
30
|
+
EGCBaseProtoObjectTypes[EGCBaseProtoObjectTypes["k_EProtoObjectLobbyInvite"] = 1002] = "k_EProtoObjectLobbyInvite";
|
|
31
|
+
EGCBaseProtoObjectTypes[EGCBaseProtoObjectTypes["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
32
|
+
})(EGCBaseProtoObjectTypes || (EGCBaseProtoObjectTypes = {}));
|
|
33
|
+
export var GCBannedWordType;
|
|
34
|
+
(function (GCBannedWordType) {
|
|
35
|
+
GCBannedWordType[GCBannedWordType["GC_BANNED_WORD_DISABLE_WORD"] = 0] = "GC_BANNED_WORD_DISABLE_WORD";
|
|
36
|
+
GCBannedWordType[GCBannedWordType["GC_BANNED_WORD_ENABLE_WORD"] = 1] = "GC_BANNED_WORD_ENABLE_WORD";
|
|
37
|
+
GCBannedWordType[GCBannedWordType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
38
|
+
})(GCBannedWordType || (GCBannedWordType = {}));
|
|
39
|
+
export var CMsgGameServerInfo_ServerType;
|
|
40
|
+
(function (CMsgGameServerInfo_ServerType) {
|
|
41
|
+
CMsgGameServerInfo_ServerType[CMsgGameServerInfo_ServerType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
42
|
+
CMsgGameServerInfo_ServerType[CMsgGameServerInfo_ServerType["GAME"] = 1] = "GAME";
|
|
43
|
+
CMsgGameServerInfo_ServerType[CMsgGameServerInfo_ServerType["PROXY"] = 2] = "PROXY";
|
|
44
|
+
CMsgGameServerInfo_ServerType[CMsgGameServerInfo_ServerType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
45
|
+
})(CMsgGameServerInfo_ServerType || (CMsgGameServerInfo_ServerType = {}));
|
|
46
|
+
function createBaseCGCStorePurchaseInitLineItem() {
|
|
47
|
+
return { itemDefId: 0, quantity: 0, costInLocalCurrency: 0, purchaseType: 0, supplementalData: 0 };
|
|
48
|
+
}
|
|
49
|
+
export const CGCStorePurchaseInitLineItem = {
|
|
50
|
+
encode(message, writer = new BinaryWriter()) {
|
|
51
|
+
if (message.itemDefId !== undefined && message.itemDefId !== 0) {
|
|
52
|
+
writer.uint32(8).uint32(message.itemDefId);
|
|
53
|
+
}
|
|
54
|
+
if (message.quantity !== undefined && message.quantity !== 0) {
|
|
55
|
+
writer.uint32(16).uint32(message.quantity);
|
|
56
|
+
}
|
|
57
|
+
if (message.costInLocalCurrency !== undefined && message.costInLocalCurrency !== 0) {
|
|
58
|
+
writer.uint32(24).uint64(message.costInLocalCurrency);
|
|
59
|
+
}
|
|
60
|
+
if (message.purchaseType !== undefined && message.purchaseType !== 0) {
|
|
61
|
+
writer.uint32(32).uint32(message.purchaseType);
|
|
62
|
+
}
|
|
63
|
+
if (message.supplementalData !== undefined && message.supplementalData !== 0) {
|
|
64
|
+
writer.uint32(40).uint64(message.supplementalData);
|
|
65
|
+
}
|
|
66
|
+
return writer;
|
|
67
|
+
},
|
|
68
|
+
decode(input, length) {
|
|
69
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
70
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
71
|
+
const message = createBaseCGCStorePurchaseInitLineItem();
|
|
72
|
+
while (reader.pos < end) {
|
|
73
|
+
const tag = reader.uint32();
|
|
74
|
+
switch (tag >>> 3) {
|
|
75
|
+
case 1: {
|
|
76
|
+
if (tag !== 8) {
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
message.itemDefId = reader.uint32();
|
|
80
|
+
continue;
|
|
81
|
+
}
|
|
82
|
+
case 2: {
|
|
83
|
+
if (tag !== 16) {
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
message.quantity = reader.uint32();
|
|
87
|
+
continue;
|
|
88
|
+
}
|
|
89
|
+
case 3: {
|
|
90
|
+
if (tag !== 24) {
|
|
91
|
+
break;
|
|
92
|
+
}
|
|
93
|
+
message.costInLocalCurrency = longToNumber(reader.uint64());
|
|
94
|
+
continue;
|
|
95
|
+
}
|
|
96
|
+
case 4: {
|
|
97
|
+
if (tag !== 32) {
|
|
98
|
+
break;
|
|
99
|
+
}
|
|
100
|
+
message.purchaseType = reader.uint32();
|
|
101
|
+
continue;
|
|
102
|
+
}
|
|
103
|
+
case 5: {
|
|
104
|
+
if (tag !== 40) {
|
|
105
|
+
break;
|
|
106
|
+
}
|
|
107
|
+
message.supplementalData = longToNumber(reader.uint64());
|
|
108
|
+
continue;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
112
|
+
break;
|
|
113
|
+
}
|
|
114
|
+
reader.skip(tag & 7);
|
|
115
|
+
}
|
|
116
|
+
return message;
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
function createBaseCMsgGCStorePurchaseInit() {
|
|
120
|
+
return { country: "", language: 0, currency: 0, lineItems: [] };
|
|
121
|
+
}
|
|
122
|
+
export const CMsgGCStorePurchaseInit = {
|
|
123
|
+
encode(message, writer = new BinaryWriter()) {
|
|
124
|
+
if (message.country !== undefined && message.country !== "") {
|
|
125
|
+
writer.uint32(10).string(message.country);
|
|
126
|
+
}
|
|
127
|
+
if (message.language !== undefined && message.language !== 0) {
|
|
128
|
+
writer.uint32(16).int32(message.language);
|
|
129
|
+
}
|
|
130
|
+
if (message.currency !== undefined && message.currency !== 0) {
|
|
131
|
+
writer.uint32(24).int32(message.currency);
|
|
132
|
+
}
|
|
133
|
+
for (const v of message.lineItems) {
|
|
134
|
+
CGCStorePurchaseInitLineItem.encode(v, writer.uint32(34).fork()).join();
|
|
135
|
+
}
|
|
136
|
+
return writer;
|
|
137
|
+
},
|
|
138
|
+
decode(input, length) {
|
|
139
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
140
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
141
|
+
const message = createBaseCMsgGCStorePurchaseInit();
|
|
142
|
+
while (reader.pos < end) {
|
|
143
|
+
const tag = reader.uint32();
|
|
144
|
+
switch (tag >>> 3) {
|
|
145
|
+
case 1: {
|
|
146
|
+
if (tag !== 10) {
|
|
147
|
+
break;
|
|
148
|
+
}
|
|
149
|
+
message.country = reader.string();
|
|
150
|
+
continue;
|
|
151
|
+
}
|
|
152
|
+
case 2: {
|
|
153
|
+
if (tag !== 16) {
|
|
154
|
+
break;
|
|
155
|
+
}
|
|
156
|
+
message.language = reader.int32();
|
|
157
|
+
continue;
|
|
158
|
+
}
|
|
159
|
+
case 3: {
|
|
160
|
+
if (tag !== 24) {
|
|
161
|
+
break;
|
|
162
|
+
}
|
|
163
|
+
message.currency = reader.int32();
|
|
164
|
+
continue;
|
|
165
|
+
}
|
|
166
|
+
case 4: {
|
|
167
|
+
if (tag !== 34) {
|
|
168
|
+
break;
|
|
169
|
+
}
|
|
170
|
+
message.lineItems.push(CGCStorePurchaseInitLineItem.decode(reader, reader.uint32()));
|
|
171
|
+
continue;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
175
|
+
break;
|
|
176
|
+
}
|
|
177
|
+
reader.skip(tag & 7);
|
|
178
|
+
}
|
|
179
|
+
return message;
|
|
180
|
+
},
|
|
181
|
+
};
|
|
182
|
+
function createBaseCMsgGCStorePurchaseInitResponse() {
|
|
183
|
+
return { result: 0, txnId: 0, url: "", itemIds: [] };
|
|
184
|
+
}
|
|
185
|
+
export const CMsgGCStorePurchaseInitResponse = {
|
|
186
|
+
encode(message, writer = new BinaryWriter()) {
|
|
187
|
+
if (message.result !== undefined && message.result !== 0) {
|
|
188
|
+
writer.uint32(8).int32(message.result);
|
|
189
|
+
}
|
|
190
|
+
if (message.txnId !== undefined && message.txnId !== 0) {
|
|
191
|
+
writer.uint32(16).uint64(message.txnId);
|
|
192
|
+
}
|
|
193
|
+
if (message.url !== undefined && message.url !== "") {
|
|
194
|
+
writer.uint32(26).string(message.url);
|
|
195
|
+
}
|
|
196
|
+
for (const v of message.itemIds) {
|
|
197
|
+
writer.uint32(32).uint64(v);
|
|
198
|
+
}
|
|
199
|
+
return writer;
|
|
200
|
+
},
|
|
201
|
+
decode(input, length) {
|
|
202
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
203
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
204
|
+
const message = createBaseCMsgGCStorePurchaseInitResponse();
|
|
205
|
+
while (reader.pos < end) {
|
|
206
|
+
const tag = reader.uint32();
|
|
207
|
+
switch (tag >>> 3) {
|
|
208
|
+
case 1: {
|
|
209
|
+
if (tag !== 8) {
|
|
210
|
+
break;
|
|
211
|
+
}
|
|
212
|
+
message.result = reader.int32();
|
|
213
|
+
continue;
|
|
214
|
+
}
|
|
215
|
+
case 2: {
|
|
216
|
+
if (tag !== 16) {
|
|
217
|
+
break;
|
|
218
|
+
}
|
|
219
|
+
message.txnId = longToNumber(reader.uint64());
|
|
220
|
+
continue;
|
|
221
|
+
}
|
|
222
|
+
case 3: {
|
|
223
|
+
if (tag !== 26) {
|
|
224
|
+
break;
|
|
225
|
+
}
|
|
226
|
+
message.url = reader.string();
|
|
227
|
+
continue;
|
|
228
|
+
}
|
|
229
|
+
case 4: {
|
|
230
|
+
if (tag === 32) {
|
|
231
|
+
message.itemIds.push(longToNumber(reader.uint64()));
|
|
232
|
+
continue;
|
|
233
|
+
}
|
|
234
|
+
if (tag === 34) {
|
|
235
|
+
const end2 = reader.uint32() + reader.pos;
|
|
236
|
+
while (reader.pos < end2) {
|
|
237
|
+
message.itemIds.push(longToNumber(reader.uint64()));
|
|
238
|
+
}
|
|
239
|
+
continue;
|
|
240
|
+
}
|
|
241
|
+
break;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
245
|
+
break;
|
|
246
|
+
}
|
|
247
|
+
reader.skip(tag & 7);
|
|
248
|
+
}
|
|
249
|
+
return message;
|
|
250
|
+
},
|
|
251
|
+
};
|
|
252
|
+
function createBaseCSOPartyInvite() {
|
|
253
|
+
return { groupId: 0, senderId: 0, senderName: "" };
|
|
254
|
+
}
|
|
255
|
+
export const CSOPartyInvite = {
|
|
256
|
+
encode(message, writer = new BinaryWriter()) {
|
|
257
|
+
if (message.groupId !== undefined && message.groupId !== 0) {
|
|
258
|
+
writer.uint32(8).uint64(message.groupId);
|
|
259
|
+
}
|
|
260
|
+
if (message.senderId !== undefined && message.senderId !== 0) {
|
|
261
|
+
writer.uint32(17).fixed64(message.senderId);
|
|
262
|
+
}
|
|
263
|
+
if (message.senderName !== undefined && message.senderName !== "") {
|
|
264
|
+
writer.uint32(26).string(message.senderName);
|
|
265
|
+
}
|
|
266
|
+
return writer;
|
|
267
|
+
},
|
|
268
|
+
decode(input, length) {
|
|
269
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
270
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
271
|
+
const message = createBaseCSOPartyInvite();
|
|
272
|
+
while (reader.pos < end) {
|
|
273
|
+
const tag = reader.uint32();
|
|
274
|
+
switch (tag >>> 3) {
|
|
275
|
+
case 1: {
|
|
276
|
+
if (tag !== 8) {
|
|
277
|
+
break;
|
|
278
|
+
}
|
|
279
|
+
message.groupId = longToNumber(reader.uint64());
|
|
280
|
+
continue;
|
|
281
|
+
}
|
|
282
|
+
case 2: {
|
|
283
|
+
if (tag !== 17) {
|
|
284
|
+
break;
|
|
285
|
+
}
|
|
286
|
+
message.senderId = longToNumber(reader.fixed64());
|
|
287
|
+
continue;
|
|
288
|
+
}
|
|
289
|
+
case 3: {
|
|
290
|
+
if (tag !== 26) {
|
|
291
|
+
break;
|
|
292
|
+
}
|
|
293
|
+
message.senderName = reader.string();
|
|
294
|
+
continue;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
298
|
+
break;
|
|
299
|
+
}
|
|
300
|
+
reader.skip(tag & 7);
|
|
301
|
+
}
|
|
302
|
+
return message;
|
|
303
|
+
},
|
|
304
|
+
};
|
|
305
|
+
function createBaseCSOLobbyInvite() {
|
|
306
|
+
return { groupId: 0, senderId: 0, senderName: "" };
|
|
307
|
+
}
|
|
308
|
+
export const CSOLobbyInvite = {
|
|
309
|
+
encode(message, writer = new BinaryWriter()) {
|
|
310
|
+
if (message.groupId !== undefined && message.groupId !== 0) {
|
|
311
|
+
writer.uint32(8).uint64(message.groupId);
|
|
312
|
+
}
|
|
313
|
+
if (message.senderId !== undefined && message.senderId !== 0) {
|
|
314
|
+
writer.uint32(17).fixed64(message.senderId);
|
|
315
|
+
}
|
|
316
|
+
if (message.senderName !== undefined && message.senderName !== "") {
|
|
317
|
+
writer.uint32(26).string(message.senderName);
|
|
318
|
+
}
|
|
319
|
+
return writer;
|
|
320
|
+
},
|
|
321
|
+
decode(input, length) {
|
|
322
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
323
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
324
|
+
const message = createBaseCSOLobbyInvite();
|
|
325
|
+
while (reader.pos < end) {
|
|
326
|
+
const tag = reader.uint32();
|
|
327
|
+
switch (tag >>> 3) {
|
|
328
|
+
case 1: {
|
|
329
|
+
if (tag !== 8) {
|
|
330
|
+
break;
|
|
331
|
+
}
|
|
332
|
+
message.groupId = longToNumber(reader.uint64());
|
|
333
|
+
continue;
|
|
334
|
+
}
|
|
335
|
+
case 2: {
|
|
336
|
+
if (tag !== 17) {
|
|
337
|
+
break;
|
|
338
|
+
}
|
|
339
|
+
message.senderId = longToNumber(reader.fixed64());
|
|
340
|
+
continue;
|
|
341
|
+
}
|
|
342
|
+
case 3: {
|
|
343
|
+
if (tag !== 26) {
|
|
344
|
+
break;
|
|
345
|
+
}
|
|
346
|
+
message.senderName = reader.string();
|
|
347
|
+
continue;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
351
|
+
break;
|
|
352
|
+
}
|
|
353
|
+
reader.skip(tag & 7);
|
|
354
|
+
}
|
|
355
|
+
return message;
|
|
356
|
+
},
|
|
357
|
+
};
|
|
358
|
+
function createBaseCMsgSystemBroadcast() {
|
|
359
|
+
return { message: "" };
|
|
360
|
+
}
|
|
361
|
+
export const CMsgSystemBroadcast = {
|
|
362
|
+
encode(message, writer = new BinaryWriter()) {
|
|
363
|
+
if (message.message !== undefined && message.message !== "") {
|
|
364
|
+
writer.uint32(10).string(message.message);
|
|
365
|
+
}
|
|
366
|
+
return writer;
|
|
367
|
+
},
|
|
368
|
+
decode(input, length) {
|
|
369
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
370
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
371
|
+
const message = createBaseCMsgSystemBroadcast();
|
|
372
|
+
while (reader.pos < end) {
|
|
373
|
+
const tag = reader.uint32();
|
|
374
|
+
switch (tag >>> 3) {
|
|
375
|
+
case 1: {
|
|
376
|
+
if (tag !== 10) {
|
|
377
|
+
break;
|
|
378
|
+
}
|
|
379
|
+
message.message = reader.string();
|
|
380
|
+
continue;
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
384
|
+
break;
|
|
385
|
+
}
|
|
386
|
+
reader.skip(tag & 7);
|
|
387
|
+
}
|
|
388
|
+
return message;
|
|
389
|
+
},
|
|
390
|
+
};
|
|
391
|
+
function createBaseCMsgInviteToParty() {
|
|
392
|
+
return { steamId: 0, clientVersion: 0, teamInvite: 0 };
|
|
393
|
+
}
|
|
394
|
+
export const CMsgInviteToParty = {
|
|
395
|
+
encode(message, writer = new BinaryWriter()) {
|
|
396
|
+
if (message.steamId !== undefined && message.steamId !== 0) {
|
|
397
|
+
writer.uint32(9).fixed64(message.steamId);
|
|
398
|
+
}
|
|
399
|
+
if (message.clientVersion !== undefined && message.clientVersion !== 0) {
|
|
400
|
+
writer.uint32(16).uint32(message.clientVersion);
|
|
401
|
+
}
|
|
402
|
+
if (message.teamInvite !== undefined && message.teamInvite !== 0) {
|
|
403
|
+
writer.uint32(24).uint32(message.teamInvite);
|
|
404
|
+
}
|
|
405
|
+
return writer;
|
|
406
|
+
},
|
|
407
|
+
decode(input, length) {
|
|
408
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
409
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
410
|
+
const message = createBaseCMsgInviteToParty();
|
|
411
|
+
while (reader.pos < end) {
|
|
412
|
+
const tag = reader.uint32();
|
|
413
|
+
switch (tag >>> 3) {
|
|
414
|
+
case 1: {
|
|
415
|
+
if (tag !== 9) {
|
|
416
|
+
break;
|
|
417
|
+
}
|
|
418
|
+
message.steamId = longToNumber(reader.fixed64());
|
|
419
|
+
continue;
|
|
420
|
+
}
|
|
421
|
+
case 2: {
|
|
422
|
+
if (tag !== 16) {
|
|
423
|
+
break;
|
|
424
|
+
}
|
|
425
|
+
message.clientVersion = reader.uint32();
|
|
426
|
+
continue;
|
|
427
|
+
}
|
|
428
|
+
case 3: {
|
|
429
|
+
if (tag !== 24) {
|
|
430
|
+
break;
|
|
431
|
+
}
|
|
432
|
+
message.teamInvite = reader.uint32();
|
|
433
|
+
continue;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
437
|
+
break;
|
|
438
|
+
}
|
|
439
|
+
reader.skip(tag & 7);
|
|
440
|
+
}
|
|
441
|
+
return message;
|
|
442
|
+
},
|
|
443
|
+
};
|
|
444
|
+
function createBaseCMsgInvitationCreated() {
|
|
445
|
+
return { groupId: 0, steamId: 0 };
|
|
446
|
+
}
|
|
447
|
+
export const CMsgInvitationCreated = {
|
|
448
|
+
encode(message, writer = new BinaryWriter()) {
|
|
449
|
+
if (message.groupId !== undefined && message.groupId !== 0) {
|
|
450
|
+
writer.uint32(8).uint64(message.groupId);
|
|
451
|
+
}
|
|
452
|
+
if (message.steamId !== undefined && message.steamId !== 0) {
|
|
453
|
+
writer.uint32(17).fixed64(message.steamId);
|
|
454
|
+
}
|
|
455
|
+
return writer;
|
|
456
|
+
},
|
|
457
|
+
decode(input, length) {
|
|
458
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
459
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
460
|
+
const message = createBaseCMsgInvitationCreated();
|
|
461
|
+
while (reader.pos < end) {
|
|
462
|
+
const tag = reader.uint32();
|
|
463
|
+
switch (tag >>> 3) {
|
|
464
|
+
case 1: {
|
|
465
|
+
if (tag !== 8) {
|
|
466
|
+
break;
|
|
467
|
+
}
|
|
468
|
+
message.groupId = longToNumber(reader.uint64());
|
|
469
|
+
continue;
|
|
470
|
+
}
|
|
471
|
+
case 2: {
|
|
472
|
+
if (tag !== 17) {
|
|
473
|
+
break;
|
|
474
|
+
}
|
|
475
|
+
message.steamId = longToNumber(reader.fixed64());
|
|
476
|
+
continue;
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
480
|
+
break;
|
|
481
|
+
}
|
|
482
|
+
reader.skip(tag & 7);
|
|
483
|
+
}
|
|
484
|
+
return message;
|
|
485
|
+
},
|
|
486
|
+
};
|
|
487
|
+
function createBaseCMsgPartyInviteResponse() {
|
|
488
|
+
return { partyId: 0, accept: false, clientVersion: 0, teamInvite: 0 };
|
|
489
|
+
}
|
|
490
|
+
export const CMsgPartyInviteResponse = {
|
|
491
|
+
encode(message, writer = new BinaryWriter()) {
|
|
492
|
+
if (message.partyId !== undefined && message.partyId !== 0) {
|
|
493
|
+
writer.uint32(8).uint64(message.partyId);
|
|
494
|
+
}
|
|
495
|
+
if (message.accept !== undefined && message.accept !== false) {
|
|
496
|
+
writer.uint32(16).bool(message.accept);
|
|
497
|
+
}
|
|
498
|
+
if (message.clientVersion !== undefined && message.clientVersion !== 0) {
|
|
499
|
+
writer.uint32(24).uint32(message.clientVersion);
|
|
500
|
+
}
|
|
501
|
+
if (message.teamInvite !== undefined && message.teamInvite !== 0) {
|
|
502
|
+
writer.uint32(32).uint32(message.teamInvite);
|
|
503
|
+
}
|
|
504
|
+
return writer;
|
|
505
|
+
},
|
|
506
|
+
decode(input, length) {
|
|
507
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
508
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
509
|
+
const message = createBaseCMsgPartyInviteResponse();
|
|
510
|
+
while (reader.pos < end) {
|
|
511
|
+
const tag = reader.uint32();
|
|
512
|
+
switch (tag >>> 3) {
|
|
513
|
+
case 1: {
|
|
514
|
+
if (tag !== 8) {
|
|
515
|
+
break;
|
|
516
|
+
}
|
|
517
|
+
message.partyId = longToNumber(reader.uint64());
|
|
518
|
+
continue;
|
|
519
|
+
}
|
|
520
|
+
case 2: {
|
|
521
|
+
if (tag !== 16) {
|
|
522
|
+
break;
|
|
523
|
+
}
|
|
524
|
+
message.accept = reader.bool();
|
|
525
|
+
continue;
|
|
526
|
+
}
|
|
527
|
+
case 3: {
|
|
528
|
+
if (tag !== 24) {
|
|
529
|
+
break;
|
|
530
|
+
}
|
|
531
|
+
message.clientVersion = reader.uint32();
|
|
532
|
+
continue;
|
|
533
|
+
}
|
|
534
|
+
case 4: {
|
|
535
|
+
if (tag !== 32) {
|
|
536
|
+
break;
|
|
537
|
+
}
|
|
538
|
+
message.teamInvite = reader.uint32();
|
|
539
|
+
continue;
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
543
|
+
break;
|
|
544
|
+
}
|
|
545
|
+
reader.skip(tag & 7);
|
|
546
|
+
}
|
|
547
|
+
return message;
|
|
548
|
+
},
|
|
549
|
+
};
|
|
550
|
+
function createBaseCMsgKickFromParty() {
|
|
551
|
+
return { steamId: 0 };
|
|
552
|
+
}
|
|
553
|
+
export const CMsgKickFromParty = {
|
|
554
|
+
encode(message, writer = new BinaryWriter()) {
|
|
555
|
+
if (message.steamId !== undefined && message.steamId !== 0) {
|
|
556
|
+
writer.uint32(9).fixed64(message.steamId);
|
|
557
|
+
}
|
|
558
|
+
return writer;
|
|
559
|
+
},
|
|
560
|
+
decode(input, length) {
|
|
561
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
562
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
563
|
+
const message = createBaseCMsgKickFromParty();
|
|
564
|
+
while (reader.pos < end) {
|
|
565
|
+
const tag = reader.uint32();
|
|
566
|
+
switch (tag >>> 3) {
|
|
567
|
+
case 1: {
|
|
568
|
+
if (tag !== 9) {
|
|
569
|
+
break;
|
|
570
|
+
}
|
|
571
|
+
message.steamId = longToNumber(reader.fixed64());
|
|
572
|
+
continue;
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
576
|
+
break;
|
|
577
|
+
}
|
|
578
|
+
reader.skip(tag & 7);
|
|
579
|
+
}
|
|
580
|
+
return message;
|
|
581
|
+
},
|
|
582
|
+
};
|
|
583
|
+
function createBaseCMsgLeaveParty() {
|
|
584
|
+
return {};
|
|
585
|
+
}
|
|
586
|
+
export const CMsgLeaveParty = {
|
|
587
|
+
encode(_, writer = new BinaryWriter()) {
|
|
588
|
+
return writer;
|
|
589
|
+
},
|
|
590
|
+
decode(input, length) {
|
|
591
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
592
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
593
|
+
const message = createBaseCMsgLeaveParty();
|
|
594
|
+
while (reader.pos < end) {
|
|
595
|
+
const tag = reader.uint32();
|
|
596
|
+
switch (tag >>> 3) {
|
|
597
|
+
}
|
|
598
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
599
|
+
break;
|
|
600
|
+
}
|
|
601
|
+
reader.skip(tag & 7);
|
|
602
|
+
}
|
|
603
|
+
return message;
|
|
604
|
+
},
|
|
605
|
+
};
|
|
606
|
+
function createBaseCMsgServerAvailable() {
|
|
607
|
+
return {};
|
|
608
|
+
}
|
|
609
|
+
export const CMsgServerAvailable = {
|
|
610
|
+
encode(_, writer = new BinaryWriter()) {
|
|
611
|
+
return writer;
|
|
612
|
+
},
|
|
613
|
+
decode(input, length) {
|
|
614
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
615
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
616
|
+
const message = createBaseCMsgServerAvailable();
|
|
617
|
+
while (reader.pos < end) {
|
|
618
|
+
const tag = reader.uint32();
|
|
619
|
+
switch (tag >>> 3) {
|
|
620
|
+
}
|
|
621
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
622
|
+
break;
|
|
623
|
+
}
|
|
624
|
+
reader.skip(tag & 7);
|
|
625
|
+
}
|
|
626
|
+
return message;
|
|
627
|
+
},
|
|
628
|
+
};
|
|
629
|
+
function createBaseCMsgLANServerAvailable() {
|
|
630
|
+
return { lobbyId: 0 };
|
|
631
|
+
}
|
|
632
|
+
export const CMsgLANServerAvailable = {
|
|
633
|
+
encode(message, writer = new BinaryWriter()) {
|
|
634
|
+
if (message.lobbyId !== undefined && message.lobbyId !== 0) {
|
|
635
|
+
writer.uint32(9).fixed64(message.lobbyId);
|
|
636
|
+
}
|
|
637
|
+
return writer;
|
|
638
|
+
},
|
|
639
|
+
decode(input, length) {
|
|
640
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
641
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
642
|
+
const message = createBaseCMsgLANServerAvailable();
|
|
643
|
+
while (reader.pos < end) {
|
|
644
|
+
const tag = reader.uint32();
|
|
645
|
+
switch (tag >>> 3) {
|
|
646
|
+
case 1: {
|
|
647
|
+
if (tag !== 9) {
|
|
648
|
+
break;
|
|
649
|
+
}
|
|
650
|
+
message.lobbyId = longToNumber(reader.fixed64());
|
|
651
|
+
continue;
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
655
|
+
break;
|
|
656
|
+
}
|
|
657
|
+
reader.skip(tag & 7);
|
|
658
|
+
}
|
|
659
|
+
return message;
|
|
660
|
+
},
|
|
661
|
+
};
|
|
662
|
+
function createBaseCSOEconGameAccountClient() {
|
|
663
|
+
return {
|
|
664
|
+
additionalBackpackSlots: 0,
|
|
665
|
+
tradeBanExpiration: 0,
|
|
666
|
+
bonusXpTimestampRefresh: 0,
|
|
667
|
+
bonusXpUsedflags: 0,
|
|
668
|
+
elevatedState: 0,
|
|
669
|
+
elevatedTimestamp: 0,
|
|
670
|
+
};
|
|
671
|
+
}
|
|
672
|
+
export const CSOEconGameAccountClient = {
|
|
673
|
+
encode(message, writer = new BinaryWriter()) {
|
|
674
|
+
if (message.additionalBackpackSlots !== undefined && message.additionalBackpackSlots !== 0) {
|
|
675
|
+
writer.uint32(8).uint32(message.additionalBackpackSlots);
|
|
676
|
+
}
|
|
677
|
+
if (message.tradeBanExpiration !== undefined && message.tradeBanExpiration !== 0) {
|
|
678
|
+
writer.uint32(53).fixed32(message.tradeBanExpiration);
|
|
679
|
+
}
|
|
680
|
+
if (message.bonusXpTimestampRefresh !== undefined && message.bonusXpTimestampRefresh !== 0) {
|
|
681
|
+
writer.uint32(101).fixed32(message.bonusXpTimestampRefresh);
|
|
682
|
+
}
|
|
683
|
+
if (message.bonusXpUsedflags !== undefined && message.bonusXpUsedflags !== 0) {
|
|
684
|
+
writer.uint32(104).uint32(message.bonusXpUsedflags);
|
|
685
|
+
}
|
|
686
|
+
if (message.elevatedState !== undefined && message.elevatedState !== 0) {
|
|
687
|
+
writer.uint32(112).uint32(message.elevatedState);
|
|
688
|
+
}
|
|
689
|
+
if (message.elevatedTimestamp !== undefined && message.elevatedTimestamp !== 0) {
|
|
690
|
+
writer.uint32(120).uint32(message.elevatedTimestamp);
|
|
691
|
+
}
|
|
692
|
+
return writer;
|
|
693
|
+
},
|
|
694
|
+
decode(input, length) {
|
|
695
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
696
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
697
|
+
const message = createBaseCSOEconGameAccountClient();
|
|
698
|
+
while (reader.pos < end) {
|
|
699
|
+
const tag = reader.uint32();
|
|
700
|
+
switch (tag >>> 3) {
|
|
701
|
+
case 1: {
|
|
702
|
+
if (tag !== 8) {
|
|
703
|
+
break;
|
|
704
|
+
}
|
|
705
|
+
message.additionalBackpackSlots = reader.uint32();
|
|
706
|
+
continue;
|
|
707
|
+
}
|
|
708
|
+
case 6: {
|
|
709
|
+
if (tag !== 53) {
|
|
710
|
+
break;
|
|
711
|
+
}
|
|
712
|
+
message.tradeBanExpiration = reader.fixed32();
|
|
713
|
+
continue;
|
|
714
|
+
}
|
|
715
|
+
case 12: {
|
|
716
|
+
if (tag !== 101) {
|
|
717
|
+
break;
|
|
718
|
+
}
|
|
719
|
+
message.bonusXpTimestampRefresh = reader.fixed32();
|
|
720
|
+
continue;
|
|
721
|
+
}
|
|
722
|
+
case 13: {
|
|
723
|
+
if (tag !== 104) {
|
|
724
|
+
break;
|
|
725
|
+
}
|
|
726
|
+
message.bonusXpUsedflags = reader.uint32();
|
|
727
|
+
continue;
|
|
728
|
+
}
|
|
729
|
+
case 14: {
|
|
730
|
+
if (tag !== 112) {
|
|
731
|
+
break;
|
|
732
|
+
}
|
|
733
|
+
message.elevatedState = reader.uint32();
|
|
734
|
+
continue;
|
|
735
|
+
}
|
|
736
|
+
case 15: {
|
|
737
|
+
if (tag !== 120) {
|
|
738
|
+
break;
|
|
739
|
+
}
|
|
740
|
+
message.elevatedTimestamp = reader.uint32();
|
|
741
|
+
continue;
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
745
|
+
break;
|
|
746
|
+
}
|
|
747
|
+
reader.skip(tag & 7);
|
|
748
|
+
}
|
|
749
|
+
return message;
|
|
750
|
+
},
|
|
751
|
+
};
|
|
752
|
+
function createBaseCSOItemCriteriaCondition() {
|
|
753
|
+
return { op: 0, field: "", required: false, floatValue: 0, stringValue: "" };
|
|
754
|
+
}
|
|
755
|
+
export const CSOItemCriteriaCondition = {
|
|
756
|
+
encode(message, writer = new BinaryWriter()) {
|
|
757
|
+
if (message.op !== undefined && message.op !== 0) {
|
|
758
|
+
writer.uint32(8).int32(message.op);
|
|
759
|
+
}
|
|
760
|
+
if (message.field !== undefined && message.field !== "") {
|
|
761
|
+
writer.uint32(18).string(message.field);
|
|
762
|
+
}
|
|
763
|
+
if (message.required !== undefined && message.required !== false) {
|
|
764
|
+
writer.uint32(24).bool(message.required);
|
|
765
|
+
}
|
|
766
|
+
if (message.floatValue !== undefined && message.floatValue !== 0) {
|
|
767
|
+
writer.uint32(37).float(message.floatValue);
|
|
768
|
+
}
|
|
769
|
+
if (message.stringValue !== undefined && message.stringValue !== "") {
|
|
770
|
+
writer.uint32(42).string(message.stringValue);
|
|
771
|
+
}
|
|
772
|
+
return writer;
|
|
773
|
+
},
|
|
774
|
+
decode(input, length) {
|
|
775
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
776
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
777
|
+
const message = createBaseCSOItemCriteriaCondition();
|
|
778
|
+
while (reader.pos < end) {
|
|
779
|
+
const tag = reader.uint32();
|
|
780
|
+
switch (tag >>> 3) {
|
|
781
|
+
case 1: {
|
|
782
|
+
if (tag !== 8) {
|
|
783
|
+
break;
|
|
784
|
+
}
|
|
785
|
+
message.op = reader.int32();
|
|
786
|
+
continue;
|
|
787
|
+
}
|
|
788
|
+
case 2: {
|
|
789
|
+
if (tag !== 18) {
|
|
790
|
+
break;
|
|
791
|
+
}
|
|
792
|
+
message.field = reader.string();
|
|
793
|
+
continue;
|
|
794
|
+
}
|
|
795
|
+
case 3: {
|
|
796
|
+
if (tag !== 24) {
|
|
797
|
+
break;
|
|
798
|
+
}
|
|
799
|
+
message.required = reader.bool();
|
|
800
|
+
continue;
|
|
801
|
+
}
|
|
802
|
+
case 4: {
|
|
803
|
+
if (tag !== 37) {
|
|
804
|
+
break;
|
|
805
|
+
}
|
|
806
|
+
message.floatValue = reader.float();
|
|
807
|
+
continue;
|
|
808
|
+
}
|
|
809
|
+
case 5: {
|
|
810
|
+
if (tag !== 42) {
|
|
811
|
+
break;
|
|
812
|
+
}
|
|
813
|
+
message.stringValue = reader.string();
|
|
814
|
+
continue;
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
818
|
+
break;
|
|
819
|
+
}
|
|
820
|
+
reader.skip(tag & 7);
|
|
821
|
+
}
|
|
822
|
+
return message;
|
|
823
|
+
},
|
|
824
|
+
};
|
|
825
|
+
function createBaseCSOItemCriteria() {
|
|
826
|
+
return {
|
|
827
|
+
itemLevel: 0,
|
|
828
|
+
itemQuality: 0,
|
|
829
|
+
itemLevelSet: false,
|
|
830
|
+
itemQualitySet: false,
|
|
831
|
+
initialInventory: 0,
|
|
832
|
+
initialQuantity: 0,
|
|
833
|
+
ignoreEnabledFlag: false,
|
|
834
|
+
conditions: [],
|
|
835
|
+
itemRarity: 0,
|
|
836
|
+
itemRaritySet: false,
|
|
837
|
+
recentOnly: false,
|
|
838
|
+
};
|
|
839
|
+
}
|
|
840
|
+
export const CSOItemCriteria = {
|
|
841
|
+
encode(message, writer = new BinaryWriter()) {
|
|
842
|
+
if (message.itemLevel !== undefined && message.itemLevel !== 0) {
|
|
843
|
+
writer.uint32(8).uint32(message.itemLevel);
|
|
844
|
+
}
|
|
845
|
+
if (message.itemQuality !== undefined && message.itemQuality !== 0) {
|
|
846
|
+
writer.uint32(16).int32(message.itemQuality);
|
|
847
|
+
}
|
|
848
|
+
if (message.itemLevelSet !== undefined && message.itemLevelSet !== false) {
|
|
849
|
+
writer.uint32(24).bool(message.itemLevelSet);
|
|
850
|
+
}
|
|
851
|
+
if (message.itemQualitySet !== undefined && message.itemQualitySet !== false) {
|
|
852
|
+
writer.uint32(32).bool(message.itemQualitySet);
|
|
853
|
+
}
|
|
854
|
+
if (message.initialInventory !== undefined && message.initialInventory !== 0) {
|
|
855
|
+
writer.uint32(40).uint32(message.initialInventory);
|
|
856
|
+
}
|
|
857
|
+
if (message.initialQuantity !== undefined && message.initialQuantity !== 0) {
|
|
858
|
+
writer.uint32(48).uint32(message.initialQuantity);
|
|
859
|
+
}
|
|
860
|
+
if (message.ignoreEnabledFlag !== undefined && message.ignoreEnabledFlag !== false) {
|
|
861
|
+
writer.uint32(64).bool(message.ignoreEnabledFlag);
|
|
862
|
+
}
|
|
863
|
+
for (const v of message.conditions) {
|
|
864
|
+
CSOItemCriteriaCondition.encode(v, writer.uint32(74).fork()).join();
|
|
865
|
+
}
|
|
866
|
+
if (message.itemRarity !== undefined && message.itemRarity !== 0) {
|
|
867
|
+
writer.uint32(80).int32(message.itemRarity);
|
|
868
|
+
}
|
|
869
|
+
if (message.itemRaritySet !== undefined && message.itemRaritySet !== false) {
|
|
870
|
+
writer.uint32(88).bool(message.itemRaritySet);
|
|
871
|
+
}
|
|
872
|
+
if (message.recentOnly !== undefined && message.recentOnly !== false) {
|
|
873
|
+
writer.uint32(96).bool(message.recentOnly);
|
|
874
|
+
}
|
|
875
|
+
return writer;
|
|
876
|
+
},
|
|
877
|
+
decode(input, length) {
|
|
878
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
879
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
880
|
+
const message = createBaseCSOItemCriteria();
|
|
881
|
+
while (reader.pos < end) {
|
|
882
|
+
const tag = reader.uint32();
|
|
883
|
+
switch (tag >>> 3) {
|
|
884
|
+
case 1: {
|
|
885
|
+
if (tag !== 8) {
|
|
886
|
+
break;
|
|
887
|
+
}
|
|
888
|
+
message.itemLevel = reader.uint32();
|
|
889
|
+
continue;
|
|
890
|
+
}
|
|
891
|
+
case 2: {
|
|
892
|
+
if (tag !== 16) {
|
|
893
|
+
break;
|
|
894
|
+
}
|
|
895
|
+
message.itemQuality = reader.int32();
|
|
896
|
+
continue;
|
|
897
|
+
}
|
|
898
|
+
case 3: {
|
|
899
|
+
if (tag !== 24) {
|
|
900
|
+
break;
|
|
901
|
+
}
|
|
902
|
+
message.itemLevelSet = reader.bool();
|
|
903
|
+
continue;
|
|
904
|
+
}
|
|
905
|
+
case 4: {
|
|
906
|
+
if (tag !== 32) {
|
|
907
|
+
break;
|
|
908
|
+
}
|
|
909
|
+
message.itemQualitySet = reader.bool();
|
|
910
|
+
continue;
|
|
911
|
+
}
|
|
912
|
+
case 5: {
|
|
913
|
+
if (tag !== 40) {
|
|
914
|
+
break;
|
|
915
|
+
}
|
|
916
|
+
message.initialInventory = reader.uint32();
|
|
917
|
+
continue;
|
|
918
|
+
}
|
|
919
|
+
case 6: {
|
|
920
|
+
if (tag !== 48) {
|
|
921
|
+
break;
|
|
922
|
+
}
|
|
923
|
+
message.initialQuantity = reader.uint32();
|
|
924
|
+
continue;
|
|
925
|
+
}
|
|
926
|
+
case 8: {
|
|
927
|
+
if (tag !== 64) {
|
|
928
|
+
break;
|
|
929
|
+
}
|
|
930
|
+
message.ignoreEnabledFlag = reader.bool();
|
|
931
|
+
continue;
|
|
932
|
+
}
|
|
933
|
+
case 9: {
|
|
934
|
+
if (tag !== 74) {
|
|
935
|
+
break;
|
|
936
|
+
}
|
|
937
|
+
message.conditions.push(CSOItemCriteriaCondition.decode(reader, reader.uint32()));
|
|
938
|
+
continue;
|
|
939
|
+
}
|
|
940
|
+
case 10: {
|
|
941
|
+
if (tag !== 80) {
|
|
942
|
+
break;
|
|
943
|
+
}
|
|
944
|
+
message.itemRarity = reader.int32();
|
|
945
|
+
continue;
|
|
946
|
+
}
|
|
947
|
+
case 11: {
|
|
948
|
+
if (tag !== 88) {
|
|
949
|
+
break;
|
|
950
|
+
}
|
|
951
|
+
message.itemRaritySet = reader.bool();
|
|
952
|
+
continue;
|
|
953
|
+
}
|
|
954
|
+
case 12: {
|
|
955
|
+
if (tag !== 96) {
|
|
956
|
+
break;
|
|
957
|
+
}
|
|
958
|
+
message.recentOnly = reader.bool();
|
|
959
|
+
continue;
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
963
|
+
break;
|
|
964
|
+
}
|
|
965
|
+
reader.skip(tag & 7);
|
|
966
|
+
}
|
|
967
|
+
return message;
|
|
968
|
+
},
|
|
969
|
+
};
|
|
970
|
+
function createBaseCSOItemRecipe() {
|
|
971
|
+
return {
|
|
972
|
+
defIndex: 0,
|
|
973
|
+
name: "",
|
|
974
|
+
nA: "",
|
|
975
|
+
descInputs: "",
|
|
976
|
+
descOutputs: "",
|
|
977
|
+
diA: "",
|
|
978
|
+
diB: "",
|
|
979
|
+
diC: "",
|
|
980
|
+
doA: "",
|
|
981
|
+
doB: "",
|
|
982
|
+
doC: "",
|
|
983
|
+
requiresAllSameClass: false,
|
|
984
|
+
requiresAllSameSlot: false,
|
|
985
|
+
classUsageForOutput: 0,
|
|
986
|
+
slotUsageForOutput: 0,
|
|
987
|
+
setForOutput: 0,
|
|
988
|
+
inputItemsCriteria: [],
|
|
989
|
+
outputItemsCriteria: [],
|
|
990
|
+
inputItemDupeCounts: [],
|
|
991
|
+
};
|
|
992
|
+
}
|
|
993
|
+
export const CSOItemRecipe = {
|
|
994
|
+
encode(message, writer = new BinaryWriter()) {
|
|
995
|
+
if (message.defIndex !== undefined && message.defIndex !== 0) {
|
|
996
|
+
writer.uint32(8).uint32(message.defIndex);
|
|
997
|
+
}
|
|
998
|
+
if (message.name !== undefined && message.name !== "") {
|
|
999
|
+
writer.uint32(18).string(message.name);
|
|
1000
|
+
}
|
|
1001
|
+
if (message.nA !== undefined && message.nA !== "") {
|
|
1002
|
+
writer.uint32(26).string(message.nA);
|
|
1003
|
+
}
|
|
1004
|
+
if (message.descInputs !== undefined && message.descInputs !== "") {
|
|
1005
|
+
writer.uint32(34).string(message.descInputs);
|
|
1006
|
+
}
|
|
1007
|
+
if (message.descOutputs !== undefined && message.descOutputs !== "") {
|
|
1008
|
+
writer.uint32(42).string(message.descOutputs);
|
|
1009
|
+
}
|
|
1010
|
+
if (message.diA !== undefined && message.diA !== "") {
|
|
1011
|
+
writer.uint32(50).string(message.diA);
|
|
1012
|
+
}
|
|
1013
|
+
if (message.diB !== undefined && message.diB !== "") {
|
|
1014
|
+
writer.uint32(58).string(message.diB);
|
|
1015
|
+
}
|
|
1016
|
+
if (message.diC !== undefined && message.diC !== "") {
|
|
1017
|
+
writer.uint32(66).string(message.diC);
|
|
1018
|
+
}
|
|
1019
|
+
if (message.doA !== undefined && message.doA !== "") {
|
|
1020
|
+
writer.uint32(74).string(message.doA);
|
|
1021
|
+
}
|
|
1022
|
+
if (message.doB !== undefined && message.doB !== "") {
|
|
1023
|
+
writer.uint32(82).string(message.doB);
|
|
1024
|
+
}
|
|
1025
|
+
if (message.doC !== undefined && message.doC !== "") {
|
|
1026
|
+
writer.uint32(90).string(message.doC);
|
|
1027
|
+
}
|
|
1028
|
+
if (message.requiresAllSameClass !== undefined && message.requiresAllSameClass !== false) {
|
|
1029
|
+
writer.uint32(96).bool(message.requiresAllSameClass);
|
|
1030
|
+
}
|
|
1031
|
+
if (message.requiresAllSameSlot !== undefined && message.requiresAllSameSlot !== false) {
|
|
1032
|
+
writer.uint32(104).bool(message.requiresAllSameSlot);
|
|
1033
|
+
}
|
|
1034
|
+
if (message.classUsageForOutput !== undefined && message.classUsageForOutput !== 0) {
|
|
1035
|
+
writer.uint32(112).int32(message.classUsageForOutput);
|
|
1036
|
+
}
|
|
1037
|
+
if (message.slotUsageForOutput !== undefined && message.slotUsageForOutput !== 0) {
|
|
1038
|
+
writer.uint32(120).int32(message.slotUsageForOutput);
|
|
1039
|
+
}
|
|
1040
|
+
if (message.setForOutput !== undefined && message.setForOutput !== 0) {
|
|
1041
|
+
writer.uint32(128).int32(message.setForOutput);
|
|
1042
|
+
}
|
|
1043
|
+
for (const v of message.inputItemsCriteria) {
|
|
1044
|
+
CSOItemCriteria.encode(v, writer.uint32(162).fork()).join();
|
|
1045
|
+
}
|
|
1046
|
+
for (const v of message.outputItemsCriteria) {
|
|
1047
|
+
CSOItemCriteria.encode(v, writer.uint32(170).fork()).join();
|
|
1048
|
+
}
|
|
1049
|
+
for (const v of message.inputItemDupeCounts) {
|
|
1050
|
+
writer.uint32(176).uint32(v);
|
|
1051
|
+
}
|
|
1052
|
+
return writer;
|
|
1053
|
+
},
|
|
1054
|
+
decode(input, length) {
|
|
1055
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1056
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1057
|
+
const message = createBaseCSOItemRecipe();
|
|
1058
|
+
while (reader.pos < end) {
|
|
1059
|
+
const tag = reader.uint32();
|
|
1060
|
+
switch (tag >>> 3) {
|
|
1061
|
+
case 1: {
|
|
1062
|
+
if (tag !== 8) {
|
|
1063
|
+
break;
|
|
1064
|
+
}
|
|
1065
|
+
message.defIndex = reader.uint32();
|
|
1066
|
+
continue;
|
|
1067
|
+
}
|
|
1068
|
+
case 2: {
|
|
1069
|
+
if (tag !== 18) {
|
|
1070
|
+
break;
|
|
1071
|
+
}
|
|
1072
|
+
message.name = reader.string();
|
|
1073
|
+
continue;
|
|
1074
|
+
}
|
|
1075
|
+
case 3: {
|
|
1076
|
+
if (tag !== 26) {
|
|
1077
|
+
break;
|
|
1078
|
+
}
|
|
1079
|
+
message.nA = reader.string();
|
|
1080
|
+
continue;
|
|
1081
|
+
}
|
|
1082
|
+
case 4: {
|
|
1083
|
+
if (tag !== 34) {
|
|
1084
|
+
break;
|
|
1085
|
+
}
|
|
1086
|
+
message.descInputs = reader.string();
|
|
1087
|
+
continue;
|
|
1088
|
+
}
|
|
1089
|
+
case 5: {
|
|
1090
|
+
if (tag !== 42) {
|
|
1091
|
+
break;
|
|
1092
|
+
}
|
|
1093
|
+
message.descOutputs = reader.string();
|
|
1094
|
+
continue;
|
|
1095
|
+
}
|
|
1096
|
+
case 6: {
|
|
1097
|
+
if (tag !== 50) {
|
|
1098
|
+
break;
|
|
1099
|
+
}
|
|
1100
|
+
message.diA = reader.string();
|
|
1101
|
+
continue;
|
|
1102
|
+
}
|
|
1103
|
+
case 7: {
|
|
1104
|
+
if (tag !== 58) {
|
|
1105
|
+
break;
|
|
1106
|
+
}
|
|
1107
|
+
message.diB = reader.string();
|
|
1108
|
+
continue;
|
|
1109
|
+
}
|
|
1110
|
+
case 8: {
|
|
1111
|
+
if (tag !== 66) {
|
|
1112
|
+
break;
|
|
1113
|
+
}
|
|
1114
|
+
message.diC = reader.string();
|
|
1115
|
+
continue;
|
|
1116
|
+
}
|
|
1117
|
+
case 9: {
|
|
1118
|
+
if (tag !== 74) {
|
|
1119
|
+
break;
|
|
1120
|
+
}
|
|
1121
|
+
message.doA = reader.string();
|
|
1122
|
+
continue;
|
|
1123
|
+
}
|
|
1124
|
+
case 10: {
|
|
1125
|
+
if (tag !== 82) {
|
|
1126
|
+
break;
|
|
1127
|
+
}
|
|
1128
|
+
message.doB = reader.string();
|
|
1129
|
+
continue;
|
|
1130
|
+
}
|
|
1131
|
+
case 11: {
|
|
1132
|
+
if (tag !== 90) {
|
|
1133
|
+
break;
|
|
1134
|
+
}
|
|
1135
|
+
message.doC = reader.string();
|
|
1136
|
+
continue;
|
|
1137
|
+
}
|
|
1138
|
+
case 12: {
|
|
1139
|
+
if (tag !== 96) {
|
|
1140
|
+
break;
|
|
1141
|
+
}
|
|
1142
|
+
message.requiresAllSameClass = reader.bool();
|
|
1143
|
+
continue;
|
|
1144
|
+
}
|
|
1145
|
+
case 13: {
|
|
1146
|
+
if (tag !== 104) {
|
|
1147
|
+
break;
|
|
1148
|
+
}
|
|
1149
|
+
message.requiresAllSameSlot = reader.bool();
|
|
1150
|
+
continue;
|
|
1151
|
+
}
|
|
1152
|
+
case 14: {
|
|
1153
|
+
if (tag !== 112) {
|
|
1154
|
+
break;
|
|
1155
|
+
}
|
|
1156
|
+
message.classUsageForOutput = reader.int32();
|
|
1157
|
+
continue;
|
|
1158
|
+
}
|
|
1159
|
+
case 15: {
|
|
1160
|
+
if (tag !== 120) {
|
|
1161
|
+
break;
|
|
1162
|
+
}
|
|
1163
|
+
message.slotUsageForOutput = reader.int32();
|
|
1164
|
+
continue;
|
|
1165
|
+
}
|
|
1166
|
+
case 16: {
|
|
1167
|
+
if (tag !== 128) {
|
|
1168
|
+
break;
|
|
1169
|
+
}
|
|
1170
|
+
message.setForOutput = reader.int32();
|
|
1171
|
+
continue;
|
|
1172
|
+
}
|
|
1173
|
+
case 20: {
|
|
1174
|
+
if (tag !== 162) {
|
|
1175
|
+
break;
|
|
1176
|
+
}
|
|
1177
|
+
message.inputItemsCriteria.push(CSOItemCriteria.decode(reader, reader.uint32()));
|
|
1178
|
+
continue;
|
|
1179
|
+
}
|
|
1180
|
+
case 21: {
|
|
1181
|
+
if (tag !== 170) {
|
|
1182
|
+
break;
|
|
1183
|
+
}
|
|
1184
|
+
message.outputItemsCriteria.push(CSOItemCriteria.decode(reader, reader.uint32()));
|
|
1185
|
+
continue;
|
|
1186
|
+
}
|
|
1187
|
+
case 22: {
|
|
1188
|
+
if (tag === 176) {
|
|
1189
|
+
message.inputItemDupeCounts.push(reader.uint32());
|
|
1190
|
+
continue;
|
|
1191
|
+
}
|
|
1192
|
+
if (tag === 178) {
|
|
1193
|
+
const end2 = reader.uint32() + reader.pos;
|
|
1194
|
+
while (reader.pos < end2) {
|
|
1195
|
+
message.inputItemDupeCounts.push(reader.uint32());
|
|
1196
|
+
}
|
|
1197
|
+
continue;
|
|
1198
|
+
}
|
|
1199
|
+
break;
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1203
|
+
break;
|
|
1204
|
+
}
|
|
1205
|
+
reader.skip(tag & 7);
|
|
1206
|
+
}
|
|
1207
|
+
return message;
|
|
1208
|
+
},
|
|
1209
|
+
};
|
|
1210
|
+
function createBaseCMsgDevNewItemRequest() {
|
|
1211
|
+
return { receiver: 0, criteria: undefined };
|
|
1212
|
+
}
|
|
1213
|
+
export const CMsgDevNewItemRequest = {
|
|
1214
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1215
|
+
if (message.receiver !== undefined && message.receiver !== 0) {
|
|
1216
|
+
writer.uint32(9).fixed64(message.receiver);
|
|
1217
|
+
}
|
|
1218
|
+
if (message.criteria !== undefined) {
|
|
1219
|
+
CSOItemCriteria.encode(message.criteria, writer.uint32(18).fork()).join();
|
|
1220
|
+
}
|
|
1221
|
+
return writer;
|
|
1222
|
+
},
|
|
1223
|
+
decode(input, length) {
|
|
1224
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1225
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1226
|
+
const message = createBaseCMsgDevNewItemRequest();
|
|
1227
|
+
while (reader.pos < end) {
|
|
1228
|
+
const tag = reader.uint32();
|
|
1229
|
+
switch (tag >>> 3) {
|
|
1230
|
+
case 1: {
|
|
1231
|
+
if (tag !== 9) {
|
|
1232
|
+
break;
|
|
1233
|
+
}
|
|
1234
|
+
message.receiver = longToNumber(reader.fixed64());
|
|
1235
|
+
continue;
|
|
1236
|
+
}
|
|
1237
|
+
case 2: {
|
|
1238
|
+
if (tag !== 18) {
|
|
1239
|
+
break;
|
|
1240
|
+
}
|
|
1241
|
+
message.criteria = CSOItemCriteria.decode(reader, reader.uint32());
|
|
1242
|
+
continue;
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1246
|
+
break;
|
|
1247
|
+
}
|
|
1248
|
+
reader.skip(tag & 7);
|
|
1249
|
+
}
|
|
1250
|
+
return message;
|
|
1251
|
+
},
|
|
1252
|
+
};
|
|
1253
|
+
function createBaseCMsgIncrementKillCountAttribute() {
|
|
1254
|
+
return { killerAccountId: 0, victimAccountId: 0, itemId: 0, eventType: 0, amount: 0 };
|
|
1255
|
+
}
|
|
1256
|
+
export const CMsgIncrementKillCountAttribute = {
|
|
1257
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1258
|
+
if (message.killerAccountId !== undefined && message.killerAccountId !== 0) {
|
|
1259
|
+
writer.uint32(13).fixed32(message.killerAccountId);
|
|
1260
|
+
}
|
|
1261
|
+
if (message.victimAccountId !== undefined && message.victimAccountId !== 0) {
|
|
1262
|
+
writer.uint32(21).fixed32(message.victimAccountId);
|
|
1263
|
+
}
|
|
1264
|
+
if (message.itemId !== undefined && message.itemId !== 0) {
|
|
1265
|
+
writer.uint32(24).uint64(message.itemId);
|
|
1266
|
+
}
|
|
1267
|
+
if (message.eventType !== undefined && message.eventType !== 0) {
|
|
1268
|
+
writer.uint32(32).uint32(message.eventType);
|
|
1269
|
+
}
|
|
1270
|
+
if (message.amount !== undefined && message.amount !== 0) {
|
|
1271
|
+
writer.uint32(40).uint32(message.amount);
|
|
1272
|
+
}
|
|
1273
|
+
return writer;
|
|
1274
|
+
},
|
|
1275
|
+
decode(input, length) {
|
|
1276
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1277
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1278
|
+
const message = createBaseCMsgIncrementKillCountAttribute();
|
|
1279
|
+
while (reader.pos < end) {
|
|
1280
|
+
const tag = reader.uint32();
|
|
1281
|
+
switch (tag >>> 3) {
|
|
1282
|
+
case 1: {
|
|
1283
|
+
if (tag !== 13) {
|
|
1284
|
+
break;
|
|
1285
|
+
}
|
|
1286
|
+
message.killerAccountId = reader.fixed32();
|
|
1287
|
+
continue;
|
|
1288
|
+
}
|
|
1289
|
+
case 2: {
|
|
1290
|
+
if (tag !== 21) {
|
|
1291
|
+
break;
|
|
1292
|
+
}
|
|
1293
|
+
message.victimAccountId = reader.fixed32();
|
|
1294
|
+
continue;
|
|
1295
|
+
}
|
|
1296
|
+
case 3: {
|
|
1297
|
+
if (tag !== 24) {
|
|
1298
|
+
break;
|
|
1299
|
+
}
|
|
1300
|
+
message.itemId = longToNumber(reader.uint64());
|
|
1301
|
+
continue;
|
|
1302
|
+
}
|
|
1303
|
+
case 4: {
|
|
1304
|
+
if (tag !== 32) {
|
|
1305
|
+
break;
|
|
1306
|
+
}
|
|
1307
|
+
message.eventType = reader.uint32();
|
|
1308
|
+
continue;
|
|
1309
|
+
}
|
|
1310
|
+
case 5: {
|
|
1311
|
+
if (tag !== 40) {
|
|
1312
|
+
break;
|
|
1313
|
+
}
|
|
1314
|
+
message.amount = reader.uint32();
|
|
1315
|
+
continue;
|
|
1316
|
+
}
|
|
1317
|
+
}
|
|
1318
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1319
|
+
break;
|
|
1320
|
+
}
|
|
1321
|
+
reader.skip(tag & 7);
|
|
1322
|
+
}
|
|
1323
|
+
return message;
|
|
1324
|
+
},
|
|
1325
|
+
};
|
|
1326
|
+
function createBaseCMsgApplySticker() {
|
|
1327
|
+
return {
|
|
1328
|
+
stickerItemId: 0,
|
|
1329
|
+
itemItemId: 0,
|
|
1330
|
+
stickerSlot: 0,
|
|
1331
|
+
baseitemDefidx: 0,
|
|
1332
|
+
stickerWear: 0,
|
|
1333
|
+
stickerRotation: 0,
|
|
1334
|
+
stickerScale: 0,
|
|
1335
|
+
stickerOffsetX: 0,
|
|
1336
|
+
stickerOffsetY: 0,
|
|
1337
|
+
stickerOffsetZ: 0,
|
|
1338
|
+
stickerWearTarget: 0,
|
|
1339
|
+
};
|
|
1340
|
+
}
|
|
1341
|
+
export const CMsgApplySticker = {
|
|
1342
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1343
|
+
if (message.stickerItemId !== undefined && message.stickerItemId !== 0) {
|
|
1344
|
+
writer.uint32(8).uint64(message.stickerItemId);
|
|
1345
|
+
}
|
|
1346
|
+
if (message.itemItemId !== undefined && message.itemItemId !== 0) {
|
|
1347
|
+
writer.uint32(16).uint64(message.itemItemId);
|
|
1348
|
+
}
|
|
1349
|
+
if (message.stickerSlot !== undefined && message.stickerSlot !== 0) {
|
|
1350
|
+
writer.uint32(24).uint32(message.stickerSlot);
|
|
1351
|
+
}
|
|
1352
|
+
if (message.baseitemDefidx !== undefined && message.baseitemDefidx !== 0) {
|
|
1353
|
+
writer.uint32(32).uint32(message.baseitemDefidx);
|
|
1354
|
+
}
|
|
1355
|
+
if (message.stickerWear !== undefined && message.stickerWear !== 0) {
|
|
1356
|
+
writer.uint32(45).float(message.stickerWear);
|
|
1357
|
+
}
|
|
1358
|
+
if (message.stickerRotation !== undefined && message.stickerRotation !== 0) {
|
|
1359
|
+
writer.uint32(53).float(message.stickerRotation);
|
|
1360
|
+
}
|
|
1361
|
+
if (message.stickerScale !== undefined && message.stickerScale !== 0) {
|
|
1362
|
+
writer.uint32(61).float(message.stickerScale);
|
|
1363
|
+
}
|
|
1364
|
+
if (message.stickerOffsetX !== undefined && message.stickerOffsetX !== 0) {
|
|
1365
|
+
writer.uint32(69).float(message.stickerOffsetX);
|
|
1366
|
+
}
|
|
1367
|
+
if (message.stickerOffsetY !== undefined && message.stickerOffsetY !== 0) {
|
|
1368
|
+
writer.uint32(77).float(message.stickerOffsetY);
|
|
1369
|
+
}
|
|
1370
|
+
if (message.stickerOffsetZ !== undefined && message.stickerOffsetZ !== 0) {
|
|
1371
|
+
writer.uint32(85).float(message.stickerOffsetZ);
|
|
1372
|
+
}
|
|
1373
|
+
if (message.stickerWearTarget !== undefined && message.stickerWearTarget !== 0) {
|
|
1374
|
+
writer.uint32(93).float(message.stickerWearTarget);
|
|
1375
|
+
}
|
|
1376
|
+
return writer;
|
|
1377
|
+
},
|
|
1378
|
+
decode(input, length) {
|
|
1379
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1380
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1381
|
+
const message = createBaseCMsgApplySticker();
|
|
1382
|
+
while (reader.pos < end) {
|
|
1383
|
+
const tag = reader.uint32();
|
|
1384
|
+
switch (tag >>> 3) {
|
|
1385
|
+
case 1: {
|
|
1386
|
+
if (tag !== 8) {
|
|
1387
|
+
break;
|
|
1388
|
+
}
|
|
1389
|
+
message.stickerItemId = longToNumber(reader.uint64());
|
|
1390
|
+
continue;
|
|
1391
|
+
}
|
|
1392
|
+
case 2: {
|
|
1393
|
+
if (tag !== 16) {
|
|
1394
|
+
break;
|
|
1395
|
+
}
|
|
1396
|
+
message.itemItemId = longToNumber(reader.uint64());
|
|
1397
|
+
continue;
|
|
1398
|
+
}
|
|
1399
|
+
case 3: {
|
|
1400
|
+
if (tag !== 24) {
|
|
1401
|
+
break;
|
|
1402
|
+
}
|
|
1403
|
+
message.stickerSlot = reader.uint32();
|
|
1404
|
+
continue;
|
|
1405
|
+
}
|
|
1406
|
+
case 4: {
|
|
1407
|
+
if (tag !== 32) {
|
|
1408
|
+
break;
|
|
1409
|
+
}
|
|
1410
|
+
message.baseitemDefidx = reader.uint32();
|
|
1411
|
+
continue;
|
|
1412
|
+
}
|
|
1413
|
+
case 5: {
|
|
1414
|
+
if (tag !== 45) {
|
|
1415
|
+
break;
|
|
1416
|
+
}
|
|
1417
|
+
message.stickerWear = reader.float();
|
|
1418
|
+
continue;
|
|
1419
|
+
}
|
|
1420
|
+
case 6: {
|
|
1421
|
+
if (tag !== 53) {
|
|
1422
|
+
break;
|
|
1423
|
+
}
|
|
1424
|
+
message.stickerRotation = reader.float();
|
|
1425
|
+
continue;
|
|
1426
|
+
}
|
|
1427
|
+
case 7: {
|
|
1428
|
+
if (tag !== 61) {
|
|
1429
|
+
break;
|
|
1430
|
+
}
|
|
1431
|
+
message.stickerScale = reader.float();
|
|
1432
|
+
continue;
|
|
1433
|
+
}
|
|
1434
|
+
case 8: {
|
|
1435
|
+
if (tag !== 69) {
|
|
1436
|
+
break;
|
|
1437
|
+
}
|
|
1438
|
+
message.stickerOffsetX = reader.float();
|
|
1439
|
+
continue;
|
|
1440
|
+
}
|
|
1441
|
+
case 9: {
|
|
1442
|
+
if (tag !== 77) {
|
|
1443
|
+
break;
|
|
1444
|
+
}
|
|
1445
|
+
message.stickerOffsetY = reader.float();
|
|
1446
|
+
continue;
|
|
1447
|
+
}
|
|
1448
|
+
case 10: {
|
|
1449
|
+
if (tag !== 85) {
|
|
1450
|
+
break;
|
|
1451
|
+
}
|
|
1452
|
+
message.stickerOffsetZ = reader.float();
|
|
1453
|
+
continue;
|
|
1454
|
+
}
|
|
1455
|
+
case 11: {
|
|
1456
|
+
if (tag !== 93) {
|
|
1457
|
+
break;
|
|
1458
|
+
}
|
|
1459
|
+
message.stickerWearTarget = reader.float();
|
|
1460
|
+
continue;
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1464
|
+
break;
|
|
1465
|
+
}
|
|
1466
|
+
reader.skip(tag & 7);
|
|
1467
|
+
}
|
|
1468
|
+
return message;
|
|
1469
|
+
},
|
|
1470
|
+
};
|
|
1471
|
+
function createBaseCMsgModifyItemAttribute() {
|
|
1472
|
+
return { itemId: 0, attrDefidx: 0, attrValue: 0 };
|
|
1473
|
+
}
|
|
1474
|
+
export const CMsgModifyItemAttribute = {
|
|
1475
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1476
|
+
if (message.itemId !== undefined && message.itemId !== 0) {
|
|
1477
|
+
writer.uint32(8).uint64(message.itemId);
|
|
1478
|
+
}
|
|
1479
|
+
if (message.attrDefidx !== undefined && message.attrDefidx !== 0) {
|
|
1480
|
+
writer.uint32(16).uint32(message.attrDefidx);
|
|
1481
|
+
}
|
|
1482
|
+
if (message.attrValue !== undefined && message.attrValue !== 0) {
|
|
1483
|
+
writer.uint32(24).uint32(message.attrValue);
|
|
1484
|
+
}
|
|
1485
|
+
return writer;
|
|
1486
|
+
},
|
|
1487
|
+
decode(input, length) {
|
|
1488
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1489
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1490
|
+
const message = createBaseCMsgModifyItemAttribute();
|
|
1491
|
+
while (reader.pos < end) {
|
|
1492
|
+
const tag = reader.uint32();
|
|
1493
|
+
switch (tag >>> 3) {
|
|
1494
|
+
case 1: {
|
|
1495
|
+
if (tag !== 8) {
|
|
1496
|
+
break;
|
|
1497
|
+
}
|
|
1498
|
+
message.itemId = longToNumber(reader.uint64());
|
|
1499
|
+
continue;
|
|
1500
|
+
}
|
|
1501
|
+
case 2: {
|
|
1502
|
+
if (tag !== 16) {
|
|
1503
|
+
break;
|
|
1504
|
+
}
|
|
1505
|
+
message.attrDefidx = reader.uint32();
|
|
1506
|
+
continue;
|
|
1507
|
+
}
|
|
1508
|
+
case 3: {
|
|
1509
|
+
if (tag !== 24) {
|
|
1510
|
+
break;
|
|
1511
|
+
}
|
|
1512
|
+
message.attrValue = reader.uint32();
|
|
1513
|
+
continue;
|
|
1514
|
+
}
|
|
1515
|
+
}
|
|
1516
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1517
|
+
break;
|
|
1518
|
+
}
|
|
1519
|
+
reader.skip(tag & 7);
|
|
1520
|
+
}
|
|
1521
|
+
return message;
|
|
1522
|
+
},
|
|
1523
|
+
};
|
|
1524
|
+
function createBaseCMsgApplyStatTrakSwap() {
|
|
1525
|
+
return { toolItemId: 0, item1ItemId: 0, item2ItemId: 0 };
|
|
1526
|
+
}
|
|
1527
|
+
export const CMsgApplyStatTrakSwap = {
|
|
1528
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1529
|
+
if (message.toolItemId !== undefined && message.toolItemId !== 0) {
|
|
1530
|
+
writer.uint32(8).uint64(message.toolItemId);
|
|
1531
|
+
}
|
|
1532
|
+
if (message.item1ItemId !== undefined && message.item1ItemId !== 0) {
|
|
1533
|
+
writer.uint32(16).uint64(message.item1ItemId);
|
|
1534
|
+
}
|
|
1535
|
+
if (message.item2ItemId !== undefined && message.item2ItemId !== 0) {
|
|
1536
|
+
writer.uint32(24).uint64(message.item2ItemId);
|
|
1537
|
+
}
|
|
1538
|
+
return writer;
|
|
1539
|
+
},
|
|
1540
|
+
decode(input, length) {
|
|
1541
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1542
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1543
|
+
const message = createBaseCMsgApplyStatTrakSwap();
|
|
1544
|
+
while (reader.pos < end) {
|
|
1545
|
+
const tag = reader.uint32();
|
|
1546
|
+
switch (tag >>> 3) {
|
|
1547
|
+
case 1: {
|
|
1548
|
+
if (tag !== 8) {
|
|
1549
|
+
break;
|
|
1550
|
+
}
|
|
1551
|
+
message.toolItemId = longToNumber(reader.uint64());
|
|
1552
|
+
continue;
|
|
1553
|
+
}
|
|
1554
|
+
case 2: {
|
|
1555
|
+
if (tag !== 16) {
|
|
1556
|
+
break;
|
|
1557
|
+
}
|
|
1558
|
+
message.item1ItemId = longToNumber(reader.uint64());
|
|
1559
|
+
continue;
|
|
1560
|
+
}
|
|
1561
|
+
case 3: {
|
|
1562
|
+
if (tag !== 24) {
|
|
1563
|
+
break;
|
|
1564
|
+
}
|
|
1565
|
+
message.item2ItemId = longToNumber(reader.uint64());
|
|
1566
|
+
continue;
|
|
1567
|
+
}
|
|
1568
|
+
}
|
|
1569
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1570
|
+
break;
|
|
1571
|
+
}
|
|
1572
|
+
reader.skip(tag & 7);
|
|
1573
|
+
}
|
|
1574
|
+
return message;
|
|
1575
|
+
},
|
|
1576
|
+
};
|
|
1577
|
+
function createBaseCMsgApplyStrangePart() {
|
|
1578
|
+
return { strangePartItemId: 0, itemItemId: 0 };
|
|
1579
|
+
}
|
|
1580
|
+
export const CMsgApplyStrangePart = {
|
|
1581
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1582
|
+
if (message.strangePartItemId !== undefined && message.strangePartItemId !== 0) {
|
|
1583
|
+
writer.uint32(8).uint64(message.strangePartItemId);
|
|
1584
|
+
}
|
|
1585
|
+
if (message.itemItemId !== undefined && message.itemItemId !== 0) {
|
|
1586
|
+
writer.uint32(16).uint64(message.itemItemId);
|
|
1587
|
+
}
|
|
1588
|
+
return writer;
|
|
1589
|
+
},
|
|
1590
|
+
decode(input, length) {
|
|
1591
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1592
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1593
|
+
const message = createBaseCMsgApplyStrangePart();
|
|
1594
|
+
while (reader.pos < end) {
|
|
1595
|
+
const tag = reader.uint32();
|
|
1596
|
+
switch (tag >>> 3) {
|
|
1597
|
+
case 1: {
|
|
1598
|
+
if (tag !== 8) {
|
|
1599
|
+
break;
|
|
1600
|
+
}
|
|
1601
|
+
message.strangePartItemId = longToNumber(reader.uint64());
|
|
1602
|
+
continue;
|
|
1603
|
+
}
|
|
1604
|
+
case 2: {
|
|
1605
|
+
if (tag !== 16) {
|
|
1606
|
+
break;
|
|
1607
|
+
}
|
|
1608
|
+
message.itemItemId = longToNumber(reader.uint64());
|
|
1609
|
+
continue;
|
|
1610
|
+
}
|
|
1611
|
+
}
|
|
1612
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1613
|
+
break;
|
|
1614
|
+
}
|
|
1615
|
+
reader.skip(tag & 7);
|
|
1616
|
+
}
|
|
1617
|
+
return message;
|
|
1618
|
+
},
|
|
1619
|
+
};
|
|
1620
|
+
function createBaseCMsgApplyPennantUpgrade() {
|
|
1621
|
+
return { upgradeItemId: 0, pennantItemId: 0 };
|
|
1622
|
+
}
|
|
1623
|
+
export const CMsgApplyPennantUpgrade = {
|
|
1624
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1625
|
+
if (message.upgradeItemId !== undefined && message.upgradeItemId !== 0) {
|
|
1626
|
+
writer.uint32(8).uint64(message.upgradeItemId);
|
|
1627
|
+
}
|
|
1628
|
+
if (message.pennantItemId !== undefined && message.pennantItemId !== 0) {
|
|
1629
|
+
writer.uint32(16).uint64(message.pennantItemId);
|
|
1630
|
+
}
|
|
1631
|
+
return writer;
|
|
1632
|
+
},
|
|
1633
|
+
decode(input, length) {
|
|
1634
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1635
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1636
|
+
const message = createBaseCMsgApplyPennantUpgrade();
|
|
1637
|
+
while (reader.pos < end) {
|
|
1638
|
+
const tag = reader.uint32();
|
|
1639
|
+
switch (tag >>> 3) {
|
|
1640
|
+
case 1: {
|
|
1641
|
+
if (tag !== 8) {
|
|
1642
|
+
break;
|
|
1643
|
+
}
|
|
1644
|
+
message.upgradeItemId = longToNumber(reader.uint64());
|
|
1645
|
+
continue;
|
|
1646
|
+
}
|
|
1647
|
+
case 2: {
|
|
1648
|
+
if (tag !== 16) {
|
|
1649
|
+
break;
|
|
1650
|
+
}
|
|
1651
|
+
message.pennantItemId = longToNumber(reader.uint64());
|
|
1652
|
+
continue;
|
|
1653
|
+
}
|
|
1654
|
+
}
|
|
1655
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1656
|
+
break;
|
|
1657
|
+
}
|
|
1658
|
+
reader.skip(tag & 7);
|
|
1659
|
+
}
|
|
1660
|
+
return message;
|
|
1661
|
+
},
|
|
1662
|
+
};
|
|
1663
|
+
function createBaseCMsgApplyEggEssence() {
|
|
1664
|
+
return { essenceItemId: 0, eggItemId: 0 };
|
|
1665
|
+
}
|
|
1666
|
+
export const CMsgApplyEggEssence = {
|
|
1667
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1668
|
+
if (message.essenceItemId !== undefined && message.essenceItemId !== 0) {
|
|
1669
|
+
writer.uint32(8).uint64(message.essenceItemId);
|
|
1670
|
+
}
|
|
1671
|
+
if (message.eggItemId !== undefined && message.eggItemId !== 0) {
|
|
1672
|
+
writer.uint32(16).uint64(message.eggItemId);
|
|
1673
|
+
}
|
|
1674
|
+
return writer;
|
|
1675
|
+
},
|
|
1676
|
+
decode(input, length) {
|
|
1677
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1678
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1679
|
+
const message = createBaseCMsgApplyEggEssence();
|
|
1680
|
+
while (reader.pos < end) {
|
|
1681
|
+
const tag = reader.uint32();
|
|
1682
|
+
switch (tag >>> 3) {
|
|
1683
|
+
case 1: {
|
|
1684
|
+
if (tag !== 8) {
|
|
1685
|
+
break;
|
|
1686
|
+
}
|
|
1687
|
+
message.essenceItemId = longToNumber(reader.uint64());
|
|
1688
|
+
continue;
|
|
1689
|
+
}
|
|
1690
|
+
case 2: {
|
|
1691
|
+
if (tag !== 16) {
|
|
1692
|
+
break;
|
|
1693
|
+
}
|
|
1694
|
+
message.eggItemId = longToNumber(reader.uint64());
|
|
1695
|
+
continue;
|
|
1696
|
+
}
|
|
1697
|
+
}
|
|
1698
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1699
|
+
break;
|
|
1700
|
+
}
|
|
1701
|
+
reader.skip(tag & 7);
|
|
1702
|
+
}
|
|
1703
|
+
return message;
|
|
1704
|
+
},
|
|
1705
|
+
};
|
|
1706
|
+
function createBaseCSOEconItemAttribute() {
|
|
1707
|
+
return { defIndex: 0, value: 0, valueBytes: new Uint8Array(0) };
|
|
1708
|
+
}
|
|
1709
|
+
export const CSOEconItemAttribute = {
|
|
1710
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1711
|
+
if (message.defIndex !== undefined && message.defIndex !== 0) {
|
|
1712
|
+
writer.uint32(8).uint32(message.defIndex);
|
|
1713
|
+
}
|
|
1714
|
+
if (message.value !== undefined && message.value !== 0) {
|
|
1715
|
+
writer.uint32(16).uint32(message.value);
|
|
1716
|
+
}
|
|
1717
|
+
if (message.valueBytes !== undefined && message.valueBytes.length !== 0) {
|
|
1718
|
+
writer.uint32(26).bytes(message.valueBytes);
|
|
1719
|
+
}
|
|
1720
|
+
return writer;
|
|
1721
|
+
},
|
|
1722
|
+
decode(input, length) {
|
|
1723
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1724
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1725
|
+
const message = createBaseCSOEconItemAttribute();
|
|
1726
|
+
while (reader.pos < end) {
|
|
1727
|
+
const tag = reader.uint32();
|
|
1728
|
+
switch (tag >>> 3) {
|
|
1729
|
+
case 1: {
|
|
1730
|
+
if (tag !== 8) {
|
|
1731
|
+
break;
|
|
1732
|
+
}
|
|
1733
|
+
message.defIndex = reader.uint32();
|
|
1734
|
+
continue;
|
|
1735
|
+
}
|
|
1736
|
+
case 2: {
|
|
1737
|
+
if (tag !== 16) {
|
|
1738
|
+
break;
|
|
1739
|
+
}
|
|
1740
|
+
message.value = reader.uint32();
|
|
1741
|
+
continue;
|
|
1742
|
+
}
|
|
1743
|
+
case 3: {
|
|
1744
|
+
if (tag !== 26) {
|
|
1745
|
+
break;
|
|
1746
|
+
}
|
|
1747
|
+
message.valueBytes = reader.bytes();
|
|
1748
|
+
continue;
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1751
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1752
|
+
break;
|
|
1753
|
+
}
|
|
1754
|
+
reader.skip(tag & 7);
|
|
1755
|
+
}
|
|
1756
|
+
return message;
|
|
1757
|
+
},
|
|
1758
|
+
};
|
|
1759
|
+
function createBaseCSOEconItemEquipped() {
|
|
1760
|
+
return { newClass: 0, newSlot: 0 };
|
|
1761
|
+
}
|
|
1762
|
+
export const CSOEconItemEquipped = {
|
|
1763
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1764
|
+
if (message.newClass !== undefined && message.newClass !== 0) {
|
|
1765
|
+
writer.uint32(8).uint32(message.newClass);
|
|
1766
|
+
}
|
|
1767
|
+
if (message.newSlot !== undefined && message.newSlot !== 0) {
|
|
1768
|
+
writer.uint32(16).uint32(message.newSlot);
|
|
1769
|
+
}
|
|
1770
|
+
return writer;
|
|
1771
|
+
},
|
|
1772
|
+
decode(input, length) {
|
|
1773
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1774
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1775
|
+
const message = createBaseCSOEconItemEquipped();
|
|
1776
|
+
while (reader.pos < end) {
|
|
1777
|
+
const tag = reader.uint32();
|
|
1778
|
+
switch (tag >>> 3) {
|
|
1779
|
+
case 1: {
|
|
1780
|
+
if (tag !== 8) {
|
|
1781
|
+
break;
|
|
1782
|
+
}
|
|
1783
|
+
message.newClass = reader.uint32();
|
|
1784
|
+
continue;
|
|
1785
|
+
}
|
|
1786
|
+
case 2: {
|
|
1787
|
+
if (tag !== 16) {
|
|
1788
|
+
break;
|
|
1789
|
+
}
|
|
1790
|
+
message.newSlot = reader.uint32();
|
|
1791
|
+
continue;
|
|
1792
|
+
}
|
|
1793
|
+
}
|
|
1794
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1795
|
+
break;
|
|
1796
|
+
}
|
|
1797
|
+
reader.skip(tag & 7);
|
|
1798
|
+
}
|
|
1799
|
+
return message;
|
|
1800
|
+
},
|
|
1801
|
+
};
|
|
1802
|
+
function createBaseCSOEconItem() {
|
|
1803
|
+
return {
|
|
1804
|
+
id: 0,
|
|
1805
|
+
accountId: 0,
|
|
1806
|
+
inventory: 0,
|
|
1807
|
+
defIndex: 0,
|
|
1808
|
+
quantity: 0,
|
|
1809
|
+
level: 0,
|
|
1810
|
+
quality: 0,
|
|
1811
|
+
flags: 0,
|
|
1812
|
+
origin: 0,
|
|
1813
|
+
customName: "",
|
|
1814
|
+
customDesc: "",
|
|
1815
|
+
attribute: [],
|
|
1816
|
+
interiorItem: undefined,
|
|
1817
|
+
inUse: false,
|
|
1818
|
+
style: 0,
|
|
1819
|
+
originalId: 0,
|
|
1820
|
+
equippedState: [],
|
|
1821
|
+
rarity: 0,
|
|
1822
|
+
};
|
|
1823
|
+
}
|
|
1824
|
+
export const CSOEconItem = {
|
|
1825
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1826
|
+
if (message.id !== undefined && message.id !== 0) {
|
|
1827
|
+
writer.uint32(8).uint64(message.id);
|
|
1828
|
+
}
|
|
1829
|
+
if (message.accountId !== undefined && message.accountId !== 0) {
|
|
1830
|
+
writer.uint32(16).uint32(message.accountId);
|
|
1831
|
+
}
|
|
1832
|
+
if (message.inventory !== undefined && message.inventory !== 0) {
|
|
1833
|
+
writer.uint32(24).uint32(message.inventory);
|
|
1834
|
+
}
|
|
1835
|
+
if (message.defIndex !== undefined && message.defIndex !== 0) {
|
|
1836
|
+
writer.uint32(32).uint32(message.defIndex);
|
|
1837
|
+
}
|
|
1838
|
+
if (message.quantity !== undefined && message.quantity !== 0) {
|
|
1839
|
+
writer.uint32(40).uint32(message.quantity);
|
|
1840
|
+
}
|
|
1841
|
+
if (message.level !== undefined && message.level !== 0) {
|
|
1842
|
+
writer.uint32(48).uint32(message.level);
|
|
1843
|
+
}
|
|
1844
|
+
if (message.quality !== undefined && message.quality !== 0) {
|
|
1845
|
+
writer.uint32(56).uint32(message.quality);
|
|
1846
|
+
}
|
|
1847
|
+
if (message.flags !== undefined && message.flags !== 0) {
|
|
1848
|
+
writer.uint32(64).uint32(message.flags);
|
|
1849
|
+
}
|
|
1850
|
+
if (message.origin !== undefined && message.origin !== 0) {
|
|
1851
|
+
writer.uint32(72).uint32(message.origin);
|
|
1852
|
+
}
|
|
1853
|
+
if (message.customName !== undefined && message.customName !== "") {
|
|
1854
|
+
writer.uint32(82).string(message.customName);
|
|
1855
|
+
}
|
|
1856
|
+
if (message.customDesc !== undefined && message.customDesc !== "") {
|
|
1857
|
+
writer.uint32(90).string(message.customDesc);
|
|
1858
|
+
}
|
|
1859
|
+
for (const v of message.attribute) {
|
|
1860
|
+
CSOEconItemAttribute.encode(v, writer.uint32(98).fork()).join();
|
|
1861
|
+
}
|
|
1862
|
+
if (message.interiorItem !== undefined) {
|
|
1863
|
+
CSOEconItem.encode(message.interiorItem, writer.uint32(106).fork()).join();
|
|
1864
|
+
}
|
|
1865
|
+
if (message.inUse !== undefined && message.inUse !== false) {
|
|
1866
|
+
writer.uint32(112).bool(message.inUse);
|
|
1867
|
+
}
|
|
1868
|
+
if (message.style !== undefined && message.style !== 0) {
|
|
1869
|
+
writer.uint32(120).uint32(message.style);
|
|
1870
|
+
}
|
|
1871
|
+
if (message.originalId !== undefined && message.originalId !== 0) {
|
|
1872
|
+
writer.uint32(128).uint64(message.originalId);
|
|
1873
|
+
}
|
|
1874
|
+
for (const v of message.equippedState) {
|
|
1875
|
+
CSOEconItemEquipped.encode(v, writer.uint32(146).fork()).join();
|
|
1876
|
+
}
|
|
1877
|
+
if (message.rarity !== undefined && message.rarity !== 0) {
|
|
1878
|
+
writer.uint32(152).uint32(message.rarity);
|
|
1879
|
+
}
|
|
1880
|
+
return writer;
|
|
1881
|
+
},
|
|
1882
|
+
decode(input, length) {
|
|
1883
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1884
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1885
|
+
const message = createBaseCSOEconItem();
|
|
1886
|
+
while (reader.pos < end) {
|
|
1887
|
+
const tag = reader.uint32();
|
|
1888
|
+
switch (tag >>> 3) {
|
|
1889
|
+
case 1: {
|
|
1890
|
+
if (tag !== 8) {
|
|
1891
|
+
break;
|
|
1892
|
+
}
|
|
1893
|
+
message.id = longToNumber(reader.uint64());
|
|
1894
|
+
continue;
|
|
1895
|
+
}
|
|
1896
|
+
case 2: {
|
|
1897
|
+
if (tag !== 16) {
|
|
1898
|
+
break;
|
|
1899
|
+
}
|
|
1900
|
+
message.accountId = reader.uint32();
|
|
1901
|
+
continue;
|
|
1902
|
+
}
|
|
1903
|
+
case 3: {
|
|
1904
|
+
if (tag !== 24) {
|
|
1905
|
+
break;
|
|
1906
|
+
}
|
|
1907
|
+
message.inventory = reader.uint32();
|
|
1908
|
+
continue;
|
|
1909
|
+
}
|
|
1910
|
+
case 4: {
|
|
1911
|
+
if (tag !== 32) {
|
|
1912
|
+
break;
|
|
1913
|
+
}
|
|
1914
|
+
message.defIndex = reader.uint32();
|
|
1915
|
+
continue;
|
|
1916
|
+
}
|
|
1917
|
+
case 5: {
|
|
1918
|
+
if (tag !== 40) {
|
|
1919
|
+
break;
|
|
1920
|
+
}
|
|
1921
|
+
message.quantity = reader.uint32();
|
|
1922
|
+
continue;
|
|
1923
|
+
}
|
|
1924
|
+
case 6: {
|
|
1925
|
+
if (tag !== 48) {
|
|
1926
|
+
break;
|
|
1927
|
+
}
|
|
1928
|
+
message.level = reader.uint32();
|
|
1929
|
+
continue;
|
|
1930
|
+
}
|
|
1931
|
+
case 7: {
|
|
1932
|
+
if (tag !== 56) {
|
|
1933
|
+
break;
|
|
1934
|
+
}
|
|
1935
|
+
message.quality = reader.uint32();
|
|
1936
|
+
continue;
|
|
1937
|
+
}
|
|
1938
|
+
case 8: {
|
|
1939
|
+
if (tag !== 64) {
|
|
1940
|
+
break;
|
|
1941
|
+
}
|
|
1942
|
+
message.flags = reader.uint32();
|
|
1943
|
+
continue;
|
|
1944
|
+
}
|
|
1945
|
+
case 9: {
|
|
1946
|
+
if (tag !== 72) {
|
|
1947
|
+
break;
|
|
1948
|
+
}
|
|
1949
|
+
message.origin = reader.uint32();
|
|
1950
|
+
continue;
|
|
1951
|
+
}
|
|
1952
|
+
case 10: {
|
|
1953
|
+
if (tag !== 82) {
|
|
1954
|
+
break;
|
|
1955
|
+
}
|
|
1956
|
+
message.customName = reader.string();
|
|
1957
|
+
continue;
|
|
1958
|
+
}
|
|
1959
|
+
case 11: {
|
|
1960
|
+
if (tag !== 90) {
|
|
1961
|
+
break;
|
|
1962
|
+
}
|
|
1963
|
+
message.customDesc = reader.string();
|
|
1964
|
+
continue;
|
|
1965
|
+
}
|
|
1966
|
+
case 12: {
|
|
1967
|
+
if (tag !== 98) {
|
|
1968
|
+
break;
|
|
1969
|
+
}
|
|
1970
|
+
message.attribute.push(CSOEconItemAttribute.decode(reader, reader.uint32()));
|
|
1971
|
+
continue;
|
|
1972
|
+
}
|
|
1973
|
+
case 13: {
|
|
1974
|
+
if (tag !== 106) {
|
|
1975
|
+
break;
|
|
1976
|
+
}
|
|
1977
|
+
message.interiorItem = CSOEconItem.decode(reader, reader.uint32());
|
|
1978
|
+
continue;
|
|
1979
|
+
}
|
|
1980
|
+
case 14: {
|
|
1981
|
+
if (tag !== 112) {
|
|
1982
|
+
break;
|
|
1983
|
+
}
|
|
1984
|
+
message.inUse = reader.bool();
|
|
1985
|
+
continue;
|
|
1986
|
+
}
|
|
1987
|
+
case 15: {
|
|
1988
|
+
if (tag !== 120) {
|
|
1989
|
+
break;
|
|
1990
|
+
}
|
|
1991
|
+
message.style = reader.uint32();
|
|
1992
|
+
continue;
|
|
1993
|
+
}
|
|
1994
|
+
case 16: {
|
|
1995
|
+
if (tag !== 128) {
|
|
1996
|
+
break;
|
|
1997
|
+
}
|
|
1998
|
+
message.originalId = longToNumber(reader.uint64());
|
|
1999
|
+
continue;
|
|
2000
|
+
}
|
|
2001
|
+
case 18: {
|
|
2002
|
+
if (tag !== 146) {
|
|
2003
|
+
break;
|
|
2004
|
+
}
|
|
2005
|
+
message.equippedState.push(CSOEconItemEquipped.decode(reader, reader.uint32()));
|
|
2006
|
+
continue;
|
|
2007
|
+
}
|
|
2008
|
+
case 19: {
|
|
2009
|
+
if (tag !== 152) {
|
|
2010
|
+
break;
|
|
2011
|
+
}
|
|
2012
|
+
message.rarity = reader.uint32();
|
|
2013
|
+
continue;
|
|
2014
|
+
}
|
|
2015
|
+
}
|
|
2016
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2017
|
+
break;
|
|
2018
|
+
}
|
|
2019
|
+
reader.skip(tag & 7);
|
|
2020
|
+
}
|
|
2021
|
+
return message;
|
|
2022
|
+
},
|
|
2023
|
+
};
|
|
2024
|
+
function createBaseCMsgSortItems() {
|
|
2025
|
+
return { sortType: 0 };
|
|
2026
|
+
}
|
|
2027
|
+
export const CMsgSortItems = {
|
|
2028
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2029
|
+
if (message.sortType !== undefined && message.sortType !== 0) {
|
|
2030
|
+
writer.uint32(8).uint32(message.sortType);
|
|
2031
|
+
}
|
|
2032
|
+
return writer;
|
|
2033
|
+
},
|
|
2034
|
+
decode(input, length) {
|
|
2035
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2036
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2037
|
+
const message = createBaseCMsgSortItems();
|
|
2038
|
+
while (reader.pos < end) {
|
|
2039
|
+
const tag = reader.uint32();
|
|
2040
|
+
switch (tag >>> 3) {
|
|
2041
|
+
case 1: {
|
|
2042
|
+
if (tag !== 8) {
|
|
2043
|
+
break;
|
|
2044
|
+
}
|
|
2045
|
+
message.sortType = reader.uint32();
|
|
2046
|
+
continue;
|
|
2047
|
+
}
|
|
2048
|
+
}
|
|
2049
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2050
|
+
break;
|
|
2051
|
+
}
|
|
2052
|
+
reader.skip(tag & 7);
|
|
2053
|
+
}
|
|
2054
|
+
return message;
|
|
2055
|
+
},
|
|
2056
|
+
};
|
|
2057
|
+
function createBaseCSOEconClaimCode() {
|
|
2058
|
+
return { accountId: 0, codeType: 0, timeAcquired: 0, code: "" };
|
|
2059
|
+
}
|
|
2060
|
+
export const CSOEconClaimCode = {
|
|
2061
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2062
|
+
if (message.accountId !== undefined && message.accountId !== 0) {
|
|
2063
|
+
writer.uint32(8).uint32(message.accountId);
|
|
2064
|
+
}
|
|
2065
|
+
if (message.codeType !== undefined && message.codeType !== 0) {
|
|
2066
|
+
writer.uint32(16).uint32(message.codeType);
|
|
2067
|
+
}
|
|
2068
|
+
if (message.timeAcquired !== undefined && message.timeAcquired !== 0) {
|
|
2069
|
+
writer.uint32(24).uint32(message.timeAcquired);
|
|
2070
|
+
}
|
|
2071
|
+
if (message.code !== undefined && message.code !== "") {
|
|
2072
|
+
writer.uint32(34).string(message.code);
|
|
2073
|
+
}
|
|
2074
|
+
return writer;
|
|
2075
|
+
},
|
|
2076
|
+
decode(input, length) {
|
|
2077
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2078
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2079
|
+
const message = createBaseCSOEconClaimCode();
|
|
2080
|
+
while (reader.pos < end) {
|
|
2081
|
+
const tag = reader.uint32();
|
|
2082
|
+
switch (tag >>> 3) {
|
|
2083
|
+
case 1: {
|
|
2084
|
+
if (tag !== 8) {
|
|
2085
|
+
break;
|
|
2086
|
+
}
|
|
2087
|
+
message.accountId = reader.uint32();
|
|
2088
|
+
continue;
|
|
2089
|
+
}
|
|
2090
|
+
case 2: {
|
|
2091
|
+
if (tag !== 16) {
|
|
2092
|
+
break;
|
|
2093
|
+
}
|
|
2094
|
+
message.codeType = reader.uint32();
|
|
2095
|
+
continue;
|
|
2096
|
+
}
|
|
2097
|
+
case 3: {
|
|
2098
|
+
if (tag !== 24) {
|
|
2099
|
+
break;
|
|
2100
|
+
}
|
|
2101
|
+
message.timeAcquired = reader.uint32();
|
|
2102
|
+
continue;
|
|
2103
|
+
}
|
|
2104
|
+
case 4: {
|
|
2105
|
+
if (tag !== 34) {
|
|
2106
|
+
break;
|
|
2107
|
+
}
|
|
2108
|
+
message.code = reader.string();
|
|
2109
|
+
continue;
|
|
2110
|
+
}
|
|
2111
|
+
}
|
|
2112
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2113
|
+
break;
|
|
2114
|
+
}
|
|
2115
|
+
reader.skip(tag & 7);
|
|
2116
|
+
}
|
|
2117
|
+
return message;
|
|
2118
|
+
},
|
|
2119
|
+
};
|
|
2120
|
+
function createBaseCMsgStoreGetUserData() {
|
|
2121
|
+
return { priceSheetVersion: 0, currency: 0 };
|
|
2122
|
+
}
|
|
2123
|
+
export const CMsgStoreGetUserData = {
|
|
2124
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2125
|
+
if (message.priceSheetVersion !== undefined && message.priceSheetVersion !== 0) {
|
|
2126
|
+
writer.uint32(13).fixed32(message.priceSheetVersion);
|
|
2127
|
+
}
|
|
2128
|
+
if (message.currency !== undefined && message.currency !== 0) {
|
|
2129
|
+
writer.uint32(16).int32(message.currency);
|
|
2130
|
+
}
|
|
2131
|
+
return writer;
|
|
2132
|
+
},
|
|
2133
|
+
decode(input, length) {
|
|
2134
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2135
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2136
|
+
const message = createBaseCMsgStoreGetUserData();
|
|
2137
|
+
while (reader.pos < end) {
|
|
2138
|
+
const tag = reader.uint32();
|
|
2139
|
+
switch (tag >>> 3) {
|
|
2140
|
+
case 1: {
|
|
2141
|
+
if (tag !== 13) {
|
|
2142
|
+
break;
|
|
2143
|
+
}
|
|
2144
|
+
message.priceSheetVersion = reader.fixed32();
|
|
2145
|
+
continue;
|
|
2146
|
+
}
|
|
2147
|
+
case 2: {
|
|
2148
|
+
if (tag !== 16) {
|
|
2149
|
+
break;
|
|
2150
|
+
}
|
|
2151
|
+
message.currency = reader.int32();
|
|
2152
|
+
continue;
|
|
2153
|
+
}
|
|
2154
|
+
}
|
|
2155
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2156
|
+
break;
|
|
2157
|
+
}
|
|
2158
|
+
reader.skip(tag & 7);
|
|
2159
|
+
}
|
|
2160
|
+
return message;
|
|
2161
|
+
},
|
|
2162
|
+
};
|
|
2163
|
+
function createBaseCMsgStoreGetUserDataResponse() {
|
|
2164
|
+
return {
|
|
2165
|
+
result: 0,
|
|
2166
|
+
currencyDeprecated: 0,
|
|
2167
|
+
countryDeprecated: "",
|
|
2168
|
+
priceSheetVersion: 0,
|
|
2169
|
+
priceSheet: new Uint8Array(0),
|
|
2170
|
+
};
|
|
2171
|
+
}
|
|
2172
|
+
export const CMsgStoreGetUserDataResponse = {
|
|
2173
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2174
|
+
if (message.result !== undefined && message.result !== 0) {
|
|
2175
|
+
writer.uint32(8).int32(message.result);
|
|
2176
|
+
}
|
|
2177
|
+
if (message.currencyDeprecated !== undefined && message.currencyDeprecated !== 0) {
|
|
2178
|
+
writer.uint32(16).int32(message.currencyDeprecated);
|
|
2179
|
+
}
|
|
2180
|
+
if (message.countryDeprecated !== undefined && message.countryDeprecated !== "") {
|
|
2181
|
+
writer.uint32(26).string(message.countryDeprecated);
|
|
2182
|
+
}
|
|
2183
|
+
if (message.priceSheetVersion !== undefined && message.priceSheetVersion !== 0) {
|
|
2184
|
+
writer.uint32(37).fixed32(message.priceSheetVersion);
|
|
2185
|
+
}
|
|
2186
|
+
if (message.priceSheet !== undefined && message.priceSheet.length !== 0) {
|
|
2187
|
+
writer.uint32(66).bytes(message.priceSheet);
|
|
2188
|
+
}
|
|
2189
|
+
return writer;
|
|
2190
|
+
},
|
|
2191
|
+
decode(input, length) {
|
|
2192
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2193
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2194
|
+
const message = createBaseCMsgStoreGetUserDataResponse();
|
|
2195
|
+
while (reader.pos < end) {
|
|
2196
|
+
const tag = reader.uint32();
|
|
2197
|
+
switch (tag >>> 3) {
|
|
2198
|
+
case 1: {
|
|
2199
|
+
if (tag !== 8) {
|
|
2200
|
+
break;
|
|
2201
|
+
}
|
|
2202
|
+
message.result = reader.int32();
|
|
2203
|
+
continue;
|
|
2204
|
+
}
|
|
2205
|
+
case 2: {
|
|
2206
|
+
if (tag !== 16) {
|
|
2207
|
+
break;
|
|
2208
|
+
}
|
|
2209
|
+
message.currencyDeprecated = reader.int32();
|
|
2210
|
+
continue;
|
|
2211
|
+
}
|
|
2212
|
+
case 3: {
|
|
2213
|
+
if (tag !== 26) {
|
|
2214
|
+
break;
|
|
2215
|
+
}
|
|
2216
|
+
message.countryDeprecated = reader.string();
|
|
2217
|
+
continue;
|
|
2218
|
+
}
|
|
2219
|
+
case 4: {
|
|
2220
|
+
if (tag !== 37) {
|
|
2221
|
+
break;
|
|
2222
|
+
}
|
|
2223
|
+
message.priceSheetVersion = reader.fixed32();
|
|
2224
|
+
continue;
|
|
2225
|
+
}
|
|
2226
|
+
case 8: {
|
|
2227
|
+
if (tag !== 66) {
|
|
2228
|
+
break;
|
|
2229
|
+
}
|
|
2230
|
+
message.priceSheet = reader.bytes();
|
|
2231
|
+
continue;
|
|
2232
|
+
}
|
|
2233
|
+
}
|
|
2234
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2235
|
+
break;
|
|
2236
|
+
}
|
|
2237
|
+
reader.skip(tag & 7);
|
|
2238
|
+
}
|
|
2239
|
+
return message;
|
|
2240
|
+
},
|
|
2241
|
+
};
|
|
2242
|
+
function createBaseCMsgUpdateItemSchema() {
|
|
2243
|
+
return { itemsGame: new Uint8Array(0), itemSchemaVersion: 0, itemsGameUrl: "" };
|
|
2244
|
+
}
|
|
2245
|
+
export const CMsgUpdateItemSchema = {
|
|
2246
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2247
|
+
if (message.itemsGame !== undefined && message.itemsGame.length !== 0) {
|
|
2248
|
+
writer.uint32(10).bytes(message.itemsGame);
|
|
2249
|
+
}
|
|
2250
|
+
if (message.itemSchemaVersion !== undefined && message.itemSchemaVersion !== 0) {
|
|
2251
|
+
writer.uint32(21).fixed32(message.itemSchemaVersion);
|
|
2252
|
+
}
|
|
2253
|
+
if (message.itemsGameUrl !== undefined && message.itemsGameUrl !== "") {
|
|
2254
|
+
writer.uint32(34).string(message.itemsGameUrl);
|
|
2255
|
+
}
|
|
2256
|
+
return writer;
|
|
2257
|
+
},
|
|
2258
|
+
decode(input, length) {
|
|
2259
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2260
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2261
|
+
const message = createBaseCMsgUpdateItemSchema();
|
|
2262
|
+
while (reader.pos < end) {
|
|
2263
|
+
const tag = reader.uint32();
|
|
2264
|
+
switch (tag >>> 3) {
|
|
2265
|
+
case 1: {
|
|
2266
|
+
if (tag !== 10) {
|
|
2267
|
+
break;
|
|
2268
|
+
}
|
|
2269
|
+
message.itemsGame = reader.bytes();
|
|
2270
|
+
continue;
|
|
2271
|
+
}
|
|
2272
|
+
case 2: {
|
|
2273
|
+
if (tag !== 21) {
|
|
2274
|
+
break;
|
|
2275
|
+
}
|
|
2276
|
+
message.itemSchemaVersion = reader.fixed32();
|
|
2277
|
+
continue;
|
|
2278
|
+
}
|
|
2279
|
+
case 4: {
|
|
2280
|
+
if (tag !== 34) {
|
|
2281
|
+
break;
|
|
2282
|
+
}
|
|
2283
|
+
message.itemsGameUrl = reader.string();
|
|
2284
|
+
continue;
|
|
2285
|
+
}
|
|
2286
|
+
}
|
|
2287
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2288
|
+
break;
|
|
2289
|
+
}
|
|
2290
|
+
reader.skip(tag & 7);
|
|
2291
|
+
}
|
|
2292
|
+
return message;
|
|
2293
|
+
},
|
|
2294
|
+
};
|
|
2295
|
+
function createBaseCMsgGCError() {
|
|
2296
|
+
return { errorText: "" };
|
|
2297
|
+
}
|
|
2298
|
+
export const CMsgGCError = {
|
|
2299
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2300
|
+
if (message.errorText !== undefined && message.errorText !== "") {
|
|
2301
|
+
writer.uint32(10).string(message.errorText);
|
|
2302
|
+
}
|
|
2303
|
+
return writer;
|
|
2304
|
+
},
|
|
2305
|
+
decode(input, length) {
|
|
2306
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2307
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2308
|
+
const message = createBaseCMsgGCError();
|
|
2309
|
+
while (reader.pos < end) {
|
|
2310
|
+
const tag = reader.uint32();
|
|
2311
|
+
switch (tag >>> 3) {
|
|
2312
|
+
case 1: {
|
|
2313
|
+
if (tag !== 10) {
|
|
2314
|
+
break;
|
|
2315
|
+
}
|
|
2316
|
+
message.errorText = reader.string();
|
|
2317
|
+
continue;
|
|
2318
|
+
}
|
|
2319
|
+
}
|
|
2320
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2321
|
+
break;
|
|
2322
|
+
}
|
|
2323
|
+
reader.skip(tag & 7);
|
|
2324
|
+
}
|
|
2325
|
+
return message;
|
|
2326
|
+
},
|
|
2327
|
+
};
|
|
2328
|
+
function createBaseCMsgRequestInventoryRefresh() {
|
|
2329
|
+
return {};
|
|
2330
|
+
}
|
|
2331
|
+
export const CMsgRequestInventoryRefresh = {
|
|
2332
|
+
encode(_, writer = new BinaryWriter()) {
|
|
2333
|
+
return writer;
|
|
2334
|
+
},
|
|
2335
|
+
decode(input, length) {
|
|
2336
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2337
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2338
|
+
const message = createBaseCMsgRequestInventoryRefresh();
|
|
2339
|
+
while (reader.pos < end) {
|
|
2340
|
+
const tag = reader.uint32();
|
|
2341
|
+
switch (tag >>> 3) {
|
|
2342
|
+
}
|
|
2343
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2344
|
+
break;
|
|
2345
|
+
}
|
|
2346
|
+
reader.skip(tag & 7);
|
|
2347
|
+
}
|
|
2348
|
+
return message;
|
|
2349
|
+
},
|
|
2350
|
+
};
|
|
2351
|
+
function createBaseCMsgUseItem() {
|
|
2352
|
+
return { itemId: 0, targetSteamId: 0, giftPotentialTargets: [], duelClassLock: 0, initiatorSteamId: 0 };
|
|
2353
|
+
}
|
|
2354
|
+
export const CMsgUseItem = {
|
|
2355
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2356
|
+
if (message.itemId !== undefined && message.itemId !== 0) {
|
|
2357
|
+
writer.uint32(8).uint64(message.itemId);
|
|
2358
|
+
}
|
|
2359
|
+
if (message.targetSteamId !== undefined && message.targetSteamId !== 0) {
|
|
2360
|
+
writer.uint32(17).fixed64(message.targetSteamId);
|
|
2361
|
+
}
|
|
2362
|
+
for (const v of message.giftPotentialTargets) {
|
|
2363
|
+
writer.uint32(24).uint32(v);
|
|
2364
|
+
}
|
|
2365
|
+
if (message.duelClassLock !== undefined && message.duelClassLock !== 0) {
|
|
2366
|
+
writer.uint32(32).uint32(message.duelClassLock);
|
|
2367
|
+
}
|
|
2368
|
+
if (message.initiatorSteamId !== undefined && message.initiatorSteamId !== 0) {
|
|
2369
|
+
writer.uint32(41).fixed64(message.initiatorSteamId);
|
|
2370
|
+
}
|
|
2371
|
+
return writer;
|
|
2372
|
+
},
|
|
2373
|
+
decode(input, length) {
|
|
2374
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2375
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2376
|
+
const message = createBaseCMsgUseItem();
|
|
2377
|
+
while (reader.pos < end) {
|
|
2378
|
+
const tag = reader.uint32();
|
|
2379
|
+
switch (tag >>> 3) {
|
|
2380
|
+
case 1: {
|
|
2381
|
+
if (tag !== 8) {
|
|
2382
|
+
break;
|
|
2383
|
+
}
|
|
2384
|
+
message.itemId = longToNumber(reader.uint64());
|
|
2385
|
+
continue;
|
|
2386
|
+
}
|
|
2387
|
+
case 2: {
|
|
2388
|
+
if (tag !== 17) {
|
|
2389
|
+
break;
|
|
2390
|
+
}
|
|
2391
|
+
message.targetSteamId = longToNumber(reader.fixed64());
|
|
2392
|
+
continue;
|
|
2393
|
+
}
|
|
2394
|
+
case 3: {
|
|
2395
|
+
if (tag === 24) {
|
|
2396
|
+
message.giftPotentialTargets.push(reader.uint32());
|
|
2397
|
+
continue;
|
|
2398
|
+
}
|
|
2399
|
+
if (tag === 26) {
|
|
2400
|
+
const end2 = reader.uint32() + reader.pos;
|
|
2401
|
+
while (reader.pos < end2) {
|
|
2402
|
+
message.giftPotentialTargets.push(reader.uint32());
|
|
2403
|
+
}
|
|
2404
|
+
continue;
|
|
2405
|
+
}
|
|
2406
|
+
break;
|
|
2407
|
+
}
|
|
2408
|
+
case 4: {
|
|
2409
|
+
if (tag !== 32) {
|
|
2410
|
+
break;
|
|
2411
|
+
}
|
|
2412
|
+
message.duelClassLock = reader.uint32();
|
|
2413
|
+
continue;
|
|
2414
|
+
}
|
|
2415
|
+
case 5: {
|
|
2416
|
+
if (tag !== 41) {
|
|
2417
|
+
break;
|
|
2418
|
+
}
|
|
2419
|
+
message.initiatorSteamId = longToNumber(reader.fixed64());
|
|
2420
|
+
continue;
|
|
2421
|
+
}
|
|
2422
|
+
}
|
|
2423
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2424
|
+
break;
|
|
2425
|
+
}
|
|
2426
|
+
reader.skip(tag & 7);
|
|
2427
|
+
}
|
|
2428
|
+
return message;
|
|
2429
|
+
},
|
|
2430
|
+
};
|
|
2431
|
+
function createBaseCMsgReplayUploadedToYouTube() {
|
|
2432
|
+
return { youtubeUrl: "", youtubeAccountName: "", sessionId: 0 };
|
|
2433
|
+
}
|
|
2434
|
+
export const CMsgReplayUploadedToYouTube = {
|
|
2435
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2436
|
+
if (message.youtubeUrl !== undefined && message.youtubeUrl !== "") {
|
|
2437
|
+
writer.uint32(10).string(message.youtubeUrl);
|
|
2438
|
+
}
|
|
2439
|
+
if (message.youtubeAccountName !== undefined && message.youtubeAccountName !== "") {
|
|
2440
|
+
writer.uint32(18).string(message.youtubeAccountName);
|
|
2441
|
+
}
|
|
2442
|
+
if (message.sessionId !== undefined && message.sessionId !== 0) {
|
|
2443
|
+
writer.uint32(24).uint64(message.sessionId);
|
|
2444
|
+
}
|
|
2445
|
+
return writer;
|
|
2446
|
+
},
|
|
2447
|
+
decode(input, length) {
|
|
2448
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2449
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2450
|
+
const message = createBaseCMsgReplayUploadedToYouTube();
|
|
2451
|
+
while (reader.pos < end) {
|
|
2452
|
+
const tag = reader.uint32();
|
|
2453
|
+
switch (tag >>> 3) {
|
|
2454
|
+
case 1: {
|
|
2455
|
+
if (tag !== 10) {
|
|
2456
|
+
break;
|
|
2457
|
+
}
|
|
2458
|
+
message.youtubeUrl = reader.string();
|
|
2459
|
+
continue;
|
|
2460
|
+
}
|
|
2461
|
+
case 2: {
|
|
2462
|
+
if (tag !== 18) {
|
|
2463
|
+
break;
|
|
2464
|
+
}
|
|
2465
|
+
message.youtubeAccountName = reader.string();
|
|
2466
|
+
continue;
|
|
2467
|
+
}
|
|
2468
|
+
case 3: {
|
|
2469
|
+
if (tag !== 24) {
|
|
2470
|
+
break;
|
|
2471
|
+
}
|
|
2472
|
+
message.sessionId = longToNumber(reader.uint64());
|
|
2473
|
+
continue;
|
|
2474
|
+
}
|
|
2475
|
+
}
|
|
2476
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2477
|
+
break;
|
|
2478
|
+
}
|
|
2479
|
+
reader.skip(tag & 7);
|
|
2480
|
+
}
|
|
2481
|
+
return message;
|
|
2482
|
+
},
|
|
2483
|
+
};
|
|
2484
|
+
function createBaseCMsgConsumableExhausted() {
|
|
2485
|
+
return { itemDefId: 0 };
|
|
2486
|
+
}
|
|
2487
|
+
export const CMsgConsumableExhausted = {
|
|
2488
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2489
|
+
if (message.itemDefId !== undefined && message.itemDefId !== 0) {
|
|
2490
|
+
writer.uint32(8).int32(message.itemDefId);
|
|
2491
|
+
}
|
|
2492
|
+
return writer;
|
|
2493
|
+
},
|
|
2494
|
+
decode(input, length) {
|
|
2495
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2496
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2497
|
+
const message = createBaseCMsgConsumableExhausted();
|
|
2498
|
+
while (reader.pos < end) {
|
|
2499
|
+
const tag = reader.uint32();
|
|
2500
|
+
switch (tag >>> 3) {
|
|
2501
|
+
case 1: {
|
|
2502
|
+
if (tag !== 8) {
|
|
2503
|
+
break;
|
|
2504
|
+
}
|
|
2505
|
+
message.itemDefId = reader.int32();
|
|
2506
|
+
continue;
|
|
2507
|
+
}
|
|
2508
|
+
}
|
|
2509
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2510
|
+
break;
|
|
2511
|
+
}
|
|
2512
|
+
reader.skip(tag & 7);
|
|
2513
|
+
}
|
|
2514
|
+
return message;
|
|
2515
|
+
},
|
|
2516
|
+
};
|
|
2517
|
+
function createBaseCMsgItemAcknowledgedDEPRECATED() {
|
|
2518
|
+
return { accountId: 0, inventory: 0, defIndex: 0, quality: 0, rarity: 0, origin: 0, itemId: 0 };
|
|
2519
|
+
}
|
|
2520
|
+
export const CMsgItemAcknowledgedDEPRECATED = {
|
|
2521
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2522
|
+
if (message.accountId !== undefined && message.accountId !== 0) {
|
|
2523
|
+
writer.uint32(8).uint32(message.accountId);
|
|
2524
|
+
}
|
|
2525
|
+
if (message.inventory !== undefined && message.inventory !== 0) {
|
|
2526
|
+
writer.uint32(16).uint32(message.inventory);
|
|
2527
|
+
}
|
|
2528
|
+
if (message.defIndex !== undefined && message.defIndex !== 0) {
|
|
2529
|
+
writer.uint32(24).uint32(message.defIndex);
|
|
2530
|
+
}
|
|
2531
|
+
if (message.quality !== undefined && message.quality !== 0) {
|
|
2532
|
+
writer.uint32(32).uint32(message.quality);
|
|
2533
|
+
}
|
|
2534
|
+
if (message.rarity !== undefined && message.rarity !== 0) {
|
|
2535
|
+
writer.uint32(40).uint32(message.rarity);
|
|
2536
|
+
}
|
|
2537
|
+
if (message.origin !== undefined && message.origin !== 0) {
|
|
2538
|
+
writer.uint32(48).uint32(message.origin);
|
|
2539
|
+
}
|
|
2540
|
+
if (message.itemId !== undefined && message.itemId !== 0) {
|
|
2541
|
+
writer.uint32(56).uint64(message.itemId);
|
|
2542
|
+
}
|
|
2543
|
+
return writer;
|
|
2544
|
+
},
|
|
2545
|
+
decode(input, length) {
|
|
2546
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2547
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2548
|
+
const message = createBaseCMsgItemAcknowledgedDEPRECATED();
|
|
2549
|
+
while (reader.pos < end) {
|
|
2550
|
+
const tag = reader.uint32();
|
|
2551
|
+
switch (tag >>> 3) {
|
|
2552
|
+
case 1: {
|
|
2553
|
+
if (tag !== 8) {
|
|
2554
|
+
break;
|
|
2555
|
+
}
|
|
2556
|
+
message.accountId = reader.uint32();
|
|
2557
|
+
continue;
|
|
2558
|
+
}
|
|
2559
|
+
case 2: {
|
|
2560
|
+
if (tag !== 16) {
|
|
2561
|
+
break;
|
|
2562
|
+
}
|
|
2563
|
+
message.inventory = reader.uint32();
|
|
2564
|
+
continue;
|
|
2565
|
+
}
|
|
2566
|
+
case 3: {
|
|
2567
|
+
if (tag !== 24) {
|
|
2568
|
+
break;
|
|
2569
|
+
}
|
|
2570
|
+
message.defIndex = reader.uint32();
|
|
2571
|
+
continue;
|
|
2572
|
+
}
|
|
2573
|
+
case 4: {
|
|
2574
|
+
if (tag !== 32) {
|
|
2575
|
+
break;
|
|
2576
|
+
}
|
|
2577
|
+
message.quality = reader.uint32();
|
|
2578
|
+
continue;
|
|
2579
|
+
}
|
|
2580
|
+
case 5: {
|
|
2581
|
+
if (tag !== 40) {
|
|
2582
|
+
break;
|
|
2583
|
+
}
|
|
2584
|
+
message.rarity = reader.uint32();
|
|
2585
|
+
continue;
|
|
2586
|
+
}
|
|
2587
|
+
case 6: {
|
|
2588
|
+
if (tag !== 48) {
|
|
2589
|
+
break;
|
|
2590
|
+
}
|
|
2591
|
+
message.origin = reader.uint32();
|
|
2592
|
+
continue;
|
|
2593
|
+
}
|
|
2594
|
+
case 7: {
|
|
2595
|
+
if (tag !== 56) {
|
|
2596
|
+
break;
|
|
2597
|
+
}
|
|
2598
|
+
message.itemId = longToNumber(reader.uint64());
|
|
2599
|
+
continue;
|
|
2600
|
+
}
|
|
2601
|
+
}
|
|
2602
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2603
|
+
break;
|
|
2604
|
+
}
|
|
2605
|
+
reader.skip(tag & 7);
|
|
2606
|
+
}
|
|
2607
|
+
return message;
|
|
2608
|
+
},
|
|
2609
|
+
};
|
|
2610
|
+
function createBaseCMsgSetItemPositions() {
|
|
2611
|
+
return { itemPositions: [] };
|
|
2612
|
+
}
|
|
2613
|
+
export const CMsgSetItemPositions = {
|
|
2614
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2615
|
+
for (const v of message.itemPositions) {
|
|
2616
|
+
CMsgSetItemPositions_ItemPosition.encode(v, writer.uint32(10).fork()).join();
|
|
2617
|
+
}
|
|
2618
|
+
return writer;
|
|
2619
|
+
},
|
|
2620
|
+
decode(input, length) {
|
|
2621
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2622
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2623
|
+
const message = createBaseCMsgSetItemPositions();
|
|
2624
|
+
while (reader.pos < end) {
|
|
2625
|
+
const tag = reader.uint32();
|
|
2626
|
+
switch (tag >>> 3) {
|
|
2627
|
+
case 1: {
|
|
2628
|
+
if (tag !== 10) {
|
|
2629
|
+
break;
|
|
2630
|
+
}
|
|
2631
|
+
message.itemPositions.push(CMsgSetItemPositions_ItemPosition.decode(reader, reader.uint32()));
|
|
2632
|
+
continue;
|
|
2633
|
+
}
|
|
2634
|
+
}
|
|
2635
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2636
|
+
break;
|
|
2637
|
+
}
|
|
2638
|
+
reader.skip(tag & 7);
|
|
2639
|
+
}
|
|
2640
|
+
return message;
|
|
2641
|
+
},
|
|
2642
|
+
};
|
|
2643
|
+
function createBaseCMsgSetItemPositions_ItemPosition() {
|
|
2644
|
+
return { legacyItemId: 0, position: 0, itemId: 0 };
|
|
2645
|
+
}
|
|
2646
|
+
export const CMsgSetItemPositions_ItemPosition = {
|
|
2647
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2648
|
+
if (message.legacyItemId !== undefined && message.legacyItemId !== 0) {
|
|
2649
|
+
writer.uint32(8).uint32(message.legacyItemId);
|
|
2650
|
+
}
|
|
2651
|
+
if (message.position !== undefined && message.position !== 0) {
|
|
2652
|
+
writer.uint32(16).uint32(message.position);
|
|
2653
|
+
}
|
|
2654
|
+
if (message.itemId !== undefined && message.itemId !== 0) {
|
|
2655
|
+
writer.uint32(24).uint64(message.itemId);
|
|
2656
|
+
}
|
|
2657
|
+
return writer;
|
|
2658
|
+
},
|
|
2659
|
+
decode(input, length) {
|
|
2660
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2661
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2662
|
+
const message = createBaseCMsgSetItemPositions_ItemPosition();
|
|
2663
|
+
while (reader.pos < end) {
|
|
2664
|
+
const tag = reader.uint32();
|
|
2665
|
+
switch (tag >>> 3) {
|
|
2666
|
+
case 1: {
|
|
2667
|
+
if (tag !== 8) {
|
|
2668
|
+
break;
|
|
2669
|
+
}
|
|
2670
|
+
message.legacyItemId = reader.uint32();
|
|
2671
|
+
continue;
|
|
2672
|
+
}
|
|
2673
|
+
case 2: {
|
|
2674
|
+
if (tag !== 16) {
|
|
2675
|
+
break;
|
|
2676
|
+
}
|
|
2677
|
+
message.position = reader.uint32();
|
|
2678
|
+
continue;
|
|
2679
|
+
}
|
|
2680
|
+
case 3: {
|
|
2681
|
+
if (tag !== 24) {
|
|
2682
|
+
break;
|
|
2683
|
+
}
|
|
2684
|
+
message.itemId = longToNumber(reader.uint64());
|
|
2685
|
+
continue;
|
|
2686
|
+
}
|
|
2687
|
+
}
|
|
2688
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2689
|
+
break;
|
|
2690
|
+
}
|
|
2691
|
+
reader.skip(tag & 7);
|
|
2692
|
+
}
|
|
2693
|
+
return message;
|
|
2694
|
+
},
|
|
2695
|
+
};
|
|
2696
|
+
function createBaseCMsgGCReportAbuse() {
|
|
2697
|
+
return {
|
|
2698
|
+
targetSteamId: 0,
|
|
2699
|
+
description: "",
|
|
2700
|
+
gid: 0,
|
|
2701
|
+
abuseType: 0,
|
|
2702
|
+
contentType: 0,
|
|
2703
|
+
targetGameServerIp: 0,
|
|
2704
|
+
targetGameServerPort: 0,
|
|
2705
|
+
};
|
|
2706
|
+
}
|
|
2707
|
+
export const CMsgGCReportAbuse = {
|
|
2708
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2709
|
+
if (message.targetSteamId !== undefined && message.targetSteamId !== 0) {
|
|
2710
|
+
writer.uint32(9).fixed64(message.targetSteamId);
|
|
2711
|
+
}
|
|
2712
|
+
if (message.description !== undefined && message.description !== "") {
|
|
2713
|
+
writer.uint32(34).string(message.description);
|
|
2714
|
+
}
|
|
2715
|
+
if (message.gid !== undefined && message.gid !== 0) {
|
|
2716
|
+
writer.uint32(40).uint64(message.gid);
|
|
2717
|
+
}
|
|
2718
|
+
if (message.abuseType !== undefined && message.abuseType !== 0) {
|
|
2719
|
+
writer.uint32(16).uint32(message.abuseType);
|
|
2720
|
+
}
|
|
2721
|
+
if (message.contentType !== undefined && message.contentType !== 0) {
|
|
2722
|
+
writer.uint32(24).uint32(message.contentType);
|
|
2723
|
+
}
|
|
2724
|
+
if (message.targetGameServerIp !== undefined && message.targetGameServerIp !== 0) {
|
|
2725
|
+
writer.uint32(53).fixed32(message.targetGameServerIp);
|
|
2726
|
+
}
|
|
2727
|
+
if (message.targetGameServerPort !== undefined && message.targetGameServerPort !== 0) {
|
|
2728
|
+
writer.uint32(56).uint32(message.targetGameServerPort);
|
|
2729
|
+
}
|
|
2730
|
+
return writer;
|
|
2731
|
+
},
|
|
2732
|
+
decode(input, length) {
|
|
2733
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2734
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2735
|
+
const message = createBaseCMsgGCReportAbuse();
|
|
2736
|
+
while (reader.pos < end) {
|
|
2737
|
+
const tag = reader.uint32();
|
|
2738
|
+
switch (tag >>> 3) {
|
|
2739
|
+
case 1: {
|
|
2740
|
+
if (tag !== 9) {
|
|
2741
|
+
break;
|
|
2742
|
+
}
|
|
2743
|
+
message.targetSteamId = longToNumber(reader.fixed64());
|
|
2744
|
+
continue;
|
|
2745
|
+
}
|
|
2746
|
+
case 4: {
|
|
2747
|
+
if (tag !== 34) {
|
|
2748
|
+
break;
|
|
2749
|
+
}
|
|
2750
|
+
message.description = reader.string();
|
|
2751
|
+
continue;
|
|
2752
|
+
}
|
|
2753
|
+
case 5: {
|
|
2754
|
+
if (tag !== 40) {
|
|
2755
|
+
break;
|
|
2756
|
+
}
|
|
2757
|
+
message.gid = longToNumber(reader.uint64());
|
|
2758
|
+
continue;
|
|
2759
|
+
}
|
|
2760
|
+
case 2: {
|
|
2761
|
+
if (tag !== 16) {
|
|
2762
|
+
break;
|
|
2763
|
+
}
|
|
2764
|
+
message.abuseType = reader.uint32();
|
|
2765
|
+
continue;
|
|
2766
|
+
}
|
|
2767
|
+
case 3: {
|
|
2768
|
+
if (tag !== 24) {
|
|
2769
|
+
break;
|
|
2770
|
+
}
|
|
2771
|
+
message.contentType = reader.uint32();
|
|
2772
|
+
continue;
|
|
2773
|
+
}
|
|
2774
|
+
case 6: {
|
|
2775
|
+
if (tag !== 53) {
|
|
2776
|
+
break;
|
|
2777
|
+
}
|
|
2778
|
+
message.targetGameServerIp = reader.fixed32();
|
|
2779
|
+
continue;
|
|
2780
|
+
}
|
|
2781
|
+
case 7: {
|
|
2782
|
+
if (tag !== 56) {
|
|
2783
|
+
break;
|
|
2784
|
+
}
|
|
2785
|
+
message.targetGameServerPort = reader.uint32();
|
|
2786
|
+
continue;
|
|
2787
|
+
}
|
|
2788
|
+
}
|
|
2789
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2790
|
+
break;
|
|
2791
|
+
}
|
|
2792
|
+
reader.skip(tag & 7);
|
|
2793
|
+
}
|
|
2794
|
+
return message;
|
|
2795
|
+
},
|
|
2796
|
+
};
|
|
2797
|
+
function createBaseCMsgGCReportAbuseResponse() {
|
|
2798
|
+
return { targetSteamId: 0, result: 0, errorMessage: "" };
|
|
2799
|
+
}
|
|
2800
|
+
export const CMsgGCReportAbuseResponse = {
|
|
2801
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2802
|
+
if (message.targetSteamId !== undefined && message.targetSteamId !== 0) {
|
|
2803
|
+
writer.uint32(9).fixed64(message.targetSteamId);
|
|
2804
|
+
}
|
|
2805
|
+
if (message.result !== undefined && message.result !== 0) {
|
|
2806
|
+
writer.uint32(16).uint32(message.result);
|
|
2807
|
+
}
|
|
2808
|
+
if (message.errorMessage !== undefined && message.errorMessage !== "") {
|
|
2809
|
+
writer.uint32(26).string(message.errorMessage);
|
|
2810
|
+
}
|
|
2811
|
+
return writer;
|
|
2812
|
+
},
|
|
2813
|
+
decode(input, length) {
|
|
2814
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2815
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2816
|
+
const message = createBaseCMsgGCReportAbuseResponse();
|
|
2817
|
+
while (reader.pos < end) {
|
|
2818
|
+
const tag = reader.uint32();
|
|
2819
|
+
switch (tag >>> 3) {
|
|
2820
|
+
case 1: {
|
|
2821
|
+
if (tag !== 9) {
|
|
2822
|
+
break;
|
|
2823
|
+
}
|
|
2824
|
+
message.targetSteamId = longToNumber(reader.fixed64());
|
|
2825
|
+
continue;
|
|
2826
|
+
}
|
|
2827
|
+
case 2: {
|
|
2828
|
+
if (tag !== 16) {
|
|
2829
|
+
break;
|
|
2830
|
+
}
|
|
2831
|
+
message.result = reader.uint32();
|
|
2832
|
+
continue;
|
|
2833
|
+
}
|
|
2834
|
+
case 3: {
|
|
2835
|
+
if (tag !== 26) {
|
|
2836
|
+
break;
|
|
2837
|
+
}
|
|
2838
|
+
message.errorMessage = reader.string();
|
|
2839
|
+
continue;
|
|
2840
|
+
}
|
|
2841
|
+
}
|
|
2842
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2843
|
+
break;
|
|
2844
|
+
}
|
|
2845
|
+
reader.skip(tag & 7);
|
|
2846
|
+
}
|
|
2847
|
+
return message;
|
|
2848
|
+
},
|
|
2849
|
+
};
|
|
2850
|
+
function createBaseCMsgGCNameItemNotification() {
|
|
2851
|
+
return { playerSteamid: 0, itemDefIndex: 0, itemNameCustom: "" };
|
|
2852
|
+
}
|
|
2853
|
+
export const CMsgGCNameItemNotification = {
|
|
2854
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2855
|
+
if (message.playerSteamid !== undefined && message.playerSteamid !== 0) {
|
|
2856
|
+
writer.uint32(9).fixed64(message.playerSteamid);
|
|
2857
|
+
}
|
|
2858
|
+
if (message.itemDefIndex !== undefined && message.itemDefIndex !== 0) {
|
|
2859
|
+
writer.uint32(16).uint32(message.itemDefIndex);
|
|
2860
|
+
}
|
|
2861
|
+
if (message.itemNameCustom !== undefined && message.itemNameCustom !== "") {
|
|
2862
|
+
writer.uint32(26).string(message.itemNameCustom);
|
|
2863
|
+
}
|
|
2864
|
+
return writer;
|
|
2865
|
+
},
|
|
2866
|
+
decode(input, length) {
|
|
2867
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2868
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2869
|
+
const message = createBaseCMsgGCNameItemNotification();
|
|
2870
|
+
while (reader.pos < end) {
|
|
2871
|
+
const tag = reader.uint32();
|
|
2872
|
+
switch (tag >>> 3) {
|
|
2873
|
+
case 1: {
|
|
2874
|
+
if (tag !== 9) {
|
|
2875
|
+
break;
|
|
2876
|
+
}
|
|
2877
|
+
message.playerSteamid = longToNumber(reader.fixed64());
|
|
2878
|
+
continue;
|
|
2879
|
+
}
|
|
2880
|
+
case 2: {
|
|
2881
|
+
if (tag !== 16) {
|
|
2882
|
+
break;
|
|
2883
|
+
}
|
|
2884
|
+
message.itemDefIndex = reader.uint32();
|
|
2885
|
+
continue;
|
|
2886
|
+
}
|
|
2887
|
+
case 3: {
|
|
2888
|
+
if (tag !== 26) {
|
|
2889
|
+
break;
|
|
2890
|
+
}
|
|
2891
|
+
message.itemNameCustom = reader.string();
|
|
2892
|
+
continue;
|
|
2893
|
+
}
|
|
2894
|
+
}
|
|
2895
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2896
|
+
break;
|
|
2897
|
+
}
|
|
2898
|
+
reader.skip(tag & 7);
|
|
2899
|
+
}
|
|
2900
|
+
return message;
|
|
2901
|
+
},
|
|
2902
|
+
};
|
|
2903
|
+
function createBaseCMsgGCClientDisplayNotification() {
|
|
2904
|
+
return {
|
|
2905
|
+
notificationTitleLocalizationKey: "",
|
|
2906
|
+
notificationBodyLocalizationKey: "",
|
|
2907
|
+
bodySubstringKeys: [],
|
|
2908
|
+
bodySubstringValues: [],
|
|
2909
|
+
};
|
|
2910
|
+
}
|
|
2911
|
+
export const CMsgGCClientDisplayNotification = {
|
|
2912
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2913
|
+
if (message.notificationTitleLocalizationKey !== undefined && message.notificationTitleLocalizationKey !== "") {
|
|
2914
|
+
writer.uint32(10).string(message.notificationTitleLocalizationKey);
|
|
2915
|
+
}
|
|
2916
|
+
if (message.notificationBodyLocalizationKey !== undefined && message.notificationBodyLocalizationKey !== "") {
|
|
2917
|
+
writer.uint32(18).string(message.notificationBodyLocalizationKey);
|
|
2918
|
+
}
|
|
2919
|
+
for (const v of message.bodySubstringKeys) {
|
|
2920
|
+
writer.uint32(26).string(v);
|
|
2921
|
+
}
|
|
2922
|
+
for (const v of message.bodySubstringValues) {
|
|
2923
|
+
writer.uint32(34).string(v);
|
|
2924
|
+
}
|
|
2925
|
+
return writer;
|
|
2926
|
+
},
|
|
2927
|
+
decode(input, length) {
|
|
2928
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2929
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2930
|
+
const message = createBaseCMsgGCClientDisplayNotification();
|
|
2931
|
+
while (reader.pos < end) {
|
|
2932
|
+
const tag = reader.uint32();
|
|
2933
|
+
switch (tag >>> 3) {
|
|
2934
|
+
case 1: {
|
|
2935
|
+
if (tag !== 10) {
|
|
2936
|
+
break;
|
|
2937
|
+
}
|
|
2938
|
+
message.notificationTitleLocalizationKey = reader.string();
|
|
2939
|
+
continue;
|
|
2940
|
+
}
|
|
2941
|
+
case 2: {
|
|
2942
|
+
if (tag !== 18) {
|
|
2943
|
+
break;
|
|
2944
|
+
}
|
|
2945
|
+
message.notificationBodyLocalizationKey = reader.string();
|
|
2946
|
+
continue;
|
|
2947
|
+
}
|
|
2948
|
+
case 3: {
|
|
2949
|
+
if (tag !== 26) {
|
|
2950
|
+
break;
|
|
2951
|
+
}
|
|
2952
|
+
message.bodySubstringKeys.push(reader.string());
|
|
2953
|
+
continue;
|
|
2954
|
+
}
|
|
2955
|
+
case 4: {
|
|
2956
|
+
if (tag !== 34) {
|
|
2957
|
+
break;
|
|
2958
|
+
}
|
|
2959
|
+
message.bodySubstringValues.push(reader.string());
|
|
2960
|
+
continue;
|
|
2961
|
+
}
|
|
2962
|
+
}
|
|
2963
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2964
|
+
break;
|
|
2965
|
+
}
|
|
2966
|
+
reader.skip(tag & 7);
|
|
2967
|
+
}
|
|
2968
|
+
return message;
|
|
2969
|
+
},
|
|
2970
|
+
};
|
|
2971
|
+
function createBaseCMsgGCShowItemsPickedUp() {
|
|
2972
|
+
return { playerSteamid: 0 };
|
|
2973
|
+
}
|
|
2974
|
+
export const CMsgGCShowItemsPickedUp = {
|
|
2975
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2976
|
+
if (message.playerSteamid !== undefined && message.playerSteamid !== 0) {
|
|
2977
|
+
writer.uint32(9).fixed64(message.playerSteamid);
|
|
2978
|
+
}
|
|
2979
|
+
return writer;
|
|
2980
|
+
},
|
|
2981
|
+
decode(input, length) {
|
|
2982
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2983
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2984
|
+
const message = createBaseCMsgGCShowItemsPickedUp();
|
|
2985
|
+
while (reader.pos < end) {
|
|
2986
|
+
const tag = reader.uint32();
|
|
2987
|
+
switch (tag >>> 3) {
|
|
2988
|
+
case 1: {
|
|
2989
|
+
if (tag !== 9) {
|
|
2990
|
+
break;
|
|
2991
|
+
}
|
|
2992
|
+
message.playerSteamid = longToNumber(reader.fixed64());
|
|
2993
|
+
continue;
|
|
2994
|
+
}
|
|
2995
|
+
}
|
|
2996
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2997
|
+
break;
|
|
2998
|
+
}
|
|
2999
|
+
reader.skip(tag & 7);
|
|
3000
|
+
}
|
|
3001
|
+
return message;
|
|
3002
|
+
},
|
|
3003
|
+
};
|
|
3004
|
+
function createBaseCMsgGCIncrementKillCountResponse() {
|
|
3005
|
+
return { killerAccountId: 0, numKills: 0, itemDef: 0, levelType: 0 };
|
|
3006
|
+
}
|
|
3007
|
+
export const CMsgGCIncrementKillCountResponse = {
|
|
3008
|
+
encode(message, writer = new BinaryWriter()) {
|
|
3009
|
+
if (message.killerAccountId !== undefined && message.killerAccountId !== 0) {
|
|
3010
|
+
writer.uint32(8).uint32(message.killerAccountId);
|
|
3011
|
+
}
|
|
3012
|
+
if (message.numKills !== undefined && message.numKills !== 0) {
|
|
3013
|
+
writer.uint32(16).uint32(message.numKills);
|
|
3014
|
+
}
|
|
3015
|
+
if (message.itemDef !== undefined && message.itemDef !== 0) {
|
|
3016
|
+
writer.uint32(24).uint32(message.itemDef);
|
|
3017
|
+
}
|
|
3018
|
+
if (message.levelType !== undefined && message.levelType !== 0) {
|
|
3019
|
+
writer.uint32(32).uint32(message.levelType);
|
|
3020
|
+
}
|
|
3021
|
+
return writer;
|
|
3022
|
+
},
|
|
3023
|
+
decode(input, length) {
|
|
3024
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3025
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3026
|
+
const message = createBaseCMsgGCIncrementKillCountResponse();
|
|
3027
|
+
while (reader.pos < end) {
|
|
3028
|
+
const tag = reader.uint32();
|
|
3029
|
+
switch (tag >>> 3) {
|
|
3030
|
+
case 1: {
|
|
3031
|
+
if (tag !== 8) {
|
|
3032
|
+
break;
|
|
3033
|
+
}
|
|
3034
|
+
message.killerAccountId = reader.uint32();
|
|
3035
|
+
continue;
|
|
3036
|
+
}
|
|
3037
|
+
case 2: {
|
|
3038
|
+
if (tag !== 16) {
|
|
3039
|
+
break;
|
|
3040
|
+
}
|
|
3041
|
+
message.numKills = reader.uint32();
|
|
3042
|
+
continue;
|
|
3043
|
+
}
|
|
3044
|
+
case 3: {
|
|
3045
|
+
if (tag !== 24) {
|
|
3046
|
+
break;
|
|
3047
|
+
}
|
|
3048
|
+
message.itemDef = reader.uint32();
|
|
3049
|
+
continue;
|
|
3050
|
+
}
|
|
3051
|
+
case 4: {
|
|
3052
|
+
if (tag !== 32) {
|
|
3053
|
+
break;
|
|
3054
|
+
}
|
|
3055
|
+
message.levelType = reader.uint32();
|
|
3056
|
+
continue;
|
|
3057
|
+
}
|
|
3058
|
+
}
|
|
3059
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3060
|
+
break;
|
|
3061
|
+
}
|
|
3062
|
+
reader.skip(tag & 7);
|
|
3063
|
+
}
|
|
3064
|
+
return message;
|
|
3065
|
+
},
|
|
3066
|
+
};
|
|
3067
|
+
function createBaseCSOEconItemDropRateBonus() {
|
|
3068
|
+
return { accountId: 0, expirationDate: 0, bonus: 0, bonusCount: 0, itemId: 0, defIndex: 0 };
|
|
3069
|
+
}
|
|
3070
|
+
export const CSOEconItemDropRateBonus = {
|
|
3071
|
+
encode(message, writer = new BinaryWriter()) {
|
|
3072
|
+
if (message.accountId !== undefined && message.accountId !== 0) {
|
|
3073
|
+
writer.uint32(8).uint32(message.accountId);
|
|
3074
|
+
}
|
|
3075
|
+
if (message.expirationDate !== undefined && message.expirationDate !== 0) {
|
|
3076
|
+
writer.uint32(21).fixed32(message.expirationDate);
|
|
3077
|
+
}
|
|
3078
|
+
if (message.bonus !== undefined && message.bonus !== 0) {
|
|
3079
|
+
writer.uint32(29).float(message.bonus);
|
|
3080
|
+
}
|
|
3081
|
+
if (message.bonusCount !== undefined && message.bonusCount !== 0) {
|
|
3082
|
+
writer.uint32(32).uint32(message.bonusCount);
|
|
3083
|
+
}
|
|
3084
|
+
if (message.itemId !== undefined && message.itemId !== 0) {
|
|
3085
|
+
writer.uint32(40).uint64(message.itemId);
|
|
3086
|
+
}
|
|
3087
|
+
if (message.defIndex !== undefined && message.defIndex !== 0) {
|
|
3088
|
+
writer.uint32(48).uint32(message.defIndex);
|
|
3089
|
+
}
|
|
3090
|
+
return writer;
|
|
3091
|
+
},
|
|
3092
|
+
decode(input, length) {
|
|
3093
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3094
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3095
|
+
const message = createBaseCSOEconItemDropRateBonus();
|
|
3096
|
+
while (reader.pos < end) {
|
|
3097
|
+
const tag = reader.uint32();
|
|
3098
|
+
switch (tag >>> 3) {
|
|
3099
|
+
case 1: {
|
|
3100
|
+
if (tag !== 8) {
|
|
3101
|
+
break;
|
|
3102
|
+
}
|
|
3103
|
+
message.accountId = reader.uint32();
|
|
3104
|
+
continue;
|
|
3105
|
+
}
|
|
3106
|
+
case 2: {
|
|
3107
|
+
if (tag !== 21) {
|
|
3108
|
+
break;
|
|
3109
|
+
}
|
|
3110
|
+
message.expirationDate = reader.fixed32();
|
|
3111
|
+
continue;
|
|
3112
|
+
}
|
|
3113
|
+
case 3: {
|
|
3114
|
+
if (tag !== 29) {
|
|
3115
|
+
break;
|
|
3116
|
+
}
|
|
3117
|
+
message.bonus = reader.float();
|
|
3118
|
+
continue;
|
|
3119
|
+
}
|
|
3120
|
+
case 4: {
|
|
3121
|
+
if (tag !== 32) {
|
|
3122
|
+
break;
|
|
3123
|
+
}
|
|
3124
|
+
message.bonusCount = reader.uint32();
|
|
3125
|
+
continue;
|
|
3126
|
+
}
|
|
3127
|
+
case 5: {
|
|
3128
|
+
if (tag !== 40) {
|
|
3129
|
+
break;
|
|
3130
|
+
}
|
|
3131
|
+
message.itemId = longToNumber(reader.uint64());
|
|
3132
|
+
continue;
|
|
3133
|
+
}
|
|
3134
|
+
case 6: {
|
|
3135
|
+
if (tag !== 48) {
|
|
3136
|
+
break;
|
|
3137
|
+
}
|
|
3138
|
+
message.defIndex = reader.uint32();
|
|
3139
|
+
continue;
|
|
3140
|
+
}
|
|
3141
|
+
}
|
|
3142
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3143
|
+
break;
|
|
3144
|
+
}
|
|
3145
|
+
reader.skip(tag & 7);
|
|
3146
|
+
}
|
|
3147
|
+
return message;
|
|
3148
|
+
},
|
|
3149
|
+
};
|
|
3150
|
+
function createBaseCSOEconItemLeagueViewPass() {
|
|
3151
|
+
return { accountId: 0, leagueId: 0, admin: 0, itemindex: 0 };
|
|
3152
|
+
}
|
|
3153
|
+
export const CSOEconItemLeagueViewPass = {
|
|
3154
|
+
encode(message, writer = new BinaryWriter()) {
|
|
3155
|
+
if (message.accountId !== undefined && message.accountId !== 0) {
|
|
3156
|
+
writer.uint32(8).uint32(message.accountId);
|
|
3157
|
+
}
|
|
3158
|
+
if (message.leagueId !== undefined && message.leagueId !== 0) {
|
|
3159
|
+
writer.uint32(16).uint32(message.leagueId);
|
|
3160
|
+
}
|
|
3161
|
+
if (message.admin !== undefined && message.admin !== 0) {
|
|
3162
|
+
writer.uint32(24).uint32(message.admin);
|
|
3163
|
+
}
|
|
3164
|
+
if (message.itemindex !== undefined && message.itemindex !== 0) {
|
|
3165
|
+
writer.uint32(32).uint32(message.itemindex);
|
|
3166
|
+
}
|
|
3167
|
+
return writer;
|
|
3168
|
+
},
|
|
3169
|
+
decode(input, length) {
|
|
3170
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3171
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3172
|
+
const message = createBaseCSOEconItemLeagueViewPass();
|
|
3173
|
+
while (reader.pos < end) {
|
|
3174
|
+
const tag = reader.uint32();
|
|
3175
|
+
switch (tag >>> 3) {
|
|
3176
|
+
case 1: {
|
|
3177
|
+
if (tag !== 8) {
|
|
3178
|
+
break;
|
|
3179
|
+
}
|
|
3180
|
+
message.accountId = reader.uint32();
|
|
3181
|
+
continue;
|
|
3182
|
+
}
|
|
3183
|
+
case 2: {
|
|
3184
|
+
if (tag !== 16) {
|
|
3185
|
+
break;
|
|
3186
|
+
}
|
|
3187
|
+
message.leagueId = reader.uint32();
|
|
3188
|
+
continue;
|
|
3189
|
+
}
|
|
3190
|
+
case 3: {
|
|
3191
|
+
if (tag !== 24) {
|
|
3192
|
+
break;
|
|
3193
|
+
}
|
|
3194
|
+
message.admin = reader.uint32();
|
|
3195
|
+
continue;
|
|
3196
|
+
}
|
|
3197
|
+
case 4: {
|
|
3198
|
+
if (tag !== 32) {
|
|
3199
|
+
break;
|
|
3200
|
+
}
|
|
3201
|
+
message.itemindex = reader.uint32();
|
|
3202
|
+
continue;
|
|
3203
|
+
}
|
|
3204
|
+
}
|
|
3205
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3206
|
+
break;
|
|
3207
|
+
}
|
|
3208
|
+
reader.skip(tag & 7);
|
|
3209
|
+
}
|
|
3210
|
+
return message;
|
|
3211
|
+
},
|
|
3212
|
+
};
|
|
3213
|
+
function createBaseCSOEconItemEventTicket() {
|
|
3214
|
+
return { accountId: 0, eventId: 0, itemId: 0 };
|
|
3215
|
+
}
|
|
3216
|
+
export const CSOEconItemEventTicket = {
|
|
3217
|
+
encode(message, writer = new BinaryWriter()) {
|
|
3218
|
+
if (message.accountId !== undefined && message.accountId !== 0) {
|
|
3219
|
+
writer.uint32(8).uint32(message.accountId);
|
|
3220
|
+
}
|
|
3221
|
+
if (message.eventId !== undefined && message.eventId !== 0) {
|
|
3222
|
+
writer.uint32(16).uint32(message.eventId);
|
|
3223
|
+
}
|
|
3224
|
+
if (message.itemId !== undefined && message.itemId !== 0) {
|
|
3225
|
+
writer.uint32(24).uint64(message.itemId);
|
|
3226
|
+
}
|
|
3227
|
+
return writer;
|
|
3228
|
+
},
|
|
3229
|
+
decode(input, length) {
|
|
3230
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3231
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3232
|
+
const message = createBaseCSOEconItemEventTicket();
|
|
3233
|
+
while (reader.pos < end) {
|
|
3234
|
+
const tag = reader.uint32();
|
|
3235
|
+
switch (tag >>> 3) {
|
|
3236
|
+
case 1: {
|
|
3237
|
+
if (tag !== 8) {
|
|
3238
|
+
break;
|
|
3239
|
+
}
|
|
3240
|
+
message.accountId = reader.uint32();
|
|
3241
|
+
continue;
|
|
3242
|
+
}
|
|
3243
|
+
case 2: {
|
|
3244
|
+
if (tag !== 16) {
|
|
3245
|
+
break;
|
|
3246
|
+
}
|
|
3247
|
+
message.eventId = reader.uint32();
|
|
3248
|
+
continue;
|
|
3249
|
+
}
|
|
3250
|
+
case 3: {
|
|
3251
|
+
if (tag !== 24) {
|
|
3252
|
+
break;
|
|
3253
|
+
}
|
|
3254
|
+
message.itemId = longToNumber(reader.uint64());
|
|
3255
|
+
continue;
|
|
3256
|
+
}
|
|
3257
|
+
}
|
|
3258
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3259
|
+
break;
|
|
3260
|
+
}
|
|
3261
|
+
reader.skip(tag & 7);
|
|
3262
|
+
}
|
|
3263
|
+
return message;
|
|
3264
|
+
},
|
|
3265
|
+
};
|
|
3266
|
+
function createBaseCMsgGCItemPreviewItemBoughtNotification() {
|
|
3267
|
+
return { itemDefIndex: 0 };
|
|
3268
|
+
}
|
|
3269
|
+
export const CMsgGCItemPreviewItemBoughtNotification = {
|
|
3270
|
+
encode(message, writer = new BinaryWriter()) {
|
|
3271
|
+
if (message.itemDefIndex !== undefined && message.itemDefIndex !== 0) {
|
|
3272
|
+
writer.uint32(8).uint32(message.itemDefIndex);
|
|
3273
|
+
}
|
|
3274
|
+
return writer;
|
|
3275
|
+
},
|
|
3276
|
+
decode(input, length) {
|
|
3277
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3278
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3279
|
+
const message = createBaseCMsgGCItemPreviewItemBoughtNotification();
|
|
3280
|
+
while (reader.pos < end) {
|
|
3281
|
+
const tag = reader.uint32();
|
|
3282
|
+
switch (tag >>> 3) {
|
|
3283
|
+
case 1: {
|
|
3284
|
+
if (tag !== 8) {
|
|
3285
|
+
break;
|
|
3286
|
+
}
|
|
3287
|
+
message.itemDefIndex = reader.uint32();
|
|
3288
|
+
continue;
|
|
3289
|
+
}
|
|
3290
|
+
}
|
|
3291
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3292
|
+
break;
|
|
3293
|
+
}
|
|
3294
|
+
reader.skip(tag & 7);
|
|
3295
|
+
}
|
|
3296
|
+
return message;
|
|
3297
|
+
},
|
|
3298
|
+
};
|
|
3299
|
+
function createBaseCMsgGCStorePurchaseCancel() {
|
|
3300
|
+
return { txnId: 0 };
|
|
3301
|
+
}
|
|
3302
|
+
export const CMsgGCStorePurchaseCancel = {
|
|
3303
|
+
encode(message, writer = new BinaryWriter()) {
|
|
3304
|
+
if (message.txnId !== undefined && message.txnId !== 0) {
|
|
3305
|
+
writer.uint32(8).uint64(message.txnId);
|
|
3306
|
+
}
|
|
3307
|
+
return writer;
|
|
3308
|
+
},
|
|
3309
|
+
decode(input, length) {
|
|
3310
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3311
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3312
|
+
const message = createBaseCMsgGCStorePurchaseCancel();
|
|
3313
|
+
while (reader.pos < end) {
|
|
3314
|
+
const tag = reader.uint32();
|
|
3315
|
+
switch (tag >>> 3) {
|
|
3316
|
+
case 1: {
|
|
3317
|
+
if (tag !== 8) {
|
|
3318
|
+
break;
|
|
3319
|
+
}
|
|
3320
|
+
message.txnId = longToNumber(reader.uint64());
|
|
3321
|
+
continue;
|
|
3322
|
+
}
|
|
3323
|
+
}
|
|
3324
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3325
|
+
break;
|
|
3326
|
+
}
|
|
3327
|
+
reader.skip(tag & 7);
|
|
3328
|
+
}
|
|
3329
|
+
return message;
|
|
3330
|
+
},
|
|
3331
|
+
};
|
|
3332
|
+
function createBaseCMsgGCStorePurchaseCancelResponse() {
|
|
3333
|
+
return { result: 0 };
|
|
3334
|
+
}
|
|
3335
|
+
export const CMsgGCStorePurchaseCancelResponse = {
|
|
3336
|
+
encode(message, writer = new BinaryWriter()) {
|
|
3337
|
+
if (message.result !== undefined && message.result !== 0) {
|
|
3338
|
+
writer.uint32(8).uint32(message.result);
|
|
3339
|
+
}
|
|
3340
|
+
return writer;
|
|
3341
|
+
},
|
|
3342
|
+
decode(input, length) {
|
|
3343
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3344
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3345
|
+
const message = createBaseCMsgGCStorePurchaseCancelResponse();
|
|
3346
|
+
while (reader.pos < end) {
|
|
3347
|
+
const tag = reader.uint32();
|
|
3348
|
+
switch (tag >>> 3) {
|
|
3349
|
+
case 1: {
|
|
3350
|
+
if (tag !== 8) {
|
|
3351
|
+
break;
|
|
3352
|
+
}
|
|
3353
|
+
message.result = reader.uint32();
|
|
3354
|
+
continue;
|
|
3355
|
+
}
|
|
3356
|
+
}
|
|
3357
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3358
|
+
break;
|
|
3359
|
+
}
|
|
3360
|
+
reader.skip(tag & 7);
|
|
3361
|
+
}
|
|
3362
|
+
return message;
|
|
3363
|
+
},
|
|
3364
|
+
};
|
|
3365
|
+
function createBaseCMsgGCStorePurchaseFinalize() {
|
|
3366
|
+
return { txnId: 0 };
|
|
3367
|
+
}
|
|
3368
|
+
export const CMsgGCStorePurchaseFinalize = {
|
|
3369
|
+
encode(message, writer = new BinaryWriter()) {
|
|
3370
|
+
if (message.txnId !== undefined && message.txnId !== 0) {
|
|
3371
|
+
writer.uint32(8).uint64(message.txnId);
|
|
3372
|
+
}
|
|
3373
|
+
return writer;
|
|
3374
|
+
},
|
|
3375
|
+
decode(input, length) {
|
|
3376
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3377
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3378
|
+
const message = createBaseCMsgGCStorePurchaseFinalize();
|
|
3379
|
+
while (reader.pos < end) {
|
|
3380
|
+
const tag = reader.uint32();
|
|
3381
|
+
switch (tag >>> 3) {
|
|
3382
|
+
case 1: {
|
|
3383
|
+
if (tag !== 8) {
|
|
3384
|
+
break;
|
|
3385
|
+
}
|
|
3386
|
+
message.txnId = longToNumber(reader.uint64());
|
|
3387
|
+
continue;
|
|
3388
|
+
}
|
|
3389
|
+
}
|
|
3390
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3391
|
+
break;
|
|
3392
|
+
}
|
|
3393
|
+
reader.skip(tag & 7);
|
|
3394
|
+
}
|
|
3395
|
+
return message;
|
|
3396
|
+
},
|
|
3397
|
+
};
|
|
3398
|
+
function createBaseCMsgGCStorePurchaseFinalizeResponse() {
|
|
3399
|
+
return { result: 0, itemIds: [] };
|
|
3400
|
+
}
|
|
3401
|
+
export const CMsgGCStorePurchaseFinalizeResponse = {
|
|
3402
|
+
encode(message, writer = new BinaryWriter()) {
|
|
3403
|
+
if (message.result !== undefined && message.result !== 0) {
|
|
3404
|
+
writer.uint32(8).uint32(message.result);
|
|
3405
|
+
}
|
|
3406
|
+
for (const v of message.itemIds) {
|
|
3407
|
+
writer.uint32(16).uint64(v);
|
|
3408
|
+
}
|
|
3409
|
+
return writer;
|
|
3410
|
+
},
|
|
3411
|
+
decode(input, length) {
|
|
3412
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3413
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3414
|
+
const message = createBaseCMsgGCStorePurchaseFinalizeResponse();
|
|
3415
|
+
while (reader.pos < end) {
|
|
3416
|
+
const tag = reader.uint32();
|
|
3417
|
+
switch (tag >>> 3) {
|
|
3418
|
+
case 1: {
|
|
3419
|
+
if (tag !== 8) {
|
|
3420
|
+
break;
|
|
3421
|
+
}
|
|
3422
|
+
message.result = reader.uint32();
|
|
3423
|
+
continue;
|
|
3424
|
+
}
|
|
3425
|
+
case 2: {
|
|
3426
|
+
if (tag === 16) {
|
|
3427
|
+
message.itemIds.push(longToNumber(reader.uint64()));
|
|
3428
|
+
continue;
|
|
3429
|
+
}
|
|
3430
|
+
if (tag === 18) {
|
|
3431
|
+
const end2 = reader.uint32() + reader.pos;
|
|
3432
|
+
while (reader.pos < end2) {
|
|
3433
|
+
message.itemIds.push(longToNumber(reader.uint64()));
|
|
3434
|
+
}
|
|
3435
|
+
continue;
|
|
3436
|
+
}
|
|
3437
|
+
break;
|
|
3438
|
+
}
|
|
3439
|
+
}
|
|
3440
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3441
|
+
break;
|
|
3442
|
+
}
|
|
3443
|
+
reader.skip(tag & 7);
|
|
3444
|
+
}
|
|
3445
|
+
return message;
|
|
3446
|
+
},
|
|
3447
|
+
};
|
|
3448
|
+
function createBaseCMsgGCBannedWordListRequest() {
|
|
3449
|
+
return { banListGroupId: 0, wordId: 0 };
|
|
3450
|
+
}
|
|
3451
|
+
export const CMsgGCBannedWordListRequest = {
|
|
3452
|
+
encode(message, writer = new BinaryWriter()) {
|
|
3453
|
+
if (message.banListGroupId !== undefined && message.banListGroupId !== 0) {
|
|
3454
|
+
writer.uint32(8).uint32(message.banListGroupId);
|
|
3455
|
+
}
|
|
3456
|
+
if (message.wordId !== undefined && message.wordId !== 0) {
|
|
3457
|
+
writer.uint32(16).uint32(message.wordId);
|
|
3458
|
+
}
|
|
3459
|
+
return writer;
|
|
3460
|
+
},
|
|
3461
|
+
decode(input, length) {
|
|
3462
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3463
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3464
|
+
const message = createBaseCMsgGCBannedWordListRequest();
|
|
3465
|
+
while (reader.pos < end) {
|
|
3466
|
+
const tag = reader.uint32();
|
|
3467
|
+
switch (tag >>> 3) {
|
|
3468
|
+
case 1: {
|
|
3469
|
+
if (tag !== 8) {
|
|
3470
|
+
break;
|
|
3471
|
+
}
|
|
3472
|
+
message.banListGroupId = reader.uint32();
|
|
3473
|
+
continue;
|
|
3474
|
+
}
|
|
3475
|
+
case 2: {
|
|
3476
|
+
if (tag !== 16) {
|
|
3477
|
+
break;
|
|
3478
|
+
}
|
|
3479
|
+
message.wordId = reader.uint32();
|
|
3480
|
+
continue;
|
|
3481
|
+
}
|
|
3482
|
+
}
|
|
3483
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3484
|
+
break;
|
|
3485
|
+
}
|
|
3486
|
+
reader.skip(tag & 7);
|
|
3487
|
+
}
|
|
3488
|
+
return message;
|
|
3489
|
+
},
|
|
3490
|
+
};
|
|
3491
|
+
function createBaseCMsgGCRequestAnnouncements() {
|
|
3492
|
+
return {};
|
|
3493
|
+
}
|
|
3494
|
+
export const CMsgGCRequestAnnouncements = {
|
|
3495
|
+
encode(_, writer = new BinaryWriter()) {
|
|
3496
|
+
return writer;
|
|
3497
|
+
},
|
|
3498
|
+
decode(input, length) {
|
|
3499
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3500
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3501
|
+
const message = createBaseCMsgGCRequestAnnouncements();
|
|
3502
|
+
while (reader.pos < end) {
|
|
3503
|
+
const tag = reader.uint32();
|
|
3504
|
+
switch (tag >>> 3) {
|
|
3505
|
+
}
|
|
3506
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3507
|
+
break;
|
|
3508
|
+
}
|
|
3509
|
+
reader.skip(tag & 7);
|
|
3510
|
+
}
|
|
3511
|
+
return message;
|
|
3512
|
+
},
|
|
3513
|
+
};
|
|
3514
|
+
function createBaseCMsgGCRequestAnnouncementsResponse() {
|
|
3515
|
+
return { announcementTitle: "", announcement: "", nextmatchTitle: "", nextmatch: "" };
|
|
3516
|
+
}
|
|
3517
|
+
export const CMsgGCRequestAnnouncementsResponse = {
|
|
3518
|
+
encode(message, writer = new BinaryWriter()) {
|
|
3519
|
+
if (message.announcementTitle !== undefined && message.announcementTitle !== "") {
|
|
3520
|
+
writer.uint32(10).string(message.announcementTitle);
|
|
3521
|
+
}
|
|
3522
|
+
if (message.announcement !== undefined && message.announcement !== "") {
|
|
3523
|
+
writer.uint32(18).string(message.announcement);
|
|
3524
|
+
}
|
|
3525
|
+
if (message.nextmatchTitle !== undefined && message.nextmatchTitle !== "") {
|
|
3526
|
+
writer.uint32(26).string(message.nextmatchTitle);
|
|
3527
|
+
}
|
|
3528
|
+
if (message.nextmatch !== undefined && message.nextmatch !== "") {
|
|
3529
|
+
writer.uint32(34).string(message.nextmatch);
|
|
3530
|
+
}
|
|
3531
|
+
return writer;
|
|
3532
|
+
},
|
|
3533
|
+
decode(input, length) {
|
|
3534
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3535
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3536
|
+
const message = createBaseCMsgGCRequestAnnouncementsResponse();
|
|
3537
|
+
while (reader.pos < end) {
|
|
3538
|
+
const tag = reader.uint32();
|
|
3539
|
+
switch (tag >>> 3) {
|
|
3540
|
+
case 1: {
|
|
3541
|
+
if (tag !== 10) {
|
|
3542
|
+
break;
|
|
3543
|
+
}
|
|
3544
|
+
message.announcementTitle = reader.string();
|
|
3545
|
+
continue;
|
|
3546
|
+
}
|
|
3547
|
+
case 2: {
|
|
3548
|
+
if (tag !== 18) {
|
|
3549
|
+
break;
|
|
3550
|
+
}
|
|
3551
|
+
message.announcement = reader.string();
|
|
3552
|
+
continue;
|
|
3553
|
+
}
|
|
3554
|
+
case 3: {
|
|
3555
|
+
if (tag !== 26) {
|
|
3556
|
+
break;
|
|
3557
|
+
}
|
|
3558
|
+
message.nextmatchTitle = reader.string();
|
|
3559
|
+
continue;
|
|
3560
|
+
}
|
|
3561
|
+
case 4: {
|
|
3562
|
+
if (tag !== 34) {
|
|
3563
|
+
break;
|
|
3564
|
+
}
|
|
3565
|
+
message.nextmatch = reader.string();
|
|
3566
|
+
continue;
|
|
3567
|
+
}
|
|
3568
|
+
}
|
|
3569
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3570
|
+
break;
|
|
3571
|
+
}
|
|
3572
|
+
reader.skip(tag & 7);
|
|
3573
|
+
}
|
|
3574
|
+
return message;
|
|
3575
|
+
},
|
|
3576
|
+
};
|
|
3577
|
+
function createBaseCMsgGCBannedWord() {
|
|
3578
|
+
return { wordId: 0, wordType: 0, word: "" };
|
|
3579
|
+
}
|
|
3580
|
+
export const CMsgGCBannedWord = {
|
|
3581
|
+
encode(message, writer = new BinaryWriter()) {
|
|
3582
|
+
if (message.wordId !== undefined && message.wordId !== 0) {
|
|
3583
|
+
writer.uint32(8).uint32(message.wordId);
|
|
3584
|
+
}
|
|
3585
|
+
if (message.wordType !== undefined && message.wordType !== 0) {
|
|
3586
|
+
writer.uint32(16).int32(message.wordType);
|
|
3587
|
+
}
|
|
3588
|
+
if (message.word !== undefined && message.word !== "") {
|
|
3589
|
+
writer.uint32(26).string(message.word);
|
|
3590
|
+
}
|
|
3591
|
+
return writer;
|
|
3592
|
+
},
|
|
3593
|
+
decode(input, length) {
|
|
3594
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3595
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3596
|
+
const message = createBaseCMsgGCBannedWord();
|
|
3597
|
+
while (reader.pos < end) {
|
|
3598
|
+
const tag = reader.uint32();
|
|
3599
|
+
switch (tag >>> 3) {
|
|
3600
|
+
case 1: {
|
|
3601
|
+
if (tag !== 8) {
|
|
3602
|
+
break;
|
|
3603
|
+
}
|
|
3604
|
+
message.wordId = reader.uint32();
|
|
3605
|
+
continue;
|
|
3606
|
+
}
|
|
3607
|
+
case 2: {
|
|
3608
|
+
if (tag !== 16) {
|
|
3609
|
+
break;
|
|
3610
|
+
}
|
|
3611
|
+
message.wordType = reader.int32();
|
|
3612
|
+
continue;
|
|
3613
|
+
}
|
|
3614
|
+
case 3: {
|
|
3615
|
+
if (tag !== 26) {
|
|
3616
|
+
break;
|
|
3617
|
+
}
|
|
3618
|
+
message.word = reader.string();
|
|
3619
|
+
continue;
|
|
3620
|
+
}
|
|
3621
|
+
}
|
|
3622
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3623
|
+
break;
|
|
3624
|
+
}
|
|
3625
|
+
reader.skip(tag & 7);
|
|
3626
|
+
}
|
|
3627
|
+
return message;
|
|
3628
|
+
},
|
|
3629
|
+
};
|
|
3630
|
+
function createBaseCMsgGCBannedWordListResponse() {
|
|
3631
|
+
return { banListGroupId: 0, wordList: [] };
|
|
3632
|
+
}
|
|
3633
|
+
export const CMsgGCBannedWordListResponse = {
|
|
3634
|
+
encode(message, writer = new BinaryWriter()) {
|
|
3635
|
+
if (message.banListGroupId !== undefined && message.banListGroupId !== 0) {
|
|
3636
|
+
writer.uint32(8).uint32(message.banListGroupId);
|
|
3637
|
+
}
|
|
3638
|
+
for (const v of message.wordList) {
|
|
3639
|
+
CMsgGCBannedWord.encode(v, writer.uint32(18).fork()).join();
|
|
3640
|
+
}
|
|
3641
|
+
return writer;
|
|
3642
|
+
},
|
|
3643
|
+
decode(input, length) {
|
|
3644
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3645
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3646
|
+
const message = createBaseCMsgGCBannedWordListResponse();
|
|
3647
|
+
while (reader.pos < end) {
|
|
3648
|
+
const tag = reader.uint32();
|
|
3649
|
+
switch (tag >>> 3) {
|
|
3650
|
+
case 1: {
|
|
3651
|
+
if (tag !== 8) {
|
|
3652
|
+
break;
|
|
3653
|
+
}
|
|
3654
|
+
message.banListGroupId = reader.uint32();
|
|
3655
|
+
continue;
|
|
3656
|
+
}
|
|
3657
|
+
case 2: {
|
|
3658
|
+
if (tag !== 18) {
|
|
3659
|
+
break;
|
|
3660
|
+
}
|
|
3661
|
+
message.wordList.push(CMsgGCBannedWord.decode(reader, reader.uint32()));
|
|
3662
|
+
continue;
|
|
3663
|
+
}
|
|
3664
|
+
}
|
|
3665
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3666
|
+
break;
|
|
3667
|
+
}
|
|
3668
|
+
reader.skip(tag & 7);
|
|
3669
|
+
}
|
|
3670
|
+
return message;
|
|
3671
|
+
},
|
|
3672
|
+
};
|
|
3673
|
+
function createBaseCMsgGCToGCBannedWordListBroadcast() {
|
|
3674
|
+
return { broadcast: undefined };
|
|
3675
|
+
}
|
|
3676
|
+
export const CMsgGCToGCBannedWordListBroadcast = {
|
|
3677
|
+
encode(message, writer = new BinaryWriter()) {
|
|
3678
|
+
if (message.broadcast !== undefined) {
|
|
3679
|
+
CMsgGCBannedWordListResponse.encode(message.broadcast, writer.uint32(10).fork()).join();
|
|
3680
|
+
}
|
|
3681
|
+
return writer;
|
|
3682
|
+
},
|
|
3683
|
+
decode(input, length) {
|
|
3684
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3685
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3686
|
+
const message = createBaseCMsgGCToGCBannedWordListBroadcast();
|
|
3687
|
+
while (reader.pos < end) {
|
|
3688
|
+
const tag = reader.uint32();
|
|
3689
|
+
switch (tag >>> 3) {
|
|
3690
|
+
case 1: {
|
|
3691
|
+
if (tag !== 10) {
|
|
3692
|
+
break;
|
|
3693
|
+
}
|
|
3694
|
+
message.broadcast = CMsgGCBannedWordListResponse.decode(reader, reader.uint32());
|
|
3695
|
+
continue;
|
|
3696
|
+
}
|
|
3697
|
+
}
|
|
3698
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3699
|
+
break;
|
|
3700
|
+
}
|
|
3701
|
+
reader.skip(tag & 7);
|
|
3702
|
+
}
|
|
3703
|
+
return message;
|
|
3704
|
+
},
|
|
3705
|
+
};
|
|
3706
|
+
function createBaseCMsgGCToGCBannedWordListUpdated() {
|
|
3707
|
+
return { groupId: 0 };
|
|
3708
|
+
}
|
|
3709
|
+
export const CMsgGCToGCBannedWordListUpdated = {
|
|
3710
|
+
encode(message, writer = new BinaryWriter()) {
|
|
3711
|
+
if (message.groupId !== undefined && message.groupId !== 0) {
|
|
3712
|
+
writer.uint32(8).uint32(message.groupId);
|
|
3713
|
+
}
|
|
3714
|
+
return writer;
|
|
3715
|
+
},
|
|
3716
|
+
decode(input, length) {
|
|
3717
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3718
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3719
|
+
const message = createBaseCMsgGCToGCBannedWordListUpdated();
|
|
3720
|
+
while (reader.pos < end) {
|
|
3721
|
+
const tag = reader.uint32();
|
|
3722
|
+
switch (tag >>> 3) {
|
|
3723
|
+
case 1: {
|
|
3724
|
+
if (tag !== 8) {
|
|
3725
|
+
break;
|
|
3726
|
+
}
|
|
3727
|
+
message.groupId = reader.uint32();
|
|
3728
|
+
continue;
|
|
3729
|
+
}
|
|
3730
|
+
}
|
|
3731
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3732
|
+
break;
|
|
3733
|
+
}
|
|
3734
|
+
reader.skip(tag & 7);
|
|
3735
|
+
}
|
|
3736
|
+
return message;
|
|
3737
|
+
},
|
|
3738
|
+
};
|
|
3739
|
+
function createBaseCMsgGCToGCDirtySDOCache() {
|
|
3740
|
+
return { sdoType: 0, keyUint64: 0 };
|
|
3741
|
+
}
|
|
3742
|
+
export const CMsgGCToGCDirtySDOCache = {
|
|
3743
|
+
encode(message, writer = new BinaryWriter()) {
|
|
3744
|
+
if (message.sdoType !== undefined && message.sdoType !== 0) {
|
|
3745
|
+
writer.uint32(8).uint32(message.sdoType);
|
|
3746
|
+
}
|
|
3747
|
+
if (message.keyUint64 !== undefined && message.keyUint64 !== 0) {
|
|
3748
|
+
writer.uint32(16).uint64(message.keyUint64);
|
|
3749
|
+
}
|
|
3750
|
+
return writer;
|
|
3751
|
+
},
|
|
3752
|
+
decode(input, length) {
|
|
3753
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3754
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3755
|
+
const message = createBaseCMsgGCToGCDirtySDOCache();
|
|
3756
|
+
while (reader.pos < end) {
|
|
3757
|
+
const tag = reader.uint32();
|
|
3758
|
+
switch (tag >>> 3) {
|
|
3759
|
+
case 1: {
|
|
3760
|
+
if (tag !== 8) {
|
|
3761
|
+
break;
|
|
3762
|
+
}
|
|
3763
|
+
message.sdoType = reader.uint32();
|
|
3764
|
+
continue;
|
|
3765
|
+
}
|
|
3766
|
+
case 2: {
|
|
3767
|
+
if (tag !== 16) {
|
|
3768
|
+
break;
|
|
3769
|
+
}
|
|
3770
|
+
message.keyUint64 = longToNumber(reader.uint64());
|
|
3771
|
+
continue;
|
|
3772
|
+
}
|
|
3773
|
+
}
|
|
3774
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3775
|
+
break;
|
|
3776
|
+
}
|
|
3777
|
+
reader.skip(tag & 7);
|
|
3778
|
+
}
|
|
3779
|
+
return message;
|
|
3780
|
+
},
|
|
3781
|
+
};
|
|
3782
|
+
function createBaseCMsgGCToGCDirtyMultipleSDOCache() {
|
|
3783
|
+
return { sdoType: 0, keyUint64: [] };
|
|
3784
|
+
}
|
|
3785
|
+
export const CMsgGCToGCDirtyMultipleSDOCache = {
|
|
3786
|
+
encode(message, writer = new BinaryWriter()) {
|
|
3787
|
+
if (message.sdoType !== undefined && message.sdoType !== 0) {
|
|
3788
|
+
writer.uint32(8).uint32(message.sdoType);
|
|
3789
|
+
}
|
|
3790
|
+
for (const v of message.keyUint64) {
|
|
3791
|
+
writer.uint32(16).uint64(v);
|
|
3792
|
+
}
|
|
3793
|
+
return writer;
|
|
3794
|
+
},
|
|
3795
|
+
decode(input, length) {
|
|
3796
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3797
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3798
|
+
const message = createBaseCMsgGCToGCDirtyMultipleSDOCache();
|
|
3799
|
+
while (reader.pos < end) {
|
|
3800
|
+
const tag = reader.uint32();
|
|
3801
|
+
switch (tag >>> 3) {
|
|
3802
|
+
case 1: {
|
|
3803
|
+
if (tag !== 8) {
|
|
3804
|
+
break;
|
|
3805
|
+
}
|
|
3806
|
+
message.sdoType = reader.uint32();
|
|
3807
|
+
continue;
|
|
3808
|
+
}
|
|
3809
|
+
case 2: {
|
|
3810
|
+
if (tag === 16) {
|
|
3811
|
+
message.keyUint64.push(longToNumber(reader.uint64()));
|
|
3812
|
+
continue;
|
|
3813
|
+
}
|
|
3814
|
+
if (tag === 18) {
|
|
3815
|
+
const end2 = reader.uint32() + reader.pos;
|
|
3816
|
+
while (reader.pos < end2) {
|
|
3817
|
+
message.keyUint64.push(longToNumber(reader.uint64()));
|
|
3818
|
+
}
|
|
3819
|
+
continue;
|
|
3820
|
+
}
|
|
3821
|
+
break;
|
|
3822
|
+
}
|
|
3823
|
+
}
|
|
3824
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3825
|
+
break;
|
|
3826
|
+
}
|
|
3827
|
+
reader.skip(tag & 7);
|
|
3828
|
+
}
|
|
3829
|
+
return message;
|
|
3830
|
+
},
|
|
3831
|
+
};
|
|
3832
|
+
function createBaseCMsgGCCollectItem() {
|
|
3833
|
+
return { collectionItemId: 0, subjectItemId: 0 };
|
|
3834
|
+
}
|
|
3835
|
+
export const CMsgGCCollectItem = {
|
|
3836
|
+
encode(message, writer = new BinaryWriter()) {
|
|
3837
|
+
if (message.collectionItemId !== undefined && message.collectionItemId !== 0) {
|
|
3838
|
+
writer.uint32(8).uint64(message.collectionItemId);
|
|
3839
|
+
}
|
|
3840
|
+
if (message.subjectItemId !== undefined && message.subjectItemId !== 0) {
|
|
3841
|
+
writer.uint32(16).uint64(message.subjectItemId);
|
|
3842
|
+
}
|
|
3843
|
+
return writer;
|
|
3844
|
+
},
|
|
3845
|
+
decode(input, length) {
|
|
3846
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3847
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3848
|
+
const message = createBaseCMsgGCCollectItem();
|
|
3849
|
+
while (reader.pos < end) {
|
|
3850
|
+
const tag = reader.uint32();
|
|
3851
|
+
switch (tag >>> 3) {
|
|
3852
|
+
case 1: {
|
|
3853
|
+
if (tag !== 8) {
|
|
3854
|
+
break;
|
|
3855
|
+
}
|
|
3856
|
+
message.collectionItemId = longToNumber(reader.uint64());
|
|
3857
|
+
continue;
|
|
3858
|
+
}
|
|
3859
|
+
case 2: {
|
|
3860
|
+
if (tag !== 16) {
|
|
3861
|
+
break;
|
|
3862
|
+
}
|
|
3863
|
+
message.subjectItemId = longToNumber(reader.uint64());
|
|
3864
|
+
continue;
|
|
3865
|
+
}
|
|
3866
|
+
}
|
|
3867
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3868
|
+
break;
|
|
3869
|
+
}
|
|
3870
|
+
reader.skip(tag & 7);
|
|
3871
|
+
}
|
|
3872
|
+
return message;
|
|
3873
|
+
},
|
|
3874
|
+
};
|
|
3875
|
+
function createBaseCMsgSDONoMemcached() {
|
|
3876
|
+
return {};
|
|
3877
|
+
}
|
|
3878
|
+
export const CMsgSDONoMemcached = {
|
|
3879
|
+
encode(_, writer = new BinaryWriter()) {
|
|
3880
|
+
return writer;
|
|
3881
|
+
},
|
|
3882
|
+
decode(input, length) {
|
|
3883
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3884
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3885
|
+
const message = createBaseCMsgSDONoMemcached();
|
|
3886
|
+
while (reader.pos < end) {
|
|
3887
|
+
const tag = reader.uint32();
|
|
3888
|
+
switch (tag >>> 3) {
|
|
3889
|
+
}
|
|
3890
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3891
|
+
break;
|
|
3892
|
+
}
|
|
3893
|
+
reader.skip(tag & 7);
|
|
3894
|
+
}
|
|
3895
|
+
return message;
|
|
3896
|
+
},
|
|
3897
|
+
};
|
|
3898
|
+
function createBaseCMsgGCToGCUpdateSQLKeyValue() {
|
|
3899
|
+
return { keyName: "" };
|
|
3900
|
+
}
|
|
3901
|
+
export const CMsgGCToGCUpdateSQLKeyValue = {
|
|
3902
|
+
encode(message, writer = new BinaryWriter()) {
|
|
3903
|
+
if (message.keyName !== undefined && message.keyName !== "") {
|
|
3904
|
+
writer.uint32(10).string(message.keyName);
|
|
3905
|
+
}
|
|
3906
|
+
return writer;
|
|
3907
|
+
},
|
|
3908
|
+
decode(input, length) {
|
|
3909
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3910
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3911
|
+
const message = createBaseCMsgGCToGCUpdateSQLKeyValue();
|
|
3912
|
+
while (reader.pos < end) {
|
|
3913
|
+
const tag = reader.uint32();
|
|
3914
|
+
switch (tag >>> 3) {
|
|
3915
|
+
case 1: {
|
|
3916
|
+
if (tag !== 10) {
|
|
3917
|
+
break;
|
|
3918
|
+
}
|
|
3919
|
+
message.keyName = reader.string();
|
|
3920
|
+
continue;
|
|
3921
|
+
}
|
|
3922
|
+
}
|
|
3923
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3924
|
+
break;
|
|
3925
|
+
}
|
|
3926
|
+
reader.skip(tag & 7);
|
|
3927
|
+
}
|
|
3928
|
+
return message;
|
|
3929
|
+
},
|
|
3930
|
+
};
|
|
3931
|
+
function createBaseCMsgGCToGCIsTrustedServer() {
|
|
3932
|
+
return { steamId: 0 };
|
|
3933
|
+
}
|
|
3934
|
+
export const CMsgGCToGCIsTrustedServer = {
|
|
3935
|
+
encode(message, writer = new BinaryWriter()) {
|
|
3936
|
+
if (message.steamId !== undefined && message.steamId !== 0) {
|
|
3937
|
+
writer.uint32(9).fixed64(message.steamId);
|
|
3938
|
+
}
|
|
3939
|
+
return writer;
|
|
3940
|
+
},
|
|
3941
|
+
decode(input, length) {
|
|
3942
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3943
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3944
|
+
const message = createBaseCMsgGCToGCIsTrustedServer();
|
|
3945
|
+
while (reader.pos < end) {
|
|
3946
|
+
const tag = reader.uint32();
|
|
3947
|
+
switch (tag >>> 3) {
|
|
3948
|
+
case 1: {
|
|
3949
|
+
if (tag !== 9) {
|
|
3950
|
+
break;
|
|
3951
|
+
}
|
|
3952
|
+
message.steamId = longToNumber(reader.fixed64());
|
|
3953
|
+
continue;
|
|
3954
|
+
}
|
|
3955
|
+
}
|
|
3956
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3957
|
+
break;
|
|
3958
|
+
}
|
|
3959
|
+
reader.skip(tag & 7);
|
|
3960
|
+
}
|
|
3961
|
+
return message;
|
|
3962
|
+
},
|
|
3963
|
+
};
|
|
3964
|
+
function createBaseCMsgGCToGCIsTrustedServerResponse() {
|
|
3965
|
+
return { isTrusted: false };
|
|
3966
|
+
}
|
|
3967
|
+
export const CMsgGCToGCIsTrustedServerResponse = {
|
|
3968
|
+
encode(message, writer = new BinaryWriter()) {
|
|
3969
|
+
if (message.isTrusted !== undefined && message.isTrusted !== false) {
|
|
3970
|
+
writer.uint32(8).bool(message.isTrusted);
|
|
3971
|
+
}
|
|
3972
|
+
return writer;
|
|
3973
|
+
},
|
|
3974
|
+
decode(input, length) {
|
|
3975
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3976
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3977
|
+
const message = createBaseCMsgGCToGCIsTrustedServerResponse();
|
|
3978
|
+
while (reader.pos < end) {
|
|
3979
|
+
const tag = reader.uint32();
|
|
3980
|
+
switch (tag >>> 3) {
|
|
3981
|
+
case 1: {
|
|
3982
|
+
if (tag !== 8) {
|
|
3983
|
+
break;
|
|
3984
|
+
}
|
|
3985
|
+
message.isTrusted = reader.bool();
|
|
3986
|
+
continue;
|
|
3987
|
+
}
|
|
3988
|
+
}
|
|
3989
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3990
|
+
break;
|
|
3991
|
+
}
|
|
3992
|
+
reader.skip(tag & 7);
|
|
3993
|
+
}
|
|
3994
|
+
return message;
|
|
3995
|
+
},
|
|
3996
|
+
};
|
|
3997
|
+
function createBaseCMsgGCToGCBroadcastConsoleCommand() {
|
|
3998
|
+
return { conCommand: "" };
|
|
3999
|
+
}
|
|
4000
|
+
export const CMsgGCToGCBroadcastConsoleCommand = {
|
|
4001
|
+
encode(message, writer = new BinaryWriter()) {
|
|
4002
|
+
if (message.conCommand !== undefined && message.conCommand !== "") {
|
|
4003
|
+
writer.uint32(10).string(message.conCommand);
|
|
4004
|
+
}
|
|
4005
|
+
return writer;
|
|
4006
|
+
},
|
|
4007
|
+
decode(input, length) {
|
|
4008
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4009
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4010
|
+
const message = createBaseCMsgGCToGCBroadcastConsoleCommand();
|
|
4011
|
+
while (reader.pos < end) {
|
|
4012
|
+
const tag = reader.uint32();
|
|
4013
|
+
switch (tag >>> 3) {
|
|
4014
|
+
case 1: {
|
|
4015
|
+
if (tag !== 10) {
|
|
4016
|
+
break;
|
|
4017
|
+
}
|
|
4018
|
+
message.conCommand = reader.string();
|
|
4019
|
+
continue;
|
|
4020
|
+
}
|
|
4021
|
+
}
|
|
4022
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4023
|
+
break;
|
|
4024
|
+
}
|
|
4025
|
+
reader.skip(tag & 7);
|
|
4026
|
+
}
|
|
4027
|
+
return message;
|
|
4028
|
+
},
|
|
4029
|
+
};
|
|
4030
|
+
function createBaseCMsgGCServerVersionUpdated() {
|
|
4031
|
+
return { serverVersion: 0 };
|
|
4032
|
+
}
|
|
4033
|
+
export const CMsgGCServerVersionUpdated = {
|
|
4034
|
+
encode(message, writer = new BinaryWriter()) {
|
|
4035
|
+
if (message.serverVersion !== undefined && message.serverVersion !== 0) {
|
|
4036
|
+
writer.uint32(8).uint32(message.serverVersion);
|
|
4037
|
+
}
|
|
4038
|
+
return writer;
|
|
4039
|
+
},
|
|
4040
|
+
decode(input, length) {
|
|
4041
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4042
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4043
|
+
const message = createBaseCMsgGCServerVersionUpdated();
|
|
4044
|
+
while (reader.pos < end) {
|
|
4045
|
+
const tag = reader.uint32();
|
|
4046
|
+
switch (tag >>> 3) {
|
|
4047
|
+
case 1: {
|
|
4048
|
+
if (tag !== 8) {
|
|
4049
|
+
break;
|
|
4050
|
+
}
|
|
4051
|
+
message.serverVersion = reader.uint32();
|
|
4052
|
+
continue;
|
|
4053
|
+
}
|
|
4054
|
+
}
|
|
4055
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4056
|
+
break;
|
|
4057
|
+
}
|
|
4058
|
+
reader.skip(tag & 7);
|
|
4059
|
+
}
|
|
4060
|
+
return message;
|
|
4061
|
+
},
|
|
4062
|
+
};
|
|
4063
|
+
function createBaseCMsgGCClientVersionUpdated() {
|
|
4064
|
+
return { clientVersion: 0 };
|
|
4065
|
+
}
|
|
4066
|
+
export const CMsgGCClientVersionUpdated = {
|
|
4067
|
+
encode(message, writer = new BinaryWriter()) {
|
|
4068
|
+
if (message.clientVersion !== undefined && message.clientVersion !== 0) {
|
|
4069
|
+
writer.uint32(8).uint32(message.clientVersion);
|
|
4070
|
+
}
|
|
4071
|
+
return writer;
|
|
4072
|
+
},
|
|
4073
|
+
decode(input, length) {
|
|
4074
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4075
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4076
|
+
const message = createBaseCMsgGCClientVersionUpdated();
|
|
4077
|
+
while (reader.pos < end) {
|
|
4078
|
+
const tag = reader.uint32();
|
|
4079
|
+
switch (tag >>> 3) {
|
|
4080
|
+
case 1: {
|
|
4081
|
+
if (tag !== 8) {
|
|
4082
|
+
break;
|
|
4083
|
+
}
|
|
4084
|
+
message.clientVersion = reader.uint32();
|
|
4085
|
+
continue;
|
|
4086
|
+
}
|
|
4087
|
+
}
|
|
4088
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4089
|
+
break;
|
|
4090
|
+
}
|
|
4091
|
+
reader.skip(tag & 7);
|
|
4092
|
+
}
|
|
4093
|
+
return message;
|
|
4094
|
+
},
|
|
4095
|
+
};
|
|
4096
|
+
function createBaseCMsgGCToGCWebAPIAccountChanged() {
|
|
4097
|
+
return {};
|
|
4098
|
+
}
|
|
4099
|
+
export const CMsgGCToGCWebAPIAccountChanged = {
|
|
4100
|
+
encode(_, writer = new BinaryWriter()) {
|
|
4101
|
+
return writer;
|
|
4102
|
+
},
|
|
4103
|
+
decode(input, length) {
|
|
4104
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4105
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4106
|
+
const message = createBaseCMsgGCToGCWebAPIAccountChanged();
|
|
4107
|
+
while (reader.pos < end) {
|
|
4108
|
+
const tag = reader.uint32();
|
|
4109
|
+
switch (tag >>> 3) {
|
|
4110
|
+
}
|
|
4111
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4112
|
+
break;
|
|
4113
|
+
}
|
|
4114
|
+
reader.skip(tag & 7);
|
|
4115
|
+
}
|
|
4116
|
+
return message;
|
|
4117
|
+
},
|
|
4118
|
+
};
|
|
4119
|
+
function createBaseCMsgGCToGCRequestPassportItemGrant() {
|
|
4120
|
+
return { steamId: 0, leagueId: 0, rewardFlag: 0 };
|
|
4121
|
+
}
|
|
4122
|
+
export const CMsgGCToGCRequestPassportItemGrant = {
|
|
4123
|
+
encode(message, writer = new BinaryWriter()) {
|
|
4124
|
+
if (message.steamId !== undefined && message.steamId !== 0) {
|
|
4125
|
+
writer.uint32(9).fixed64(message.steamId);
|
|
4126
|
+
}
|
|
4127
|
+
if (message.leagueId !== undefined && message.leagueId !== 0) {
|
|
4128
|
+
writer.uint32(16).uint32(message.leagueId);
|
|
4129
|
+
}
|
|
4130
|
+
if (message.rewardFlag !== undefined && message.rewardFlag !== 0) {
|
|
4131
|
+
writer.uint32(24).int32(message.rewardFlag);
|
|
4132
|
+
}
|
|
4133
|
+
return writer;
|
|
4134
|
+
},
|
|
4135
|
+
decode(input, length) {
|
|
4136
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4137
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4138
|
+
const message = createBaseCMsgGCToGCRequestPassportItemGrant();
|
|
4139
|
+
while (reader.pos < end) {
|
|
4140
|
+
const tag = reader.uint32();
|
|
4141
|
+
switch (tag >>> 3) {
|
|
4142
|
+
case 1: {
|
|
4143
|
+
if (tag !== 9) {
|
|
4144
|
+
break;
|
|
4145
|
+
}
|
|
4146
|
+
message.steamId = longToNumber(reader.fixed64());
|
|
4147
|
+
continue;
|
|
4148
|
+
}
|
|
4149
|
+
case 2: {
|
|
4150
|
+
if (tag !== 16) {
|
|
4151
|
+
break;
|
|
4152
|
+
}
|
|
4153
|
+
message.leagueId = reader.uint32();
|
|
4154
|
+
continue;
|
|
4155
|
+
}
|
|
4156
|
+
case 3: {
|
|
4157
|
+
if (tag !== 24) {
|
|
4158
|
+
break;
|
|
4159
|
+
}
|
|
4160
|
+
message.rewardFlag = reader.int32();
|
|
4161
|
+
continue;
|
|
4162
|
+
}
|
|
4163
|
+
}
|
|
4164
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4165
|
+
break;
|
|
4166
|
+
}
|
|
4167
|
+
reader.skip(tag & 7);
|
|
4168
|
+
}
|
|
4169
|
+
return message;
|
|
4170
|
+
},
|
|
4171
|
+
};
|
|
4172
|
+
function createBaseCMsgGameServerInfo() {
|
|
4173
|
+
return {
|
|
4174
|
+
serverPublicIpAddr: 0,
|
|
4175
|
+
serverPrivateIpAddr: 0,
|
|
4176
|
+
serverPort: 0,
|
|
4177
|
+
serverTvPort: 0,
|
|
4178
|
+
serverKey: "",
|
|
4179
|
+
serverHibernation: false,
|
|
4180
|
+
serverType: 0,
|
|
4181
|
+
serverRegion: 0,
|
|
4182
|
+
serverLoadavg: 0,
|
|
4183
|
+
serverTvBroadcastTime: 0,
|
|
4184
|
+
serverGameTime: 0,
|
|
4185
|
+
serverRelayConnectedSteamId: 0,
|
|
4186
|
+
relaySlotsMax: 0,
|
|
4187
|
+
relaysConnected: 0,
|
|
4188
|
+
relayClientsConnected: 0,
|
|
4189
|
+
relayedGameServerSteamId: 0,
|
|
4190
|
+
parentRelayCount: 0,
|
|
4191
|
+
tvSecretCode: 0,
|
|
4192
|
+
};
|
|
4193
|
+
}
|
|
4194
|
+
export const CMsgGameServerInfo = {
|
|
4195
|
+
encode(message, writer = new BinaryWriter()) {
|
|
4196
|
+
if (message.serverPublicIpAddr !== undefined && message.serverPublicIpAddr !== 0) {
|
|
4197
|
+
writer.uint32(13).fixed32(message.serverPublicIpAddr);
|
|
4198
|
+
}
|
|
4199
|
+
if (message.serverPrivateIpAddr !== undefined && message.serverPrivateIpAddr !== 0) {
|
|
4200
|
+
writer.uint32(21).fixed32(message.serverPrivateIpAddr);
|
|
4201
|
+
}
|
|
4202
|
+
if (message.serverPort !== undefined && message.serverPort !== 0) {
|
|
4203
|
+
writer.uint32(24).uint32(message.serverPort);
|
|
4204
|
+
}
|
|
4205
|
+
if (message.serverTvPort !== undefined && message.serverTvPort !== 0) {
|
|
4206
|
+
writer.uint32(32).uint32(message.serverTvPort);
|
|
4207
|
+
}
|
|
4208
|
+
if (message.serverKey !== undefined && message.serverKey !== "") {
|
|
4209
|
+
writer.uint32(42).string(message.serverKey);
|
|
4210
|
+
}
|
|
4211
|
+
if (message.serverHibernation !== undefined && message.serverHibernation !== false) {
|
|
4212
|
+
writer.uint32(48).bool(message.serverHibernation);
|
|
4213
|
+
}
|
|
4214
|
+
if (message.serverType !== undefined && message.serverType !== 0) {
|
|
4215
|
+
writer.uint32(56).int32(message.serverType);
|
|
4216
|
+
}
|
|
4217
|
+
if (message.serverRegion !== undefined && message.serverRegion !== 0) {
|
|
4218
|
+
writer.uint32(64).uint32(message.serverRegion);
|
|
4219
|
+
}
|
|
4220
|
+
if (message.serverLoadavg !== undefined && message.serverLoadavg !== 0) {
|
|
4221
|
+
writer.uint32(77).float(message.serverLoadavg);
|
|
4222
|
+
}
|
|
4223
|
+
if (message.serverTvBroadcastTime !== undefined && message.serverTvBroadcastTime !== 0) {
|
|
4224
|
+
writer.uint32(85).float(message.serverTvBroadcastTime);
|
|
4225
|
+
}
|
|
4226
|
+
if (message.serverGameTime !== undefined && message.serverGameTime !== 0) {
|
|
4227
|
+
writer.uint32(93).float(message.serverGameTime);
|
|
4228
|
+
}
|
|
4229
|
+
if (message.serverRelayConnectedSteamId !== undefined && message.serverRelayConnectedSteamId !== 0) {
|
|
4230
|
+
writer.uint32(97).fixed64(message.serverRelayConnectedSteamId);
|
|
4231
|
+
}
|
|
4232
|
+
if (message.relaySlotsMax !== undefined && message.relaySlotsMax !== 0) {
|
|
4233
|
+
writer.uint32(104).uint32(message.relaySlotsMax);
|
|
4234
|
+
}
|
|
4235
|
+
if (message.relaysConnected !== undefined && message.relaysConnected !== 0) {
|
|
4236
|
+
writer.uint32(112).int32(message.relaysConnected);
|
|
4237
|
+
}
|
|
4238
|
+
if (message.relayClientsConnected !== undefined && message.relayClientsConnected !== 0) {
|
|
4239
|
+
writer.uint32(120).int32(message.relayClientsConnected);
|
|
4240
|
+
}
|
|
4241
|
+
if (message.relayedGameServerSteamId !== undefined && message.relayedGameServerSteamId !== 0) {
|
|
4242
|
+
writer.uint32(129).fixed64(message.relayedGameServerSteamId);
|
|
4243
|
+
}
|
|
4244
|
+
if (message.parentRelayCount !== undefined && message.parentRelayCount !== 0) {
|
|
4245
|
+
writer.uint32(136).uint32(message.parentRelayCount);
|
|
4246
|
+
}
|
|
4247
|
+
if (message.tvSecretCode !== undefined && message.tvSecretCode !== 0) {
|
|
4248
|
+
writer.uint32(145).fixed64(message.tvSecretCode);
|
|
4249
|
+
}
|
|
4250
|
+
return writer;
|
|
4251
|
+
},
|
|
4252
|
+
decode(input, length) {
|
|
4253
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4254
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4255
|
+
const message = createBaseCMsgGameServerInfo();
|
|
4256
|
+
while (reader.pos < end) {
|
|
4257
|
+
const tag = reader.uint32();
|
|
4258
|
+
switch (tag >>> 3) {
|
|
4259
|
+
case 1: {
|
|
4260
|
+
if (tag !== 13) {
|
|
4261
|
+
break;
|
|
4262
|
+
}
|
|
4263
|
+
message.serverPublicIpAddr = reader.fixed32();
|
|
4264
|
+
continue;
|
|
4265
|
+
}
|
|
4266
|
+
case 2: {
|
|
4267
|
+
if (tag !== 21) {
|
|
4268
|
+
break;
|
|
4269
|
+
}
|
|
4270
|
+
message.serverPrivateIpAddr = reader.fixed32();
|
|
4271
|
+
continue;
|
|
4272
|
+
}
|
|
4273
|
+
case 3: {
|
|
4274
|
+
if (tag !== 24) {
|
|
4275
|
+
break;
|
|
4276
|
+
}
|
|
4277
|
+
message.serverPort = reader.uint32();
|
|
4278
|
+
continue;
|
|
4279
|
+
}
|
|
4280
|
+
case 4: {
|
|
4281
|
+
if (tag !== 32) {
|
|
4282
|
+
break;
|
|
4283
|
+
}
|
|
4284
|
+
message.serverTvPort = reader.uint32();
|
|
4285
|
+
continue;
|
|
4286
|
+
}
|
|
4287
|
+
case 5: {
|
|
4288
|
+
if (tag !== 42) {
|
|
4289
|
+
break;
|
|
4290
|
+
}
|
|
4291
|
+
message.serverKey = reader.string();
|
|
4292
|
+
continue;
|
|
4293
|
+
}
|
|
4294
|
+
case 6: {
|
|
4295
|
+
if (tag !== 48) {
|
|
4296
|
+
break;
|
|
4297
|
+
}
|
|
4298
|
+
message.serverHibernation = reader.bool();
|
|
4299
|
+
continue;
|
|
4300
|
+
}
|
|
4301
|
+
case 7: {
|
|
4302
|
+
if (tag !== 56) {
|
|
4303
|
+
break;
|
|
4304
|
+
}
|
|
4305
|
+
message.serverType = reader.int32();
|
|
4306
|
+
continue;
|
|
4307
|
+
}
|
|
4308
|
+
case 8: {
|
|
4309
|
+
if (tag !== 64) {
|
|
4310
|
+
break;
|
|
4311
|
+
}
|
|
4312
|
+
message.serverRegion = reader.uint32();
|
|
4313
|
+
continue;
|
|
4314
|
+
}
|
|
4315
|
+
case 9: {
|
|
4316
|
+
if (tag !== 77) {
|
|
4317
|
+
break;
|
|
4318
|
+
}
|
|
4319
|
+
message.serverLoadavg = reader.float();
|
|
4320
|
+
continue;
|
|
4321
|
+
}
|
|
4322
|
+
case 10: {
|
|
4323
|
+
if (tag !== 85) {
|
|
4324
|
+
break;
|
|
4325
|
+
}
|
|
4326
|
+
message.serverTvBroadcastTime = reader.float();
|
|
4327
|
+
continue;
|
|
4328
|
+
}
|
|
4329
|
+
case 11: {
|
|
4330
|
+
if (tag !== 93) {
|
|
4331
|
+
break;
|
|
4332
|
+
}
|
|
4333
|
+
message.serverGameTime = reader.float();
|
|
4334
|
+
continue;
|
|
4335
|
+
}
|
|
4336
|
+
case 12: {
|
|
4337
|
+
if (tag !== 97) {
|
|
4338
|
+
break;
|
|
4339
|
+
}
|
|
4340
|
+
message.serverRelayConnectedSteamId = longToNumber(reader.fixed64());
|
|
4341
|
+
continue;
|
|
4342
|
+
}
|
|
4343
|
+
case 13: {
|
|
4344
|
+
if (tag !== 104) {
|
|
4345
|
+
break;
|
|
4346
|
+
}
|
|
4347
|
+
message.relaySlotsMax = reader.uint32();
|
|
4348
|
+
continue;
|
|
4349
|
+
}
|
|
4350
|
+
case 14: {
|
|
4351
|
+
if (tag !== 112) {
|
|
4352
|
+
break;
|
|
4353
|
+
}
|
|
4354
|
+
message.relaysConnected = reader.int32();
|
|
4355
|
+
continue;
|
|
4356
|
+
}
|
|
4357
|
+
case 15: {
|
|
4358
|
+
if (tag !== 120) {
|
|
4359
|
+
break;
|
|
4360
|
+
}
|
|
4361
|
+
message.relayClientsConnected = reader.int32();
|
|
4362
|
+
continue;
|
|
4363
|
+
}
|
|
4364
|
+
case 16: {
|
|
4365
|
+
if (tag !== 129) {
|
|
4366
|
+
break;
|
|
4367
|
+
}
|
|
4368
|
+
message.relayedGameServerSteamId = longToNumber(reader.fixed64());
|
|
4369
|
+
continue;
|
|
4370
|
+
}
|
|
4371
|
+
case 17: {
|
|
4372
|
+
if (tag !== 136) {
|
|
4373
|
+
break;
|
|
4374
|
+
}
|
|
4375
|
+
message.parentRelayCount = reader.uint32();
|
|
4376
|
+
continue;
|
|
4377
|
+
}
|
|
4378
|
+
case 18: {
|
|
4379
|
+
if (tag !== 145) {
|
|
4380
|
+
break;
|
|
4381
|
+
}
|
|
4382
|
+
message.tvSecretCode = longToNumber(reader.fixed64());
|
|
4383
|
+
continue;
|
|
4384
|
+
}
|
|
4385
|
+
}
|
|
4386
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4387
|
+
break;
|
|
4388
|
+
}
|
|
4389
|
+
reader.skip(tag & 7);
|
|
4390
|
+
}
|
|
4391
|
+
return message;
|
|
4392
|
+
},
|
|
4393
|
+
};
|
|
4394
|
+
function createBaseCSOEconEquipSlot() {
|
|
4395
|
+
return { accountId: 0, classId: 0, slotId: 0, itemId: 0, itemDefinition: 0 };
|
|
4396
|
+
}
|
|
4397
|
+
export const CSOEconEquipSlot = {
|
|
4398
|
+
encode(message, writer = new BinaryWriter()) {
|
|
4399
|
+
if (message.accountId !== undefined && message.accountId !== 0) {
|
|
4400
|
+
writer.uint32(8).uint32(message.accountId);
|
|
4401
|
+
}
|
|
4402
|
+
if (message.classId !== undefined && message.classId !== 0) {
|
|
4403
|
+
writer.uint32(16).uint32(message.classId);
|
|
4404
|
+
}
|
|
4405
|
+
if (message.slotId !== undefined && message.slotId !== 0) {
|
|
4406
|
+
writer.uint32(24).uint32(message.slotId);
|
|
4407
|
+
}
|
|
4408
|
+
if (message.itemId !== undefined && message.itemId !== 0) {
|
|
4409
|
+
writer.uint32(32).uint64(message.itemId);
|
|
4410
|
+
}
|
|
4411
|
+
if (message.itemDefinition !== undefined && message.itemDefinition !== 0) {
|
|
4412
|
+
writer.uint32(40).uint32(message.itemDefinition);
|
|
4413
|
+
}
|
|
4414
|
+
return writer;
|
|
4415
|
+
},
|
|
4416
|
+
decode(input, length) {
|
|
4417
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4418
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4419
|
+
const message = createBaseCSOEconEquipSlot();
|
|
4420
|
+
while (reader.pos < end) {
|
|
4421
|
+
const tag = reader.uint32();
|
|
4422
|
+
switch (tag >>> 3) {
|
|
4423
|
+
case 1: {
|
|
4424
|
+
if (tag !== 8) {
|
|
4425
|
+
break;
|
|
4426
|
+
}
|
|
4427
|
+
message.accountId = reader.uint32();
|
|
4428
|
+
continue;
|
|
4429
|
+
}
|
|
4430
|
+
case 2: {
|
|
4431
|
+
if (tag !== 16) {
|
|
4432
|
+
break;
|
|
4433
|
+
}
|
|
4434
|
+
message.classId = reader.uint32();
|
|
4435
|
+
continue;
|
|
4436
|
+
}
|
|
4437
|
+
case 3: {
|
|
4438
|
+
if (tag !== 24) {
|
|
4439
|
+
break;
|
|
4440
|
+
}
|
|
4441
|
+
message.slotId = reader.uint32();
|
|
4442
|
+
continue;
|
|
4443
|
+
}
|
|
4444
|
+
case 4: {
|
|
4445
|
+
if (tag !== 32) {
|
|
4446
|
+
break;
|
|
4447
|
+
}
|
|
4448
|
+
message.itemId = longToNumber(reader.uint64());
|
|
4449
|
+
continue;
|
|
4450
|
+
}
|
|
4451
|
+
case 5: {
|
|
4452
|
+
if (tag !== 40) {
|
|
4453
|
+
break;
|
|
4454
|
+
}
|
|
4455
|
+
message.itemDefinition = reader.uint32();
|
|
4456
|
+
continue;
|
|
4457
|
+
}
|
|
4458
|
+
}
|
|
4459
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4460
|
+
break;
|
|
4461
|
+
}
|
|
4462
|
+
reader.skip(tag & 7);
|
|
4463
|
+
}
|
|
4464
|
+
return message;
|
|
4465
|
+
},
|
|
4466
|
+
};
|
|
4467
|
+
function createBaseCMsgAdjustEquipSlot() {
|
|
4468
|
+
return { classId: 0, slotId: 0, itemId: 0 };
|
|
4469
|
+
}
|
|
4470
|
+
export const CMsgAdjustEquipSlot = {
|
|
4471
|
+
encode(message, writer = new BinaryWriter()) {
|
|
4472
|
+
if (message.classId !== undefined && message.classId !== 0) {
|
|
4473
|
+
writer.uint32(8).uint32(message.classId);
|
|
4474
|
+
}
|
|
4475
|
+
if (message.slotId !== undefined && message.slotId !== 0) {
|
|
4476
|
+
writer.uint32(16).uint32(message.slotId);
|
|
4477
|
+
}
|
|
4478
|
+
if (message.itemId !== undefined && message.itemId !== 0) {
|
|
4479
|
+
writer.uint32(24).uint64(message.itemId);
|
|
4480
|
+
}
|
|
4481
|
+
return writer;
|
|
4482
|
+
},
|
|
4483
|
+
decode(input, length) {
|
|
4484
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4485
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4486
|
+
const message = createBaseCMsgAdjustEquipSlot();
|
|
4487
|
+
while (reader.pos < end) {
|
|
4488
|
+
const tag = reader.uint32();
|
|
4489
|
+
switch (tag >>> 3) {
|
|
4490
|
+
case 1: {
|
|
4491
|
+
if (tag !== 8) {
|
|
4492
|
+
break;
|
|
4493
|
+
}
|
|
4494
|
+
message.classId = reader.uint32();
|
|
4495
|
+
continue;
|
|
4496
|
+
}
|
|
4497
|
+
case 2: {
|
|
4498
|
+
if (tag !== 16) {
|
|
4499
|
+
break;
|
|
4500
|
+
}
|
|
4501
|
+
message.slotId = reader.uint32();
|
|
4502
|
+
continue;
|
|
4503
|
+
}
|
|
4504
|
+
case 3: {
|
|
4505
|
+
if (tag !== 24) {
|
|
4506
|
+
break;
|
|
4507
|
+
}
|
|
4508
|
+
message.itemId = longToNumber(reader.uint64());
|
|
4509
|
+
continue;
|
|
4510
|
+
}
|
|
4511
|
+
}
|
|
4512
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4513
|
+
break;
|
|
4514
|
+
}
|
|
4515
|
+
reader.skip(tag & 7);
|
|
4516
|
+
}
|
|
4517
|
+
return message;
|
|
4518
|
+
},
|
|
4519
|
+
};
|
|
4520
|
+
function createBaseCMsgAdjustEquipSlots() {
|
|
4521
|
+
return { slots: [], changeNum: 0 };
|
|
4522
|
+
}
|
|
4523
|
+
export const CMsgAdjustEquipSlots = {
|
|
4524
|
+
encode(message, writer = new BinaryWriter()) {
|
|
4525
|
+
for (const v of message.slots) {
|
|
4526
|
+
CMsgAdjustEquipSlot.encode(v, writer.uint32(10).fork()).join();
|
|
4527
|
+
}
|
|
4528
|
+
if (message.changeNum !== undefined && message.changeNum !== 0) {
|
|
4529
|
+
writer.uint32(16).uint32(message.changeNum);
|
|
4530
|
+
}
|
|
4531
|
+
return writer;
|
|
4532
|
+
},
|
|
4533
|
+
decode(input, length) {
|
|
4534
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4535
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4536
|
+
const message = createBaseCMsgAdjustEquipSlots();
|
|
4537
|
+
while (reader.pos < end) {
|
|
4538
|
+
const tag = reader.uint32();
|
|
4539
|
+
switch (tag >>> 3) {
|
|
4540
|
+
case 1: {
|
|
4541
|
+
if (tag !== 10) {
|
|
4542
|
+
break;
|
|
4543
|
+
}
|
|
4544
|
+
message.slots.push(CMsgAdjustEquipSlot.decode(reader, reader.uint32()));
|
|
4545
|
+
continue;
|
|
4546
|
+
}
|
|
4547
|
+
case 2: {
|
|
4548
|
+
if (tag !== 16) {
|
|
4549
|
+
break;
|
|
4550
|
+
}
|
|
4551
|
+
message.changeNum = reader.uint32();
|
|
4552
|
+
continue;
|
|
4553
|
+
}
|
|
4554
|
+
}
|
|
4555
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4556
|
+
break;
|
|
4557
|
+
}
|
|
4558
|
+
reader.skip(tag & 7);
|
|
4559
|
+
}
|
|
4560
|
+
return message;
|
|
4561
|
+
},
|
|
4562
|
+
};
|
|
4563
|
+
function createBaseCMsgOpenCrate() {
|
|
4564
|
+
return { toolItemId: 0, subjectItemId: 0, forRental: false, pointsRemaining: 0, volatileLimit: 0 };
|
|
4565
|
+
}
|
|
4566
|
+
export const CMsgOpenCrate = {
|
|
4567
|
+
encode(message, writer = new BinaryWriter()) {
|
|
4568
|
+
if (message.toolItemId !== undefined && message.toolItemId !== 0) {
|
|
4569
|
+
writer.uint32(8).uint64(message.toolItemId);
|
|
4570
|
+
}
|
|
4571
|
+
if (message.subjectItemId !== undefined && message.subjectItemId !== 0) {
|
|
4572
|
+
writer.uint32(16).uint64(message.subjectItemId);
|
|
4573
|
+
}
|
|
4574
|
+
if (message.forRental !== undefined && message.forRental !== false) {
|
|
4575
|
+
writer.uint32(24).bool(message.forRental);
|
|
4576
|
+
}
|
|
4577
|
+
if (message.pointsRemaining !== undefined && message.pointsRemaining !== 0) {
|
|
4578
|
+
writer.uint32(32).uint32(message.pointsRemaining);
|
|
4579
|
+
}
|
|
4580
|
+
if (message.volatileLimit !== undefined && message.volatileLimit !== 0) {
|
|
4581
|
+
writer.uint32(40).uint32(message.volatileLimit);
|
|
4582
|
+
}
|
|
4583
|
+
return writer;
|
|
4584
|
+
},
|
|
4585
|
+
decode(input, length) {
|
|
4586
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4587
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4588
|
+
const message = createBaseCMsgOpenCrate();
|
|
4589
|
+
while (reader.pos < end) {
|
|
4590
|
+
const tag = reader.uint32();
|
|
4591
|
+
switch (tag >>> 3) {
|
|
4592
|
+
case 1: {
|
|
4593
|
+
if (tag !== 8) {
|
|
4594
|
+
break;
|
|
4595
|
+
}
|
|
4596
|
+
message.toolItemId = longToNumber(reader.uint64());
|
|
4597
|
+
continue;
|
|
4598
|
+
}
|
|
4599
|
+
case 2: {
|
|
4600
|
+
if (tag !== 16) {
|
|
4601
|
+
break;
|
|
4602
|
+
}
|
|
4603
|
+
message.subjectItemId = longToNumber(reader.uint64());
|
|
4604
|
+
continue;
|
|
4605
|
+
}
|
|
4606
|
+
case 3: {
|
|
4607
|
+
if (tag !== 24) {
|
|
4608
|
+
break;
|
|
4609
|
+
}
|
|
4610
|
+
message.forRental = reader.bool();
|
|
4611
|
+
continue;
|
|
4612
|
+
}
|
|
4613
|
+
case 4: {
|
|
4614
|
+
if (tag !== 32) {
|
|
4615
|
+
break;
|
|
4616
|
+
}
|
|
4617
|
+
message.pointsRemaining = reader.uint32();
|
|
4618
|
+
continue;
|
|
4619
|
+
}
|
|
4620
|
+
case 5: {
|
|
4621
|
+
if (tag !== 40) {
|
|
4622
|
+
break;
|
|
4623
|
+
}
|
|
4624
|
+
message.volatileLimit = reader.uint32();
|
|
4625
|
+
continue;
|
|
4626
|
+
}
|
|
4627
|
+
}
|
|
4628
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4629
|
+
break;
|
|
4630
|
+
}
|
|
4631
|
+
reader.skip(tag & 7);
|
|
4632
|
+
}
|
|
4633
|
+
return message;
|
|
4634
|
+
},
|
|
4635
|
+
};
|
|
4636
|
+
function createBaseCSOEconRentalHistory() {
|
|
4637
|
+
return { accountId: 0, crateItemId: 0, crateDefIndex: 0, issueDate: 0, expirationDate: 0 };
|
|
4638
|
+
}
|
|
4639
|
+
export const CSOEconRentalHistory = {
|
|
4640
|
+
encode(message, writer = new BinaryWriter()) {
|
|
4641
|
+
if (message.accountId !== undefined && message.accountId !== 0) {
|
|
4642
|
+
writer.uint32(8).uint32(message.accountId);
|
|
4643
|
+
}
|
|
4644
|
+
if (message.crateItemId !== undefined && message.crateItemId !== 0) {
|
|
4645
|
+
writer.uint32(16).uint64(message.crateItemId);
|
|
4646
|
+
}
|
|
4647
|
+
if (message.crateDefIndex !== undefined && message.crateDefIndex !== 0) {
|
|
4648
|
+
writer.uint32(24).uint32(message.crateDefIndex);
|
|
4649
|
+
}
|
|
4650
|
+
if (message.issueDate !== undefined && message.issueDate !== 0) {
|
|
4651
|
+
writer.uint32(32).uint32(message.issueDate);
|
|
4652
|
+
}
|
|
4653
|
+
if (message.expirationDate !== undefined && message.expirationDate !== 0) {
|
|
4654
|
+
writer.uint32(40).uint32(message.expirationDate);
|
|
4655
|
+
}
|
|
4656
|
+
return writer;
|
|
4657
|
+
},
|
|
4658
|
+
decode(input, length) {
|
|
4659
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4660
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4661
|
+
const message = createBaseCSOEconRentalHistory();
|
|
4662
|
+
while (reader.pos < end) {
|
|
4663
|
+
const tag = reader.uint32();
|
|
4664
|
+
switch (tag >>> 3) {
|
|
4665
|
+
case 1: {
|
|
4666
|
+
if (tag !== 8) {
|
|
4667
|
+
break;
|
|
4668
|
+
}
|
|
4669
|
+
message.accountId = reader.uint32();
|
|
4670
|
+
continue;
|
|
4671
|
+
}
|
|
4672
|
+
case 2: {
|
|
4673
|
+
if (tag !== 16) {
|
|
4674
|
+
break;
|
|
4675
|
+
}
|
|
4676
|
+
message.crateItemId = longToNumber(reader.uint64());
|
|
4677
|
+
continue;
|
|
4678
|
+
}
|
|
4679
|
+
case 3: {
|
|
4680
|
+
if (tag !== 24) {
|
|
4681
|
+
break;
|
|
4682
|
+
}
|
|
4683
|
+
message.crateDefIndex = reader.uint32();
|
|
4684
|
+
continue;
|
|
4685
|
+
}
|
|
4686
|
+
case 4: {
|
|
4687
|
+
if (tag !== 32) {
|
|
4688
|
+
break;
|
|
4689
|
+
}
|
|
4690
|
+
message.issueDate = reader.uint32();
|
|
4691
|
+
continue;
|
|
4692
|
+
}
|
|
4693
|
+
case 5: {
|
|
4694
|
+
if (tag !== 40) {
|
|
4695
|
+
break;
|
|
4696
|
+
}
|
|
4697
|
+
message.expirationDate = reader.uint32();
|
|
4698
|
+
continue;
|
|
4699
|
+
}
|
|
4700
|
+
}
|
|
4701
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4702
|
+
break;
|
|
4703
|
+
}
|
|
4704
|
+
reader.skip(tag & 7);
|
|
4705
|
+
}
|
|
4706
|
+
return message;
|
|
4707
|
+
},
|
|
4708
|
+
};
|
|
4709
|
+
function createBaseCMsgAcknowledgeRentalExpiration() {
|
|
4710
|
+
return { crateItemId: 0 };
|
|
4711
|
+
}
|
|
4712
|
+
export const CMsgAcknowledgeRentalExpiration = {
|
|
4713
|
+
encode(message, writer = new BinaryWriter()) {
|
|
4714
|
+
if (message.crateItemId !== undefined && message.crateItemId !== 0) {
|
|
4715
|
+
writer.uint32(8).uint64(message.crateItemId);
|
|
4716
|
+
}
|
|
4717
|
+
return writer;
|
|
4718
|
+
},
|
|
4719
|
+
decode(input, length) {
|
|
4720
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4721
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4722
|
+
const message = createBaseCMsgAcknowledgeRentalExpiration();
|
|
4723
|
+
while (reader.pos < end) {
|
|
4724
|
+
const tag = reader.uint32();
|
|
4725
|
+
switch (tag >>> 3) {
|
|
4726
|
+
case 1: {
|
|
4727
|
+
if (tag !== 8) {
|
|
4728
|
+
break;
|
|
4729
|
+
}
|
|
4730
|
+
message.crateItemId = longToNumber(reader.uint64());
|
|
4731
|
+
continue;
|
|
4732
|
+
}
|
|
4733
|
+
}
|
|
4734
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4735
|
+
break;
|
|
4736
|
+
}
|
|
4737
|
+
reader.skip(tag & 7);
|
|
4738
|
+
}
|
|
4739
|
+
return message;
|
|
4740
|
+
},
|
|
4741
|
+
};
|
|
4742
|
+
function longToNumber(int64) {
|
|
4743
|
+
const num = globalThis.Number(int64.toString());
|
|
4744
|
+
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
4745
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
4746
|
+
}
|
|
4747
|
+
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
4748
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
4749
|
+
}
|
|
4750
|
+
return num;
|
|
4751
|
+
}
|