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,2833 @@
|
|
|
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: gcsdk_gcmessages.proto
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
8
|
+
export var GCClientLauncherType;
|
|
9
|
+
(function (GCClientLauncherType) {
|
|
10
|
+
GCClientLauncherType[GCClientLauncherType["GCClientLauncherType_DEFAULT"] = 0] = "GCClientLauncherType_DEFAULT";
|
|
11
|
+
GCClientLauncherType[GCClientLauncherType["GCClientLauncherType_PERFECTWORLD"] = 1] = "GCClientLauncherType_PERFECTWORLD";
|
|
12
|
+
GCClientLauncherType[GCClientLauncherType["GCClientLauncherType_STEAMCHINA"] = 2] = "GCClientLauncherType_STEAMCHINA";
|
|
13
|
+
GCClientLauncherType[GCClientLauncherType["GCClientLauncherType_SOURCE2"] = 3] = "GCClientLauncherType_SOURCE2";
|
|
14
|
+
GCClientLauncherType[GCClientLauncherType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
15
|
+
})(GCClientLauncherType || (GCClientLauncherType = {}));
|
|
16
|
+
export var GCConnectionStatus;
|
|
17
|
+
(function (GCConnectionStatus) {
|
|
18
|
+
GCConnectionStatus[GCConnectionStatus["GCConnectionStatus_HAVE_SESSION"] = 0] = "GCConnectionStatus_HAVE_SESSION";
|
|
19
|
+
GCConnectionStatus[GCConnectionStatus["GCConnectionStatus_GC_GOING_DOWN"] = 1] = "GCConnectionStatus_GC_GOING_DOWN";
|
|
20
|
+
GCConnectionStatus[GCConnectionStatus["GCConnectionStatus_NO_SESSION"] = 2] = "GCConnectionStatus_NO_SESSION";
|
|
21
|
+
GCConnectionStatus[GCConnectionStatus["GCConnectionStatus_NO_SESSION_IN_LOGON_QUEUE"] = 3] = "GCConnectionStatus_NO_SESSION_IN_LOGON_QUEUE";
|
|
22
|
+
GCConnectionStatus[GCConnectionStatus["GCConnectionStatus_NO_STEAM"] = 4] = "GCConnectionStatus_NO_STEAM";
|
|
23
|
+
GCConnectionStatus[GCConnectionStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
24
|
+
})(GCConnectionStatus || (GCConnectionStatus = {}));
|
|
25
|
+
function createBaseCMsgSOIDOwner() {
|
|
26
|
+
return { type: 0, id: 0 };
|
|
27
|
+
}
|
|
28
|
+
export const CMsgSOIDOwner = {
|
|
29
|
+
encode(message, writer = new BinaryWriter()) {
|
|
30
|
+
if (message.type !== undefined && message.type !== 0) {
|
|
31
|
+
writer.uint32(8).uint32(message.type);
|
|
32
|
+
}
|
|
33
|
+
if (message.id !== undefined && message.id !== 0) {
|
|
34
|
+
writer.uint32(16).uint64(message.id);
|
|
35
|
+
}
|
|
36
|
+
return writer;
|
|
37
|
+
},
|
|
38
|
+
decode(input, length) {
|
|
39
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
40
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
41
|
+
const message = createBaseCMsgSOIDOwner();
|
|
42
|
+
while (reader.pos < end) {
|
|
43
|
+
const tag = reader.uint32();
|
|
44
|
+
switch (tag >>> 3) {
|
|
45
|
+
case 1: {
|
|
46
|
+
if (tag !== 8) {
|
|
47
|
+
break;
|
|
48
|
+
}
|
|
49
|
+
message.type = reader.uint32();
|
|
50
|
+
continue;
|
|
51
|
+
}
|
|
52
|
+
case 2: {
|
|
53
|
+
if (tag !== 16) {
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
message.id = longToNumber(reader.uint64());
|
|
57
|
+
continue;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
reader.skip(tag & 7);
|
|
64
|
+
}
|
|
65
|
+
return message;
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
function createBaseCMsgSOSingleObject() {
|
|
69
|
+
return { typeId: 0, objectData: new Uint8Array(0), version: 0, ownerSoid: undefined };
|
|
70
|
+
}
|
|
71
|
+
export const CMsgSOSingleObject = {
|
|
72
|
+
encode(message, writer = new BinaryWriter()) {
|
|
73
|
+
if (message.typeId !== undefined && message.typeId !== 0) {
|
|
74
|
+
writer.uint32(16).int32(message.typeId);
|
|
75
|
+
}
|
|
76
|
+
if (message.objectData !== undefined && message.objectData.length !== 0) {
|
|
77
|
+
writer.uint32(26).bytes(message.objectData);
|
|
78
|
+
}
|
|
79
|
+
if (message.version !== undefined && message.version !== 0) {
|
|
80
|
+
writer.uint32(33).fixed64(message.version);
|
|
81
|
+
}
|
|
82
|
+
if (message.ownerSoid !== undefined) {
|
|
83
|
+
CMsgSOIDOwner.encode(message.ownerSoid, writer.uint32(42).fork()).join();
|
|
84
|
+
}
|
|
85
|
+
return writer;
|
|
86
|
+
},
|
|
87
|
+
decode(input, length) {
|
|
88
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
89
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
90
|
+
const message = createBaseCMsgSOSingleObject();
|
|
91
|
+
while (reader.pos < end) {
|
|
92
|
+
const tag = reader.uint32();
|
|
93
|
+
switch (tag >>> 3) {
|
|
94
|
+
case 2: {
|
|
95
|
+
if (tag !== 16) {
|
|
96
|
+
break;
|
|
97
|
+
}
|
|
98
|
+
message.typeId = reader.int32();
|
|
99
|
+
continue;
|
|
100
|
+
}
|
|
101
|
+
case 3: {
|
|
102
|
+
if (tag !== 26) {
|
|
103
|
+
break;
|
|
104
|
+
}
|
|
105
|
+
message.objectData = reader.bytes();
|
|
106
|
+
continue;
|
|
107
|
+
}
|
|
108
|
+
case 4: {
|
|
109
|
+
if (tag !== 33) {
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
112
|
+
message.version = longToNumber(reader.fixed64());
|
|
113
|
+
continue;
|
|
114
|
+
}
|
|
115
|
+
case 5: {
|
|
116
|
+
if (tag !== 42) {
|
|
117
|
+
break;
|
|
118
|
+
}
|
|
119
|
+
message.ownerSoid = CMsgSOIDOwner.decode(reader, reader.uint32());
|
|
120
|
+
continue;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
124
|
+
break;
|
|
125
|
+
}
|
|
126
|
+
reader.skip(tag & 7);
|
|
127
|
+
}
|
|
128
|
+
return message;
|
|
129
|
+
},
|
|
130
|
+
};
|
|
131
|
+
function createBaseCMsgSOMultipleObjects() {
|
|
132
|
+
return { objectsModified: [], version: 0, ownerSoid: undefined };
|
|
133
|
+
}
|
|
134
|
+
export const CMsgSOMultipleObjects = {
|
|
135
|
+
encode(message, writer = new BinaryWriter()) {
|
|
136
|
+
for (const v of message.objectsModified) {
|
|
137
|
+
CMsgSOMultipleObjects_SingleObject.encode(v, writer.uint32(18).fork()).join();
|
|
138
|
+
}
|
|
139
|
+
if (message.version !== undefined && message.version !== 0) {
|
|
140
|
+
writer.uint32(25).fixed64(message.version);
|
|
141
|
+
}
|
|
142
|
+
if (message.ownerSoid !== undefined) {
|
|
143
|
+
CMsgSOIDOwner.encode(message.ownerSoid, writer.uint32(50).fork()).join();
|
|
144
|
+
}
|
|
145
|
+
return writer;
|
|
146
|
+
},
|
|
147
|
+
decode(input, length) {
|
|
148
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
149
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
150
|
+
const message = createBaseCMsgSOMultipleObjects();
|
|
151
|
+
while (reader.pos < end) {
|
|
152
|
+
const tag = reader.uint32();
|
|
153
|
+
switch (tag >>> 3) {
|
|
154
|
+
case 2: {
|
|
155
|
+
if (tag !== 18) {
|
|
156
|
+
break;
|
|
157
|
+
}
|
|
158
|
+
message.objectsModified.push(CMsgSOMultipleObjects_SingleObject.decode(reader, reader.uint32()));
|
|
159
|
+
continue;
|
|
160
|
+
}
|
|
161
|
+
case 3: {
|
|
162
|
+
if (tag !== 25) {
|
|
163
|
+
break;
|
|
164
|
+
}
|
|
165
|
+
message.version = longToNumber(reader.fixed64());
|
|
166
|
+
continue;
|
|
167
|
+
}
|
|
168
|
+
case 6: {
|
|
169
|
+
if (tag !== 50) {
|
|
170
|
+
break;
|
|
171
|
+
}
|
|
172
|
+
message.ownerSoid = CMsgSOIDOwner.decode(reader, reader.uint32());
|
|
173
|
+
continue;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
177
|
+
break;
|
|
178
|
+
}
|
|
179
|
+
reader.skip(tag & 7);
|
|
180
|
+
}
|
|
181
|
+
return message;
|
|
182
|
+
},
|
|
183
|
+
};
|
|
184
|
+
function createBaseCMsgSOMultipleObjects_SingleObject() {
|
|
185
|
+
return { typeId: 0, objectData: new Uint8Array(0) };
|
|
186
|
+
}
|
|
187
|
+
export const CMsgSOMultipleObjects_SingleObject = {
|
|
188
|
+
encode(message, writer = new BinaryWriter()) {
|
|
189
|
+
if (message.typeId !== undefined && message.typeId !== 0) {
|
|
190
|
+
writer.uint32(8).int32(message.typeId);
|
|
191
|
+
}
|
|
192
|
+
if (message.objectData !== undefined && message.objectData.length !== 0) {
|
|
193
|
+
writer.uint32(18).bytes(message.objectData);
|
|
194
|
+
}
|
|
195
|
+
return writer;
|
|
196
|
+
},
|
|
197
|
+
decode(input, length) {
|
|
198
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
199
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
200
|
+
const message = createBaseCMsgSOMultipleObjects_SingleObject();
|
|
201
|
+
while (reader.pos < end) {
|
|
202
|
+
const tag = reader.uint32();
|
|
203
|
+
switch (tag >>> 3) {
|
|
204
|
+
case 1: {
|
|
205
|
+
if (tag !== 8) {
|
|
206
|
+
break;
|
|
207
|
+
}
|
|
208
|
+
message.typeId = reader.int32();
|
|
209
|
+
continue;
|
|
210
|
+
}
|
|
211
|
+
case 2: {
|
|
212
|
+
if (tag !== 18) {
|
|
213
|
+
break;
|
|
214
|
+
}
|
|
215
|
+
message.objectData = reader.bytes();
|
|
216
|
+
continue;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
220
|
+
break;
|
|
221
|
+
}
|
|
222
|
+
reader.skip(tag & 7);
|
|
223
|
+
}
|
|
224
|
+
return message;
|
|
225
|
+
},
|
|
226
|
+
};
|
|
227
|
+
function createBaseCMsgSOCacheSubscribed() {
|
|
228
|
+
return { objects: [], version: 0, ownerSoid: undefined };
|
|
229
|
+
}
|
|
230
|
+
export const CMsgSOCacheSubscribed = {
|
|
231
|
+
encode(message, writer = new BinaryWriter()) {
|
|
232
|
+
for (const v of message.objects) {
|
|
233
|
+
CMsgSOCacheSubscribed_SubscribedType.encode(v, writer.uint32(18).fork()).join();
|
|
234
|
+
}
|
|
235
|
+
if (message.version !== undefined && message.version !== 0) {
|
|
236
|
+
writer.uint32(25).fixed64(message.version);
|
|
237
|
+
}
|
|
238
|
+
if (message.ownerSoid !== undefined) {
|
|
239
|
+
CMsgSOIDOwner.encode(message.ownerSoid, writer.uint32(34).fork()).join();
|
|
240
|
+
}
|
|
241
|
+
return writer;
|
|
242
|
+
},
|
|
243
|
+
decode(input, length) {
|
|
244
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
245
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
246
|
+
const message = createBaseCMsgSOCacheSubscribed();
|
|
247
|
+
while (reader.pos < end) {
|
|
248
|
+
const tag = reader.uint32();
|
|
249
|
+
switch (tag >>> 3) {
|
|
250
|
+
case 2: {
|
|
251
|
+
if (tag !== 18) {
|
|
252
|
+
break;
|
|
253
|
+
}
|
|
254
|
+
message.objects.push(CMsgSOCacheSubscribed_SubscribedType.decode(reader, reader.uint32()));
|
|
255
|
+
continue;
|
|
256
|
+
}
|
|
257
|
+
case 3: {
|
|
258
|
+
if (tag !== 25) {
|
|
259
|
+
break;
|
|
260
|
+
}
|
|
261
|
+
message.version = longToNumber(reader.fixed64());
|
|
262
|
+
continue;
|
|
263
|
+
}
|
|
264
|
+
case 4: {
|
|
265
|
+
if (tag !== 34) {
|
|
266
|
+
break;
|
|
267
|
+
}
|
|
268
|
+
message.ownerSoid = CMsgSOIDOwner.decode(reader, reader.uint32());
|
|
269
|
+
continue;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
273
|
+
break;
|
|
274
|
+
}
|
|
275
|
+
reader.skip(tag & 7);
|
|
276
|
+
}
|
|
277
|
+
return message;
|
|
278
|
+
},
|
|
279
|
+
};
|
|
280
|
+
function createBaseCMsgSOCacheSubscribed_SubscribedType() {
|
|
281
|
+
return { typeId: 0, objectData: [] };
|
|
282
|
+
}
|
|
283
|
+
export const CMsgSOCacheSubscribed_SubscribedType = {
|
|
284
|
+
encode(message, writer = new BinaryWriter()) {
|
|
285
|
+
if (message.typeId !== undefined && message.typeId !== 0) {
|
|
286
|
+
writer.uint32(8).int32(message.typeId);
|
|
287
|
+
}
|
|
288
|
+
for (const v of message.objectData) {
|
|
289
|
+
writer.uint32(18).bytes(v);
|
|
290
|
+
}
|
|
291
|
+
return writer;
|
|
292
|
+
},
|
|
293
|
+
decode(input, length) {
|
|
294
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
295
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
296
|
+
const message = createBaseCMsgSOCacheSubscribed_SubscribedType();
|
|
297
|
+
while (reader.pos < end) {
|
|
298
|
+
const tag = reader.uint32();
|
|
299
|
+
switch (tag >>> 3) {
|
|
300
|
+
case 1: {
|
|
301
|
+
if (tag !== 8) {
|
|
302
|
+
break;
|
|
303
|
+
}
|
|
304
|
+
message.typeId = reader.int32();
|
|
305
|
+
continue;
|
|
306
|
+
}
|
|
307
|
+
case 2: {
|
|
308
|
+
if (tag !== 18) {
|
|
309
|
+
break;
|
|
310
|
+
}
|
|
311
|
+
message.objectData.push(reader.bytes());
|
|
312
|
+
continue;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
316
|
+
break;
|
|
317
|
+
}
|
|
318
|
+
reader.skip(tag & 7);
|
|
319
|
+
}
|
|
320
|
+
return message;
|
|
321
|
+
},
|
|
322
|
+
};
|
|
323
|
+
function createBaseCMsgSOCacheUnsubscribed() {
|
|
324
|
+
return { ownerSoid: undefined };
|
|
325
|
+
}
|
|
326
|
+
export const CMsgSOCacheUnsubscribed = {
|
|
327
|
+
encode(message, writer = new BinaryWriter()) {
|
|
328
|
+
if (message.ownerSoid !== undefined) {
|
|
329
|
+
CMsgSOIDOwner.encode(message.ownerSoid, writer.uint32(18).fork()).join();
|
|
330
|
+
}
|
|
331
|
+
return writer;
|
|
332
|
+
},
|
|
333
|
+
decode(input, length) {
|
|
334
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
335
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
336
|
+
const message = createBaseCMsgSOCacheUnsubscribed();
|
|
337
|
+
while (reader.pos < end) {
|
|
338
|
+
const tag = reader.uint32();
|
|
339
|
+
switch (tag >>> 3) {
|
|
340
|
+
case 2: {
|
|
341
|
+
if (tag !== 18) {
|
|
342
|
+
break;
|
|
343
|
+
}
|
|
344
|
+
message.ownerSoid = CMsgSOIDOwner.decode(reader, reader.uint32());
|
|
345
|
+
continue;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
349
|
+
break;
|
|
350
|
+
}
|
|
351
|
+
reader.skip(tag & 7);
|
|
352
|
+
}
|
|
353
|
+
return message;
|
|
354
|
+
},
|
|
355
|
+
};
|
|
356
|
+
function createBaseCMsgSOCacheSubscriptionCheck() {
|
|
357
|
+
return { version: 0, ownerSoid: undefined };
|
|
358
|
+
}
|
|
359
|
+
export const CMsgSOCacheSubscriptionCheck = {
|
|
360
|
+
encode(message, writer = new BinaryWriter()) {
|
|
361
|
+
if (message.version !== undefined && message.version !== 0) {
|
|
362
|
+
writer.uint32(17).fixed64(message.version);
|
|
363
|
+
}
|
|
364
|
+
if (message.ownerSoid !== undefined) {
|
|
365
|
+
CMsgSOIDOwner.encode(message.ownerSoid, writer.uint32(26).fork()).join();
|
|
366
|
+
}
|
|
367
|
+
return writer;
|
|
368
|
+
},
|
|
369
|
+
decode(input, length) {
|
|
370
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
371
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
372
|
+
const message = createBaseCMsgSOCacheSubscriptionCheck();
|
|
373
|
+
while (reader.pos < end) {
|
|
374
|
+
const tag = reader.uint32();
|
|
375
|
+
switch (tag >>> 3) {
|
|
376
|
+
case 2: {
|
|
377
|
+
if (tag !== 17) {
|
|
378
|
+
break;
|
|
379
|
+
}
|
|
380
|
+
message.version = longToNumber(reader.fixed64());
|
|
381
|
+
continue;
|
|
382
|
+
}
|
|
383
|
+
case 3: {
|
|
384
|
+
if (tag !== 26) {
|
|
385
|
+
break;
|
|
386
|
+
}
|
|
387
|
+
message.ownerSoid = CMsgSOIDOwner.decode(reader, reader.uint32());
|
|
388
|
+
continue;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
392
|
+
break;
|
|
393
|
+
}
|
|
394
|
+
reader.skip(tag & 7);
|
|
395
|
+
}
|
|
396
|
+
return message;
|
|
397
|
+
},
|
|
398
|
+
};
|
|
399
|
+
function createBaseCMsgSOCacheSubscriptionRefresh() {
|
|
400
|
+
return { ownerSoid: undefined };
|
|
401
|
+
}
|
|
402
|
+
export const CMsgSOCacheSubscriptionRefresh = {
|
|
403
|
+
encode(message, writer = new BinaryWriter()) {
|
|
404
|
+
if (message.ownerSoid !== undefined) {
|
|
405
|
+
CMsgSOIDOwner.encode(message.ownerSoid, writer.uint32(18).fork()).join();
|
|
406
|
+
}
|
|
407
|
+
return writer;
|
|
408
|
+
},
|
|
409
|
+
decode(input, length) {
|
|
410
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
411
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
412
|
+
const message = createBaseCMsgSOCacheSubscriptionRefresh();
|
|
413
|
+
while (reader.pos < end) {
|
|
414
|
+
const tag = reader.uint32();
|
|
415
|
+
switch (tag >>> 3) {
|
|
416
|
+
case 2: {
|
|
417
|
+
if (tag !== 18) {
|
|
418
|
+
break;
|
|
419
|
+
}
|
|
420
|
+
message.ownerSoid = CMsgSOIDOwner.decode(reader, reader.uint32());
|
|
421
|
+
continue;
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
425
|
+
break;
|
|
426
|
+
}
|
|
427
|
+
reader.skip(tag & 7);
|
|
428
|
+
}
|
|
429
|
+
return message;
|
|
430
|
+
},
|
|
431
|
+
};
|
|
432
|
+
function createBaseCMsgSOCacheVersion() {
|
|
433
|
+
return { version: 0 };
|
|
434
|
+
}
|
|
435
|
+
export const CMsgSOCacheVersion = {
|
|
436
|
+
encode(message, writer = new BinaryWriter()) {
|
|
437
|
+
if (message.version !== undefined && message.version !== 0) {
|
|
438
|
+
writer.uint32(9).fixed64(message.version);
|
|
439
|
+
}
|
|
440
|
+
return writer;
|
|
441
|
+
},
|
|
442
|
+
decode(input, length) {
|
|
443
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
444
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
445
|
+
const message = createBaseCMsgSOCacheVersion();
|
|
446
|
+
while (reader.pos < end) {
|
|
447
|
+
const tag = reader.uint32();
|
|
448
|
+
switch (tag >>> 3) {
|
|
449
|
+
case 1: {
|
|
450
|
+
if (tag !== 9) {
|
|
451
|
+
break;
|
|
452
|
+
}
|
|
453
|
+
message.version = longToNumber(reader.fixed64());
|
|
454
|
+
continue;
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
458
|
+
break;
|
|
459
|
+
}
|
|
460
|
+
reader.skip(tag & 7);
|
|
461
|
+
}
|
|
462
|
+
return message;
|
|
463
|
+
},
|
|
464
|
+
};
|
|
465
|
+
function createBaseCMsgAccountDetails() {
|
|
466
|
+
return {
|
|
467
|
+
valid: false,
|
|
468
|
+
accountName: "",
|
|
469
|
+
publicProfile: false,
|
|
470
|
+
publicInventory: false,
|
|
471
|
+
vacBanned: false,
|
|
472
|
+
cyberCafe: false,
|
|
473
|
+
schoolAccount: false,
|
|
474
|
+
freeTrialAccount: false,
|
|
475
|
+
subscribed: false,
|
|
476
|
+
lowViolence: false,
|
|
477
|
+
limited: false,
|
|
478
|
+
trusted: false,
|
|
479
|
+
package: 0,
|
|
480
|
+
timeCached: 0,
|
|
481
|
+
accountLocked: false,
|
|
482
|
+
communityBanned: false,
|
|
483
|
+
tradeBanned: false,
|
|
484
|
+
eligibleForCommunityMarket: false,
|
|
485
|
+
};
|
|
486
|
+
}
|
|
487
|
+
export const CMsgAccountDetails = {
|
|
488
|
+
encode(message, writer = new BinaryWriter()) {
|
|
489
|
+
if (message.valid !== undefined && message.valid !== false) {
|
|
490
|
+
writer.uint32(8).bool(message.valid);
|
|
491
|
+
}
|
|
492
|
+
if (message.accountName !== undefined && message.accountName !== "") {
|
|
493
|
+
writer.uint32(18).string(message.accountName);
|
|
494
|
+
}
|
|
495
|
+
if (message.publicProfile !== undefined && message.publicProfile !== false) {
|
|
496
|
+
writer.uint32(32).bool(message.publicProfile);
|
|
497
|
+
}
|
|
498
|
+
if (message.publicInventory !== undefined && message.publicInventory !== false) {
|
|
499
|
+
writer.uint32(40).bool(message.publicInventory);
|
|
500
|
+
}
|
|
501
|
+
if (message.vacBanned !== undefined && message.vacBanned !== false) {
|
|
502
|
+
writer.uint32(48).bool(message.vacBanned);
|
|
503
|
+
}
|
|
504
|
+
if (message.cyberCafe !== undefined && message.cyberCafe !== false) {
|
|
505
|
+
writer.uint32(56).bool(message.cyberCafe);
|
|
506
|
+
}
|
|
507
|
+
if (message.schoolAccount !== undefined && message.schoolAccount !== false) {
|
|
508
|
+
writer.uint32(64).bool(message.schoolAccount);
|
|
509
|
+
}
|
|
510
|
+
if (message.freeTrialAccount !== undefined && message.freeTrialAccount !== false) {
|
|
511
|
+
writer.uint32(72).bool(message.freeTrialAccount);
|
|
512
|
+
}
|
|
513
|
+
if (message.subscribed !== undefined && message.subscribed !== false) {
|
|
514
|
+
writer.uint32(80).bool(message.subscribed);
|
|
515
|
+
}
|
|
516
|
+
if (message.lowViolence !== undefined && message.lowViolence !== false) {
|
|
517
|
+
writer.uint32(88).bool(message.lowViolence);
|
|
518
|
+
}
|
|
519
|
+
if (message.limited !== undefined && message.limited !== false) {
|
|
520
|
+
writer.uint32(96).bool(message.limited);
|
|
521
|
+
}
|
|
522
|
+
if (message.trusted !== undefined && message.trusted !== false) {
|
|
523
|
+
writer.uint32(104).bool(message.trusted);
|
|
524
|
+
}
|
|
525
|
+
if (message.package !== undefined && message.package !== 0) {
|
|
526
|
+
writer.uint32(112).uint32(message.package);
|
|
527
|
+
}
|
|
528
|
+
if (message.timeCached !== undefined && message.timeCached !== 0) {
|
|
529
|
+
writer.uint32(125).fixed32(message.timeCached);
|
|
530
|
+
}
|
|
531
|
+
if (message.accountLocked !== undefined && message.accountLocked !== false) {
|
|
532
|
+
writer.uint32(128).bool(message.accountLocked);
|
|
533
|
+
}
|
|
534
|
+
if (message.communityBanned !== undefined && message.communityBanned !== false) {
|
|
535
|
+
writer.uint32(136).bool(message.communityBanned);
|
|
536
|
+
}
|
|
537
|
+
if (message.tradeBanned !== undefined && message.tradeBanned !== false) {
|
|
538
|
+
writer.uint32(144).bool(message.tradeBanned);
|
|
539
|
+
}
|
|
540
|
+
if (message.eligibleForCommunityMarket !== undefined && message.eligibleForCommunityMarket !== false) {
|
|
541
|
+
writer.uint32(152).bool(message.eligibleForCommunityMarket);
|
|
542
|
+
}
|
|
543
|
+
return writer;
|
|
544
|
+
},
|
|
545
|
+
decode(input, length) {
|
|
546
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
547
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
548
|
+
const message = createBaseCMsgAccountDetails();
|
|
549
|
+
while (reader.pos < end) {
|
|
550
|
+
const tag = reader.uint32();
|
|
551
|
+
switch (tag >>> 3) {
|
|
552
|
+
case 1: {
|
|
553
|
+
if (tag !== 8) {
|
|
554
|
+
break;
|
|
555
|
+
}
|
|
556
|
+
message.valid = reader.bool();
|
|
557
|
+
continue;
|
|
558
|
+
}
|
|
559
|
+
case 2: {
|
|
560
|
+
if (tag !== 18) {
|
|
561
|
+
break;
|
|
562
|
+
}
|
|
563
|
+
message.accountName = reader.string();
|
|
564
|
+
continue;
|
|
565
|
+
}
|
|
566
|
+
case 4: {
|
|
567
|
+
if (tag !== 32) {
|
|
568
|
+
break;
|
|
569
|
+
}
|
|
570
|
+
message.publicProfile = reader.bool();
|
|
571
|
+
continue;
|
|
572
|
+
}
|
|
573
|
+
case 5: {
|
|
574
|
+
if (tag !== 40) {
|
|
575
|
+
break;
|
|
576
|
+
}
|
|
577
|
+
message.publicInventory = reader.bool();
|
|
578
|
+
continue;
|
|
579
|
+
}
|
|
580
|
+
case 6: {
|
|
581
|
+
if (tag !== 48) {
|
|
582
|
+
break;
|
|
583
|
+
}
|
|
584
|
+
message.vacBanned = reader.bool();
|
|
585
|
+
continue;
|
|
586
|
+
}
|
|
587
|
+
case 7: {
|
|
588
|
+
if (tag !== 56) {
|
|
589
|
+
break;
|
|
590
|
+
}
|
|
591
|
+
message.cyberCafe = reader.bool();
|
|
592
|
+
continue;
|
|
593
|
+
}
|
|
594
|
+
case 8: {
|
|
595
|
+
if (tag !== 64) {
|
|
596
|
+
break;
|
|
597
|
+
}
|
|
598
|
+
message.schoolAccount = reader.bool();
|
|
599
|
+
continue;
|
|
600
|
+
}
|
|
601
|
+
case 9: {
|
|
602
|
+
if (tag !== 72) {
|
|
603
|
+
break;
|
|
604
|
+
}
|
|
605
|
+
message.freeTrialAccount = reader.bool();
|
|
606
|
+
continue;
|
|
607
|
+
}
|
|
608
|
+
case 10: {
|
|
609
|
+
if (tag !== 80) {
|
|
610
|
+
break;
|
|
611
|
+
}
|
|
612
|
+
message.subscribed = reader.bool();
|
|
613
|
+
continue;
|
|
614
|
+
}
|
|
615
|
+
case 11: {
|
|
616
|
+
if (tag !== 88) {
|
|
617
|
+
break;
|
|
618
|
+
}
|
|
619
|
+
message.lowViolence = reader.bool();
|
|
620
|
+
continue;
|
|
621
|
+
}
|
|
622
|
+
case 12: {
|
|
623
|
+
if (tag !== 96) {
|
|
624
|
+
break;
|
|
625
|
+
}
|
|
626
|
+
message.limited = reader.bool();
|
|
627
|
+
continue;
|
|
628
|
+
}
|
|
629
|
+
case 13: {
|
|
630
|
+
if (tag !== 104) {
|
|
631
|
+
break;
|
|
632
|
+
}
|
|
633
|
+
message.trusted = reader.bool();
|
|
634
|
+
continue;
|
|
635
|
+
}
|
|
636
|
+
case 14: {
|
|
637
|
+
if (tag !== 112) {
|
|
638
|
+
break;
|
|
639
|
+
}
|
|
640
|
+
message.package = reader.uint32();
|
|
641
|
+
continue;
|
|
642
|
+
}
|
|
643
|
+
case 15: {
|
|
644
|
+
if (tag !== 125) {
|
|
645
|
+
break;
|
|
646
|
+
}
|
|
647
|
+
message.timeCached = reader.fixed32();
|
|
648
|
+
continue;
|
|
649
|
+
}
|
|
650
|
+
case 16: {
|
|
651
|
+
if (tag !== 128) {
|
|
652
|
+
break;
|
|
653
|
+
}
|
|
654
|
+
message.accountLocked = reader.bool();
|
|
655
|
+
continue;
|
|
656
|
+
}
|
|
657
|
+
case 17: {
|
|
658
|
+
if (tag !== 136) {
|
|
659
|
+
break;
|
|
660
|
+
}
|
|
661
|
+
message.communityBanned = reader.bool();
|
|
662
|
+
continue;
|
|
663
|
+
}
|
|
664
|
+
case 18: {
|
|
665
|
+
if (tag !== 144) {
|
|
666
|
+
break;
|
|
667
|
+
}
|
|
668
|
+
message.tradeBanned = reader.bool();
|
|
669
|
+
continue;
|
|
670
|
+
}
|
|
671
|
+
case 19: {
|
|
672
|
+
if (tag !== 152) {
|
|
673
|
+
break;
|
|
674
|
+
}
|
|
675
|
+
message.eligibleForCommunityMarket = reader.bool();
|
|
676
|
+
continue;
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
680
|
+
break;
|
|
681
|
+
}
|
|
682
|
+
reader.skip(tag & 7);
|
|
683
|
+
}
|
|
684
|
+
return message;
|
|
685
|
+
},
|
|
686
|
+
};
|
|
687
|
+
function createBaseCMsgGCMultiplexMessage() {
|
|
688
|
+
return { msgtype: 0, payload: new Uint8Array(0), steamids: [], replytogc: false };
|
|
689
|
+
}
|
|
690
|
+
export const CMsgGCMultiplexMessage = {
|
|
691
|
+
encode(message, writer = new BinaryWriter()) {
|
|
692
|
+
if (message.msgtype !== undefined && message.msgtype !== 0) {
|
|
693
|
+
writer.uint32(8).uint32(message.msgtype);
|
|
694
|
+
}
|
|
695
|
+
if (message.payload !== undefined && message.payload.length !== 0) {
|
|
696
|
+
writer.uint32(18).bytes(message.payload);
|
|
697
|
+
}
|
|
698
|
+
for (const v of message.steamids) {
|
|
699
|
+
writer.uint32(25).fixed64(v);
|
|
700
|
+
}
|
|
701
|
+
if (message.replytogc !== undefined && message.replytogc !== false) {
|
|
702
|
+
writer.uint32(32).bool(message.replytogc);
|
|
703
|
+
}
|
|
704
|
+
return writer;
|
|
705
|
+
},
|
|
706
|
+
decode(input, length) {
|
|
707
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
708
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
709
|
+
const message = createBaseCMsgGCMultiplexMessage();
|
|
710
|
+
while (reader.pos < end) {
|
|
711
|
+
const tag = reader.uint32();
|
|
712
|
+
switch (tag >>> 3) {
|
|
713
|
+
case 1: {
|
|
714
|
+
if (tag !== 8) {
|
|
715
|
+
break;
|
|
716
|
+
}
|
|
717
|
+
message.msgtype = reader.uint32();
|
|
718
|
+
continue;
|
|
719
|
+
}
|
|
720
|
+
case 2: {
|
|
721
|
+
if (tag !== 18) {
|
|
722
|
+
break;
|
|
723
|
+
}
|
|
724
|
+
message.payload = reader.bytes();
|
|
725
|
+
continue;
|
|
726
|
+
}
|
|
727
|
+
case 3: {
|
|
728
|
+
if (tag === 25) {
|
|
729
|
+
message.steamids.push(longToNumber(reader.fixed64()));
|
|
730
|
+
continue;
|
|
731
|
+
}
|
|
732
|
+
if (tag === 26) {
|
|
733
|
+
const end2 = reader.uint32() + reader.pos;
|
|
734
|
+
while (reader.pos < end2) {
|
|
735
|
+
message.steamids.push(longToNumber(reader.fixed64()));
|
|
736
|
+
}
|
|
737
|
+
continue;
|
|
738
|
+
}
|
|
739
|
+
break;
|
|
740
|
+
}
|
|
741
|
+
case 4: {
|
|
742
|
+
if (tag !== 32) {
|
|
743
|
+
break;
|
|
744
|
+
}
|
|
745
|
+
message.replytogc = reader.bool();
|
|
746
|
+
continue;
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
750
|
+
break;
|
|
751
|
+
}
|
|
752
|
+
reader.skip(tag & 7);
|
|
753
|
+
}
|
|
754
|
+
return message;
|
|
755
|
+
},
|
|
756
|
+
};
|
|
757
|
+
function createBaseCMsgGCMultiplexMessageResponse() {
|
|
758
|
+
return { msgtype: 0 };
|
|
759
|
+
}
|
|
760
|
+
export const CMsgGCMultiplexMessageResponse = {
|
|
761
|
+
encode(message, writer = new BinaryWriter()) {
|
|
762
|
+
if (message.msgtype !== undefined && message.msgtype !== 0) {
|
|
763
|
+
writer.uint32(8).uint32(message.msgtype);
|
|
764
|
+
}
|
|
765
|
+
return writer;
|
|
766
|
+
},
|
|
767
|
+
decode(input, length) {
|
|
768
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
769
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
770
|
+
const message = createBaseCMsgGCMultiplexMessageResponse();
|
|
771
|
+
while (reader.pos < end) {
|
|
772
|
+
const tag = reader.uint32();
|
|
773
|
+
switch (tag >>> 3) {
|
|
774
|
+
case 1: {
|
|
775
|
+
if (tag !== 8) {
|
|
776
|
+
break;
|
|
777
|
+
}
|
|
778
|
+
message.msgtype = reader.uint32();
|
|
779
|
+
continue;
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
783
|
+
break;
|
|
784
|
+
}
|
|
785
|
+
reader.skip(tag & 7);
|
|
786
|
+
}
|
|
787
|
+
return message;
|
|
788
|
+
},
|
|
789
|
+
};
|
|
790
|
+
function createBaseCGCToGCMsgMasterAck() {
|
|
791
|
+
return { dirIndex: 0, gcType: 0 };
|
|
792
|
+
}
|
|
793
|
+
export const CGCToGCMsgMasterAck = {
|
|
794
|
+
encode(message, writer = new BinaryWriter()) {
|
|
795
|
+
if (message.dirIndex !== undefined && message.dirIndex !== 0) {
|
|
796
|
+
writer.uint32(8).uint32(message.dirIndex);
|
|
797
|
+
}
|
|
798
|
+
if (message.gcType !== undefined && message.gcType !== 0) {
|
|
799
|
+
writer.uint32(16).uint32(message.gcType);
|
|
800
|
+
}
|
|
801
|
+
return writer;
|
|
802
|
+
},
|
|
803
|
+
decode(input, length) {
|
|
804
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
805
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
806
|
+
const message = createBaseCGCToGCMsgMasterAck();
|
|
807
|
+
while (reader.pos < end) {
|
|
808
|
+
const tag = reader.uint32();
|
|
809
|
+
switch (tag >>> 3) {
|
|
810
|
+
case 1: {
|
|
811
|
+
if (tag !== 8) {
|
|
812
|
+
break;
|
|
813
|
+
}
|
|
814
|
+
message.dirIndex = reader.uint32();
|
|
815
|
+
continue;
|
|
816
|
+
}
|
|
817
|
+
case 2: {
|
|
818
|
+
if (tag !== 16) {
|
|
819
|
+
break;
|
|
820
|
+
}
|
|
821
|
+
message.gcType = reader.uint32();
|
|
822
|
+
continue;
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
826
|
+
break;
|
|
827
|
+
}
|
|
828
|
+
reader.skip(tag & 7);
|
|
829
|
+
}
|
|
830
|
+
return message;
|
|
831
|
+
},
|
|
832
|
+
};
|
|
833
|
+
function createBaseCGCToGCMsgMasterAckResponse() {
|
|
834
|
+
return { eresult: 2 };
|
|
835
|
+
}
|
|
836
|
+
export const CGCToGCMsgMasterAckResponse = {
|
|
837
|
+
encode(message, writer = new BinaryWriter()) {
|
|
838
|
+
if (message.eresult !== undefined && message.eresult !== 2) {
|
|
839
|
+
writer.uint32(8).int32(message.eresult);
|
|
840
|
+
}
|
|
841
|
+
return writer;
|
|
842
|
+
},
|
|
843
|
+
decode(input, length) {
|
|
844
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
845
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
846
|
+
const message = createBaseCGCToGCMsgMasterAckResponse();
|
|
847
|
+
while (reader.pos < end) {
|
|
848
|
+
const tag = reader.uint32();
|
|
849
|
+
switch (tag >>> 3) {
|
|
850
|
+
case 1: {
|
|
851
|
+
if (tag !== 8) {
|
|
852
|
+
break;
|
|
853
|
+
}
|
|
854
|
+
message.eresult = reader.int32();
|
|
855
|
+
continue;
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
859
|
+
break;
|
|
860
|
+
}
|
|
861
|
+
reader.skip(tag & 7);
|
|
862
|
+
}
|
|
863
|
+
return message;
|
|
864
|
+
},
|
|
865
|
+
};
|
|
866
|
+
function createBaseCGCToGCMsgMasterStartupComplete() {
|
|
867
|
+
return {};
|
|
868
|
+
}
|
|
869
|
+
export const CGCToGCMsgMasterStartupComplete = {
|
|
870
|
+
encode(_, writer = new BinaryWriter()) {
|
|
871
|
+
return writer;
|
|
872
|
+
},
|
|
873
|
+
decode(input, length) {
|
|
874
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
875
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
876
|
+
const message = createBaseCGCToGCMsgMasterStartupComplete();
|
|
877
|
+
while (reader.pos < end) {
|
|
878
|
+
const tag = reader.uint32();
|
|
879
|
+
switch (tag >>> 3) {
|
|
880
|
+
}
|
|
881
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
882
|
+
break;
|
|
883
|
+
}
|
|
884
|
+
reader.skip(tag & 7);
|
|
885
|
+
}
|
|
886
|
+
return message;
|
|
887
|
+
},
|
|
888
|
+
};
|
|
889
|
+
function createBaseCGCToGCMsgRouted() {
|
|
890
|
+
return { msgType: 0, senderId: 0, netMessage: new Uint8Array(0), ip: 0 };
|
|
891
|
+
}
|
|
892
|
+
export const CGCToGCMsgRouted = {
|
|
893
|
+
encode(message, writer = new BinaryWriter()) {
|
|
894
|
+
if (message.msgType !== undefined && message.msgType !== 0) {
|
|
895
|
+
writer.uint32(8).uint32(message.msgType);
|
|
896
|
+
}
|
|
897
|
+
if (message.senderId !== undefined && message.senderId !== 0) {
|
|
898
|
+
writer.uint32(17).fixed64(message.senderId);
|
|
899
|
+
}
|
|
900
|
+
if (message.netMessage !== undefined && message.netMessage.length !== 0) {
|
|
901
|
+
writer.uint32(26).bytes(message.netMessage);
|
|
902
|
+
}
|
|
903
|
+
if (message.ip !== undefined && message.ip !== 0) {
|
|
904
|
+
writer.uint32(32).uint32(message.ip);
|
|
905
|
+
}
|
|
906
|
+
return writer;
|
|
907
|
+
},
|
|
908
|
+
decode(input, length) {
|
|
909
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
910
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
911
|
+
const message = createBaseCGCToGCMsgRouted();
|
|
912
|
+
while (reader.pos < end) {
|
|
913
|
+
const tag = reader.uint32();
|
|
914
|
+
switch (tag >>> 3) {
|
|
915
|
+
case 1: {
|
|
916
|
+
if (tag !== 8) {
|
|
917
|
+
break;
|
|
918
|
+
}
|
|
919
|
+
message.msgType = reader.uint32();
|
|
920
|
+
continue;
|
|
921
|
+
}
|
|
922
|
+
case 2: {
|
|
923
|
+
if (tag !== 17) {
|
|
924
|
+
break;
|
|
925
|
+
}
|
|
926
|
+
message.senderId = longToNumber(reader.fixed64());
|
|
927
|
+
continue;
|
|
928
|
+
}
|
|
929
|
+
case 3: {
|
|
930
|
+
if (tag !== 26) {
|
|
931
|
+
break;
|
|
932
|
+
}
|
|
933
|
+
message.netMessage = reader.bytes();
|
|
934
|
+
continue;
|
|
935
|
+
}
|
|
936
|
+
case 4: {
|
|
937
|
+
if (tag !== 32) {
|
|
938
|
+
break;
|
|
939
|
+
}
|
|
940
|
+
message.ip = reader.uint32();
|
|
941
|
+
continue;
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
945
|
+
break;
|
|
946
|
+
}
|
|
947
|
+
reader.skip(tag & 7);
|
|
948
|
+
}
|
|
949
|
+
return message;
|
|
950
|
+
},
|
|
951
|
+
};
|
|
952
|
+
function createBaseCGCToGCMsgRoutedReply() {
|
|
953
|
+
return { msgType: 0, netMessage: new Uint8Array(0) };
|
|
954
|
+
}
|
|
955
|
+
export const CGCToGCMsgRoutedReply = {
|
|
956
|
+
encode(message, writer = new BinaryWriter()) {
|
|
957
|
+
if (message.msgType !== undefined && message.msgType !== 0) {
|
|
958
|
+
writer.uint32(8).uint32(message.msgType);
|
|
959
|
+
}
|
|
960
|
+
if (message.netMessage !== undefined && message.netMessage.length !== 0) {
|
|
961
|
+
writer.uint32(18).bytes(message.netMessage);
|
|
962
|
+
}
|
|
963
|
+
return writer;
|
|
964
|
+
},
|
|
965
|
+
decode(input, length) {
|
|
966
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
967
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
968
|
+
const message = createBaseCGCToGCMsgRoutedReply();
|
|
969
|
+
while (reader.pos < end) {
|
|
970
|
+
const tag = reader.uint32();
|
|
971
|
+
switch (tag >>> 3) {
|
|
972
|
+
case 1: {
|
|
973
|
+
if (tag !== 8) {
|
|
974
|
+
break;
|
|
975
|
+
}
|
|
976
|
+
message.msgType = reader.uint32();
|
|
977
|
+
continue;
|
|
978
|
+
}
|
|
979
|
+
case 2: {
|
|
980
|
+
if (tag !== 18) {
|
|
981
|
+
break;
|
|
982
|
+
}
|
|
983
|
+
message.netMessage = reader.bytes();
|
|
984
|
+
continue;
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
988
|
+
break;
|
|
989
|
+
}
|
|
990
|
+
reader.skip(tag & 7);
|
|
991
|
+
}
|
|
992
|
+
return message;
|
|
993
|
+
},
|
|
994
|
+
};
|
|
995
|
+
function createBaseCMsgGCUpdateSessionIP() {
|
|
996
|
+
return { steamid: 0, ip: 0 };
|
|
997
|
+
}
|
|
998
|
+
export const CMsgGCUpdateSessionIP = {
|
|
999
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1000
|
+
if (message.steamid !== undefined && message.steamid !== 0) {
|
|
1001
|
+
writer.uint32(9).fixed64(message.steamid);
|
|
1002
|
+
}
|
|
1003
|
+
if (message.ip !== undefined && message.ip !== 0) {
|
|
1004
|
+
writer.uint32(21).fixed32(message.ip);
|
|
1005
|
+
}
|
|
1006
|
+
return writer;
|
|
1007
|
+
},
|
|
1008
|
+
decode(input, length) {
|
|
1009
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1010
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1011
|
+
const message = createBaseCMsgGCUpdateSessionIP();
|
|
1012
|
+
while (reader.pos < end) {
|
|
1013
|
+
const tag = reader.uint32();
|
|
1014
|
+
switch (tag >>> 3) {
|
|
1015
|
+
case 1: {
|
|
1016
|
+
if (tag !== 9) {
|
|
1017
|
+
break;
|
|
1018
|
+
}
|
|
1019
|
+
message.steamid = longToNumber(reader.fixed64());
|
|
1020
|
+
continue;
|
|
1021
|
+
}
|
|
1022
|
+
case 2: {
|
|
1023
|
+
if (tag !== 21) {
|
|
1024
|
+
break;
|
|
1025
|
+
}
|
|
1026
|
+
message.ip = reader.fixed32();
|
|
1027
|
+
continue;
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1031
|
+
break;
|
|
1032
|
+
}
|
|
1033
|
+
reader.skip(tag & 7);
|
|
1034
|
+
}
|
|
1035
|
+
return message;
|
|
1036
|
+
},
|
|
1037
|
+
};
|
|
1038
|
+
function createBaseCMsgGCRequestSessionIP() {
|
|
1039
|
+
return { steamid: 0 };
|
|
1040
|
+
}
|
|
1041
|
+
export const CMsgGCRequestSessionIP = {
|
|
1042
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1043
|
+
if (message.steamid !== undefined && message.steamid !== 0) {
|
|
1044
|
+
writer.uint32(9).fixed64(message.steamid);
|
|
1045
|
+
}
|
|
1046
|
+
return writer;
|
|
1047
|
+
},
|
|
1048
|
+
decode(input, length) {
|
|
1049
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1050
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1051
|
+
const message = createBaseCMsgGCRequestSessionIP();
|
|
1052
|
+
while (reader.pos < end) {
|
|
1053
|
+
const tag = reader.uint32();
|
|
1054
|
+
switch (tag >>> 3) {
|
|
1055
|
+
case 1: {
|
|
1056
|
+
if (tag !== 9) {
|
|
1057
|
+
break;
|
|
1058
|
+
}
|
|
1059
|
+
message.steamid = longToNumber(reader.fixed64());
|
|
1060
|
+
continue;
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1064
|
+
break;
|
|
1065
|
+
}
|
|
1066
|
+
reader.skip(tag & 7);
|
|
1067
|
+
}
|
|
1068
|
+
return message;
|
|
1069
|
+
},
|
|
1070
|
+
};
|
|
1071
|
+
function createBaseCMsgGCRequestSessionIPResponse() {
|
|
1072
|
+
return { ip: 0 };
|
|
1073
|
+
}
|
|
1074
|
+
export const CMsgGCRequestSessionIPResponse = {
|
|
1075
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1076
|
+
if (message.ip !== undefined && message.ip !== 0) {
|
|
1077
|
+
writer.uint32(13).fixed32(message.ip);
|
|
1078
|
+
}
|
|
1079
|
+
return writer;
|
|
1080
|
+
},
|
|
1081
|
+
decode(input, length) {
|
|
1082
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1083
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1084
|
+
const message = createBaseCMsgGCRequestSessionIPResponse();
|
|
1085
|
+
while (reader.pos < end) {
|
|
1086
|
+
const tag = reader.uint32();
|
|
1087
|
+
switch (tag >>> 3) {
|
|
1088
|
+
case 1: {
|
|
1089
|
+
if (tag !== 13) {
|
|
1090
|
+
break;
|
|
1091
|
+
}
|
|
1092
|
+
message.ip = reader.fixed32();
|
|
1093
|
+
continue;
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1097
|
+
break;
|
|
1098
|
+
}
|
|
1099
|
+
reader.skip(tag & 7);
|
|
1100
|
+
}
|
|
1101
|
+
return message;
|
|
1102
|
+
},
|
|
1103
|
+
};
|
|
1104
|
+
function createBaseCMsgSOCacheHaveVersion() {
|
|
1105
|
+
return { soid: undefined, version: 0 };
|
|
1106
|
+
}
|
|
1107
|
+
export const CMsgSOCacheHaveVersion = {
|
|
1108
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1109
|
+
if (message.soid !== undefined) {
|
|
1110
|
+
CMsgSOIDOwner.encode(message.soid, writer.uint32(10).fork()).join();
|
|
1111
|
+
}
|
|
1112
|
+
if (message.version !== undefined && message.version !== 0) {
|
|
1113
|
+
writer.uint32(17).fixed64(message.version);
|
|
1114
|
+
}
|
|
1115
|
+
return writer;
|
|
1116
|
+
},
|
|
1117
|
+
decode(input, length) {
|
|
1118
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1119
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1120
|
+
const message = createBaseCMsgSOCacheHaveVersion();
|
|
1121
|
+
while (reader.pos < end) {
|
|
1122
|
+
const tag = reader.uint32();
|
|
1123
|
+
switch (tag >>> 3) {
|
|
1124
|
+
case 1: {
|
|
1125
|
+
if (tag !== 10) {
|
|
1126
|
+
break;
|
|
1127
|
+
}
|
|
1128
|
+
message.soid = CMsgSOIDOwner.decode(reader, reader.uint32());
|
|
1129
|
+
continue;
|
|
1130
|
+
}
|
|
1131
|
+
case 2: {
|
|
1132
|
+
if (tag !== 17) {
|
|
1133
|
+
break;
|
|
1134
|
+
}
|
|
1135
|
+
message.version = longToNumber(reader.fixed64());
|
|
1136
|
+
continue;
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1140
|
+
break;
|
|
1141
|
+
}
|
|
1142
|
+
reader.skip(tag & 7);
|
|
1143
|
+
}
|
|
1144
|
+
return message;
|
|
1145
|
+
},
|
|
1146
|
+
};
|
|
1147
|
+
function createBaseCMsgClientHello() {
|
|
1148
|
+
return {
|
|
1149
|
+
version: 0,
|
|
1150
|
+
socacheHaveVersions: [],
|
|
1151
|
+
clientSessionNeed: 0,
|
|
1152
|
+
clientLauncher: 0,
|
|
1153
|
+
partnerSrcid: 0,
|
|
1154
|
+
partnerAccountid: 0,
|
|
1155
|
+
partnerAccountflags: 0,
|
|
1156
|
+
partnerAccountbalance: 0,
|
|
1157
|
+
steamLauncher: 0,
|
|
1158
|
+
};
|
|
1159
|
+
}
|
|
1160
|
+
export const CMsgClientHello = {
|
|
1161
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1162
|
+
if (message.version !== undefined && message.version !== 0) {
|
|
1163
|
+
writer.uint32(8).uint32(message.version);
|
|
1164
|
+
}
|
|
1165
|
+
for (const v of message.socacheHaveVersions) {
|
|
1166
|
+
CMsgSOCacheHaveVersion.encode(v, writer.uint32(18).fork()).join();
|
|
1167
|
+
}
|
|
1168
|
+
if (message.clientSessionNeed !== undefined && message.clientSessionNeed !== 0) {
|
|
1169
|
+
writer.uint32(24).uint32(message.clientSessionNeed);
|
|
1170
|
+
}
|
|
1171
|
+
if (message.clientLauncher !== undefined && message.clientLauncher !== 0) {
|
|
1172
|
+
writer.uint32(32).uint32(message.clientLauncher);
|
|
1173
|
+
}
|
|
1174
|
+
if (message.partnerSrcid !== undefined && message.partnerSrcid !== 0) {
|
|
1175
|
+
writer.uint32(40).uint32(message.partnerSrcid);
|
|
1176
|
+
}
|
|
1177
|
+
if (message.partnerAccountid !== undefined && message.partnerAccountid !== 0) {
|
|
1178
|
+
writer.uint32(48).uint32(message.partnerAccountid);
|
|
1179
|
+
}
|
|
1180
|
+
if (message.partnerAccountflags !== undefined && message.partnerAccountflags !== 0) {
|
|
1181
|
+
writer.uint32(56).uint32(message.partnerAccountflags);
|
|
1182
|
+
}
|
|
1183
|
+
if (message.partnerAccountbalance !== undefined && message.partnerAccountbalance !== 0) {
|
|
1184
|
+
writer.uint32(64).uint32(message.partnerAccountbalance);
|
|
1185
|
+
}
|
|
1186
|
+
if (message.steamLauncher !== undefined && message.steamLauncher !== 0) {
|
|
1187
|
+
writer.uint32(72).uint32(message.steamLauncher);
|
|
1188
|
+
}
|
|
1189
|
+
return writer;
|
|
1190
|
+
},
|
|
1191
|
+
decode(input, length) {
|
|
1192
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1193
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1194
|
+
const message = createBaseCMsgClientHello();
|
|
1195
|
+
while (reader.pos < end) {
|
|
1196
|
+
const tag = reader.uint32();
|
|
1197
|
+
switch (tag >>> 3) {
|
|
1198
|
+
case 1: {
|
|
1199
|
+
if (tag !== 8) {
|
|
1200
|
+
break;
|
|
1201
|
+
}
|
|
1202
|
+
message.version = reader.uint32();
|
|
1203
|
+
continue;
|
|
1204
|
+
}
|
|
1205
|
+
case 2: {
|
|
1206
|
+
if (tag !== 18) {
|
|
1207
|
+
break;
|
|
1208
|
+
}
|
|
1209
|
+
message.socacheHaveVersions.push(CMsgSOCacheHaveVersion.decode(reader, reader.uint32()));
|
|
1210
|
+
continue;
|
|
1211
|
+
}
|
|
1212
|
+
case 3: {
|
|
1213
|
+
if (tag !== 24) {
|
|
1214
|
+
break;
|
|
1215
|
+
}
|
|
1216
|
+
message.clientSessionNeed = reader.uint32();
|
|
1217
|
+
continue;
|
|
1218
|
+
}
|
|
1219
|
+
case 4: {
|
|
1220
|
+
if (tag !== 32) {
|
|
1221
|
+
break;
|
|
1222
|
+
}
|
|
1223
|
+
message.clientLauncher = reader.uint32();
|
|
1224
|
+
continue;
|
|
1225
|
+
}
|
|
1226
|
+
case 5: {
|
|
1227
|
+
if (tag !== 40) {
|
|
1228
|
+
break;
|
|
1229
|
+
}
|
|
1230
|
+
message.partnerSrcid = reader.uint32();
|
|
1231
|
+
continue;
|
|
1232
|
+
}
|
|
1233
|
+
case 6: {
|
|
1234
|
+
if (tag !== 48) {
|
|
1235
|
+
break;
|
|
1236
|
+
}
|
|
1237
|
+
message.partnerAccountid = reader.uint32();
|
|
1238
|
+
continue;
|
|
1239
|
+
}
|
|
1240
|
+
case 7: {
|
|
1241
|
+
if (tag !== 56) {
|
|
1242
|
+
break;
|
|
1243
|
+
}
|
|
1244
|
+
message.partnerAccountflags = reader.uint32();
|
|
1245
|
+
continue;
|
|
1246
|
+
}
|
|
1247
|
+
case 8: {
|
|
1248
|
+
if (tag !== 64) {
|
|
1249
|
+
break;
|
|
1250
|
+
}
|
|
1251
|
+
message.partnerAccountbalance = reader.uint32();
|
|
1252
|
+
continue;
|
|
1253
|
+
}
|
|
1254
|
+
case 9: {
|
|
1255
|
+
if (tag !== 72) {
|
|
1256
|
+
break;
|
|
1257
|
+
}
|
|
1258
|
+
message.steamLauncher = reader.uint32();
|
|
1259
|
+
continue;
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1262
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1263
|
+
break;
|
|
1264
|
+
}
|
|
1265
|
+
reader.skip(tag & 7);
|
|
1266
|
+
}
|
|
1267
|
+
return message;
|
|
1268
|
+
},
|
|
1269
|
+
};
|
|
1270
|
+
function createBaseCMsgServerHello() {
|
|
1271
|
+
return {
|
|
1272
|
+
version: 0,
|
|
1273
|
+
socacheHaveVersions: [],
|
|
1274
|
+
legacyClientSessionNeed: 0,
|
|
1275
|
+
clientLauncher: 0,
|
|
1276
|
+
legacySteamdatagramRouting: new Uint8Array(0),
|
|
1277
|
+
requiredInternalAddr: 0,
|
|
1278
|
+
steamdatagramLogin: new Uint8Array(0),
|
|
1279
|
+
socacheControl: 0,
|
|
1280
|
+
};
|
|
1281
|
+
}
|
|
1282
|
+
export const CMsgServerHello = {
|
|
1283
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1284
|
+
if (message.version !== undefined && message.version !== 0) {
|
|
1285
|
+
writer.uint32(8).uint32(message.version);
|
|
1286
|
+
}
|
|
1287
|
+
for (const v of message.socacheHaveVersions) {
|
|
1288
|
+
CMsgSOCacheHaveVersion.encode(v, writer.uint32(18).fork()).join();
|
|
1289
|
+
}
|
|
1290
|
+
if (message.legacyClientSessionNeed !== undefined && message.legacyClientSessionNeed !== 0) {
|
|
1291
|
+
writer.uint32(24).uint32(message.legacyClientSessionNeed);
|
|
1292
|
+
}
|
|
1293
|
+
if (message.clientLauncher !== undefined && message.clientLauncher !== 0) {
|
|
1294
|
+
writer.uint32(32).uint32(message.clientLauncher);
|
|
1295
|
+
}
|
|
1296
|
+
if (message.legacySteamdatagramRouting !== undefined && message.legacySteamdatagramRouting.length !== 0) {
|
|
1297
|
+
writer.uint32(50).bytes(message.legacySteamdatagramRouting);
|
|
1298
|
+
}
|
|
1299
|
+
if (message.requiredInternalAddr !== undefined && message.requiredInternalAddr !== 0) {
|
|
1300
|
+
writer.uint32(56).uint32(message.requiredInternalAddr);
|
|
1301
|
+
}
|
|
1302
|
+
if (message.steamdatagramLogin !== undefined && message.steamdatagramLogin.length !== 0) {
|
|
1303
|
+
writer.uint32(66).bytes(message.steamdatagramLogin);
|
|
1304
|
+
}
|
|
1305
|
+
if (message.socacheControl !== undefined && message.socacheControl !== 0) {
|
|
1306
|
+
writer.uint32(72).uint32(message.socacheControl);
|
|
1307
|
+
}
|
|
1308
|
+
return writer;
|
|
1309
|
+
},
|
|
1310
|
+
decode(input, length) {
|
|
1311
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1312
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1313
|
+
const message = createBaseCMsgServerHello();
|
|
1314
|
+
while (reader.pos < end) {
|
|
1315
|
+
const tag = reader.uint32();
|
|
1316
|
+
switch (tag >>> 3) {
|
|
1317
|
+
case 1: {
|
|
1318
|
+
if (tag !== 8) {
|
|
1319
|
+
break;
|
|
1320
|
+
}
|
|
1321
|
+
message.version = reader.uint32();
|
|
1322
|
+
continue;
|
|
1323
|
+
}
|
|
1324
|
+
case 2: {
|
|
1325
|
+
if (tag !== 18) {
|
|
1326
|
+
break;
|
|
1327
|
+
}
|
|
1328
|
+
message.socacheHaveVersions.push(CMsgSOCacheHaveVersion.decode(reader, reader.uint32()));
|
|
1329
|
+
continue;
|
|
1330
|
+
}
|
|
1331
|
+
case 3: {
|
|
1332
|
+
if (tag !== 24) {
|
|
1333
|
+
break;
|
|
1334
|
+
}
|
|
1335
|
+
message.legacyClientSessionNeed = reader.uint32();
|
|
1336
|
+
continue;
|
|
1337
|
+
}
|
|
1338
|
+
case 4: {
|
|
1339
|
+
if (tag !== 32) {
|
|
1340
|
+
break;
|
|
1341
|
+
}
|
|
1342
|
+
message.clientLauncher = reader.uint32();
|
|
1343
|
+
continue;
|
|
1344
|
+
}
|
|
1345
|
+
case 6: {
|
|
1346
|
+
if (tag !== 50) {
|
|
1347
|
+
break;
|
|
1348
|
+
}
|
|
1349
|
+
message.legacySteamdatagramRouting = reader.bytes();
|
|
1350
|
+
continue;
|
|
1351
|
+
}
|
|
1352
|
+
case 7: {
|
|
1353
|
+
if (tag !== 56) {
|
|
1354
|
+
break;
|
|
1355
|
+
}
|
|
1356
|
+
message.requiredInternalAddr = reader.uint32();
|
|
1357
|
+
continue;
|
|
1358
|
+
}
|
|
1359
|
+
case 8: {
|
|
1360
|
+
if (tag !== 66) {
|
|
1361
|
+
break;
|
|
1362
|
+
}
|
|
1363
|
+
message.steamdatagramLogin = reader.bytes();
|
|
1364
|
+
continue;
|
|
1365
|
+
}
|
|
1366
|
+
case 9: {
|
|
1367
|
+
if (tag !== 72) {
|
|
1368
|
+
break;
|
|
1369
|
+
}
|
|
1370
|
+
message.socacheControl = reader.uint32();
|
|
1371
|
+
continue;
|
|
1372
|
+
}
|
|
1373
|
+
}
|
|
1374
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1375
|
+
break;
|
|
1376
|
+
}
|
|
1377
|
+
reader.skip(tag & 7);
|
|
1378
|
+
}
|
|
1379
|
+
return message;
|
|
1380
|
+
},
|
|
1381
|
+
};
|
|
1382
|
+
function createBaseCMsgClientWelcome() {
|
|
1383
|
+
return {
|
|
1384
|
+
version: 0,
|
|
1385
|
+
gameData: new Uint8Array(0),
|
|
1386
|
+
outofdateSubscribedCaches: [],
|
|
1387
|
+
uptodateSubscribedCaches: [],
|
|
1388
|
+
location: undefined,
|
|
1389
|
+
gameData2: new Uint8Array(0),
|
|
1390
|
+
rtime32GcWelcomeTimestamp: 0,
|
|
1391
|
+
currency: 0,
|
|
1392
|
+
balance: 0,
|
|
1393
|
+
balanceUrl: "",
|
|
1394
|
+
txnCountryCode: "",
|
|
1395
|
+
};
|
|
1396
|
+
}
|
|
1397
|
+
export const CMsgClientWelcome = {
|
|
1398
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1399
|
+
if (message.version !== undefined && message.version !== 0) {
|
|
1400
|
+
writer.uint32(8).uint32(message.version);
|
|
1401
|
+
}
|
|
1402
|
+
if (message.gameData !== undefined && message.gameData.length !== 0) {
|
|
1403
|
+
writer.uint32(18).bytes(message.gameData);
|
|
1404
|
+
}
|
|
1405
|
+
for (const v of message.outofdateSubscribedCaches) {
|
|
1406
|
+
CMsgSOCacheSubscribed.encode(v, writer.uint32(26).fork()).join();
|
|
1407
|
+
}
|
|
1408
|
+
for (const v of message.uptodateSubscribedCaches) {
|
|
1409
|
+
CMsgSOCacheSubscriptionCheck.encode(v, writer.uint32(34).fork()).join();
|
|
1410
|
+
}
|
|
1411
|
+
if (message.location !== undefined) {
|
|
1412
|
+
CMsgClientWelcome_Location.encode(message.location, writer.uint32(42).fork()).join();
|
|
1413
|
+
}
|
|
1414
|
+
if (message.gameData2 !== undefined && message.gameData2.length !== 0) {
|
|
1415
|
+
writer.uint32(50).bytes(message.gameData2);
|
|
1416
|
+
}
|
|
1417
|
+
if (message.rtime32GcWelcomeTimestamp !== undefined && message.rtime32GcWelcomeTimestamp !== 0) {
|
|
1418
|
+
writer.uint32(56).uint32(message.rtime32GcWelcomeTimestamp);
|
|
1419
|
+
}
|
|
1420
|
+
if (message.currency !== undefined && message.currency !== 0) {
|
|
1421
|
+
writer.uint32(64).uint32(message.currency);
|
|
1422
|
+
}
|
|
1423
|
+
if (message.balance !== undefined && message.balance !== 0) {
|
|
1424
|
+
writer.uint32(72).uint32(message.balance);
|
|
1425
|
+
}
|
|
1426
|
+
if (message.balanceUrl !== undefined && message.balanceUrl !== "") {
|
|
1427
|
+
writer.uint32(82).string(message.balanceUrl);
|
|
1428
|
+
}
|
|
1429
|
+
if (message.txnCountryCode !== undefined && message.txnCountryCode !== "") {
|
|
1430
|
+
writer.uint32(90).string(message.txnCountryCode);
|
|
1431
|
+
}
|
|
1432
|
+
return writer;
|
|
1433
|
+
},
|
|
1434
|
+
decode(input, length) {
|
|
1435
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1436
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1437
|
+
const message = createBaseCMsgClientWelcome();
|
|
1438
|
+
while (reader.pos < end) {
|
|
1439
|
+
const tag = reader.uint32();
|
|
1440
|
+
switch (tag >>> 3) {
|
|
1441
|
+
case 1: {
|
|
1442
|
+
if (tag !== 8) {
|
|
1443
|
+
break;
|
|
1444
|
+
}
|
|
1445
|
+
message.version = reader.uint32();
|
|
1446
|
+
continue;
|
|
1447
|
+
}
|
|
1448
|
+
case 2: {
|
|
1449
|
+
if (tag !== 18) {
|
|
1450
|
+
break;
|
|
1451
|
+
}
|
|
1452
|
+
message.gameData = reader.bytes();
|
|
1453
|
+
continue;
|
|
1454
|
+
}
|
|
1455
|
+
case 3: {
|
|
1456
|
+
if (tag !== 26) {
|
|
1457
|
+
break;
|
|
1458
|
+
}
|
|
1459
|
+
message.outofdateSubscribedCaches.push(CMsgSOCacheSubscribed.decode(reader, reader.uint32()));
|
|
1460
|
+
continue;
|
|
1461
|
+
}
|
|
1462
|
+
case 4: {
|
|
1463
|
+
if (tag !== 34) {
|
|
1464
|
+
break;
|
|
1465
|
+
}
|
|
1466
|
+
message.uptodateSubscribedCaches.push(CMsgSOCacheSubscriptionCheck.decode(reader, reader.uint32()));
|
|
1467
|
+
continue;
|
|
1468
|
+
}
|
|
1469
|
+
case 5: {
|
|
1470
|
+
if (tag !== 42) {
|
|
1471
|
+
break;
|
|
1472
|
+
}
|
|
1473
|
+
message.location = CMsgClientWelcome_Location.decode(reader, reader.uint32());
|
|
1474
|
+
continue;
|
|
1475
|
+
}
|
|
1476
|
+
case 6: {
|
|
1477
|
+
if (tag !== 50) {
|
|
1478
|
+
break;
|
|
1479
|
+
}
|
|
1480
|
+
message.gameData2 = reader.bytes();
|
|
1481
|
+
continue;
|
|
1482
|
+
}
|
|
1483
|
+
case 7: {
|
|
1484
|
+
if (tag !== 56) {
|
|
1485
|
+
break;
|
|
1486
|
+
}
|
|
1487
|
+
message.rtime32GcWelcomeTimestamp = reader.uint32();
|
|
1488
|
+
continue;
|
|
1489
|
+
}
|
|
1490
|
+
case 8: {
|
|
1491
|
+
if (tag !== 64) {
|
|
1492
|
+
break;
|
|
1493
|
+
}
|
|
1494
|
+
message.currency = reader.uint32();
|
|
1495
|
+
continue;
|
|
1496
|
+
}
|
|
1497
|
+
case 9: {
|
|
1498
|
+
if (tag !== 72) {
|
|
1499
|
+
break;
|
|
1500
|
+
}
|
|
1501
|
+
message.balance = reader.uint32();
|
|
1502
|
+
continue;
|
|
1503
|
+
}
|
|
1504
|
+
case 10: {
|
|
1505
|
+
if (tag !== 82) {
|
|
1506
|
+
break;
|
|
1507
|
+
}
|
|
1508
|
+
message.balanceUrl = reader.string();
|
|
1509
|
+
continue;
|
|
1510
|
+
}
|
|
1511
|
+
case 11: {
|
|
1512
|
+
if (tag !== 90) {
|
|
1513
|
+
break;
|
|
1514
|
+
}
|
|
1515
|
+
message.txnCountryCode = reader.string();
|
|
1516
|
+
continue;
|
|
1517
|
+
}
|
|
1518
|
+
}
|
|
1519
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1520
|
+
break;
|
|
1521
|
+
}
|
|
1522
|
+
reader.skip(tag & 7);
|
|
1523
|
+
}
|
|
1524
|
+
return message;
|
|
1525
|
+
},
|
|
1526
|
+
};
|
|
1527
|
+
function createBaseCMsgClientWelcome_Location() {
|
|
1528
|
+
return { latitude: 0, longitude: 0, country: "" };
|
|
1529
|
+
}
|
|
1530
|
+
export const CMsgClientWelcome_Location = {
|
|
1531
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1532
|
+
if (message.latitude !== undefined && message.latitude !== 0) {
|
|
1533
|
+
writer.uint32(13).float(message.latitude);
|
|
1534
|
+
}
|
|
1535
|
+
if (message.longitude !== undefined && message.longitude !== 0) {
|
|
1536
|
+
writer.uint32(21).float(message.longitude);
|
|
1537
|
+
}
|
|
1538
|
+
if (message.country !== undefined && message.country !== "") {
|
|
1539
|
+
writer.uint32(26).string(message.country);
|
|
1540
|
+
}
|
|
1541
|
+
return writer;
|
|
1542
|
+
},
|
|
1543
|
+
decode(input, length) {
|
|
1544
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1545
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1546
|
+
const message = createBaseCMsgClientWelcome_Location();
|
|
1547
|
+
while (reader.pos < end) {
|
|
1548
|
+
const tag = reader.uint32();
|
|
1549
|
+
switch (tag >>> 3) {
|
|
1550
|
+
case 1: {
|
|
1551
|
+
if (tag !== 13) {
|
|
1552
|
+
break;
|
|
1553
|
+
}
|
|
1554
|
+
message.latitude = reader.float();
|
|
1555
|
+
continue;
|
|
1556
|
+
}
|
|
1557
|
+
case 2: {
|
|
1558
|
+
if (tag !== 21) {
|
|
1559
|
+
break;
|
|
1560
|
+
}
|
|
1561
|
+
message.longitude = reader.float();
|
|
1562
|
+
continue;
|
|
1563
|
+
}
|
|
1564
|
+
case 3: {
|
|
1565
|
+
if (tag !== 26) {
|
|
1566
|
+
break;
|
|
1567
|
+
}
|
|
1568
|
+
message.country = reader.string();
|
|
1569
|
+
continue;
|
|
1570
|
+
}
|
|
1571
|
+
}
|
|
1572
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1573
|
+
break;
|
|
1574
|
+
}
|
|
1575
|
+
reader.skip(tag & 7);
|
|
1576
|
+
}
|
|
1577
|
+
return message;
|
|
1578
|
+
},
|
|
1579
|
+
};
|
|
1580
|
+
function createBaseCMsgConnectionStatus() {
|
|
1581
|
+
return {
|
|
1582
|
+
status: 0,
|
|
1583
|
+
clientSessionNeed: 0,
|
|
1584
|
+
queuePosition: 0,
|
|
1585
|
+
queueSize: 0,
|
|
1586
|
+
waitSeconds: 0,
|
|
1587
|
+
estimatedWaitSecondsRemaining: 0,
|
|
1588
|
+
};
|
|
1589
|
+
}
|
|
1590
|
+
export const CMsgConnectionStatus = {
|
|
1591
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1592
|
+
if (message.status !== undefined && message.status !== 0) {
|
|
1593
|
+
writer.uint32(8).int32(message.status);
|
|
1594
|
+
}
|
|
1595
|
+
if (message.clientSessionNeed !== undefined && message.clientSessionNeed !== 0) {
|
|
1596
|
+
writer.uint32(16).uint32(message.clientSessionNeed);
|
|
1597
|
+
}
|
|
1598
|
+
if (message.queuePosition !== undefined && message.queuePosition !== 0) {
|
|
1599
|
+
writer.uint32(24).int32(message.queuePosition);
|
|
1600
|
+
}
|
|
1601
|
+
if (message.queueSize !== undefined && message.queueSize !== 0) {
|
|
1602
|
+
writer.uint32(32).int32(message.queueSize);
|
|
1603
|
+
}
|
|
1604
|
+
if (message.waitSeconds !== undefined && message.waitSeconds !== 0) {
|
|
1605
|
+
writer.uint32(40).int32(message.waitSeconds);
|
|
1606
|
+
}
|
|
1607
|
+
if (message.estimatedWaitSecondsRemaining !== undefined && message.estimatedWaitSecondsRemaining !== 0) {
|
|
1608
|
+
writer.uint32(48).int32(message.estimatedWaitSecondsRemaining);
|
|
1609
|
+
}
|
|
1610
|
+
return writer;
|
|
1611
|
+
},
|
|
1612
|
+
decode(input, length) {
|
|
1613
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1614
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1615
|
+
const message = createBaseCMsgConnectionStatus();
|
|
1616
|
+
while (reader.pos < end) {
|
|
1617
|
+
const tag = reader.uint32();
|
|
1618
|
+
switch (tag >>> 3) {
|
|
1619
|
+
case 1: {
|
|
1620
|
+
if (tag !== 8) {
|
|
1621
|
+
break;
|
|
1622
|
+
}
|
|
1623
|
+
message.status = reader.int32();
|
|
1624
|
+
continue;
|
|
1625
|
+
}
|
|
1626
|
+
case 2: {
|
|
1627
|
+
if (tag !== 16) {
|
|
1628
|
+
break;
|
|
1629
|
+
}
|
|
1630
|
+
message.clientSessionNeed = reader.uint32();
|
|
1631
|
+
continue;
|
|
1632
|
+
}
|
|
1633
|
+
case 3: {
|
|
1634
|
+
if (tag !== 24) {
|
|
1635
|
+
break;
|
|
1636
|
+
}
|
|
1637
|
+
message.queuePosition = reader.int32();
|
|
1638
|
+
continue;
|
|
1639
|
+
}
|
|
1640
|
+
case 4: {
|
|
1641
|
+
if (tag !== 32) {
|
|
1642
|
+
break;
|
|
1643
|
+
}
|
|
1644
|
+
message.queueSize = reader.int32();
|
|
1645
|
+
continue;
|
|
1646
|
+
}
|
|
1647
|
+
case 5: {
|
|
1648
|
+
if (tag !== 40) {
|
|
1649
|
+
break;
|
|
1650
|
+
}
|
|
1651
|
+
message.waitSeconds = reader.int32();
|
|
1652
|
+
continue;
|
|
1653
|
+
}
|
|
1654
|
+
case 6: {
|
|
1655
|
+
if (tag !== 48) {
|
|
1656
|
+
break;
|
|
1657
|
+
}
|
|
1658
|
+
message.estimatedWaitSecondsRemaining = reader.int32();
|
|
1659
|
+
continue;
|
|
1660
|
+
}
|
|
1661
|
+
}
|
|
1662
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1663
|
+
break;
|
|
1664
|
+
}
|
|
1665
|
+
reader.skip(tag & 7);
|
|
1666
|
+
}
|
|
1667
|
+
return message;
|
|
1668
|
+
},
|
|
1669
|
+
};
|
|
1670
|
+
function createBaseCWorkshopPopulateItemDescriptionsRequest() {
|
|
1671
|
+
return { appid: 0, languages: [] };
|
|
1672
|
+
}
|
|
1673
|
+
export const CWorkshopPopulateItemDescriptionsRequest = {
|
|
1674
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1675
|
+
if (message.appid !== undefined && message.appid !== 0) {
|
|
1676
|
+
writer.uint32(8).uint32(message.appid);
|
|
1677
|
+
}
|
|
1678
|
+
for (const v of message.languages) {
|
|
1679
|
+
CWorkshopPopulateItemDescriptionsRequest_ItemDescriptionsLanguageBlock.encode(v, writer.uint32(18).fork())
|
|
1680
|
+
.join();
|
|
1681
|
+
}
|
|
1682
|
+
return writer;
|
|
1683
|
+
},
|
|
1684
|
+
decode(input, length) {
|
|
1685
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1686
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1687
|
+
const message = createBaseCWorkshopPopulateItemDescriptionsRequest();
|
|
1688
|
+
while (reader.pos < end) {
|
|
1689
|
+
const tag = reader.uint32();
|
|
1690
|
+
switch (tag >>> 3) {
|
|
1691
|
+
case 1: {
|
|
1692
|
+
if (tag !== 8) {
|
|
1693
|
+
break;
|
|
1694
|
+
}
|
|
1695
|
+
message.appid = reader.uint32();
|
|
1696
|
+
continue;
|
|
1697
|
+
}
|
|
1698
|
+
case 2: {
|
|
1699
|
+
if (tag !== 18) {
|
|
1700
|
+
break;
|
|
1701
|
+
}
|
|
1702
|
+
message.languages.push(CWorkshopPopulateItemDescriptionsRequest_ItemDescriptionsLanguageBlock.decode(reader, reader.uint32()));
|
|
1703
|
+
continue;
|
|
1704
|
+
}
|
|
1705
|
+
}
|
|
1706
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1707
|
+
break;
|
|
1708
|
+
}
|
|
1709
|
+
reader.skip(tag & 7);
|
|
1710
|
+
}
|
|
1711
|
+
return message;
|
|
1712
|
+
},
|
|
1713
|
+
};
|
|
1714
|
+
function createBaseCWorkshopPopulateItemDescriptionsRequest_SingleItemDescription() {
|
|
1715
|
+
return { gameitemid: 0, itemDescription: "", onePerAccount: false };
|
|
1716
|
+
}
|
|
1717
|
+
export const CWorkshopPopulateItemDescriptionsRequest_SingleItemDescription = {
|
|
1718
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1719
|
+
if (message.gameitemid !== undefined && message.gameitemid !== 0) {
|
|
1720
|
+
writer.uint32(8).uint32(message.gameitemid);
|
|
1721
|
+
}
|
|
1722
|
+
if (message.itemDescription !== undefined && message.itemDescription !== "") {
|
|
1723
|
+
writer.uint32(18).string(message.itemDescription);
|
|
1724
|
+
}
|
|
1725
|
+
if (message.onePerAccount !== undefined && message.onePerAccount !== false) {
|
|
1726
|
+
writer.uint32(24).bool(message.onePerAccount);
|
|
1727
|
+
}
|
|
1728
|
+
return writer;
|
|
1729
|
+
},
|
|
1730
|
+
decode(input, length) {
|
|
1731
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1732
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1733
|
+
const message = createBaseCWorkshopPopulateItemDescriptionsRequest_SingleItemDescription();
|
|
1734
|
+
while (reader.pos < end) {
|
|
1735
|
+
const tag = reader.uint32();
|
|
1736
|
+
switch (tag >>> 3) {
|
|
1737
|
+
case 1: {
|
|
1738
|
+
if (tag !== 8) {
|
|
1739
|
+
break;
|
|
1740
|
+
}
|
|
1741
|
+
message.gameitemid = reader.uint32();
|
|
1742
|
+
continue;
|
|
1743
|
+
}
|
|
1744
|
+
case 2: {
|
|
1745
|
+
if (tag !== 18) {
|
|
1746
|
+
break;
|
|
1747
|
+
}
|
|
1748
|
+
message.itemDescription = reader.string();
|
|
1749
|
+
continue;
|
|
1750
|
+
}
|
|
1751
|
+
case 3: {
|
|
1752
|
+
if (tag !== 24) {
|
|
1753
|
+
break;
|
|
1754
|
+
}
|
|
1755
|
+
message.onePerAccount = reader.bool();
|
|
1756
|
+
continue;
|
|
1757
|
+
}
|
|
1758
|
+
}
|
|
1759
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1760
|
+
break;
|
|
1761
|
+
}
|
|
1762
|
+
reader.skip(tag & 7);
|
|
1763
|
+
}
|
|
1764
|
+
return message;
|
|
1765
|
+
},
|
|
1766
|
+
};
|
|
1767
|
+
function createBaseCWorkshopPopulateItemDescriptionsRequest_ItemDescriptionsLanguageBlock() {
|
|
1768
|
+
return { language: "", descriptions: [] };
|
|
1769
|
+
}
|
|
1770
|
+
export const CWorkshopPopulateItemDescriptionsRequest_ItemDescriptionsLanguageBlock = {
|
|
1771
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1772
|
+
if (message.language !== undefined && message.language !== "") {
|
|
1773
|
+
writer.uint32(10).string(message.language);
|
|
1774
|
+
}
|
|
1775
|
+
for (const v of message.descriptions) {
|
|
1776
|
+
CWorkshopPopulateItemDescriptionsRequest_SingleItemDescription.encode(v, writer.uint32(18).fork()).join();
|
|
1777
|
+
}
|
|
1778
|
+
return writer;
|
|
1779
|
+
},
|
|
1780
|
+
decode(input, length) {
|
|
1781
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1782
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1783
|
+
const message = createBaseCWorkshopPopulateItemDescriptionsRequest_ItemDescriptionsLanguageBlock();
|
|
1784
|
+
while (reader.pos < end) {
|
|
1785
|
+
const tag = reader.uint32();
|
|
1786
|
+
switch (tag >>> 3) {
|
|
1787
|
+
case 1: {
|
|
1788
|
+
if (tag !== 10) {
|
|
1789
|
+
break;
|
|
1790
|
+
}
|
|
1791
|
+
message.language = reader.string();
|
|
1792
|
+
continue;
|
|
1793
|
+
}
|
|
1794
|
+
case 2: {
|
|
1795
|
+
if (tag !== 18) {
|
|
1796
|
+
break;
|
|
1797
|
+
}
|
|
1798
|
+
message.descriptions.push(CWorkshopPopulateItemDescriptionsRequest_SingleItemDescription.decode(reader, reader.uint32()));
|
|
1799
|
+
continue;
|
|
1800
|
+
}
|
|
1801
|
+
}
|
|
1802
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1803
|
+
break;
|
|
1804
|
+
}
|
|
1805
|
+
reader.skip(tag & 7);
|
|
1806
|
+
}
|
|
1807
|
+
return message;
|
|
1808
|
+
},
|
|
1809
|
+
};
|
|
1810
|
+
function createBaseCWorkshopGetContributorsRequest() {
|
|
1811
|
+
return { appid: 0, gameitemid: 0 };
|
|
1812
|
+
}
|
|
1813
|
+
export const CWorkshopGetContributorsRequest = {
|
|
1814
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1815
|
+
if (message.appid !== undefined && message.appid !== 0) {
|
|
1816
|
+
writer.uint32(8).uint32(message.appid);
|
|
1817
|
+
}
|
|
1818
|
+
if (message.gameitemid !== undefined && message.gameitemid !== 0) {
|
|
1819
|
+
writer.uint32(16).uint32(message.gameitemid);
|
|
1820
|
+
}
|
|
1821
|
+
return writer;
|
|
1822
|
+
},
|
|
1823
|
+
decode(input, length) {
|
|
1824
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1825
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1826
|
+
const message = createBaseCWorkshopGetContributorsRequest();
|
|
1827
|
+
while (reader.pos < end) {
|
|
1828
|
+
const tag = reader.uint32();
|
|
1829
|
+
switch (tag >>> 3) {
|
|
1830
|
+
case 1: {
|
|
1831
|
+
if (tag !== 8) {
|
|
1832
|
+
break;
|
|
1833
|
+
}
|
|
1834
|
+
message.appid = reader.uint32();
|
|
1835
|
+
continue;
|
|
1836
|
+
}
|
|
1837
|
+
case 2: {
|
|
1838
|
+
if (tag !== 16) {
|
|
1839
|
+
break;
|
|
1840
|
+
}
|
|
1841
|
+
message.gameitemid = reader.uint32();
|
|
1842
|
+
continue;
|
|
1843
|
+
}
|
|
1844
|
+
}
|
|
1845
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1846
|
+
break;
|
|
1847
|
+
}
|
|
1848
|
+
reader.skip(tag & 7);
|
|
1849
|
+
}
|
|
1850
|
+
return message;
|
|
1851
|
+
},
|
|
1852
|
+
};
|
|
1853
|
+
function createBaseCWorkshopGetContributorsResponse() {
|
|
1854
|
+
return { contributors: [] };
|
|
1855
|
+
}
|
|
1856
|
+
export const CWorkshopGetContributorsResponse = {
|
|
1857
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1858
|
+
for (const v of message.contributors) {
|
|
1859
|
+
writer.uint32(9).fixed64(v);
|
|
1860
|
+
}
|
|
1861
|
+
return writer;
|
|
1862
|
+
},
|
|
1863
|
+
decode(input, length) {
|
|
1864
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1865
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1866
|
+
const message = createBaseCWorkshopGetContributorsResponse();
|
|
1867
|
+
while (reader.pos < end) {
|
|
1868
|
+
const tag = reader.uint32();
|
|
1869
|
+
switch (tag >>> 3) {
|
|
1870
|
+
case 1: {
|
|
1871
|
+
if (tag === 9) {
|
|
1872
|
+
message.contributors.push(longToNumber(reader.fixed64()));
|
|
1873
|
+
continue;
|
|
1874
|
+
}
|
|
1875
|
+
if (tag === 10) {
|
|
1876
|
+
const end2 = reader.uint32() + reader.pos;
|
|
1877
|
+
while (reader.pos < end2) {
|
|
1878
|
+
message.contributors.push(longToNumber(reader.fixed64()));
|
|
1879
|
+
}
|
|
1880
|
+
continue;
|
|
1881
|
+
}
|
|
1882
|
+
break;
|
|
1883
|
+
}
|
|
1884
|
+
}
|
|
1885
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1886
|
+
break;
|
|
1887
|
+
}
|
|
1888
|
+
reader.skip(tag & 7);
|
|
1889
|
+
}
|
|
1890
|
+
return message;
|
|
1891
|
+
},
|
|
1892
|
+
};
|
|
1893
|
+
function createBaseCWorkshopSetItemPaymentRulesRequest() {
|
|
1894
|
+
return {
|
|
1895
|
+
appid: 0,
|
|
1896
|
+
gameitemid: 0,
|
|
1897
|
+
associatedWorkshopFiles: [],
|
|
1898
|
+
partnerAccounts: [],
|
|
1899
|
+
validateOnly: false,
|
|
1900
|
+
makeWorkshopFilesSubscribable: false,
|
|
1901
|
+
associatedWorkshopFileForDirectPayments: undefined,
|
|
1902
|
+
};
|
|
1903
|
+
}
|
|
1904
|
+
export const CWorkshopSetItemPaymentRulesRequest = {
|
|
1905
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1906
|
+
if (message.appid !== undefined && message.appid !== 0) {
|
|
1907
|
+
writer.uint32(8).uint32(message.appid);
|
|
1908
|
+
}
|
|
1909
|
+
if (message.gameitemid !== undefined && message.gameitemid !== 0) {
|
|
1910
|
+
writer.uint32(16).uint32(message.gameitemid);
|
|
1911
|
+
}
|
|
1912
|
+
for (const v of message.associatedWorkshopFiles) {
|
|
1913
|
+
CWorkshopSetItemPaymentRulesRequest_WorkshopItemPaymentRule.encode(v, writer.uint32(26).fork()).join();
|
|
1914
|
+
}
|
|
1915
|
+
for (const v of message.partnerAccounts) {
|
|
1916
|
+
CWorkshopSetItemPaymentRulesRequest_PartnerItemPaymentRule.encode(v, writer.uint32(34).fork()).join();
|
|
1917
|
+
}
|
|
1918
|
+
if (message.validateOnly !== undefined && message.validateOnly !== false) {
|
|
1919
|
+
writer.uint32(40).bool(message.validateOnly);
|
|
1920
|
+
}
|
|
1921
|
+
if (message.makeWorkshopFilesSubscribable !== undefined && message.makeWorkshopFilesSubscribable !== false) {
|
|
1922
|
+
writer.uint32(48).bool(message.makeWorkshopFilesSubscribable);
|
|
1923
|
+
}
|
|
1924
|
+
if (message.associatedWorkshopFileForDirectPayments !== undefined) {
|
|
1925
|
+
CWorkshopSetItemPaymentRulesRequest_WorkshopDirectPaymentRule.encode(message.associatedWorkshopFileForDirectPayments, writer.uint32(58).fork()).join();
|
|
1926
|
+
}
|
|
1927
|
+
return writer;
|
|
1928
|
+
},
|
|
1929
|
+
decode(input, length) {
|
|
1930
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1931
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1932
|
+
const message = createBaseCWorkshopSetItemPaymentRulesRequest();
|
|
1933
|
+
while (reader.pos < end) {
|
|
1934
|
+
const tag = reader.uint32();
|
|
1935
|
+
switch (tag >>> 3) {
|
|
1936
|
+
case 1: {
|
|
1937
|
+
if (tag !== 8) {
|
|
1938
|
+
break;
|
|
1939
|
+
}
|
|
1940
|
+
message.appid = reader.uint32();
|
|
1941
|
+
continue;
|
|
1942
|
+
}
|
|
1943
|
+
case 2: {
|
|
1944
|
+
if (tag !== 16) {
|
|
1945
|
+
break;
|
|
1946
|
+
}
|
|
1947
|
+
message.gameitemid = reader.uint32();
|
|
1948
|
+
continue;
|
|
1949
|
+
}
|
|
1950
|
+
case 3: {
|
|
1951
|
+
if (tag !== 26) {
|
|
1952
|
+
break;
|
|
1953
|
+
}
|
|
1954
|
+
message.associatedWorkshopFiles.push(CWorkshopSetItemPaymentRulesRequest_WorkshopItemPaymentRule.decode(reader, reader.uint32()));
|
|
1955
|
+
continue;
|
|
1956
|
+
}
|
|
1957
|
+
case 4: {
|
|
1958
|
+
if (tag !== 34) {
|
|
1959
|
+
break;
|
|
1960
|
+
}
|
|
1961
|
+
message.partnerAccounts.push(CWorkshopSetItemPaymentRulesRequest_PartnerItemPaymentRule.decode(reader, reader.uint32()));
|
|
1962
|
+
continue;
|
|
1963
|
+
}
|
|
1964
|
+
case 5: {
|
|
1965
|
+
if (tag !== 40) {
|
|
1966
|
+
break;
|
|
1967
|
+
}
|
|
1968
|
+
message.validateOnly = reader.bool();
|
|
1969
|
+
continue;
|
|
1970
|
+
}
|
|
1971
|
+
case 6: {
|
|
1972
|
+
if (tag !== 48) {
|
|
1973
|
+
break;
|
|
1974
|
+
}
|
|
1975
|
+
message.makeWorkshopFilesSubscribable = reader.bool();
|
|
1976
|
+
continue;
|
|
1977
|
+
}
|
|
1978
|
+
case 7: {
|
|
1979
|
+
if (tag !== 58) {
|
|
1980
|
+
break;
|
|
1981
|
+
}
|
|
1982
|
+
message.associatedWorkshopFileForDirectPayments =
|
|
1983
|
+
CWorkshopSetItemPaymentRulesRequest_WorkshopDirectPaymentRule.decode(reader, reader.uint32());
|
|
1984
|
+
continue;
|
|
1985
|
+
}
|
|
1986
|
+
}
|
|
1987
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1988
|
+
break;
|
|
1989
|
+
}
|
|
1990
|
+
reader.skip(tag & 7);
|
|
1991
|
+
}
|
|
1992
|
+
return message;
|
|
1993
|
+
},
|
|
1994
|
+
};
|
|
1995
|
+
function createBaseCWorkshopSetItemPaymentRulesRequest_WorkshopItemPaymentRule() {
|
|
1996
|
+
return { workshopFileId: 0, revenuePercentage: 0, ruleDescription: "", ruleType: 1 };
|
|
1997
|
+
}
|
|
1998
|
+
export const CWorkshopSetItemPaymentRulesRequest_WorkshopItemPaymentRule = {
|
|
1999
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2000
|
+
if (message.workshopFileId !== undefined && message.workshopFileId !== 0) {
|
|
2001
|
+
writer.uint32(8).uint64(message.workshopFileId);
|
|
2002
|
+
}
|
|
2003
|
+
if (message.revenuePercentage !== undefined && message.revenuePercentage !== 0) {
|
|
2004
|
+
writer.uint32(21).float(message.revenuePercentage);
|
|
2005
|
+
}
|
|
2006
|
+
if (message.ruleDescription !== undefined && message.ruleDescription !== "") {
|
|
2007
|
+
writer.uint32(26).string(message.ruleDescription);
|
|
2008
|
+
}
|
|
2009
|
+
if (message.ruleType !== undefined && message.ruleType !== 1) {
|
|
2010
|
+
writer.uint32(32).uint32(message.ruleType);
|
|
2011
|
+
}
|
|
2012
|
+
return writer;
|
|
2013
|
+
},
|
|
2014
|
+
decode(input, length) {
|
|
2015
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2016
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2017
|
+
const message = createBaseCWorkshopSetItemPaymentRulesRequest_WorkshopItemPaymentRule();
|
|
2018
|
+
while (reader.pos < end) {
|
|
2019
|
+
const tag = reader.uint32();
|
|
2020
|
+
switch (tag >>> 3) {
|
|
2021
|
+
case 1: {
|
|
2022
|
+
if (tag !== 8) {
|
|
2023
|
+
break;
|
|
2024
|
+
}
|
|
2025
|
+
message.workshopFileId = longToNumber(reader.uint64());
|
|
2026
|
+
continue;
|
|
2027
|
+
}
|
|
2028
|
+
case 2: {
|
|
2029
|
+
if (tag !== 21) {
|
|
2030
|
+
break;
|
|
2031
|
+
}
|
|
2032
|
+
message.revenuePercentage = reader.float();
|
|
2033
|
+
continue;
|
|
2034
|
+
}
|
|
2035
|
+
case 3: {
|
|
2036
|
+
if (tag !== 26) {
|
|
2037
|
+
break;
|
|
2038
|
+
}
|
|
2039
|
+
message.ruleDescription = reader.string();
|
|
2040
|
+
continue;
|
|
2041
|
+
}
|
|
2042
|
+
case 4: {
|
|
2043
|
+
if (tag !== 32) {
|
|
2044
|
+
break;
|
|
2045
|
+
}
|
|
2046
|
+
message.ruleType = reader.uint32();
|
|
2047
|
+
continue;
|
|
2048
|
+
}
|
|
2049
|
+
}
|
|
2050
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2051
|
+
break;
|
|
2052
|
+
}
|
|
2053
|
+
reader.skip(tag & 7);
|
|
2054
|
+
}
|
|
2055
|
+
return message;
|
|
2056
|
+
},
|
|
2057
|
+
};
|
|
2058
|
+
function createBaseCWorkshopSetItemPaymentRulesRequest_WorkshopDirectPaymentRule() {
|
|
2059
|
+
return { workshopFileId: 0, ruleDescription: "" };
|
|
2060
|
+
}
|
|
2061
|
+
export const CWorkshopSetItemPaymentRulesRequest_WorkshopDirectPaymentRule = {
|
|
2062
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2063
|
+
if (message.workshopFileId !== undefined && message.workshopFileId !== 0) {
|
|
2064
|
+
writer.uint32(8).uint64(message.workshopFileId);
|
|
2065
|
+
}
|
|
2066
|
+
if (message.ruleDescription !== undefined && message.ruleDescription !== "") {
|
|
2067
|
+
writer.uint32(18).string(message.ruleDescription);
|
|
2068
|
+
}
|
|
2069
|
+
return writer;
|
|
2070
|
+
},
|
|
2071
|
+
decode(input, length) {
|
|
2072
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2073
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2074
|
+
const message = createBaseCWorkshopSetItemPaymentRulesRequest_WorkshopDirectPaymentRule();
|
|
2075
|
+
while (reader.pos < end) {
|
|
2076
|
+
const tag = reader.uint32();
|
|
2077
|
+
switch (tag >>> 3) {
|
|
2078
|
+
case 1: {
|
|
2079
|
+
if (tag !== 8) {
|
|
2080
|
+
break;
|
|
2081
|
+
}
|
|
2082
|
+
message.workshopFileId = longToNumber(reader.uint64());
|
|
2083
|
+
continue;
|
|
2084
|
+
}
|
|
2085
|
+
case 2: {
|
|
2086
|
+
if (tag !== 18) {
|
|
2087
|
+
break;
|
|
2088
|
+
}
|
|
2089
|
+
message.ruleDescription = reader.string();
|
|
2090
|
+
continue;
|
|
2091
|
+
}
|
|
2092
|
+
}
|
|
2093
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2094
|
+
break;
|
|
2095
|
+
}
|
|
2096
|
+
reader.skip(tag & 7);
|
|
2097
|
+
}
|
|
2098
|
+
return message;
|
|
2099
|
+
},
|
|
2100
|
+
};
|
|
2101
|
+
function createBaseCWorkshopSetItemPaymentRulesRequest_PartnerItemPaymentRule() {
|
|
2102
|
+
return { accountId: 0, revenuePercentage: 0, ruleDescription: "" };
|
|
2103
|
+
}
|
|
2104
|
+
export const CWorkshopSetItemPaymentRulesRequest_PartnerItemPaymentRule = {
|
|
2105
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2106
|
+
if (message.accountId !== undefined && message.accountId !== 0) {
|
|
2107
|
+
writer.uint32(8).uint32(message.accountId);
|
|
2108
|
+
}
|
|
2109
|
+
if (message.revenuePercentage !== undefined && message.revenuePercentage !== 0) {
|
|
2110
|
+
writer.uint32(21).float(message.revenuePercentage);
|
|
2111
|
+
}
|
|
2112
|
+
if (message.ruleDescription !== undefined && message.ruleDescription !== "") {
|
|
2113
|
+
writer.uint32(26).string(message.ruleDescription);
|
|
2114
|
+
}
|
|
2115
|
+
return writer;
|
|
2116
|
+
},
|
|
2117
|
+
decode(input, length) {
|
|
2118
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2119
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2120
|
+
const message = createBaseCWorkshopSetItemPaymentRulesRequest_PartnerItemPaymentRule();
|
|
2121
|
+
while (reader.pos < end) {
|
|
2122
|
+
const tag = reader.uint32();
|
|
2123
|
+
switch (tag >>> 3) {
|
|
2124
|
+
case 1: {
|
|
2125
|
+
if (tag !== 8) {
|
|
2126
|
+
break;
|
|
2127
|
+
}
|
|
2128
|
+
message.accountId = reader.uint32();
|
|
2129
|
+
continue;
|
|
2130
|
+
}
|
|
2131
|
+
case 2: {
|
|
2132
|
+
if (tag !== 21) {
|
|
2133
|
+
break;
|
|
2134
|
+
}
|
|
2135
|
+
message.revenuePercentage = reader.float();
|
|
2136
|
+
continue;
|
|
2137
|
+
}
|
|
2138
|
+
case 3: {
|
|
2139
|
+
if (tag !== 26) {
|
|
2140
|
+
break;
|
|
2141
|
+
}
|
|
2142
|
+
message.ruleDescription = reader.string();
|
|
2143
|
+
continue;
|
|
2144
|
+
}
|
|
2145
|
+
}
|
|
2146
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2147
|
+
break;
|
|
2148
|
+
}
|
|
2149
|
+
reader.skip(tag & 7);
|
|
2150
|
+
}
|
|
2151
|
+
return message;
|
|
2152
|
+
},
|
|
2153
|
+
};
|
|
2154
|
+
function createBaseCWorkshopSetItemPaymentRulesResponse() {
|
|
2155
|
+
return {};
|
|
2156
|
+
}
|
|
2157
|
+
export const CWorkshopSetItemPaymentRulesResponse = {
|
|
2158
|
+
encode(_, writer = new BinaryWriter()) {
|
|
2159
|
+
return writer;
|
|
2160
|
+
},
|
|
2161
|
+
decode(input, length) {
|
|
2162
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2163
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2164
|
+
const message = createBaseCWorkshopSetItemPaymentRulesResponse();
|
|
2165
|
+
while (reader.pos < end) {
|
|
2166
|
+
const tag = reader.uint32();
|
|
2167
|
+
switch (tag >>> 3) {
|
|
2168
|
+
}
|
|
2169
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2170
|
+
break;
|
|
2171
|
+
}
|
|
2172
|
+
reader.skip(tag & 7);
|
|
2173
|
+
}
|
|
2174
|
+
return message;
|
|
2175
|
+
},
|
|
2176
|
+
};
|
|
2177
|
+
function createBaseCGameServersAggregationQueryRequest() {
|
|
2178
|
+
return { filter: "", groupFields: [] };
|
|
2179
|
+
}
|
|
2180
|
+
export const CGameServersAggregationQueryRequest = {
|
|
2181
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2182
|
+
if (message.filter !== undefined && message.filter !== "") {
|
|
2183
|
+
writer.uint32(10).string(message.filter);
|
|
2184
|
+
}
|
|
2185
|
+
for (const v of message.groupFields) {
|
|
2186
|
+
writer.uint32(26).string(v);
|
|
2187
|
+
}
|
|
2188
|
+
return writer;
|
|
2189
|
+
},
|
|
2190
|
+
decode(input, length) {
|
|
2191
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2192
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2193
|
+
const message = createBaseCGameServersAggregationQueryRequest();
|
|
2194
|
+
while (reader.pos < end) {
|
|
2195
|
+
const tag = reader.uint32();
|
|
2196
|
+
switch (tag >>> 3) {
|
|
2197
|
+
case 1: {
|
|
2198
|
+
if (tag !== 10) {
|
|
2199
|
+
break;
|
|
2200
|
+
}
|
|
2201
|
+
message.filter = reader.string();
|
|
2202
|
+
continue;
|
|
2203
|
+
}
|
|
2204
|
+
case 3: {
|
|
2205
|
+
if (tag !== 26) {
|
|
2206
|
+
break;
|
|
2207
|
+
}
|
|
2208
|
+
message.groupFields.push(reader.string());
|
|
2209
|
+
continue;
|
|
2210
|
+
}
|
|
2211
|
+
}
|
|
2212
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2213
|
+
break;
|
|
2214
|
+
}
|
|
2215
|
+
reader.skip(tag & 7);
|
|
2216
|
+
}
|
|
2217
|
+
return message;
|
|
2218
|
+
},
|
|
2219
|
+
};
|
|
2220
|
+
function createBaseCGameServersAggregationQueryResponse() {
|
|
2221
|
+
return { groups: [] };
|
|
2222
|
+
}
|
|
2223
|
+
export const CGameServersAggregationQueryResponse = {
|
|
2224
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2225
|
+
for (const v of message.groups) {
|
|
2226
|
+
CGameServersAggregationQueryResponse_Group.encode(v, writer.uint32(10).fork()).join();
|
|
2227
|
+
}
|
|
2228
|
+
return writer;
|
|
2229
|
+
},
|
|
2230
|
+
decode(input, length) {
|
|
2231
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2232
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2233
|
+
const message = createBaseCGameServersAggregationQueryResponse();
|
|
2234
|
+
while (reader.pos < end) {
|
|
2235
|
+
const tag = reader.uint32();
|
|
2236
|
+
switch (tag >>> 3) {
|
|
2237
|
+
case 1: {
|
|
2238
|
+
if (tag !== 10) {
|
|
2239
|
+
break;
|
|
2240
|
+
}
|
|
2241
|
+
message.groups.push(CGameServersAggregationQueryResponse_Group.decode(reader, reader.uint32()));
|
|
2242
|
+
continue;
|
|
2243
|
+
}
|
|
2244
|
+
}
|
|
2245
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2246
|
+
break;
|
|
2247
|
+
}
|
|
2248
|
+
reader.skip(tag & 7);
|
|
2249
|
+
}
|
|
2250
|
+
return message;
|
|
2251
|
+
},
|
|
2252
|
+
};
|
|
2253
|
+
function createBaseCGameServersAggregationQueryResponse_Group() {
|
|
2254
|
+
return {
|
|
2255
|
+
groupValues: [],
|
|
2256
|
+
serversEmpty: 0,
|
|
2257
|
+
serversFull: 0,
|
|
2258
|
+
serversTotal: 0,
|
|
2259
|
+
playersHumans: 0,
|
|
2260
|
+
playersBots: 0,
|
|
2261
|
+
playerCapacity: 0,
|
|
2262
|
+
};
|
|
2263
|
+
}
|
|
2264
|
+
export const CGameServersAggregationQueryResponse_Group = {
|
|
2265
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2266
|
+
for (const v of message.groupValues) {
|
|
2267
|
+
writer.uint32(10).string(v);
|
|
2268
|
+
}
|
|
2269
|
+
if (message.serversEmpty !== undefined && message.serversEmpty !== 0) {
|
|
2270
|
+
writer.uint32(16).uint32(message.serversEmpty);
|
|
2271
|
+
}
|
|
2272
|
+
if (message.serversFull !== undefined && message.serversFull !== 0) {
|
|
2273
|
+
writer.uint32(24).uint32(message.serversFull);
|
|
2274
|
+
}
|
|
2275
|
+
if (message.serversTotal !== undefined && message.serversTotal !== 0) {
|
|
2276
|
+
writer.uint32(32).uint32(message.serversTotal);
|
|
2277
|
+
}
|
|
2278
|
+
if (message.playersHumans !== undefined && message.playersHumans !== 0) {
|
|
2279
|
+
writer.uint32(40).uint32(message.playersHumans);
|
|
2280
|
+
}
|
|
2281
|
+
if (message.playersBots !== undefined && message.playersBots !== 0) {
|
|
2282
|
+
writer.uint32(48).uint32(message.playersBots);
|
|
2283
|
+
}
|
|
2284
|
+
if (message.playerCapacity !== undefined && message.playerCapacity !== 0) {
|
|
2285
|
+
writer.uint32(56).uint32(message.playerCapacity);
|
|
2286
|
+
}
|
|
2287
|
+
return writer;
|
|
2288
|
+
},
|
|
2289
|
+
decode(input, length) {
|
|
2290
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2291
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2292
|
+
const message = createBaseCGameServersAggregationQueryResponse_Group();
|
|
2293
|
+
while (reader.pos < end) {
|
|
2294
|
+
const tag = reader.uint32();
|
|
2295
|
+
switch (tag >>> 3) {
|
|
2296
|
+
case 1: {
|
|
2297
|
+
if (tag !== 10) {
|
|
2298
|
+
break;
|
|
2299
|
+
}
|
|
2300
|
+
message.groupValues.push(reader.string());
|
|
2301
|
+
continue;
|
|
2302
|
+
}
|
|
2303
|
+
case 2: {
|
|
2304
|
+
if (tag !== 16) {
|
|
2305
|
+
break;
|
|
2306
|
+
}
|
|
2307
|
+
message.serversEmpty = reader.uint32();
|
|
2308
|
+
continue;
|
|
2309
|
+
}
|
|
2310
|
+
case 3: {
|
|
2311
|
+
if (tag !== 24) {
|
|
2312
|
+
break;
|
|
2313
|
+
}
|
|
2314
|
+
message.serversFull = reader.uint32();
|
|
2315
|
+
continue;
|
|
2316
|
+
}
|
|
2317
|
+
case 4: {
|
|
2318
|
+
if (tag !== 32) {
|
|
2319
|
+
break;
|
|
2320
|
+
}
|
|
2321
|
+
message.serversTotal = reader.uint32();
|
|
2322
|
+
continue;
|
|
2323
|
+
}
|
|
2324
|
+
case 5: {
|
|
2325
|
+
if (tag !== 40) {
|
|
2326
|
+
break;
|
|
2327
|
+
}
|
|
2328
|
+
message.playersHumans = reader.uint32();
|
|
2329
|
+
continue;
|
|
2330
|
+
}
|
|
2331
|
+
case 6: {
|
|
2332
|
+
if (tag !== 48) {
|
|
2333
|
+
break;
|
|
2334
|
+
}
|
|
2335
|
+
message.playersBots = reader.uint32();
|
|
2336
|
+
continue;
|
|
2337
|
+
}
|
|
2338
|
+
case 7: {
|
|
2339
|
+
if (tag !== 56) {
|
|
2340
|
+
break;
|
|
2341
|
+
}
|
|
2342
|
+
message.playerCapacity = reader.uint32();
|
|
2343
|
+
continue;
|
|
2344
|
+
}
|
|
2345
|
+
}
|
|
2346
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2347
|
+
break;
|
|
2348
|
+
}
|
|
2349
|
+
reader.skip(tag & 7);
|
|
2350
|
+
}
|
|
2351
|
+
return message;
|
|
2352
|
+
},
|
|
2353
|
+
};
|
|
2354
|
+
function createBaseCWorkshopAddSpecialPaymentRequest() {
|
|
2355
|
+
return { appid: 0, gameitemid: 0, date: "", paymentUsUsd: 0, paymentRowUsd: 0 };
|
|
2356
|
+
}
|
|
2357
|
+
export const CWorkshopAddSpecialPaymentRequest = {
|
|
2358
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2359
|
+
if (message.appid !== undefined && message.appid !== 0) {
|
|
2360
|
+
writer.uint32(8).uint32(message.appid);
|
|
2361
|
+
}
|
|
2362
|
+
if (message.gameitemid !== undefined && message.gameitemid !== 0) {
|
|
2363
|
+
writer.uint32(16).uint32(message.gameitemid);
|
|
2364
|
+
}
|
|
2365
|
+
if (message.date !== undefined && message.date !== "") {
|
|
2366
|
+
writer.uint32(26).string(message.date);
|
|
2367
|
+
}
|
|
2368
|
+
if (message.paymentUsUsd !== undefined && message.paymentUsUsd !== 0) {
|
|
2369
|
+
writer.uint32(32).uint64(message.paymentUsUsd);
|
|
2370
|
+
}
|
|
2371
|
+
if (message.paymentRowUsd !== undefined && message.paymentRowUsd !== 0) {
|
|
2372
|
+
writer.uint32(40).uint64(message.paymentRowUsd);
|
|
2373
|
+
}
|
|
2374
|
+
return writer;
|
|
2375
|
+
},
|
|
2376
|
+
decode(input, length) {
|
|
2377
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2378
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2379
|
+
const message = createBaseCWorkshopAddSpecialPaymentRequest();
|
|
2380
|
+
while (reader.pos < end) {
|
|
2381
|
+
const tag = reader.uint32();
|
|
2382
|
+
switch (tag >>> 3) {
|
|
2383
|
+
case 1: {
|
|
2384
|
+
if (tag !== 8) {
|
|
2385
|
+
break;
|
|
2386
|
+
}
|
|
2387
|
+
message.appid = reader.uint32();
|
|
2388
|
+
continue;
|
|
2389
|
+
}
|
|
2390
|
+
case 2: {
|
|
2391
|
+
if (tag !== 16) {
|
|
2392
|
+
break;
|
|
2393
|
+
}
|
|
2394
|
+
message.gameitemid = reader.uint32();
|
|
2395
|
+
continue;
|
|
2396
|
+
}
|
|
2397
|
+
case 3: {
|
|
2398
|
+
if (tag !== 26) {
|
|
2399
|
+
break;
|
|
2400
|
+
}
|
|
2401
|
+
message.date = reader.string();
|
|
2402
|
+
continue;
|
|
2403
|
+
}
|
|
2404
|
+
case 4: {
|
|
2405
|
+
if (tag !== 32) {
|
|
2406
|
+
break;
|
|
2407
|
+
}
|
|
2408
|
+
message.paymentUsUsd = longToNumber(reader.uint64());
|
|
2409
|
+
continue;
|
|
2410
|
+
}
|
|
2411
|
+
case 5: {
|
|
2412
|
+
if (tag !== 40) {
|
|
2413
|
+
break;
|
|
2414
|
+
}
|
|
2415
|
+
message.paymentRowUsd = longToNumber(reader.uint64());
|
|
2416
|
+
continue;
|
|
2417
|
+
}
|
|
2418
|
+
}
|
|
2419
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2420
|
+
break;
|
|
2421
|
+
}
|
|
2422
|
+
reader.skip(tag & 7);
|
|
2423
|
+
}
|
|
2424
|
+
return message;
|
|
2425
|
+
},
|
|
2426
|
+
};
|
|
2427
|
+
function createBaseCWorkshopAddSpecialPaymentResponse() {
|
|
2428
|
+
return {};
|
|
2429
|
+
}
|
|
2430
|
+
export const CWorkshopAddSpecialPaymentResponse = {
|
|
2431
|
+
encode(_, writer = new BinaryWriter()) {
|
|
2432
|
+
return writer;
|
|
2433
|
+
},
|
|
2434
|
+
decode(input, length) {
|
|
2435
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2436
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2437
|
+
const message = createBaseCWorkshopAddSpecialPaymentResponse();
|
|
2438
|
+
while (reader.pos < end) {
|
|
2439
|
+
const tag = reader.uint32();
|
|
2440
|
+
switch (tag >>> 3) {
|
|
2441
|
+
}
|
|
2442
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2443
|
+
break;
|
|
2444
|
+
}
|
|
2445
|
+
reader.skip(tag & 7);
|
|
2446
|
+
}
|
|
2447
|
+
return message;
|
|
2448
|
+
},
|
|
2449
|
+
};
|
|
2450
|
+
function createBaseCProductInfoSetRichPresenceLocalizationRequest() {
|
|
2451
|
+
return { appid: 0, languages: [], steamid: 0 };
|
|
2452
|
+
}
|
|
2453
|
+
export const CProductInfoSetRichPresenceLocalizationRequest = {
|
|
2454
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2455
|
+
if (message.appid !== undefined && message.appid !== 0) {
|
|
2456
|
+
writer.uint32(8).uint32(message.appid);
|
|
2457
|
+
}
|
|
2458
|
+
for (const v of message.languages) {
|
|
2459
|
+
CProductInfoSetRichPresenceLocalizationRequest_LanguageSection.encode(v, writer.uint32(18).fork()).join();
|
|
2460
|
+
}
|
|
2461
|
+
if (message.steamid !== undefined && message.steamid !== 0) {
|
|
2462
|
+
writer.uint32(24).uint64(message.steamid);
|
|
2463
|
+
}
|
|
2464
|
+
return writer;
|
|
2465
|
+
},
|
|
2466
|
+
decode(input, length) {
|
|
2467
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2468
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2469
|
+
const message = createBaseCProductInfoSetRichPresenceLocalizationRequest();
|
|
2470
|
+
while (reader.pos < end) {
|
|
2471
|
+
const tag = reader.uint32();
|
|
2472
|
+
switch (tag >>> 3) {
|
|
2473
|
+
case 1: {
|
|
2474
|
+
if (tag !== 8) {
|
|
2475
|
+
break;
|
|
2476
|
+
}
|
|
2477
|
+
message.appid = reader.uint32();
|
|
2478
|
+
continue;
|
|
2479
|
+
}
|
|
2480
|
+
case 2: {
|
|
2481
|
+
if (tag !== 18) {
|
|
2482
|
+
break;
|
|
2483
|
+
}
|
|
2484
|
+
message.languages.push(CProductInfoSetRichPresenceLocalizationRequest_LanguageSection.decode(reader, reader.uint32()));
|
|
2485
|
+
continue;
|
|
2486
|
+
}
|
|
2487
|
+
case 3: {
|
|
2488
|
+
if (tag !== 24) {
|
|
2489
|
+
break;
|
|
2490
|
+
}
|
|
2491
|
+
message.steamid = longToNumber(reader.uint64());
|
|
2492
|
+
continue;
|
|
2493
|
+
}
|
|
2494
|
+
}
|
|
2495
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2496
|
+
break;
|
|
2497
|
+
}
|
|
2498
|
+
reader.skip(tag & 7);
|
|
2499
|
+
}
|
|
2500
|
+
return message;
|
|
2501
|
+
},
|
|
2502
|
+
};
|
|
2503
|
+
function createBaseCProductInfoSetRichPresenceLocalizationRequest_Token() {
|
|
2504
|
+
return { token: "", value: "" };
|
|
2505
|
+
}
|
|
2506
|
+
export const CProductInfoSetRichPresenceLocalizationRequest_Token = {
|
|
2507
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2508
|
+
if (message.token !== undefined && message.token !== "") {
|
|
2509
|
+
writer.uint32(10).string(message.token);
|
|
2510
|
+
}
|
|
2511
|
+
if (message.value !== undefined && message.value !== "") {
|
|
2512
|
+
writer.uint32(18).string(message.value);
|
|
2513
|
+
}
|
|
2514
|
+
return writer;
|
|
2515
|
+
},
|
|
2516
|
+
decode(input, length) {
|
|
2517
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2518
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2519
|
+
const message = createBaseCProductInfoSetRichPresenceLocalizationRequest_Token();
|
|
2520
|
+
while (reader.pos < end) {
|
|
2521
|
+
const tag = reader.uint32();
|
|
2522
|
+
switch (tag >>> 3) {
|
|
2523
|
+
case 1: {
|
|
2524
|
+
if (tag !== 10) {
|
|
2525
|
+
break;
|
|
2526
|
+
}
|
|
2527
|
+
message.token = reader.string();
|
|
2528
|
+
continue;
|
|
2529
|
+
}
|
|
2530
|
+
case 2: {
|
|
2531
|
+
if (tag !== 18) {
|
|
2532
|
+
break;
|
|
2533
|
+
}
|
|
2534
|
+
message.value = reader.string();
|
|
2535
|
+
continue;
|
|
2536
|
+
}
|
|
2537
|
+
}
|
|
2538
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2539
|
+
break;
|
|
2540
|
+
}
|
|
2541
|
+
reader.skip(tag & 7);
|
|
2542
|
+
}
|
|
2543
|
+
return message;
|
|
2544
|
+
},
|
|
2545
|
+
};
|
|
2546
|
+
function createBaseCProductInfoSetRichPresenceLocalizationRequest_LanguageSection() {
|
|
2547
|
+
return { language: "", tokens: [] };
|
|
2548
|
+
}
|
|
2549
|
+
export const CProductInfoSetRichPresenceLocalizationRequest_LanguageSection = {
|
|
2550
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2551
|
+
if (message.language !== undefined && message.language !== "") {
|
|
2552
|
+
writer.uint32(10).string(message.language);
|
|
2553
|
+
}
|
|
2554
|
+
for (const v of message.tokens) {
|
|
2555
|
+
CProductInfoSetRichPresenceLocalizationRequest_Token.encode(v, writer.uint32(18).fork()).join();
|
|
2556
|
+
}
|
|
2557
|
+
return writer;
|
|
2558
|
+
},
|
|
2559
|
+
decode(input, length) {
|
|
2560
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2561
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2562
|
+
const message = createBaseCProductInfoSetRichPresenceLocalizationRequest_LanguageSection();
|
|
2563
|
+
while (reader.pos < end) {
|
|
2564
|
+
const tag = reader.uint32();
|
|
2565
|
+
switch (tag >>> 3) {
|
|
2566
|
+
case 1: {
|
|
2567
|
+
if (tag !== 10) {
|
|
2568
|
+
break;
|
|
2569
|
+
}
|
|
2570
|
+
message.language = reader.string();
|
|
2571
|
+
continue;
|
|
2572
|
+
}
|
|
2573
|
+
case 2: {
|
|
2574
|
+
if (tag !== 18) {
|
|
2575
|
+
break;
|
|
2576
|
+
}
|
|
2577
|
+
message.tokens.push(CProductInfoSetRichPresenceLocalizationRequest_Token.decode(reader, reader.uint32()));
|
|
2578
|
+
continue;
|
|
2579
|
+
}
|
|
2580
|
+
}
|
|
2581
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2582
|
+
break;
|
|
2583
|
+
}
|
|
2584
|
+
reader.skip(tag & 7);
|
|
2585
|
+
}
|
|
2586
|
+
return message;
|
|
2587
|
+
},
|
|
2588
|
+
};
|
|
2589
|
+
function createBaseCProductInfoSetRichPresenceLocalizationResponse() {
|
|
2590
|
+
return {};
|
|
2591
|
+
}
|
|
2592
|
+
export const CProductInfoSetRichPresenceLocalizationResponse = {
|
|
2593
|
+
encode(_, writer = new BinaryWriter()) {
|
|
2594
|
+
return writer;
|
|
2595
|
+
},
|
|
2596
|
+
decode(input, length) {
|
|
2597
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2598
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2599
|
+
const message = createBaseCProductInfoSetRichPresenceLocalizationResponse();
|
|
2600
|
+
while (reader.pos < end) {
|
|
2601
|
+
const tag = reader.uint32();
|
|
2602
|
+
switch (tag >>> 3) {
|
|
2603
|
+
}
|
|
2604
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2605
|
+
break;
|
|
2606
|
+
}
|
|
2607
|
+
reader.skip(tag & 7);
|
|
2608
|
+
}
|
|
2609
|
+
return message;
|
|
2610
|
+
},
|
|
2611
|
+
};
|
|
2612
|
+
function createBaseCMsgSerializedSOCache() {
|
|
2613
|
+
return { fileVersion: 0, caches: [], gcSocacheFileVersion: 0 };
|
|
2614
|
+
}
|
|
2615
|
+
export const CMsgSerializedSOCache = {
|
|
2616
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2617
|
+
if (message.fileVersion !== undefined && message.fileVersion !== 0) {
|
|
2618
|
+
writer.uint32(8).uint32(message.fileVersion);
|
|
2619
|
+
}
|
|
2620
|
+
for (const v of message.caches) {
|
|
2621
|
+
CMsgSerializedSOCache_Cache.encode(v, writer.uint32(18).fork()).join();
|
|
2622
|
+
}
|
|
2623
|
+
if (message.gcSocacheFileVersion !== undefined && message.gcSocacheFileVersion !== 0) {
|
|
2624
|
+
writer.uint32(24).uint32(message.gcSocacheFileVersion);
|
|
2625
|
+
}
|
|
2626
|
+
return writer;
|
|
2627
|
+
},
|
|
2628
|
+
decode(input, length) {
|
|
2629
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2630
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2631
|
+
const message = createBaseCMsgSerializedSOCache();
|
|
2632
|
+
while (reader.pos < end) {
|
|
2633
|
+
const tag = reader.uint32();
|
|
2634
|
+
switch (tag >>> 3) {
|
|
2635
|
+
case 1: {
|
|
2636
|
+
if (tag !== 8) {
|
|
2637
|
+
break;
|
|
2638
|
+
}
|
|
2639
|
+
message.fileVersion = reader.uint32();
|
|
2640
|
+
continue;
|
|
2641
|
+
}
|
|
2642
|
+
case 2: {
|
|
2643
|
+
if (tag !== 18) {
|
|
2644
|
+
break;
|
|
2645
|
+
}
|
|
2646
|
+
message.caches.push(CMsgSerializedSOCache_Cache.decode(reader, reader.uint32()));
|
|
2647
|
+
continue;
|
|
2648
|
+
}
|
|
2649
|
+
case 3: {
|
|
2650
|
+
if (tag !== 24) {
|
|
2651
|
+
break;
|
|
2652
|
+
}
|
|
2653
|
+
message.gcSocacheFileVersion = reader.uint32();
|
|
2654
|
+
continue;
|
|
2655
|
+
}
|
|
2656
|
+
}
|
|
2657
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2658
|
+
break;
|
|
2659
|
+
}
|
|
2660
|
+
reader.skip(tag & 7);
|
|
2661
|
+
}
|
|
2662
|
+
return message;
|
|
2663
|
+
},
|
|
2664
|
+
};
|
|
2665
|
+
function createBaseCMsgSerializedSOCache_TypeCache() {
|
|
2666
|
+
return { type: 0, objects: [], serviceId: 0 };
|
|
2667
|
+
}
|
|
2668
|
+
export const CMsgSerializedSOCache_TypeCache = {
|
|
2669
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2670
|
+
if (message.type !== undefined && message.type !== 0) {
|
|
2671
|
+
writer.uint32(8).uint32(message.type);
|
|
2672
|
+
}
|
|
2673
|
+
for (const v of message.objects) {
|
|
2674
|
+
writer.uint32(18).bytes(v);
|
|
2675
|
+
}
|
|
2676
|
+
if (message.serviceId !== undefined && message.serviceId !== 0) {
|
|
2677
|
+
writer.uint32(24).uint32(message.serviceId);
|
|
2678
|
+
}
|
|
2679
|
+
return writer;
|
|
2680
|
+
},
|
|
2681
|
+
decode(input, length) {
|
|
2682
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2683
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2684
|
+
const message = createBaseCMsgSerializedSOCache_TypeCache();
|
|
2685
|
+
while (reader.pos < end) {
|
|
2686
|
+
const tag = reader.uint32();
|
|
2687
|
+
switch (tag >>> 3) {
|
|
2688
|
+
case 1: {
|
|
2689
|
+
if (tag !== 8) {
|
|
2690
|
+
break;
|
|
2691
|
+
}
|
|
2692
|
+
message.type = reader.uint32();
|
|
2693
|
+
continue;
|
|
2694
|
+
}
|
|
2695
|
+
case 2: {
|
|
2696
|
+
if (tag !== 18) {
|
|
2697
|
+
break;
|
|
2698
|
+
}
|
|
2699
|
+
message.objects.push(reader.bytes());
|
|
2700
|
+
continue;
|
|
2701
|
+
}
|
|
2702
|
+
case 3: {
|
|
2703
|
+
if (tag !== 24) {
|
|
2704
|
+
break;
|
|
2705
|
+
}
|
|
2706
|
+
message.serviceId = reader.uint32();
|
|
2707
|
+
continue;
|
|
2708
|
+
}
|
|
2709
|
+
}
|
|
2710
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2711
|
+
break;
|
|
2712
|
+
}
|
|
2713
|
+
reader.skip(tag & 7);
|
|
2714
|
+
}
|
|
2715
|
+
return message;
|
|
2716
|
+
},
|
|
2717
|
+
};
|
|
2718
|
+
function createBaseCMsgSerializedSOCache_Cache() {
|
|
2719
|
+
return { type: 0, id: 0, versions: [], typeCaches: [] };
|
|
2720
|
+
}
|
|
2721
|
+
export const CMsgSerializedSOCache_Cache = {
|
|
2722
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2723
|
+
if (message.type !== undefined && message.type !== 0) {
|
|
2724
|
+
writer.uint32(8).uint32(message.type);
|
|
2725
|
+
}
|
|
2726
|
+
if (message.id !== undefined && message.id !== 0) {
|
|
2727
|
+
writer.uint32(16).uint64(message.id);
|
|
2728
|
+
}
|
|
2729
|
+
for (const v of message.versions) {
|
|
2730
|
+
CMsgSerializedSOCache_Cache_Version.encode(v, writer.uint32(26).fork()).join();
|
|
2731
|
+
}
|
|
2732
|
+
for (const v of message.typeCaches) {
|
|
2733
|
+
CMsgSerializedSOCache_TypeCache.encode(v, writer.uint32(34).fork()).join();
|
|
2734
|
+
}
|
|
2735
|
+
return writer;
|
|
2736
|
+
},
|
|
2737
|
+
decode(input, length) {
|
|
2738
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2739
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2740
|
+
const message = createBaseCMsgSerializedSOCache_Cache();
|
|
2741
|
+
while (reader.pos < end) {
|
|
2742
|
+
const tag = reader.uint32();
|
|
2743
|
+
switch (tag >>> 3) {
|
|
2744
|
+
case 1: {
|
|
2745
|
+
if (tag !== 8) {
|
|
2746
|
+
break;
|
|
2747
|
+
}
|
|
2748
|
+
message.type = reader.uint32();
|
|
2749
|
+
continue;
|
|
2750
|
+
}
|
|
2751
|
+
case 2: {
|
|
2752
|
+
if (tag !== 16) {
|
|
2753
|
+
break;
|
|
2754
|
+
}
|
|
2755
|
+
message.id = longToNumber(reader.uint64());
|
|
2756
|
+
continue;
|
|
2757
|
+
}
|
|
2758
|
+
case 3: {
|
|
2759
|
+
if (tag !== 26) {
|
|
2760
|
+
break;
|
|
2761
|
+
}
|
|
2762
|
+
message.versions.push(CMsgSerializedSOCache_Cache_Version.decode(reader, reader.uint32()));
|
|
2763
|
+
continue;
|
|
2764
|
+
}
|
|
2765
|
+
case 4: {
|
|
2766
|
+
if (tag !== 34) {
|
|
2767
|
+
break;
|
|
2768
|
+
}
|
|
2769
|
+
message.typeCaches.push(CMsgSerializedSOCache_TypeCache.decode(reader, reader.uint32()));
|
|
2770
|
+
continue;
|
|
2771
|
+
}
|
|
2772
|
+
}
|
|
2773
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2774
|
+
break;
|
|
2775
|
+
}
|
|
2776
|
+
reader.skip(tag & 7);
|
|
2777
|
+
}
|
|
2778
|
+
return message;
|
|
2779
|
+
},
|
|
2780
|
+
};
|
|
2781
|
+
function createBaseCMsgSerializedSOCache_Cache_Version() {
|
|
2782
|
+
return { service: 0, version: 0 };
|
|
2783
|
+
}
|
|
2784
|
+
export const CMsgSerializedSOCache_Cache_Version = {
|
|
2785
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2786
|
+
if (message.service !== undefined && message.service !== 0) {
|
|
2787
|
+
writer.uint32(8).uint32(message.service);
|
|
2788
|
+
}
|
|
2789
|
+
if (message.version !== undefined && message.version !== 0) {
|
|
2790
|
+
writer.uint32(16).uint64(message.version);
|
|
2791
|
+
}
|
|
2792
|
+
return writer;
|
|
2793
|
+
},
|
|
2794
|
+
decode(input, length) {
|
|
2795
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2796
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2797
|
+
const message = createBaseCMsgSerializedSOCache_Cache_Version();
|
|
2798
|
+
while (reader.pos < end) {
|
|
2799
|
+
const tag = reader.uint32();
|
|
2800
|
+
switch (tag >>> 3) {
|
|
2801
|
+
case 1: {
|
|
2802
|
+
if (tag !== 8) {
|
|
2803
|
+
break;
|
|
2804
|
+
}
|
|
2805
|
+
message.service = reader.uint32();
|
|
2806
|
+
continue;
|
|
2807
|
+
}
|
|
2808
|
+
case 2: {
|
|
2809
|
+
if (tag !== 16) {
|
|
2810
|
+
break;
|
|
2811
|
+
}
|
|
2812
|
+
message.version = longToNumber(reader.uint64());
|
|
2813
|
+
continue;
|
|
2814
|
+
}
|
|
2815
|
+
}
|
|
2816
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2817
|
+
break;
|
|
2818
|
+
}
|
|
2819
|
+
reader.skip(tag & 7);
|
|
2820
|
+
}
|
|
2821
|
+
return message;
|
|
2822
|
+
},
|
|
2823
|
+
};
|
|
2824
|
+
function longToNumber(int64) {
|
|
2825
|
+
const num = globalThis.Number(int64.toString());
|
|
2826
|
+
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
2827
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
2828
|
+
}
|
|
2829
|
+
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
2830
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
2831
|
+
}
|
|
2832
|
+
return num;
|
|
2833
|
+
}
|