moons-ta-client 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/package.json +40 -0
- package/rollup.config.mjs +16 -0
- package/scripts/esbuild.mjs +24 -0
- package/scripts/fixImports.mjs +44 -0
- package/src/client.ts +101 -0
- package/src/constants.ts +4 -0
- package/src/custom-event-emitter.ts +21 -0
- package/src/index.ts +4 -0
- package/src/models/commands.ts +303 -0
- package/src/models/discord.ts +214 -0
- package/src/models/events.ts +1176 -0
- package/src/models/index.ts +8 -0
- package/src/models/models.ts +2657 -0
- package/src/models/packets.ts +359 -0
- package/src/models/pushes.ts +290 -0
- package/src/models/requests.ts +4773 -0
- package/src/models/responses.ts +2184 -0
- package/src/scraper.ts +137 -0
- package/src/state-manager.ts +308 -0
- package/src/tournament-assistant-client.ts +1553 -0
- package/tsconfig.json +27 -0
|
@@ -0,0 +1,2657 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.8.2
|
|
2
|
+
// @generated from protobuf file "models.proto" (package "proto.models", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
6
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
7
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
8
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
9
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
10
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
11
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
|
+
import { MESSAGE_TYPE } from "@protobuf-ts/runtime";
|
|
13
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
14
|
+
import { Channel } from './discord.js';
|
|
15
|
+
/**
|
|
16
|
+
* @generated from protobuf message proto.models.Characteristic
|
|
17
|
+
*/
|
|
18
|
+
export interface Characteristic {
|
|
19
|
+
/**
|
|
20
|
+
* @generated from protobuf field: string serialized_name = 1;
|
|
21
|
+
*/
|
|
22
|
+
serializedName: string;
|
|
23
|
+
/**
|
|
24
|
+
* @generated from protobuf field: repeated int32 difficulties = 2;
|
|
25
|
+
*/
|
|
26
|
+
difficulties: number[];
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* @generated from protobuf message proto.models.Beatmap
|
|
30
|
+
*/
|
|
31
|
+
export interface Beatmap {
|
|
32
|
+
/**
|
|
33
|
+
* @generated from protobuf field: string name = 1;
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
* @generated from protobuf field: string level_id = 2;
|
|
38
|
+
*/
|
|
39
|
+
levelId: string;
|
|
40
|
+
/**
|
|
41
|
+
* @generated from protobuf field: proto.models.Characteristic characteristic = 3;
|
|
42
|
+
*/
|
|
43
|
+
characteristic?: Characteristic;
|
|
44
|
+
/**
|
|
45
|
+
* @generated from protobuf field: int32 difficulty = 4;
|
|
46
|
+
*/
|
|
47
|
+
difficulty: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @generated from protobuf message proto.models.GameplayModifiers
|
|
51
|
+
*/
|
|
52
|
+
export interface GameplayModifiers {
|
|
53
|
+
/**
|
|
54
|
+
* @generated from protobuf field: proto.models.GameplayModifiers.GameOptions options = 1;
|
|
55
|
+
*/
|
|
56
|
+
options: GameplayModifiers_GameOptions;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* @generated from protobuf enum proto.models.GameplayModifiers.GameOptions
|
|
60
|
+
*/
|
|
61
|
+
export enum GameplayModifiers_GameOptions {
|
|
62
|
+
/**
|
|
63
|
+
* @generated from protobuf enum value: None = 0;
|
|
64
|
+
*/
|
|
65
|
+
None = 0,
|
|
66
|
+
/**
|
|
67
|
+
* Negative modifiers
|
|
68
|
+
*
|
|
69
|
+
* @generated from protobuf enum value: NoFail = 1;
|
|
70
|
+
*/
|
|
71
|
+
NoFail = 1,
|
|
72
|
+
/**
|
|
73
|
+
* @generated from protobuf enum value: NoBombs = 2;
|
|
74
|
+
*/
|
|
75
|
+
NoBombs = 2,
|
|
76
|
+
/**
|
|
77
|
+
* @generated from protobuf enum value: NoArrows = 4;
|
|
78
|
+
*/
|
|
79
|
+
NoArrows = 4,
|
|
80
|
+
/**
|
|
81
|
+
* @generated from protobuf enum value: NoObstacles = 8;
|
|
82
|
+
*/
|
|
83
|
+
NoObstacles = 8,
|
|
84
|
+
/**
|
|
85
|
+
* @generated from protobuf enum value: SlowSong = 16;
|
|
86
|
+
*/
|
|
87
|
+
SlowSong = 16,
|
|
88
|
+
/**
|
|
89
|
+
* Positive Modifiers
|
|
90
|
+
*
|
|
91
|
+
* @generated from protobuf enum value: InstaFail = 32;
|
|
92
|
+
*/
|
|
93
|
+
InstaFail = 32,
|
|
94
|
+
/**
|
|
95
|
+
* @generated from protobuf enum value: FailOnClash = 64;
|
|
96
|
+
*/
|
|
97
|
+
FailOnClash = 64,
|
|
98
|
+
/**
|
|
99
|
+
* @generated from protobuf enum value: BatteryEnergy = 128;
|
|
100
|
+
*/
|
|
101
|
+
BatteryEnergy = 128,
|
|
102
|
+
/**
|
|
103
|
+
* @generated from protobuf enum value: FastNotes = 256;
|
|
104
|
+
*/
|
|
105
|
+
FastNotes = 256,
|
|
106
|
+
/**
|
|
107
|
+
* @generated from protobuf enum value: FastSong = 512;
|
|
108
|
+
*/
|
|
109
|
+
FastSong = 512,
|
|
110
|
+
/**
|
|
111
|
+
* @generated from protobuf enum value: DisappearingArrows = 1024;
|
|
112
|
+
*/
|
|
113
|
+
DisappearingArrows = 1024,
|
|
114
|
+
/**
|
|
115
|
+
* @generated from protobuf enum value: GhostNotes = 2048;
|
|
116
|
+
*/
|
|
117
|
+
GhostNotes = 2048,
|
|
118
|
+
/**
|
|
119
|
+
* 1.12.2 Additions
|
|
120
|
+
*
|
|
121
|
+
* @generated from protobuf enum value: DemoNoFail = 4096;
|
|
122
|
+
*/
|
|
123
|
+
DemoNoFail = 4096,
|
|
124
|
+
/**
|
|
125
|
+
* @generated from protobuf enum value: DemoNoObstacles = 8192;
|
|
126
|
+
*/
|
|
127
|
+
DemoNoObstacles = 8192,
|
|
128
|
+
/**
|
|
129
|
+
* @generated from protobuf enum value: StrictAngles = 16384;
|
|
130
|
+
*/
|
|
131
|
+
StrictAngles = 16384,
|
|
132
|
+
/**
|
|
133
|
+
* 1.13.4 Additions
|
|
134
|
+
*
|
|
135
|
+
* @generated from protobuf enum value: ProMode = 32768;
|
|
136
|
+
*/
|
|
137
|
+
ProMode = 32768,
|
|
138
|
+
/**
|
|
139
|
+
* @generated from protobuf enum value: ZenMode = 65536;
|
|
140
|
+
*/
|
|
141
|
+
ZenMode = 65536,
|
|
142
|
+
/**
|
|
143
|
+
* @generated from protobuf enum value: SmallCubes = 131072;
|
|
144
|
+
*/
|
|
145
|
+
SmallCubes = 131072,
|
|
146
|
+
/**
|
|
147
|
+
* @generated from protobuf enum value: SuperFastSong = 262144;
|
|
148
|
+
*/
|
|
149
|
+
SuperFastSong = 262144
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* @generated from protobuf message proto.models.PlayerSpecificSettings
|
|
153
|
+
*/
|
|
154
|
+
export interface PlayerSpecificSettings {
|
|
155
|
+
/**
|
|
156
|
+
* @generated from protobuf field: float player_height = 1;
|
|
157
|
+
*/
|
|
158
|
+
playerHeight: number;
|
|
159
|
+
/**
|
|
160
|
+
* @generated from protobuf field: float sfx_volume = 2;
|
|
161
|
+
*/
|
|
162
|
+
sfxVolume: number;
|
|
163
|
+
/**
|
|
164
|
+
* @generated from protobuf field: float saber_trail_intensity = 3;
|
|
165
|
+
*/
|
|
166
|
+
saberTrailIntensity: number;
|
|
167
|
+
/**
|
|
168
|
+
* @generated from protobuf field: float note_jump_start_beat_offset = 4;
|
|
169
|
+
*/
|
|
170
|
+
noteJumpStartBeatOffset: number;
|
|
171
|
+
/**
|
|
172
|
+
* @generated from protobuf field: float note_jump_fixed_duration = 5;
|
|
173
|
+
*/
|
|
174
|
+
noteJumpFixedDuration: number;
|
|
175
|
+
/**
|
|
176
|
+
* @generated from protobuf field: proto.models.PlayerSpecificSettings.PlayerOptions options = 6;
|
|
177
|
+
*/
|
|
178
|
+
options: PlayerSpecificSettings_PlayerOptions;
|
|
179
|
+
/**
|
|
180
|
+
* @generated from protobuf field: proto.models.PlayerSpecificSettings.NoteJumpDurationTypeSettings note_jump_duration_type_settings = 7;
|
|
181
|
+
*/
|
|
182
|
+
noteJumpDurationTypeSettings: PlayerSpecificSettings_NoteJumpDurationTypeSettings;
|
|
183
|
+
/**
|
|
184
|
+
* @generated from protobuf field: proto.models.PlayerSpecificSettings.ArcVisibilityType arc_visibility_type = 8;
|
|
185
|
+
*/
|
|
186
|
+
arcVisibilityType: PlayerSpecificSettings_ArcVisibilityType;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* @generated from protobuf enum proto.models.PlayerSpecificSettings.PlayerOptions
|
|
190
|
+
*/
|
|
191
|
+
export enum PlayerSpecificSettings_PlayerOptions {
|
|
192
|
+
/**
|
|
193
|
+
* @generated from protobuf enum value: NoPlayerOptions = 0;
|
|
194
|
+
*/
|
|
195
|
+
NoPlayerOptions = 0,
|
|
196
|
+
/**
|
|
197
|
+
* @generated from protobuf enum value: LeftHanded = 1;
|
|
198
|
+
*/
|
|
199
|
+
LeftHanded = 1,
|
|
200
|
+
/**
|
|
201
|
+
* @generated from protobuf enum value: StaticLights = 2;
|
|
202
|
+
*/
|
|
203
|
+
StaticLights = 2,
|
|
204
|
+
/**
|
|
205
|
+
* @generated from protobuf enum value: NoHud = 4;
|
|
206
|
+
*/
|
|
207
|
+
NoHud = 4,
|
|
208
|
+
/**
|
|
209
|
+
* @generated from protobuf enum value: AdvancedHud = 8;
|
|
210
|
+
*/
|
|
211
|
+
AdvancedHud = 8,
|
|
212
|
+
/**
|
|
213
|
+
* @generated from protobuf enum value: ReduceDebris = 16;
|
|
214
|
+
*/
|
|
215
|
+
ReduceDebris = 16,
|
|
216
|
+
/**
|
|
217
|
+
* @generated from protobuf enum value: AutoPlayerHeight = 32;
|
|
218
|
+
*/
|
|
219
|
+
AutoPlayerHeight = 32,
|
|
220
|
+
/**
|
|
221
|
+
* @generated from protobuf enum value: NoFailEffects = 64;
|
|
222
|
+
*/
|
|
223
|
+
NoFailEffects = 64,
|
|
224
|
+
/**
|
|
225
|
+
* @generated from protobuf enum value: AutoRestart = 128;
|
|
226
|
+
*/
|
|
227
|
+
AutoRestart = 128,
|
|
228
|
+
/**
|
|
229
|
+
* @generated from protobuf enum value: HideNoteSpawnEffect = 256;
|
|
230
|
+
*/
|
|
231
|
+
HideNoteSpawnEffect = 256,
|
|
232
|
+
/**
|
|
233
|
+
* @generated from protobuf enum value: AdaptiveSfx = 512;
|
|
234
|
+
*/
|
|
235
|
+
AdaptiveSfx = 512,
|
|
236
|
+
/**
|
|
237
|
+
* @generated from protobuf enum value: ArcsHapticFeedback = 1024;
|
|
238
|
+
*/
|
|
239
|
+
ArcsHapticFeedback = 1024
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* @generated from protobuf enum proto.models.PlayerSpecificSettings.NoteJumpDurationTypeSettings
|
|
243
|
+
*/
|
|
244
|
+
export enum PlayerSpecificSettings_NoteJumpDurationTypeSettings {
|
|
245
|
+
/**
|
|
246
|
+
* @generated from protobuf enum value: Dynamic = 0;
|
|
247
|
+
*/
|
|
248
|
+
Dynamic = 0,
|
|
249
|
+
/**
|
|
250
|
+
* @generated from protobuf enum value: Static = 1;
|
|
251
|
+
*/
|
|
252
|
+
Static = 1
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* @generated from protobuf enum proto.models.PlayerSpecificSettings.ArcVisibilityType
|
|
256
|
+
*/
|
|
257
|
+
export enum PlayerSpecificSettings_ArcVisibilityType {
|
|
258
|
+
/**
|
|
259
|
+
* @generated from protobuf enum value: None = 0;
|
|
260
|
+
*/
|
|
261
|
+
None = 0,
|
|
262
|
+
/**
|
|
263
|
+
* @generated from protobuf enum value: Low = 1;
|
|
264
|
+
*/
|
|
265
|
+
Low = 1,
|
|
266
|
+
/**
|
|
267
|
+
* @generated from protobuf enum value: Standard = 2;
|
|
268
|
+
*/
|
|
269
|
+
Standard = 2,
|
|
270
|
+
/**
|
|
271
|
+
* @generated from protobuf enum value: High = 3;
|
|
272
|
+
*/
|
|
273
|
+
High = 3
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* @generated from protobuf message proto.models.GameplayParameters
|
|
277
|
+
*/
|
|
278
|
+
export interface GameplayParameters {
|
|
279
|
+
/**
|
|
280
|
+
* @generated from protobuf field: proto.models.Beatmap beatmap = 1;
|
|
281
|
+
*/
|
|
282
|
+
beatmap?: Beatmap;
|
|
283
|
+
/**
|
|
284
|
+
* @generated from protobuf field: proto.models.PlayerSpecificSettings player_settings = 2;
|
|
285
|
+
*/
|
|
286
|
+
playerSettings?: PlayerSpecificSettings;
|
|
287
|
+
/**
|
|
288
|
+
* @generated from protobuf field: proto.models.GameplayModifiers gameplay_modifiers = 3;
|
|
289
|
+
*/
|
|
290
|
+
gameplayModifiers?: GameplayModifiers;
|
|
291
|
+
/**
|
|
292
|
+
* @generated from protobuf field: int32 attempts = 4;
|
|
293
|
+
*/
|
|
294
|
+
attempts: number; // Qualifiers only
|
|
295
|
+
/**
|
|
296
|
+
* @generated from protobuf field: bool show_scoreboard = 5;
|
|
297
|
+
*/
|
|
298
|
+
showScoreboard: boolean;
|
|
299
|
+
/**
|
|
300
|
+
* @generated from protobuf field: bool disable_pause = 6;
|
|
301
|
+
*/
|
|
302
|
+
disablePause: boolean;
|
|
303
|
+
/**
|
|
304
|
+
* @generated from protobuf field: bool disable_fail = 7;
|
|
305
|
+
*/
|
|
306
|
+
disableFail: boolean;
|
|
307
|
+
/**
|
|
308
|
+
* @generated from protobuf field: bool disable_scoresaber_submission = 8;
|
|
309
|
+
*/
|
|
310
|
+
disableScoresaberSubmission: boolean;
|
|
311
|
+
/**
|
|
312
|
+
* @generated from protobuf field: bool disable_custom_notes_on_stream = 9;
|
|
313
|
+
*/
|
|
314
|
+
disableCustomNotesOnStream: boolean;
|
|
315
|
+
/**
|
|
316
|
+
* @generated from protobuf field: bool use_sync = 10;
|
|
317
|
+
*/
|
|
318
|
+
useSync: boolean;
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* @generated from protobuf message proto.models.Map
|
|
322
|
+
*/
|
|
323
|
+
export interface Map {
|
|
324
|
+
/**
|
|
325
|
+
* @generated from protobuf field: string guid = 1;
|
|
326
|
+
*/
|
|
327
|
+
guid: string;
|
|
328
|
+
/**
|
|
329
|
+
* @generated from protobuf field: proto.models.GameplayParameters gameplay_parameters = 2;
|
|
330
|
+
*/
|
|
331
|
+
gameplayParameters?: GameplayParameters;
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* @generated from protobuf message proto.models.User
|
|
335
|
+
*/
|
|
336
|
+
export interface User {
|
|
337
|
+
/**
|
|
338
|
+
* @generated from protobuf field: string guid = 1;
|
|
339
|
+
*/
|
|
340
|
+
guid: string;
|
|
341
|
+
/**
|
|
342
|
+
* @generated from protobuf field: string name = 2;
|
|
343
|
+
*/
|
|
344
|
+
name: string;
|
|
345
|
+
/**
|
|
346
|
+
* @generated from protobuf field: string platform_id = 3;
|
|
347
|
+
*/
|
|
348
|
+
platformId: string;
|
|
349
|
+
/**
|
|
350
|
+
* @generated from protobuf field: proto.models.User.ClientTypes client_type = 4;
|
|
351
|
+
*/
|
|
352
|
+
clientType: User_ClientTypes;
|
|
353
|
+
/**
|
|
354
|
+
* @generated from protobuf field: string team_id = 5;
|
|
355
|
+
*/
|
|
356
|
+
teamId: string;
|
|
357
|
+
/**
|
|
358
|
+
* @generated from protobuf field: proto.models.User.PlayStates play_state = 6;
|
|
359
|
+
*/
|
|
360
|
+
playState: User_PlayStates;
|
|
361
|
+
/**
|
|
362
|
+
* @generated from protobuf field: proto.models.User.DownloadStates download_state = 7;
|
|
363
|
+
*/
|
|
364
|
+
downloadState: User_DownloadStates;
|
|
365
|
+
/**
|
|
366
|
+
* @generated from protobuf field: repeated string mod_list = 8;
|
|
367
|
+
*/
|
|
368
|
+
modList: string[];
|
|
369
|
+
/**
|
|
370
|
+
* @generated from protobuf field: proto.models.User.Point stream_screen_coordinates = 9;
|
|
371
|
+
*/
|
|
372
|
+
streamScreenCoordinates?: User_Point;
|
|
373
|
+
/**
|
|
374
|
+
* @generated from protobuf field: int64 stream_delay_ms = 10;
|
|
375
|
+
*/
|
|
376
|
+
streamDelayMs: bigint;
|
|
377
|
+
/**
|
|
378
|
+
* @generated from protobuf field: int64 stream_sync_start_ms = 11;
|
|
379
|
+
*/
|
|
380
|
+
streamSyncStartMs: bigint;
|
|
381
|
+
/**
|
|
382
|
+
* @generated from protobuf field: proto.models.User.DiscordInfo discord_info = 12;
|
|
383
|
+
*/
|
|
384
|
+
discordInfo?: User_DiscordInfo;
|
|
385
|
+
/**
|
|
386
|
+
* @generated from protobuf field: bytes user_image = 13;
|
|
387
|
+
*/
|
|
388
|
+
userImage: Uint8Array;
|
|
389
|
+
/**
|
|
390
|
+
* @generated from protobuf field: proto.models.Permissions permissions = 14;
|
|
391
|
+
*/
|
|
392
|
+
permissions: Permissions;
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* @generated from protobuf message proto.models.User.DiscordInfo
|
|
396
|
+
*/
|
|
397
|
+
export interface User_DiscordInfo {
|
|
398
|
+
/**
|
|
399
|
+
* @generated from protobuf field: string user_id = 1;
|
|
400
|
+
*/
|
|
401
|
+
userId: string;
|
|
402
|
+
/**
|
|
403
|
+
* @generated from protobuf field: string username = 2;
|
|
404
|
+
*/
|
|
405
|
+
username: string;
|
|
406
|
+
/**
|
|
407
|
+
* @generated from protobuf field: string avatar_url = 3;
|
|
408
|
+
*/
|
|
409
|
+
avatarUrl: string;
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* @generated from protobuf message proto.models.User.Point
|
|
413
|
+
*/
|
|
414
|
+
export interface User_Point {
|
|
415
|
+
/**
|
|
416
|
+
* @generated from protobuf field: int32 x = 1;
|
|
417
|
+
*/
|
|
418
|
+
x: number;
|
|
419
|
+
/**
|
|
420
|
+
* @generated from protobuf field: int32 y = 2;
|
|
421
|
+
*/
|
|
422
|
+
y: number;
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
* @generated from protobuf enum proto.models.User.PlayStates
|
|
426
|
+
*/
|
|
427
|
+
export enum User_PlayStates {
|
|
428
|
+
/**
|
|
429
|
+
* @generated from protobuf enum value: InMenu = 0;
|
|
430
|
+
*/
|
|
431
|
+
InMenu = 0,
|
|
432
|
+
/**
|
|
433
|
+
* @generated from protobuf enum value: WaitingForCoordinator = 1;
|
|
434
|
+
*/
|
|
435
|
+
WaitingForCoordinator = 1,
|
|
436
|
+
/**
|
|
437
|
+
* @generated from protobuf enum value: InGame = 2;
|
|
438
|
+
*/
|
|
439
|
+
InGame = 2
|
|
440
|
+
}
|
|
441
|
+
/**
|
|
442
|
+
* @generated from protobuf enum proto.models.User.DownloadStates
|
|
443
|
+
*/
|
|
444
|
+
export enum User_DownloadStates {
|
|
445
|
+
/**
|
|
446
|
+
* @generated from protobuf enum value: None = 0;
|
|
447
|
+
*/
|
|
448
|
+
None = 0,
|
|
449
|
+
/**
|
|
450
|
+
* @generated from protobuf enum value: Downloading = 1;
|
|
451
|
+
*/
|
|
452
|
+
Downloading = 1,
|
|
453
|
+
/**
|
|
454
|
+
* @generated from protobuf enum value: Downloaded = 2;
|
|
455
|
+
*/
|
|
456
|
+
Downloaded = 2,
|
|
457
|
+
/**
|
|
458
|
+
* @generated from protobuf enum value: DownloadError = 3;
|
|
459
|
+
*/
|
|
460
|
+
DownloadError = 3
|
|
461
|
+
}
|
|
462
|
+
/**
|
|
463
|
+
* @generated from protobuf enum proto.models.User.ClientTypes
|
|
464
|
+
*/
|
|
465
|
+
export enum User_ClientTypes {
|
|
466
|
+
/**
|
|
467
|
+
* @generated from protobuf enum value: Player = 0;
|
|
468
|
+
*/
|
|
469
|
+
Player = 0,
|
|
470
|
+
/**
|
|
471
|
+
* @generated from protobuf enum value: WebsocketConnection = 1;
|
|
472
|
+
*/
|
|
473
|
+
WebsocketConnection = 1
|
|
474
|
+
}
|
|
475
|
+
/**
|
|
476
|
+
* @generated from protobuf message proto.models.Match
|
|
477
|
+
*/
|
|
478
|
+
export interface Match {
|
|
479
|
+
/**
|
|
480
|
+
* @generated from protobuf field: string guid = 1;
|
|
481
|
+
*/
|
|
482
|
+
guid: string;
|
|
483
|
+
/**
|
|
484
|
+
* @generated from protobuf field: repeated string associated_users = 2;
|
|
485
|
+
*/
|
|
486
|
+
associatedUsers: string[];
|
|
487
|
+
/**
|
|
488
|
+
* @generated from protobuf field: string leader = 3;
|
|
489
|
+
*/
|
|
490
|
+
leader: string;
|
|
491
|
+
/**
|
|
492
|
+
* @generated from protobuf field: proto.models.Map selected_map = 4;
|
|
493
|
+
*/
|
|
494
|
+
selectedMap?: Map;
|
|
495
|
+
}
|
|
496
|
+
/**
|
|
497
|
+
* @generated from protobuf message proto.models.QualifierEvent
|
|
498
|
+
*/
|
|
499
|
+
export interface QualifierEvent {
|
|
500
|
+
/**
|
|
501
|
+
* @generated from protobuf field: string guid = 1;
|
|
502
|
+
*/
|
|
503
|
+
guid: string;
|
|
504
|
+
/**
|
|
505
|
+
* @generated from protobuf field: string name = 2;
|
|
506
|
+
*/
|
|
507
|
+
name: string;
|
|
508
|
+
/**
|
|
509
|
+
* @generated from protobuf field: bytes image = 3;
|
|
510
|
+
*/
|
|
511
|
+
image: Uint8Array;
|
|
512
|
+
/**
|
|
513
|
+
* @generated from protobuf field: proto.discord.Channel info_channel = 4;
|
|
514
|
+
*/
|
|
515
|
+
infoChannel?: Channel;
|
|
516
|
+
/**
|
|
517
|
+
* @generated from protobuf field: repeated proto.models.Map qualifier_maps = 5;
|
|
518
|
+
*/
|
|
519
|
+
qualifierMaps: Map[];
|
|
520
|
+
/**
|
|
521
|
+
* @generated from protobuf field: proto.models.QualifierEvent.EventSettings flags = 6;
|
|
522
|
+
*/
|
|
523
|
+
flags: QualifierEvent_EventSettings;
|
|
524
|
+
/**
|
|
525
|
+
* @generated from protobuf field: proto.models.QualifierEvent.LeaderboardSort sort = 7;
|
|
526
|
+
*/
|
|
527
|
+
sort: QualifierEvent_LeaderboardSort;
|
|
528
|
+
}
|
|
529
|
+
/**
|
|
530
|
+
* @generated from protobuf enum proto.models.QualifierEvent.EventSettings
|
|
531
|
+
*/
|
|
532
|
+
export enum QualifierEvent_EventSettings {
|
|
533
|
+
/**
|
|
534
|
+
* @generated from protobuf enum value: None = 0;
|
|
535
|
+
*/
|
|
536
|
+
None = 0,
|
|
537
|
+
/**
|
|
538
|
+
* @generated from protobuf enum value: HideScoresFromPlayers = 1;
|
|
539
|
+
*/
|
|
540
|
+
HideScoresFromPlayers = 1,
|
|
541
|
+
/**
|
|
542
|
+
* @generated from protobuf enum value: DisableScoresaberSubmission = 2;
|
|
543
|
+
*/
|
|
544
|
+
DisableScoresaberSubmission = 2,
|
|
545
|
+
/**
|
|
546
|
+
* @generated from protobuf enum value: EnableDiscordScoreFeed = 4;
|
|
547
|
+
*/
|
|
548
|
+
EnableDiscordScoreFeed = 4,
|
|
549
|
+
/**
|
|
550
|
+
* @generated from protobuf enum value: EnableDiscordLeaderboard = 8;
|
|
551
|
+
*/
|
|
552
|
+
EnableDiscordLeaderboard = 8
|
|
553
|
+
}
|
|
554
|
+
/**
|
|
555
|
+
* @generated from protobuf enum proto.models.QualifierEvent.LeaderboardSort
|
|
556
|
+
*/
|
|
557
|
+
export enum QualifierEvent_LeaderboardSort {
|
|
558
|
+
/**
|
|
559
|
+
* @generated from protobuf enum value: ModifiedScore = 0;
|
|
560
|
+
*/
|
|
561
|
+
ModifiedScore = 0,
|
|
562
|
+
/**
|
|
563
|
+
* @generated from protobuf enum value: ModifiedScoreAscending = 1;
|
|
564
|
+
*/
|
|
565
|
+
ModifiedScoreAscending = 1,
|
|
566
|
+
/**
|
|
567
|
+
* @generated from protobuf enum value: NotesMissed = 2;
|
|
568
|
+
*/
|
|
569
|
+
NotesMissed = 2,
|
|
570
|
+
/**
|
|
571
|
+
* @generated from protobuf enum value: NotesMissedAscending = 3;
|
|
572
|
+
*/
|
|
573
|
+
NotesMissedAscending = 3,
|
|
574
|
+
/**
|
|
575
|
+
* @generated from protobuf enum value: BadCuts = 4;
|
|
576
|
+
*/
|
|
577
|
+
BadCuts = 4,
|
|
578
|
+
/**
|
|
579
|
+
* @generated from protobuf enum value: BadCutsAscending = 5;
|
|
580
|
+
*/
|
|
581
|
+
BadCutsAscending = 5,
|
|
582
|
+
/**
|
|
583
|
+
* @generated from protobuf enum value: MaxCombo = 6;
|
|
584
|
+
*/
|
|
585
|
+
MaxCombo = 6,
|
|
586
|
+
/**
|
|
587
|
+
* @generated from protobuf enum value: MaxComboAscending = 7;
|
|
588
|
+
*/
|
|
589
|
+
MaxComboAscending = 7,
|
|
590
|
+
/**
|
|
591
|
+
* @generated from protobuf enum value: GoodCuts = 8;
|
|
592
|
+
*/
|
|
593
|
+
GoodCuts = 8,
|
|
594
|
+
/**
|
|
595
|
+
* @generated from protobuf enum value: GoodCutsAscending = 9;
|
|
596
|
+
*/
|
|
597
|
+
GoodCutsAscending = 9
|
|
598
|
+
}
|
|
599
|
+
/**
|
|
600
|
+
* @generated from protobuf message proto.models.CoreServer
|
|
601
|
+
*/
|
|
602
|
+
export interface CoreServer {
|
|
603
|
+
/**
|
|
604
|
+
* @generated from protobuf field: string name = 1;
|
|
605
|
+
*/
|
|
606
|
+
name: string;
|
|
607
|
+
/**
|
|
608
|
+
* @generated from protobuf field: string address = 2;
|
|
609
|
+
*/
|
|
610
|
+
address: string;
|
|
611
|
+
/**
|
|
612
|
+
* @generated from protobuf field: int32 port = 3;
|
|
613
|
+
*/
|
|
614
|
+
port: number;
|
|
615
|
+
/**
|
|
616
|
+
* @generated from protobuf field: int32 websocket_port = 4;
|
|
617
|
+
*/
|
|
618
|
+
websocketPort: number;
|
|
619
|
+
}
|
|
620
|
+
/**
|
|
621
|
+
* @generated from protobuf message proto.models.Tournament
|
|
622
|
+
*/
|
|
623
|
+
export interface Tournament {
|
|
624
|
+
/**
|
|
625
|
+
* @generated from protobuf field: string guid = 1;
|
|
626
|
+
*/
|
|
627
|
+
guid: string;
|
|
628
|
+
/**
|
|
629
|
+
* @generated from protobuf field: proto.models.Tournament.TournamentSettings settings = 2;
|
|
630
|
+
*/
|
|
631
|
+
settings?: Tournament_TournamentSettings;
|
|
632
|
+
/**
|
|
633
|
+
* @generated from protobuf field: repeated proto.models.User users = 3;
|
|
634
|
+
*/
|
|
635
|
+
users: User[];
|
|
636
|
+
/**
|
|
637
|
+
* @generated from protobuf field: repeated proto.models.Match matches = 4;
|
|
638
|
+
*/
|
|
639
|
+
matches: Match[];
|
|
640
|
+
/**
|
|
641
|
+
* @generated from protobuf field: repeated proto.models.QualifierEvent qualifiers = 5;
|
|
642
|
+
*/
|
|
643
|
+
qualifiers: QualifierEvent[];
|
|
644
|
+
/**
|
|
645
|
+
* @generated from protobuf field: proto.models.CoreServer server = 6;
|
|
646
|
+
*/
|
|
647
|
+
server?: CoreServer;
|
|
648
|
+
}
|
|
649
|
+
/**
|
|
650
|
+
* @generated from protobuf message proto.models.Tournament.TournamentSettings
|
|
651
|
+
*/
|
|
652
|
+
export interface Tournament_TournamentSettings {
|
|
653
|
+
/**
|
|
654
|
+
* @generated from protobuf field: string tournament_name = 1;
|
|
655
|
+
*/
|
|
656
|
+
tournamentName: string;
|
|
657
|
+
/**
|
|
658
|
+
* @generated from protobuf field: bytes tournament_image = 2;
|
|
659
|
+
*/
|
|
660
|
+
tournamentImage: Uint8Array;
|
|
661
|
+
/**
|
|
662
|
+
* @generated from protobuf field: bool enable_teams = 3;
|
|
663
|
+
*/
|
|
664
|
+
enableTeams: boolean;
|
|
665
|
+
/**
|
|
666
|
+
* @generated from protobuf field: bool enable_pools = 4;
|
|
667
|
+
*/
|
|
668
|
+
enablePools: boolean;
|
|
669
|
+
/**
|
|
670
|
+
* @generated from protobuf field: repeated proto.models.Tournament.TournamentSettings.Team teams = 5;
|
|
671
|
+
*/
|
|
672
|
+
teams: Tournament_TournamentSettings_Team[];
|
|
673
|
+
/**
|
|
674
|
+
* @generated from protobuf field: int32 score_update_frequency = 6;
|
|
675
|
+
*/
|
|
676
|
+
scoreUpdateFrequency: number;
|
|
677
|
+
/**
|
|
678
|
+
* @generated from protobuf field: repeated string banned_mods = 7;
|
|
679
|
+
*/
|
|
680
|
+
bannedMods: string[];
|
|
681
|
+
/**
|
|
682
|
+
* @generated from protobuf field: repeated proto.models.Tournament.TournamentSettings.Pool pools = 8;
|
|
683
|
+
*/
|
|
684
|
+
pools: Tournament_TournamentSettings_Pool[];
|
|
685
|
+
/**
|
|
686
|
+
* @generated from protobuf field: bool show_tournament_button = 9;
|
|
687
|
+
*/
|
|
688
|
+
showTournamentButton: boolean;
|
|
689
|
+
/**
|
|
690
|
+
* @generated from protobuf field: bool show_qualifier_button = 10;
|
|
691
|
+
*/
|
|
692
|
+
showQualifierButton: boolean;
|
|
693
|
+
/**
|
|
694
|
+
* @generated from protobuf field: bool allow_unauthorized_view = 11;
|
|
695
|
+
*/
|
|
696
|
+
allowUnauthorizedView: boolean;
|
|
697
|
+
}
|
|
698
|
+
/**
|
|
699
|
+
* @generated from protobuf message proto.models.Tournament.TournamentSettings.Pool
|
|
700
|
+
*/
|
|
701
|
+
export interface Tournament_TournamentSettings_Pool {
|
|
702
|
+
/**
|
|
703
|
+
* @generated from protobuf field: string guid = 1;
|
|
704
|
+
*/
|
|
705
|
+
guid: string;
|
|
706
|
+
/**
|
|
707
|
+
* @generated from protobuf field: string name = 2;
|
|
708
|
+
*/
|
|
709
|
+
name: string;
|
|
710
|
+
/**
|
|
711
|
+
* @generated from protobuf field: bytes image = 3;
|
|
712
|
+
*/
|
|
713
|
+
image: Uint8Array;
|
|
714
|
+
/**
|
|
715
|
+
* @generated from protobuf field: repeated proto.models.Map maps = 4;
|
|
716
|
+
*/
|
|
717
|
+
maps: Map[];
|
|
718
|
+
}
|
|
719
|
+
/**
|
|
720
|
+
* @generated from protobuf message proto.models.Tournament.TournamentSettings.Team
|
|
721
|
+
*/
|
|
722
|
+
export interface Tournament_TournamentSettings_Team {
|
|
723
|
+
/**
|
|
724
|
+
* @generated from protobuf field: string guid = 1;
|
|
725
|
+
*/
|
|
726
|
+
guid: string;
|
|
727
|
+
/**
|
|
728
|
+
* @generated from protobuf field: string name = 2;
|
|
729
|
+
*/
|
|
730
|
+
name: string;
|
|
731
|
+
/**
|
|
732
|
+
* @generated from protobuf field: bytes image = 3;
|
|
733
|
+
*/
|
|
734
|
+
image: Uint8Array;
|
|
735
|
+
}
|
|
736
|
+
/**
|
|
737
|
+
* @generated from protobuf message proto.models.State
|
|
738
|
+
*/
|
|
739
|
+
export interface State {
|
|
740
|
+
/**
|
|
741
|
+
* @generated from protobuf field: repeated proto.models.Tournament tournaments = 1;
|
|
742
|
+
*/
|
|
743
|
+
tournaments: Tournament[];
|
|
744
|
+
/**
|
|
745
|
+
* @generated from protobuf field: repeated proto.models.CoreServer known_servers = 2;
|
|
746
|
+
*/
|
|
747
|
+
knownServers: CoreServer[];
|
|
748
|
+
}
|
|
749
|
+
/**
|
|
750
|
+
* @generated from protobuf message proto.models.ModalOption
|
|
751
|
+
*/
|
|
752
|
+
export interface ModalOption {
|
|
753
|
+
/**
|
|
754
|
+
* @generated from protobuf field: string label = 1;
|
|
755
|
+
*/
|
|
756
|
+
label: string;
|
|
757
|
+
/**
|
|
758
|
+
* @generated from protobuf field: string value = 2;
|
|
759
|
+
*/
|
|
760
|
+
value: string;
|
|
761
|
+
}
|
|
762
|
+
/**
|
|
763
|
+
* @generated from protobuf message proto.models.LeaderboardEntry
|
|
764
|
+
*/
|
|
765
|
+
export interface LeaderboardEntry {
|
|
766
|
+
/**
|
|
767
|
+
* @generated from protobuf field: string event_id = 1;
|
|
768
|
+
*/
|
|
769
|
+
eventId: string;
|
|
770
|
+
/**
|
|
771
|
+
* @generated from protobuf field: string map_id = 2;
|
|
772
|
+
*/
|
|
773
|
+
mapId: string;
|
|
774
|
+
/**
|
|
775
|
+
* @generated from protobuf field: string platform_id = 3;
|
|
776
|
+
*/
|
|
777
|
+
platformId: string;
|
|
778
|
+
/**
|
|
779
|
+
* @generated from protobuf field: string username = 4;
|
|
780
|
+
*/
|
|
781
|
+
username: string;
|
|
782
|
+
/**
|
|
783
|
+
* @generated from protobuf field: int32 multiplied_score = 5;
|
|
784
|
+
*/
|
|
785
|
+
multipliedScore: number;
|
|
786
|
+
/**
|
|
787
|
+
* @generated from protobuf field: int32 modified_score = 6;
|
|
788
|
+
*/
|
|
789
|
+
modifiedScore: number;
|
|
790
|
+
/**
|
|
791
|
+
* @generated from protobuf field: int32 max_possible_score = 7;
|
|
792
|
+
*/
|
|
793
|
+
maxPossibleScore: number;
|
|
794
|
+
/**
|
|
795
|
+
* @generated from protobuf field: double accuracy = 8;
|
|
796
|
+
*/
|
|
797
|
+
accuracy: number;
|
|
798
|
+
/**
|
|
799
|
+
* @generated from protobuf field: int32 notes_missed = 9;
|
|
800
|
+
*/
|
|
801
|
+
notesMissed: number;
|
|
802
|
+
/**
|
|
803
|
+
* @generated from protobuf field: int32 bad_cuts = 10;
|
|
804
|
+
*/
|
|
805
|
+
badCuts: number;
|
|
806
|
+
/**
|
|
807
|
+
* @generated from protobuf field: int32 good_cuts = 11;
|
|
808
|
+
*/
|
|
809
|
+
goodCuts: number;
|
|
810
|
+
/**
|
|
811
|
+
* @generated from protobuf field: int32 max_combo = 12;
|
|
812
|
+
*/
|
|
813
|
+
maxCombo: number;
|
|
814
|
+
/**
|
|
815
|
+
* @generated from protobuf field: bool full_combo = 13;
|
|
816
|
+
*/
|
|
817
|
+
fullCombo: boolean;
|
|
818
|
+
/**
|
|
819
|
+
* @generated from protobuf field: bool is_placeholder = 14;
|
|
820
|
+
*/
|
|
821
|
+
isPlaceholder: boolean;
|
|
822
|
+
/**
|
|
823
|
+
* @generated from protobuf field: string color = 15;
|
|
824
|
+
*/
|
|
825
|
+
color: string;
|
|
826
|
+
}
|
|
827
|
+
/**
|
|
828
|
+
* @generated from protobuf message proto.models.RealtimeScore
|
|
829
|
+
*/
|
|
830
|
+
export interface RealtimeScore {
|
|
831
|
+
/**
|
|
832
|
+
* @generated from protobuf field: string user_guid = 1;
|
|
833
|
+
*/
|
|
834
|
+
userGuid: string;
|
|
835
|
+
/**
|
|
836
|
+
* @generated from protobuf field: int32 score = 2;
|
|
837
|
+
*/
|
|
838
|
+
score: number;
|
|
839
|
+
/**
|
|
840
|
+
* @generated from protobuf field: int32 score_with_modifiers = 3;
|
|
841
|
+
*/
|
|
842
|
+
scoreWithModifiers: number;
|
|
843
|
+
/**
|
|
844
|
+
* @generated from protobuf field: int32 max_score = 4;
|
|
845
|
+
*/
|
|
846
|
+
maxScore: number;
|
|
847
|
+
/**
|
|
848
|
+
* @generated from protobuf field: int32 max_score_with_modifiers = 5;
|
|
849
|
+
*/
|
|
850
|
+
maxScoreWithModifiers: number;
|
|
851
|
+
/**
|
|
852
|
+
* @generated from protobuf field: int32 combo = 6;
|
|
853
|
+
*/
|
|
854
|
+
combo: number;
|
|
855
|
+
/**
|
|
856
|
+
* @generated from protobuf field: float player_health = 7;
|
|
857
|
+
*/
|
|
858
|
+
playerHealth: number;
|
|
859
|
+
/**
|
|
860
|
+
* @generated from protobuf field: float accuracy = 8;
|
|
861
|
+
*/
|
|
862
|
+
accuracy: number;
|
|
863
|
+
/**
|
|
864
|
+
* @generated from protobuf field: float song_position = 9;
|
|
865
|
+
*/
|
|
866
|
+
songPosition: number;
|
|
867
|
+
/**
|
|
868
|
+
* @generated from protobuf field: int32 notes_missed = 10;
|
|
869
|
+
*/
|
|
870
|
+
notesMissed: number;
|
|
871
|
+
/**
|
|
872
|
+
* @generated from protobuf field: int32 bad_cuts = 11;
|
|
873
|
+
*/
|
|
874
|
+
badCuts: number;
|
|
875
|
+
/**
|
|
876
|
+
* @generated from protobuf field: int32 bomb_hits = 12;
|
|
877
|
+
*/
|
|
878
|
+
bombHits: number;
|
|
879
|
+
/**
|
|
880
|
+
* @generated from protobuf field: int32 wall_hits = 13;
|
|
881
|
+
*/
|
|
882
|
+
wallHits: number;
|
|
883
|
+
/**
|
|
884
|
+
* @generated from protobuf field: int32 max_combo = 14;
|
|
885
|
+
*/
|
|
886
|
+
maxCombo: number;
|
|
887
|
+
/**
|
|
888
|
+
* @generated from protobuf field: proto.models.ScoreTrackerHand left_hand = 15;
|
|
889
|
+
*/
|
|
890
|
+
leftHand?: ScoreTrackerHand;
|
|
891
|
+
/**
|
|
892
|
+
* @generated from protobuf field: proto.models.ScoreTrackerHand right_hand = 16;
|
|
893
|
+
*/
|
|
894
|
+
rightHand?: ScoreTrackerHand;
|
|
895
|
+
}
|
|
896
|
+
/**
|
|
897
|
+
* @generated from protobuf message proto.models.ScoreTrackerHand
|
|
898
|
+
*/
|
|
899
|
+
export interface ScoreTrackerHand {
|
|
900
|
+
/**
|
|
901
|
+
* @generated from protobuf field: int32 hit = 1;
|
|
902
|
+
*/
|
|
903
|
+
hit: number;
|
|
904
|
+
/**
|
|
905
|
+
* @generated from protobuf field: int32 miss = 2;
|
|
906
|
+
*/
|
|
907
|
+
miss: number;
|
|
908
|
+
/**
|
|
909
|
+
* @generated from protobuf field: int32 bad_cut = 3;
|
|
910
|
+
*/
|
|
911
|
+
badCut: number;
|
|
912
|
+
/**
|
|
913
|
+
* @generated from protobuf field: repeated float avg_cut = 4;
|
|
914
|
+
*/
|
|
915
|
+
avgCut: number[];
|
|
916
|
+
}
|
|
917
|
+
/**
|
|
918
|
+
* @generated from protobuf enum proto.models.Permissions
|
|
919
|
+
*/
|
|
920
|
+
export enum Permissions {
|
|
921
|
+
/**
|
|
922
|
+
* @generated from protobuf enum value: None = 0;
|
|
923
|
+
*/
|
|
924
|
+
None = 0,
|
|
925
|
+
/**
|
|
926
|
+
* @generated from protobuf enum value: View = 1;
|
|
927
|
+
*/
|
|
928
|
+
View = 1,
|
|
929
|
+
/**
|
|
930
|
+
* @generated from protobuf enum value: Admin = 2;
|
|
931
|
+
*/
|
|
932
|
+
Admin = 2
|
|
933
|
+
}
|
|
934
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
935
|
+
class Characteristic$Type extends MessageType<Characteristic> {
|
|
936
|
+
constructor() {
|
|
937
|
+
super("proto.models.Characteristic", [
|
|
938
|
+
{ no: 1, name: "serialized_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
939
|
+
{ no: 2, name: "difficulties", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/ }
|
|
940
|
+
]);
|
|
941
|
+
}
|
|
942
|
+
create(value?: PartialMessage<Characteristic>): Characteristic {
|
|
943
|
+
const message = { serializedName: "", difficulties: [] };
|
|
944
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
945
|
+
if (value !== undefined)
|
|
946
|
+
reflectionMergePartial<Characteristic>(this, message, value);
|
|
947
|
+
return message;
|
|
948
|
+
}
|
|
949
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Characteristic): Characteristic {
|
|
950
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
951
|
+
while (reader.pos < end) {
|
|
952
|
+
let [fieldNo, wireType] = reader.tag();
|
|
953
|
+
switch (fieldNo) {
|
|
954
|
+
case /* string serialized_name */ 1:
|
|
955
|
+
message.serializedName = reader.string();
|
|
956
|
+
break;
|
|
957
|
+
case /* repeated int32 difficulties */ 2:
|
|
958
|
+
if (wireType === WireType.LengthDelimited)
|
|
959
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
960
|
+
message.difficulties.push(reader.int32());
|
|
961
|
+
else
|
|
962
|
+
message.difficulties.push(reader.int32());
|
|
963
|
+
break;
|
|
964
|
+
default:
|
|
965
|
+
let u = options.readUnknownField;
|
|
966
|
+
if (u === "throw")
|
|
967
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
968
|
+
let d = reader.skip(wireType);
|
|
969
|
+
if (u !== false)
|
|
970
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
return message;
|
|
974
|
+
}
|
|
975
|
+
internalBinaryWrite(message: Characteristic, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
976
|
+
/* string serialized_name = 1; */
|
|
977
|
+
if (message.serializedName !== "")
|
|
978
|
+
writer.tag(1, WireType.LengthDelimited).string(message.serializedName);
|
|
979
|
+
/* repeated int32 difficulties = 2; */
|
|
980
|
+
if (message.difficulties.length) {
|
|
981
|
+
writer.tag(2, WireType.LengthDelimited).fork();
|
|
982
|
+
for (let i = 0; i < message.difficulties.length; i++)
|
|
983
|
+
writer.int32(message.difficulties[i]);
|
|
984
|
+
writer.join();
|
|
985
|
+
}
|
|
986
|
+
let u = options.writeUnknownFields;
|
|
987
|
+
if (u !== false)
|
|
988
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
989
|
+
return writer;
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
/**
|
|
993
|
+
* @generated MessageType for protobuf message proto.models.Characteristic
|
|
994
|
+
*/
|
|
995
|
+
export const Characteristic = new Characteristic$Type();
|
|
996
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
997
|
+
class Beatmap$Type extends MessageType<Beatmap> {
|
|
998
|
+
constructor() {
|
|
999
|
+
super("proto.models.Beatmap", [
|
|
1000
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1001
|
+
{ no: 2, name: "level_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1002
|
+
{ no: 3, name: "characteristic", kind: "message", T: () => Characteristic },
|
|
1003
|
+
{ no: 4, name: "difficulty", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
|
|
1004
|
+
]);
|
|
1005
|
+
}
|
|
1006
|
+
create(value?: PartialMessage<Beatmap>): Beatmap {
|
|
1007
|
+
const message = { name: "", levelId: "", difficulty: 0 };
|
|
1008
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
1009
|
+
if (value !== undefined)
|
|
1010
|
+
reflectionMergePartial<Beatmap>(this, message, value);
|
|
1011
|
+
return message;
|
|
1012
|
+
}
|
|
1013
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Beatmap): Beatmap {
|
|
1014
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1015
|
+
while (reader.pos < end) {
|
|
1016
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1017
|
+
switch (fieldNo) {
|
|
1018
|
+
case /* string name */ 1:
|
|
1019
|
+
message.name = reader.string();
|
|
1020
|
+
break;
|
|
1021
|
+
case /* string level_id */ 2:
|
|
1022
|
+
message.levelId = reader.string();
|
|
1023
|
+
break;
|
|
1024
|
+
case /* proto.models.Characteristic characteristic */ 3:
|
|
1025
|
+
message.characteristic = Characteristic.internalBinaryRead(reader, reader.uint32(), options, message.characteristic);
|
|
1026
|
+
break;
|
|
1027
|
+
case /* int32 difficulty */ 4:
|
|
1028
|
+
message.difficulty = reader.int32();
|
|
1029
|
+
break;
|
|
1030
|
+
default:
|
|
1031
|
+
let u = options.readUnknownField;
|
|
1032
|
+
if (u === "throw")
|
|
1033
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1034
|
+
let d = reader.skip(wireType);
|
|
1035
|
+
if (u !== false)
|
|
1036
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
return message;
|
|
1040
|
+
}
|
|
1041
|
+
internalBinaryWrite(message: Beatmap, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1042
|
+
/* string name = 1; */
|
|
1043
|
+
if (message.name !== "")
|
|
1044
|
+
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
|
1045
|
+
/* string level_id = 2; */
|
|
1046
|
+
if (message.levelId !== "")
|
|
1047
|
+
writer.tag(2, WireType.LengthDelimited).string(message.levelId);
|
|
1048
|
+
/* proto.models.Characteristic characteristic = 3; */
|
|
1049
|
+
if (message.characteristic)
|
|
1050
|
+
Characteristic.internalBinaryWrite(message.characteristic, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
1051
|
+
/* int32 difficulty = 4; */
|
|
1052
|
+
if (message.difficulty !== 0)
|
|
1053
|
+
writer.tag(4, WireType.Varint).int32(message.difficulty);
|
|
1054
|
+
let u = options.writeUnknownFields;
|
|
1055
|
+
if (u !== false)
|
|
1056
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1057
|
+
return writer;
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
/**
|
|
1061
|
+
* @generated MessageType for protobuf message proto.models.Beatmap
|
|
1062
|
+
*/
|
|
1063
|
+
export const Beatmap = new Beatmap$Type();
|
|
1064
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1065
|
+
class GameplayModifiers$Type extends MessageType<GameplayModifiers> {
|
|
1066
|
+
constructor() {
|
|
1067
|
+
super("proto.models.GameplayModifiers", [
|
|
1068
|
+
{ no: 1, name: "options", kind: "enum", T: () => ["proto.models.GameplayModifiers.GameOptions", GameplayModifiers_GameOptions] }
|
|
1069
|
+
]);
|
|
1070
|
+
}
|
|
1071
|
+
create(value?: PartialMessage<GameplayModifiers>): GameplayModifiers {
|
|
1072
|
+
const message = { options: 0 };
|
|
1073
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
1074
|
+
if (value !== undefined)
|
|
1075
|
+
reflectionMergePartial<GameplayModifiers>(this, message, value);
|
|
1076
|
+
return message;
|
|
1077
|
+
}
|
|
1078
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GameplayModifiers): GameplayModifiers {
|
|
1079
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1080
|
+
while (reader.pos < end) {
|
|
1081
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1082
|
+
switch (fieldNo) {
|
|
1083
|
+
case /* proto.models.GameplayModifiers.GameOptions options */ 1:
|
|
1084
|
+
message.options = reader.int32();
|
|
1085
|
+
break;
|
|
1086
|
+
default:
|
|
1087
|
+
let u = options.readUnknownField;
|
|
1088
|
+
if (u === "throw")
|
|
1089
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1090
|
+
let d = reader.skip(wireType);
|
|
1091
|
+
if (u !== false)
|
|
1092
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
return message;
|
|
1096
|
+
}
|
|
1097
|
+
internalBinaryWrite(message: GameplayModifiers, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1098
|
+
/* proto.models.GameplayModifiers.GameOptions options = 1; */
|
|
1099
|
+
if (message.options !== 0)
|
|
1100
|
+
writer.tag(1, WireType.Varint).int32(message.options);
|
|
1101
|
+
let u = options.writeUnknownFields;
|
|
1102
|
+
if (u !== false)
|
|
1103
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1104
|
+
return writer;
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
/**
|
|
1108
|
+
* @generated MessageType for protobuf message proto.models.GameplayModifiers
|
|
1109
|
+
*/
|
|
1110
|
+
export const GameplayModifiers = new GameplayModifiers$Type();
|
|
1111
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1112
|
+
class PlayerSpecificSettings$Type extends MessageType<PlayerSpecificSettings> {
|
|
1113
|
+
constructor() {
|
|
1114
|
+
super("proto.models.PlayerSpecificSettings", [
|
|
1115
|
+
{ no: 1, name: "player_height", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ },
|
|
1116
|
+
{ no: 2, name: "sfx_volume", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ },
|
|
1117
|
+
{ no: 3, name: "saber_trail_intensity", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ },
|
|
1118
|
+
{ no: 4, name: "note_jump_start_beat_offset", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ },
|
|
1119
|
+
{ no: 5, name: "note_jump_fixed_duration", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ },
|
|
1120
|
+
{ no: 6, name: "options", kind: "enum", T: () => ["proto.models.PlayerSpecificSettings.PlayerOptions", PlayerSpecificSettings_PlayerOptions] },
|
|
1121
|
+
{ no: 7, name: "note_jump_duration_type_settings", kind: "enum", T: () => ["proto.models.PlayerSpecificSettings.NoteJumpDurationTypeSettings", PlayerSpecificSettings_NoteJumpDurationTypeSettings] },
|
|
1122
|
+
{ no: 8, name: "arc_visibility_type", kind: "enum", T: () => ["proto.models.PlayerSpecificSettings.ArcVisibilityType", PlayerSpecificSettings_ArcVisibilityType] }
|
|
1123
|
+
]);
|
|
1124
|
+
}
|
|
1125
|
+
create(value?: PartialMessage<PlayerSpecificSettings>): PlayerSpecificSettings {
|
|
1126
|
+
const message = { playerHeight: 0, sfxVolume: 0, saberTrailIntensity: 0, noteJumpStartBeatOffset: 0, noteJumpFixedDuration: 0, options: 0, noteJumpDurationTypeSettings: 0, arcVisibilityType: 0 };
|
|
1127
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
1128
|
+
if (value !== undefined)
|
|
1129
|
+
reflectionMergePartial<PlayerSpecificSettings>(this, message, value);
|
|
1130
|
+
return message;
|
|
1131
|
+
}
|
|
1132
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PlayerSpecificSettings): PlayerSpecificSettings {
|
|
1133
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1134
|
+
while (reader.pos < end) {
|
|
1135
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1136
|
+
switch (fieldNo) {
|
|
1137
|
+
case /* float player_height */ 1:
|
|
1138
|
+
message.playerHeight = reader.float();
|
|
1139
|
+
break;
|
|
1140
|
+
case /* float sfx_volume */ 2:
|
|
1141
|
+
message.sfxVolume = reader.float();
|
|
1142
|
+
break;
|
|
1143
|
+
case /* float saber_trail_intensity */ 3:
|
|
1144
|
+
message.saberTrailIntensity = reader.float();
|
|
1145
|
+
break;
|
|
1146
|
+
case /* float note_jump_start_beat_offset */ 4:
|
|
1147
|
+
message.noteJumpStartBeatOffset = reader.float();
|
|
1148
|
+
break;
|
|
1149
|
+
case /* float note_jump_fixed_duration */ 5:
|
|
1150
|
+
message.noteJumpFixedDuration = reader.float();
|
|
1151
|
+
break;
|
|
1152
|
+
case /* proto.models.PlayerSpecificSettings.PlayerOptions options */ 6:
|
|
1153
|
+
message.options = reader.int32();
|
|
1154
|
+
break;
|
|
1155
|
+
case /* proto.models.PlayerSpecificSettings.NoteJumpDurationTypeSettings note_jump_duration_type_settings */ 7:
|
|
1156
|
+
message.noteJumpDurationTypeSettings = reader.int32();
|
|
1157
|
+
break;
|
|
1158
|
+
case /* proto.models.PlayerSpecificSettings.ArcVisibilityType arc_visibility_type */ 8:
|
|
1159
|
+
message.arcVisibilityType = reader.int32();
|
|
1160
|
+
break;
|
|
1161
|
+
default:
|
|
1162
|
+
let u = options.readUnknownField;
|
|
1163
|
+
if (u === "throw")
|
|
1164
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1165
|
+
let d = reader.skip(wireType);
|
|
1166
|
+
if (u !== false)
|
|
1167
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1170
|
+
return message;
|
|
1171
|
+
}
|
|
1172
|
+
internalBinaryWrite(message: PlayerSpecificSettings, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1173
|
+
/* float player_height = 1; */
|
|
1174
|
+
if (message.playerHeight !== 0)
|
|
1175
|
+
writer.tag(1, WireType.Bit32).float(message.playerHeight);
|
|
1176
|
+
/* float sfx_volume = 2; */
|
|
1177
|
+
if (message.sfxVolume !== 0)
|
|
1178
|
+
writer.tag(2, WireType.Bit32).float(message.sfxVolume);
|
|
1179
|
+
/* float saber_trail_intensity = 3; */
|
|
1180
|
+
if (message.saberTrailIntensity !== 0)
|
|
1181
|
+
writer.tag(3, WireType.Bit32).float(message.saberTrailIntensity);
|
|
1182
|
+
/* float note_jump_start_beat_offset = 4; */
|
|
1183
|
+
if (message.noteJumpStartBeatOffset !== 0)
|
|
1184
|
+
writer.tag(4, WireType.Bit32).float(message.noteJumpStartBeatOffset);
|
|
1185
|
+
/* float note_jump_fixed_duration = 5; */
|
|
1186
|
+
if (message.noteJumpFixedDuration !== 0)
|
|
1187
|
+
writer.tag(5, WireType.Bit32).float(message.noteJumpFixedDuration);
|
|
1188
|
+
/* proto.models.PlayerSpecificSettings.PlayerOptions options = 6; */
|
|
1189
|
+
if (message.options !== 0)
|
|
1190
|
+
writer.tag(6, WireType.Varint).int32(message.options);
|
|
1191
|
+
/* proto.models.PlayerSpecificSettings.NoteJumpDurationTypeSettings note_jump_duration_type_settings = 7; */
|
|
1192
|
+
if (message.noteJumpDurationTypeSettings !== 0)
|
|
1193
|
+
writer.tag(7, WireType.Varint).int32(message.noteJumpDurationTypeSettings);
|
|
1194
|
+
/* proto.models.PlayerSpecificSettings.ArcVisibilityType arc_visibility_type = 8; */
|
|
1195
|
+
if (message.arcVisibilityType !== 0)
|
|
1196
|
+
writer.tag(8, WireType.Varint).int32(message.arcVisibilityType);
|
|
1197
|
+
let u = options.writeUnknownFields;
|
|
1198
|
+
if (u !== false)
|
|
1199
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1200
|
+
return writer;
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
/**
|
|
1204
|
+
* @generated MessageType for protobuf message proto.models.PlayerSpecificSettings
|
|
1205
|
+
*/
|
|
1206
|
+
export const PlayerSpecificSettings = new PlayerSpecificSettings$Type();
|
|
1207
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1208
|
+
class GameplayParameters$Type extends MessageType<GameplayParameters> {
|
|
1209
|
+
constructor() {
|
|
1210
|
+
super("proto.models.GameplayParameters", [
|
|
1211
|
+
{ no: 1, name: "beatmap", kind: "message", T: () => Beatmap },
|
|
1212
|
+
{ no: 2, name: "player_settings", kind: "message", T: () => PlayerSpecificSettings },
|
|
1213
|
+
{ no: 3, name: "gameplay_modifiers", kind: "message", T: () => GameplayModifiers },
|
|
1214
|
+
{ no: 4, name: "attempts", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
1215
|
+
{ no: 5, name: "show_scoreboard", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
1216
|
+
{ no: 6, name: "disable_pause", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
1217
|
+
{ no: 7, name: "disable_fail", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
1218
|
+
{ no: 8, name: "disable_scoresaber_submission", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
1219
|
+
{ no: 9, name: "disable_custom_notes_on_stream", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
1220
|
+
{ no: 10, name: "use_sync", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
1221
|
+
]);
|
|
1222
|
+
}
|
|
1223
|
+
create(value?: PartialMessage<GameplayParameters>): GameplayParameters {
|
|
1224
|
+
const message = { attempts: 0, showScoreboard: false, disablePause: false, disableFail: false, disableScoresaberSubmission: false, disableCustomNotesOnStream: false, useSync: false };
|
|
1225
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
1226
|
+
if (value !== undefined)
|
|
1227
|
+
reflectionMergePartial<GameplayParameters>(this, message, value);
|
|
1228
|
+
return message;
|
|
1229
|
+
}
|
|
1230
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GameplayParameters): GameplayParameters {
|
|
1231
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1232
|
+
while (reader.pos < end) {
|
|
1233
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1234
|
+
switch (fieldNo) {
|
|
1235
|
+
case /* proto.models.Beatmap beatmap */ 1:
|
|
1236
|
+
message.beatmap = Beatmap.internalBinaryRead(reader, reader.uint32(), options, message.beatmap);
|
|
1237
|
+
break;
|
|
1238
|
+
case /* proto.models.PlayerSpecificSettings player_settings */ 2:
|
|
1239
|
+
message.playerSettings = PlayerSpecificSettings.internalBinaryRead(reader, reader.uint32(), options, message.playerSettings);
|
|
1240
|
+
break;
|
|
1241
|
+
case /* proto.models.GameplayModifiers gameplay_modifiers */ 3:
|
|
1242
|
+
message.gameplayModifiers = GameplayModifiers.internalBinaryRead(reader, reader.uint32(), options, message.gameplayModifiers);
|
|
1243
|
+
break;
|
|
1244
|
+
case /* int32 attempts */ 4:
|
|
1245
|
+
message.attempts = reader.int32();
|
|
1246
|
+
break;
|
|
1247
|
+
case /* bool show_scoreboard */ 5:
|
|
1248
|
+
message.showScoreboard = reader.bool();
|
|
1249
|
+
break;
|
|
1250
|
+
case /* bool disable_pause */ 6:
|
|
1251
|
+
message.disablePause = reader.bool();
|
|
1252
|
+
break;
|
|
1253
|
+
case /* bool disable_fail */ 7:
|
|
1254
|
+
message.disableFail = reader.bool();
|
|
1255
|
+
break;
|
|
1256
|
+
case /* bool disable_scoresaber_submission */ 8:
|
|
1257
|
+
message.disableScoresaberSubmission = reader.bool();
|
|
1258
|
+
break;
|
|
1259
|
+
case /* bool disable_custom_notes_on_stream */ 9:
|
|
1260
|
+
message.disableCustomNotesOnStream = reader.bool();
|
|
1261
|
+
break;
|
|
1262
|
+
case /* bool use_sync */ 10:
|
|
1263
|
+
message.useSync = reader.bool();
|
|
1264
|
+
break;
|
|
1265
|
+
default:
|
|
1266
|
+
let u = options.readUnknownField;
|
|
1267
|
+
if (u === "throw")
|
|
1268
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1269
|
+
let d = reader.skip(wireType);
|
|
1270
|
+
if (u !== false)
|
|
1271
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1272
|
+
}
|
|
1273
|
+
}
|
|
1274
|
+
return message;
|
|
1275
|
+
}
|
|
1276
|
+
internalBinaryWrite(message: GameplayParameters, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1277
|
+
/* proto.models.Beatmap beatmap = 1; */
|
|
1278
|
+
if (message.beatmap)
|
|
1279
|
+
Beatmap.internalBinaryWrite(message.beatmap, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1280
|
+
/* proto.models.PlayerSpecificSettings player_settings = 2; */
|
|
1281
|
+
if (message.playerSettings)
|
|
1282
|
+
PlayerSpecificSettings.internalBinaryWrite(message.playerSettings, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1283
|
+
/* proto.models.GameplayModifiers gameplay_modifiers = 3; */
|
|
1284
|
+
if (message.gameplayModifiers)
|
|
1285
|
+
GameplayModifiers.internalBinaryWrite(message.gameplayModifiers, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
1286
|
+
/* int32 attempts = 4; */
|
|
1287
|
+
if (message.attempts !== 0)
|
|
1288
|
+
writer.tag(4, WireType.Varint).int32(message.attempts);
|
|
1289
|
+
/* bool show_scoreboard = 5; */
|
|
1290
|
+
if (message.showScoreboard !== false)
|
|
1291
|
+
writer.tag(5, WireType.Varint).bool(message.showScoreboard);
|
|
1292
|
+
/* bool disable_pause = 6; */
|
|
1293
|
+
if (message.disablePause !== false)
|
|
1294
|
+
writer.tag(6, WireType.Varint).bool(message.disablePause);
|
|
1295
|
+
/* bool disable_fail = 7; */
|
|
1296
|
+
if (message.disableFail !== false)
|
|
1297
|
+
writer.tag(7, WireType.Varint).bool(message.disableFail);
|
|
1298
|
+
/* bool disable_scoresaber_submission = 8; */
|
|
1299
|
+
if (message.disableScoresaberSubmission !== false)
|
|
1300
|
+
writer.tag(8, WireType.Varint).bool(message.disableScoresaberSubmission);
|
|
1301
|
+
/* bool disable_custom_notes_on_stream = 9; */
|
|
1302
|
+
if (message.disableCustomNotesOnStream !== false)
|
|
1303
|
+
writer.tag(9, WireType.Varint).bool(message.disableCustomNotesOnStream);
|
|
1304
|
+
/* bool use_sync = 10; */
|
|
1305
|
+
if (message.useSync !== false)
|
|
1306
|
+
writer.tag(10, WireType.Varint).bool(message.useSync);
|
|
1307
|
+
let u = options.writeUnknownFields;
|
|
1308
|
+
if (u !== false)
|
|
1309
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1310
|
+
return writer;
|
|
1311
|
+
}
|
|
1312
|
+
}
|
|
1313
|
+
/**
|
|
1314
|
+
* @generated MessageType for protobuf message proto.models.GameplayParameters
|
|
1315
|
+
*/
|
|
1316
|
+
export const GameplayParameters = new GameplayParameters$Type();
|
|
1317
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1318
|
+
class Map$Type extends MessageType<Map> {
|
|
1319
|
+
constructor() {
|
|
1320
|
+
super("proto.models.Map", [
|
|
1321
|
+
{ no: 1, name: "guid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1322
|
+
{ no: 2, name: "gameplay_parameters", kind: "message", T: () => GameplayParameters }
|
|
1323
|
+
]);
|
|
1324
|
+
}
|
|
1325
|
+
create(value?: PartialMessage<Map>): Map {
|
|
1326
|
+
const message = { guid: "" };
|
|
1327
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
1328
|
+
if (value !== undefined)
|
|
1329
|
+
reflectionMergePartial<Map>(this, message, value);
|
|
1330
|
+
return message;
|
|
1331
|
+
}
|
|
1332
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Map): Map {
|
|
1333
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1334
|
+
while (reader.pos < end) {
|
|
1335
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1336
|
+
switch (fieldNo) {
|
|
1337
|
+
case /* string guid */ 1:
|
|
1338
|
+
message.guid = reader.string();
|
|
1339
|
+
break;
|
|
1340
|
+
case /* proto.models.GameplayParameters gameplay_parameters */ 2:
|
|
1341
|
+
message.gameplayParameters = GameplayParameters.internalBinaryRead(reader, reader.uint32(), options, message.gameplayParameters);
|
|
1342
|
+
break;
|
|
1343
|
+
default:
|
|
1344
|
+
let u = options.readUnknownField;
|
|
1345
|
+
if (u === "throw")
|
|
1346
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1347
|
+
let d = reader.skip(wireType);
|
|
1348
|
+
if (u !== false)
|
|
1349
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
return message;
|
|
1353
|
+
}
|
|
1354
|
+
internalBinaryWrite(message: Map, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1355
|
+
/* string guid = 1; */
|
|
1356
|
+
if (message.guid !== "")
|
|
1357
|
+
writer.tag(1, WireType.LengthDelimited).string(message.guid);
|
|
1358
|
+
/* proto.models.GameplayParameters gameplay_parameters = 2; */
|
|
1359
|
+
if (message.gameplayParameters)
|
|
1360
|
+
GameplayParameters.internalBinaryWrite(message.gameplayParameters, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1361
|
+
let u = options.writeUnknownFields;
|
|
1362
|
+
if (u !== false)
|
|
1363
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1364
|
+
return writer;
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
/**
|
|
1368
|
+
* @generated MessageType for protobuf message proto.models.Map
|
|
1369
|
+
*/
|
|
1370
|
+
export const Map = new Map$Type();
|
|
1371
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1372
|
+
class User$Type extends MessageType<User> {
|
|
1373
|
+
constructor() {
|
|
1374
|
+
super("proto.models.User", [
|
|
1375
|
+
{ no: 1, name: "guid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1376
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1377
|
+
{ no: 3, name: "platform_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1378
|
+
{ no: 4, name: "client_type", kind: "enum", T: () => ["proto.models.User.ClientTypes", User_ClientTypes] },
|
|
1379
|
+
{ no: 5, name: "team_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1380
|
+
{ no: 6, name: "play_state", kind: "enum", T: () => ["proto.models.User.PlayStates", User_PlayStates] },
|
|
1381
|
+
{ no: 7, name: "download_state", kind: "enum", T: () => ["proto.models.User.DownloadStates", User_DownloadStates] },
|
|
1382
|
+
{ no: 8, name: "mod_list", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
1383
|
+
{ no: 9, name: "stream_screen_coordinates", kind: "message", T: () => User_Point },
|
|
1384
|
+
{ no: 10, name: "stream_delay_ms", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1385
|
+
{ no: 11, name: "stream_sync_start_ms", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1386
|
+
{ no: 12, name: "discord_info", kind: "message", T: () => User_DiscordInfo },
|
|
1387
|
+
{ no: 13, name: "user_image", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
1388
|
+
{ no: 14, name: "permissions", kind: "enum", T: () => ["proto.models.Permissions", Permissions] }
|
|
1389
|
+
]);
|
|
1390
|
+
}
|
|
1391
|
+
create(value?: PartialMessage<User>): User {
|
|
1392
|
+
const message = { guid: "", name: "", platformId: "", clientType: 0, teamId: "", playState: 0, downloadState: 0, modList: [], streamDelayMs: 0n, streamSyncStartMs: 0n, userImage: new Uint8Array(0), permissions: 0 };
|
|
1393
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
1394
|
+
if (value !== undefined)
|
|
1395
|
+
reflectionMergePartial<User>(this, message, value);
|
|
1396
|
+
return message;
|
|
1397
|
+
}
|
|
1398
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: User): User {
|
|
1399
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1400
|
+
while (reader.pos < end) {
|
|
1401
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1402
|
+
switch (fieldNo) {
|
|
1403
|
+
case /* string guid */ 1:
|
|
1404
|
+
message.guid = reader.string();
|
|
1405
|
+
break;
|
|
1406
|
+
case /* string name */ 2:
|
|
1407
|
+
message.name = reader.string();
|
|
1408
|
+
break;
|
|
1409
|
+
case /* string platform_id */ 3:
|
|
1410
|
+
message.platformId = reader.string();
|
|
1411
|
+
break;
|
|
1412
|
+
case /* proto.models.User.ClientTypes client_type */ 4:
|
|
1413
|
+
message.clientType = reader.int32();
|
|
1414
|
+
break;
|
|
1415
|
+
case /* string team_id */ 5:
|
|
1416
|
+
message.teamId = reader.string();
|
|
1417
|
+
break;
|
|
1418
|
+
case /* proto.models.User.PlayStates play_state */ 6:
|
|
1419
|
+
message.playState = reader.int32();
|
|
1420
|
+
break;
|
|
1421
|
+
case /* proto.models.User.DownloadStates download_state */ 7:
|
|
1422
|
+
message.downloadState = reader.int32();
|
|
1423
|
+
break;
|
|
1424
|
+
case /* repeated string mod_list */ 8:
|
|
1425
|
+
message.modList.push(reader.string());
|
|
1426
|
+
break;
|
|
1427
|
+
case /* proto.models.User.Point stream_screen_coordinates */ 9:
|
|
1428
|
+
message.streamScreenCoordinates = User_Point.internalBinaryRead(reader, reader.uint32(), options, message.streamScreenCoordinates);
|
|
1429
|
+
break;
|
|
1430
|
+
case /* int64 stream_delay_ms */ 10:
|
|
1431
|
+
message.streamDelayMs = reader.int64().toBigInt();
|
|
1432
|
+
break;
|
|
1433
|
+
case /* int64 stream_sync_start_ms */ 11:
|
|
1434
|
+
message.streamSyncStartMs = reader.int64().toBigInt();
|
|
1435
|
+
break;
|
|
1436
|
+
case /* proto.models.User.DiscordInfo discord_info */ 12:
|
|
1437
|
+
message.discordInfo = User_DiscordInfo.internalBinaryRead(reader, reader.uint32(), options, message.discordInfo);
|
|
1438
|
+
break;
|
|
1439
|
+
case /* bytes user_image */ 13:
|
|
1440
|
+
message.userImage = reader.bytes();
|
|
1441
|
+
break;
|
|
1442
|
+
case /* proto.models.Permissions permissions */ 14:
|
|
1443
|
+
message.permissions = reader.int32();
|
|
1444
|
+
break;
|
|
1445
|
+
default:
|
|
1446
|
+
let u = options.readUnknownField;
|
|
1447
|
+
if (u === "throw")
|
|
1448
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1449
|
+
let d = reader.skip(wireType);
|
|
1450
|
+
if (u !== false)
|
|
1451
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1454
|
+
return message;
|
|
1455
|
+
}
|
|
1456
|
+
internalBinaryWrite(message: User, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1457
|
+
/* string guid = 1; */
|
|
1458
|
+
if (message.guid !== "")
|
|
1459
|
+
writer.tag(1, WireType.LengthDelimited).string(message.guid);
|
|
1460
|
+
/* string name = 2; */
|
|
1461
|
+
if (message.name !== "")
|
|
1462
|
+
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
1463
|
+
/* string platform_id = 3; */
|
|
1464
|
+
if (message.platformId !== "")
|
|
1465
|
+
writer.tag(3, WireType.LengthDelimited).string(message.platformId);
|
|
1466
|
+
/* proto.models.User.ClientTypes client_type = 4; */
|
|
1467
|
+
if (message.clientType !== 0)
|
|
1468
|
+
writer.tag(4, WireType.Varint).int32(message.clientType);
|
|
1469
|
+
/* string team_id = 5; */
|
|
1470
|
+
if (message.teamId !== "")
|
|
1471
|
+
writer.tag(5, WireType.LengthDelimited).string(message.teamId);
|
|
1472
|
+
/* proto.models.User.PlayStates play_state = 6; */
|
|
1473
|
+
if (message.playState !== 0)
|
|
1474
|
+
writer.tag(6, WireType.Varint).int32(message.playState);
|
|
1475
|
+
/* proto.models.User.DownloadStates download_state = 7; */
|
|
1476
|
+
if (message.downloadState !== 0)
|
|
1477
|
+
writer.tag(7, WireType.Varint).int32(message.downloadState);
|
|
1478
|
+
/* repeated string mod_list = 8; */
|
|
1479
|
+
for (let i = 0; i < message.modList.length; i++)
|
|
1480
|
+
writer.tag(8, WireType.LengthDelimited).string(message.modList[i]);
|
|
1481
|
+
/* proto.models.User.Point stream_screen_coordinates = 9; */
|
|
1482
|
+
if (message.streamScreenCoordinates)
|
|
1483
|
+
User_Point.internalBinaryWrite(message.streamScreenCoordinates, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
1484
|
+
/* int64 stream_delay_ms = 10; */
|
|
1485
|
+
if (message.streamDelayMs !== 0n)
|
|
1486
|
+
writer.tag(10, WireType.Varint).int64(message.streamDelayMs);
|
|
1487
|
+
/* int64 stream_sync_start_ms = 11; */
|
|
1488
|
+
if (message.streamSyncStartMs !== 0n)
|
|
1489
|
+
writer.tag(11, WireType.Varint).int64(message.streamSyncStartMs);
|
|
1490
|
+
/* proto.models.User.DiscordInfo discord_info = 12; */
|
|
1491
|
+
if (message.discordInfo)
|
|
1492
|
+
User_DiscordInfo.internalBinaryWrite(message.discordInfo, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
|
|
1493
|
+
/* bytes user_image = 13; */
|
|
1494
|
+
if (message.userImage.length)
|
|
1495
|
+
writer.tag(13, WireType.LengthDelimited).bytes(message.userImage);
|
|
1496
|
+
/* proto.models.Permissions permissions = 14; */
|
|
1497
|
+
if (message.permissions !== 0)
|
|
1498
|
+
writer.tag(14, WireType.Varint).int32(message.permissions);
|
|
1499
|
+
let u = options.writeUnknownFields;
|
|
1500
|
+
if (u !== false)
|
|
1501
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1502
|
+
return writer;
|
|
1503
|
+
}
|
|
1504
|
+
}
|
|
1505
|
+
/**
|
|
1506
|
+
* @generated MessageType for protobuf message proto.models.User
|
|
1507
|
+
*/
|
|
1508
|
+
export const User = new User$Type();
|
|
1509
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1510
|
+
class User_DiscordInfo$Type extends MessageType<User_DiscordInfo> {
|
|
1511
|
+
constructor() {
|
|
1512
|
+
super("proto.models.User.DiscordInfo", [
|
|
1513
|
+
{ no: 1, name: "user_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1514
|
+
{ no: 2, name: "username", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1515
|
+
{ no: 3, name: "avatar_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1516
|
+
]);
|
|
1517
|
+
}
|
|
1518
|
+
create(value?: PartialMessage<User_DiscordInfo>): User_DiscordInfo {
|
|
1519
|
+
const message = { userId: "", username: "", avatarUrl: "" };
|
|
1520
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
1521
|
+
if (value !== undefined)
|
|
1522
|
+
reflectionMergePartial<User_DiscordInfo>(this, message, value);
|
|
1523
|
+
return message;
|
|
1524
|
+
}
|
|
1525
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: User_DiscordInfo): User_DiscordInfo {
|
|
1526
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1527
|
+
while (reader.pos < end) {
|
|
1528
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1529
|
+
switch (fieldNo) {
|
|
1530
|
+
case /* string user_id */ 1:
|
|
1531
|
+
message.userId = reader.string();
|
|
1532
|
+
break;
|
|
1533
|
+
case /* string username */ 2:
|
|
1534
|
+
message.username = reader.string();
|
|
1535
|
+
break;
|
|
1536
|
+
case /* string avatar_url */ 3:
|
|
1537
|
+
message.avatarUrl = reader.string();
|
|
1538
|
+
break;
|
|
1539
|
+
default:
|
|
1540
|
+
let u = options.readUnknownField;
|
|
1541
|
+
if (u === "throw")
|
|
1542
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1543
|
+
let d = reader.skip(wireType);
|
|
1544
|
+
if (u !== false)
|
|
1545
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1546
|
+
}
|
|
1547
|
+
}
|
|
1548
|
+
return message;
|
|
1549
|
+
}
|
|
1550
|
+
internalBinaryWrite(message: User_DiscordInfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1551
|
+
/* string user_id = 1; */
|
|
1552
|
+
if (message.userId !== "")
|
|
1553
|
+
writer.tag(1, WireType.LengthDelimited).string(message.userId);
|
|
1554
|
+
/* string username = 2; */
|
|
1555
|
+
if (message.username !== "")
|
|
1556
|
+
writer.tag(2, WireType.LengthDelimited).string(message.username);
|
|
1557
|
+
/* string avatar_url = 3; */
|
|
1558
|
+
if (message.avatarUrl !== "")
|
|
1559
|
+
writer.tag(3, WireType.LengthDelimited).string(message.avatarUrl);
|
|
1560
|
+
let u = options.writeUnknownFields;
|
|
1561
|
+
if (u !== false)
|
|
1562
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1563
|
+
return writer;
|
|
1564
|
+
}
|
|
1565
|
+
}
|
|
1566
|
+
/**
|
|
1567
|
+
* @generated MessageType for protobuf message proto.models.User.DiscordInfo
|
|
1568
|
+
*/
|
|
1569
|
+
export const User_DiscordInfo = new User_DiscordInfo$Type();
|
|
1570
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1571
|
+
class User_Point$Type extends MessageType<User_Point> {
|
|
1572
|
+
constructor() {
|
|
1573
|
+
super("proto.models.User.Point", [
|
|
1574
|
+
{ no: 1, name: "x", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
1575
|
+
{ no: 2, name: "y", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
|
|
1576
|
+
]);
|
|
1577
|
+
}
|
|
1578
|
+
create(value?: PartialMessage<User_Point>): User_Point {
|
|
1579
|
+
const message = { x: 0, y: 0 };
|
|
1580
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
1581
|
+
if (value !== undefined)
|
|
1582
|
+
reflectionMergePartial<User_Point>(this, message, value);
|
|
1583
|
+
return message;
|
|
1584
|
+
}
|
|
1585
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: User_Point): User_Point {
|
|
1586
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1587
|
+
while (reader.pos < end) {
|
|
1588
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1589
|
+
switch (fieldNo) {
|
|
1590
|
+
case /* int32 x */ 1:
|
|
1591
|
+
message.x = reader.int32();
|
|
1592
|
+
break;
|
|
1593
|
+
case /* int32 y */ 2:
|
|
1594
|
+
message.y = reader.int32();
|
|
1595
|
+
break;
|
|
1596
|
+
default:
|
|
1597
|
+
let u = options.readUnknownField;
|
|
1598
|
+
if (u === "throw")
|
|
1599
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1600
|
+
let d = reader.skip(wireType);
|
|
1601
|
+
if (u !== false)
|
|
1602
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1603
|
+
}
|
|
1604
|
+
}
|
|
1605
|
+
return message;
|
|
1606
|
+
}
|
|
1607
|
+
internalBinaryWrite(message: User_Point, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1608
|
+
/* int32 x = 1; */
|
|
1609
|
+
if (message.x !== 0)
|
|
1610
|
+
writer.tag(1, WireType.Varint).int32(message.x);
|
|
1611
|
+
/* int32 y = 2; */
|
|
1612
|
+
if (message.y !== 0)
|
|
1613
|
+
writer.tag(2, WireType.Varint).int32(message.y);
|
|
1614
|
+
let u = options.writeUnknownFields;
|
|
1615
|
+
if (u !== false)
|
|
1616
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1617
|
+
return writer;
|
|
1618
|
+
}
|
|
1619
|
+
}
|
|
1620
|
+
/**
|
|
1621
|
+
* @generated MessageType for protobuf message proto.models.User.Point
|
|
1622
|
+
*/
|
|
1623
|
+
export const User_Point = new User_Point$Type();
|
|
1624
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1625
|
+
class Match$Type extends MessageType<Match> {
|
|
1626
|
+
constructor() {
|
|
1627
|
+
super("proto.models.Match", [
|
|
1628
|
+
{ no: 1, name: "guid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1629
|
+
{ no: 2, name: "associated_users", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
1630
|
+
{ no: 3, name: "leader", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1631
|
+
{ no: 4, name: "selected_map", kind: "message", T: () => Map }
|
|
1632
|
+
]);
|
|
1633
|
+
}
|
|
1634
|
+
create(value?: PartialMessage<Match>): Match {
|
|
1635
|
+
const message = { guid: "", associatedUsers: [], leader: "" };
|
|
1636
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
1637
|
+
if (value !== undefined)
|
|
1638
|
+
reflectionMergePartial<Match>(this, message, value);
|
|
1639
|
+
return message;
|
|
1640
|
+
}
|
|
1641
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Match): Match {
|
|
1642
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1643
|
+
while (reader.pos < end) {
|
|
1644
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1645
|
+
switch (fieldNo) {
|
|
1646
|
+
case /* string guid */ 1:
|
|
1647
|
+
message.guid = reader.string();
|
|
1648
|
+
break;
|
|
1649
|
+
case /* repeated string associated_users */ 2:
|
|
1650
|
+
message.associatedUsers.push(reader.string());
|
|
1651
|
+
break;
|
|
1652
|
+
case /* string leader */ 3:
|
|
1653
|
+
message.leader = reader.string();
|
|
1654
|
+
break;
|
|
1655
|
+
case /* proto.models.Map selected_map */ 4:
|
|
1656
|
+
message.selectedMap = Map.internalBinaryRead(reader, reader.uint32(), options, message.selectedMap);
|
|
1657
|
+
break;
|
|
1658
|
+
default:
|
|
1659
|
+
let u = options.readUnknownField;
|
|
1660
|
+
if (u === "throw")
|
|
1661
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1662
|
+
let d = reader.skip(wireType);
|
|
1663
|
+
if (u !== false)
|
|
1664
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1667
|
+
return message;
|
|
1668
|
+
}
|
|
1669
|
+
internalBinaryWrite(message: Match, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1670
|
+
/* string guid = 1; */
|
|
1671
|
+
if (message.guid !== "")
|
|
1672
|
+
writer.tag(1, WireType.LengthDelimited).string(message.guid);
|
|
1673
|
+
/* repeated string associated_users = 2; */
|
|
1674
|
+
for (let i = 0; i < message.associatedUsers.length; i++)
|
|
1675
|
+
writer.tag(2, WireType.LengthDelimited).string(message.associatedUsers[i]);
|
|
1676
|
+
/* string leader = 3; */
|
|
1677
|
+
if (message.leader !== "")
|
|
1678
|
+
writer.tag(3, WireType.LengthDelimited).string(message.leader);
|
|
1679
|
+
/* proto.models.Map selected_map = 4; */
|
|
1680
|
+
if (message.selectedMap)
|
|
1681
|
+
Map.internalBinaryWrite(message.selectedMap, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
1682
|
+
let u = options.writeUnknownFields;
|
|
1683
|
+
if (u !== false)
|
|
1684
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1685
|
+
return writer;
|
|
1686
|
+
}
|
|
1687
|
+
}
|
|
1688
|
+
/**
|
|
1689
|
+
* @generated MessageType for protobuf message proto.models.Match
|
|
1690
|
+
*/
|
|
1691
|
+
export const Match = new Match$Type();
|
|
1692
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1693
|
+
class QualifierEvent$Type extends MessageType<QualifierEvent> {
|
|
1694
|
+
constructor() {
|
|
1695
|
+
super("proto.models.QualifierEvent", [
|
|
1696
|
+
{ no: 1, name: "guid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1697
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1698
|
+
{ no: 3, name: "image", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
1699
|
+
{ no: 4, name: "info_channel", kind: "message", T: () => Channel },
|
|
1700
|
+
{ no: 5, name: "qualifier_maps", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Map },
|
|
1701
|
+
{ no: 6, name: "flags", kind: "enum", T: () => ["proto.models.QualifierEvent.EventSettings", QualifierEvent_EventSettings] },
|
|
1702
|
+
{ no: 7, name: "sort", kind: "enum", T: () => ["proto.models.QualifierEvent.LeaderboardSort", QualifierEvent_LeaderboardSort] }
|
|
1703
|
+
]);
|
|
1704
|
+
}
|
|
1705
|
+
create(value?: PartialMessage<QualifierEvent>): QualifierEvent {
|
|
1706
|
+
const message = { guid: "", name: "", image: new Uint8Array(0), qualifierMaps: [], flags: 0, sort: 0 };
|
|
1707
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
1708
|
+
if (value !== undefined)
|
|
1709
|
+
reflectionMergePartial<QualifierEvent>(this, message, value);
|
|
1710
|
+
return message;
|
|
1711
|
+
}
|
|
1712
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QualifierEvent): QualifierEvent {
|
|
1713
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1714
|
+
while (reader.pos < end) {
|
|
1715
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1716
|
+
switch (fieldNo) {
|
|
1717
|
+
case /* string guid */ 1:
|
|
1718
|
+
message.guid = reader.string();
|
|
1719
|
+
break;
|
|
1720
|
+
case /* string name */ 2:
|
|
1721
|
+
message.name = reader.string();
|
|
1722
|
+
break;
|
|
1723
|
+
case /* bytes image */ 3:
|
|
1724
|
+
message.image = reader.bytes();
|
|
1725
|
+
break;
|
|
1726
|
+
case /* proto.discord.Channel info_channel */ 4:
|
|
1727
|
+
message.infoChannel = Channel.internalBinaryRead(reader, reader.uint32(), options, message.infoChannel);
|
|
1728
|
+
break;
|
|
1729
|
+
case /* repeated proto.models.Map qualifier_maps */ 5:
|
|
1730
|
+
message.qualifierMaps.push(Map.internalBinaryRead(reader, reader.uint32(), options));
|
|
1731
|
+
break;
|
|
1732
|
+
case /* proto.models.QualifierEvent.EventSettings flags */ 6:
|
|
1733
|
+
message.flags = reader.int32();
|
|
1734
|
+
break;
|
|
1735
|
+
case /* proto.models.QualifierEvent.LeaderboardSort sort */ 7:
|
|
1736
|
+
message.sort = reader.int32();
|
|
1737
|
+
break;
|
|
1738
|
+
default:
|
|
1739
|
+
let u = options.readUnknownField;
|
|
1740
|
+
if (u === "throw")
|
|
1741
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1742
|
+
let d = reader.skip(wireType);
|
|
1743
|
+
if (u !== false)
|
|
1744
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1745
|
+
}
|
|
1746
|
+
}
|
|
1747
|
+
return message;
|
|
1748
|
+
}
|
|
1749
|
+
internalBinaryWrite(message: QualifierEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1750
|
+
/* string guid = 1; */
|
|
1751
|
+
if (message.guid !== "")
|
|
1752
|
+
writer.tag(1, WireType.LengthDelimited).string(message.guid);
|
|
1753
|
+
/* string name = 2; */
|
|
1754
|
+
if (message.name !== "")
|
|
1755
|
+
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
1756
|
+
/* bytes image = 3; */
|
|
1757
|
+
if (message.image.length)
|
|
1758
|
+
writer.tag(3, WireType.LengthDelimited).bytes(message.image);
|
|
1759
|
+
/* proto.discord.Channel info_channel = 4; */
|
|
1760
|
+
if (message.infoChannel)
|
|
1761
|
+
Channel.internalBinaryWrite(message.infoChannel, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
1762
|
+
/* repeated proto.models.Map qualifier_maps = 5; */
|
|
1763
|
+
for (let i = 0; i < message.qualifierMaps.length; i++)
|
|
1764
|
+
Map.internalBinaryWrite(message.qualifierMaps[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
1765
|
+
/* proto.models.QualifierEvent.EventSettings flags = 6; */
|
|
1766
|
+
if (message.flags !== 0)
|
|
1767
|
+
writer.tag(6, WireType.Varint).int32(message.flags);
|
|
1768
|
+
/* proto.models.QualifierEvent.LeaderboardSort sort = 7; */
|
|
1769
|
+
if (message.sort !== 0)
|
|
1770
|
+
writer.tag(7, WireType.Varint).int32(message.sort);
|
|
1771
|
+
let u = options.writeUnknownFields;
|
|
1772
|
+
if (u !== false)
|
|
1773
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1774
|
+
return writer;
|
|
1775
|
+
}
|
|
1776
|
+
}
|
|
1777
|
+
/**
|
|
1778
|
+
* @generated MessageType for protobuf message proto.models.QualifierEvent
|
|
1779
|
+
*/
|
|
1780
|
+
export const QualifierEvent = new QualifierEvent$Type();
|
|
1781
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1782
|
+
class CoreServer$Type extends MessageType<CoreServer> {
|
|
1783
|
+
constructor() {
|
|
1784
|
+
super("proto.models.CoreServer", [
|
|
1785
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1786
|
+
{ no: 2, name: "address", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1787
|
+
{ no: 3, name: "port", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
1788
|
+
{ no: 4, name: "websocket_port", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
|
|
1789
|
+
]);
|
|
1790
|
+
}
|
|
1791
|
+
create(value?: PartialMessage<CoreServer>): CoreServer {
|
|
1792
|
+
const message = { name: "", address: "", port: 0, websocketPort: 0 };
|
|
1793
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
1794
|
+
if (value !== undefined)
|
|
1795
|
+
reflectionMergePartial<CoreServer>(this, message, value);
|
|
1796
|
+
return message;
|
|
1797
|
+
}
|
|
1798
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CoreServer): CoreServer {
|
|
1799
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1800
|
+
while (reader.pos < end) {
|
|
1801
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1802
|
+
switch (fieldNo) {
|
|
1803
|
+
case /* string name */ 1:
|
|
1804
|
+
message.name = reader.string();
|
|
1805
|
+
break;
|
|
1806
|
+
case /* string address */ 2:
|
|
1807
|
+
message.address = reader.string();
|
|
1808
|
+
break;
|
|
1809
|
+
case /* int32 port */ 3:
|
|
1810
|
+
message.port = reader.int32();
|
|
1811
|
+
break;
|
|
1812
|
+
case /* int32 websocket_port */ 4:
|
|
1813
|
+
message.websocketPort = reader.int32();
|
|
1814
|
+
break;
|
|
1815
|
+
default:
|
|
1816
|
+
let u = options.readUnknownField;
|
|
1817
|
+
if (u === "throw")
|
|
1818
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1819
|
+
let d = reader.skip(wireType);
|
|
1820
|
+
if (u !== false)
|
|
1821
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1822
|
+
}
|
|
1823
|
+
}
|
|
1824
|
+
return message;
|
|
1825
|
+
}
|
|
1826
|
+
internalBinaryWrite(message: CoreServer, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1827
|
+
/* string name = 1; */
|
|
1828
|
+
if (message.name !== "")
|
|
1829
|
+
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
|
1830
|
+
/* string address = 2; */
|
|
1831
|
+
if (message.address !== "")
|
|
1832
|
+
writer.tag(2, WireType.LengthDelimited).string(message.address);
|
|
1833
|
+
/* int32 port = 3; */
|
|
1834
|
+
if (message.port !== 0)
|
|
1835
|
+
writer.tag(3, WireType.Varint).int32(message.port);
|
|
1836
|
+
/* int32 websocket_port = 4; */
|
|
1837
|
+
if (message.websocketPort !== 0)
|
|
1838
|
+
writer.tag(4, WireType.Varint).int32(message.websocketPort);
|
|
1839
|
+
let u = options.writeUnknownFields;
|
|
1840
|
+
if (u !== false)
|
|
1841
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1842
|
+
return writer;
|
|
1843
|
+
}
|
|
1844
|
+
}
|
|
1845
|
+
/**
|
|
1846
|
+
* @generated MessageType for protobuf message proto.models.CoreServer
|
|
1847
|
+
*/
|
|
1848
|
+
export const CoreServer = new CoreServer$Type();
|
|
1849
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1850
|
+
class Tournament$Type extends MessageType<Tournament> {
|
|
1851
|
+
constructor() {
|
|
1852
|
+
super("proto.models.Tournament", [
|
|
1853
|
+
{ no: 1, name: "guid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1854
|
+
{ no: 2, name: "settings", kind: "message", T: () => Tournament_TournamentSettings },
|
|
1855
|
+
{ no: 3, name: "users", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => User },
|
|
1856
|
+
{ no: 4, name: "matches", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Match },
|
|
1857
|
+
{ no: 5, name: "qualifiers", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => QualifierEvent },
|
|
1858
|
+
{ no: 6, name: "server", kind: "message", T: () => CoreServer }
|
|
1859
|
+
]);
|
|
1860
|
+
}
|
|
1861
|
+
create(value?: PartialMessage<Tournament>): Tournament {
|
|
1862
|
+
const message = { guid: "", users: [], matches: [], qualifiers: [] };
|
|
1863
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
1864
|
+
if (value !== undefined)
|
|
1865
|
+
reflectionMergePartial<Tournament>(this, message, value);
|
|
1866
|
+
return message;
|
|
1867
|
+
}
|
|
1868
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Tournament): Tournament {
|
|
1869
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1870
|
+
while (reader.pos < end) {
|
|
1871
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1872
|
+
switch (fieldNo) {
|
|
1873
|
+
case /* string guid */ 1:
|
|
1874
|
+
message.guid = reader.string();
|
|
1875
|
+
break;
|
|
1876
|
+
case /* proto.models.Tournament.TournamentSettings settings */ 2:
|
|
1877
|
+
message.settings = Tournament_TournamentSettings.internalBinaryRead(reader, reader.uint32(), options, message.settings);
|
|
1878
|
+
break;
|
|
1879
|
+
case /* repeated proto.models.User users */ 3:
|
|
1880
|
+
message.users.push(User.internalBinaryRead(reader, reader.uint32(), options));
|
|
1881
|
+
break;
|
|
1882
|
+
case /* repeated proto.models.Match matches */ 4:
|
|
1883
|
+
message.matches.push(Match.internalBinaryRead(reader, reader.uint32(), options));
|
|
1884
|
+
break;
|
|
1885
|
+
case /* repeated proto.models.QualifierEvent qualifiers */ 5:
|
|
1886
|
+
message.qualifiers.push(QualifierEvent.internalBinaryRead(reader, reader.uint32(), options));
|
|
1887
|
+
break;
|
|
1888
|
+
case /* proto.models.CoreServer server */ 6:
|
|
1889
|
+
message.server = CoreServer.internalBinaryRead(reader, reader.uint32(), options, message.server);
|
|
1890
|
+
break;
|
|
1891
|
+
default:
|
|
1892
|
+
let u = options.readUnknownField;
|
|
1893
|
+
if (u === "throw")
|
|
1894
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1895
|
+
let d = reader.skip(wireType);
|
|
1896
|
+
if (u !== false)
|
|
1897
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1898
|
+
}
|
|
1899
|
+
}
|
|
1900
|
+
return message;
|
|
1901
|
+
}
|
|
1902
|
+
internalBinaryWrite(message: Tournament, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1903
|
+
/* string guid = 1; */
|
|
1904
|
+
if (message.guid !== "")
|
|
1905
|
+
writer.tag(1, WireType.LengthDelimited).string(message.guid);
|
|
1906
|
+
/* proto.models.Tournament.TournamentSettings settings = 2; */
|
|
1907
|
+
if (message.settings)
|
|
1908
|
+
Tournament_TournamentSettings.internalBinaryWrite(message.settings, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1909
|
+
/* repeated proto.models.User users = 3; */
|
|
1910
|
+
for (let i = 0; i < message.users.length; i++)
|
|
1911
|
+
User.internalBinaryWrite(message.users[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
1912
|
+
/* repeated proto.models.Match matches = 4; */
|
|
1913
|
+
for (let i = 0; i < message.matches.length; i++)
|
|
1914
|
+
Match.internalBinaryWrite(message.matches[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
1915
|
+
/* repeated proto.models.QualifierEvent qualifiers = 5; */
|
|
1916
|
+
for (let i = 0; i < message.qualifiers.length; i++)
|
|
1917
|
+
QualifierEvent.internalBinaryWrite(message.qualifiers[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
1918
|
+
/* proto.models.CoreServer server = 6; */
|
|
1919
|
+
if (message.server)
|
|
1920
|
+
CoreServer.internalBinaryWrite(message.server, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
1921
|
+
let u = options.writeUnknownFields;
|
|
1922
|
+
if (u !== false)
|
|
1923
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1924
|
+
return writer;
|
|
1925
|
+
}
|
|
1926
|
+
}
|
|
1927
|
+
/**
|
|
1928
|
+
* @generated MessageType for protobuf message proto.models.Tournament
|
|
1929
|
+
*/
|
|
1930
|
+
export const Tournament = new Tournament$Type();
|
|
1931
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1932
|
+
class Tournament_TournamentSettings$Type extends MessageType<Tournament_TournamentSettings> {
|
|
1933
|
+
constructor() {
|
|
1934
|
+
super("proto.models.Tournament.TournamentSettings", [
|
|
1935
|
+
{ no: 1, name: "tournament_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1936
|
+
{ no: 2, name: "tournament_image", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
1937
|
+
{ no: 3, name: "enable_teams", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
1938
|
+
{ no: 4, name: "enable_pools", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
1939
|
+
{ no: 5, name: "teams", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Tournament_TournamentSettings_Team },
|
|
1940
|
+
{ no: 6, name: "score_update_frequency", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
1941
|
+
{ no: 7, name: "banned_mods", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
1942
|
+
{ no: 8, name: "pools", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Tournament_TournamentSettings_Pool },
|
|
1943
|
+
{ no: 9, name: "show_tournament_button", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
1944
|
+
{ no: 10, name: "show_qualifier_button", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
1945
|
+
{ no: 11, name: "allow_unauthorized_view", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
1946
|
+
]);
|
|
1947
|
+
}
|
|
1948
|
+
create(value?: PartialMessage<Tournament_TournamentSettings>): Tournament_TournamentSettings {
|
|
1949
|
+
const message = { tournamentName: "", tournamentImage: new Uint8Array(0), enableTeams: false, enablePools: false, teams: [], scoreUpdateFrequency: 0, bannedMods: [], pools: [], showTournamentButton: false, showQualifierButton: false, allowUnauthorizedView: false };
|
|
1950
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
1951
|
+
if (value !== undefined)
|
|
1952
|
+
reflectionMergePartial<Tournament_TournamentSettings>(this, message, value);
|
|
1953
|
+
return message;
|
|
1954
|
+
}
|
|
1955
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Tournament_TournamentSettings): Tournament_TournamentSettings {
|
|
1956
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1957
|
+
while (reader.pos < end) {
|
|
1958
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1959
|
+
switch (fieldNo) {
|
|
1960
|
+
case /* string tournament_name */ 1:
|
|
1961
|
+
message.tournamentName = reader.string();
|
|
1962
|
+
break;
|
|
1963
|
+
case /* bytes tournament_image */ 2:
|
|
1964
|
+
message.tournamentImage = reader.bytes();
|
|
1965
|
+
break;
|
|
1966
|
+
case /* bool enable_teams */ 3:
|
|
1967
|
+
message.enableTeams = reader.bool();
|
|
1968
|
+
break;
|
|
1969
|
+
case /* bool enable_pools */ 4:
|
|
1970
|
+
message.enablePools = reader.bool();
|
|
1971
|
+
break;
|
|
1972
|
+
case /* repeated proto.models.Tournament.TournamentSettings.Team teams */ 5:
|
|
1973
|
+
message.teams.push(Tournament_TournamentSettings_Team.internalBinaryRead(reader, reader.uint32(), options));
|
|
1974
|
+
break;
|
|
1975
|
+
case /* int32 score_update_frequency */ 6:
|
|
1976
|
+
message.scoreUpdateFrequency = reader.int32();
|
|
1977
|
+
break;
|
|
1978
|
+
case /* repeated string banned_mods */ 7:
|
|
1979
|
+
message.bannedMods.push(reader.string());
|
|
1980
|
+
break;
|
|
1981
|
+
case /* repeated proto.models.Tournament.TournamentSettings.Pool pools */ 8:
|
|
1982
|
+
message.pools.push(Tournament_TournamentSettings_Pool.internalBinaryRead(reader, reader.uint32(), options));
|
|
1983
|
+
break;
|
|
1984
|
+
case /* bool show_tournament_button */ 9:
|
|
1985
|
+
message.showTournamentButton = reader.bool();
|
|
1986
|
+
break;
|
|
1987
|
+
case /* bool show_qualifier_button */ 10:
|
|
1988
|
+
message.showQualifierButton = reader.bool();
|
|
1989
|
+
break;
|
|
1990
|
+
case /* bool allow_unauthorized_view */ 11:
|
|
1991
|
+
message.allowUnauthorizedView = reader.bool();
|
|
1992
|
+
break;
|
|
1993
|
+
default:
|
|
1994
|
+
let u = options.readUnknownField;
|
|
1995
|
+
if (u === "throw")
|
|
1996
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1997
|
+
let d = reader.skip(wireType);
|
|
1998
|
+
if (u !== false)
|
|
1999
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2000
|
+
}
|
|
2001
|
+
}
|
|
2002
|
+
return message;
|
|
2003
|
+
}
|
|
2004
|
+
internalBinaryWrite(message: Tournament_TournamentSettings, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2005
|
+
/* string tournament_name = 1; */
|
|
2006
|
+
if (message.tournamentName !== "")
|
|
2007
|
+
writer.tag(1, WireType.LengthDelimited).string(message.tournamentName);
|
|
2008
|
+
/* bytes tournament_image = 2; */
|
|
2009
|
+
if (message.tournamentImage.length)
|
|
2010
|
+
writer.tag(2, WireType.LengthDelimited).bytes(message.tournamentImage);
|
|
2011
|
+
/* bool enable_teams = 3; */
|
|
2012
|
+
if (message.enableTeams !== false)
|
|
2013
|
+
writer.tag(3, WireType.Varint).bool(message.enableTeams);
|
|
2014
|
+
/* bool enable_pools = 4; */
|
|
2015
|
+
if (message.enablePools !== false)
|
|
2016
|
+
writer.tag(4, WireType.Varint).bool(message.enablePools);
|
|
2017
|
+
/* repeated proto.models.Tournament.TournamentSettings.Team teams = 5; */
|
|
2018
|
+
for (let i = 0; i < message.teams.length; i++)
|
|
2019
|
+
Tournament_TournamentSettings_Team.internalBinaryWrite(message.teams[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
2020
|
+
/* int32 score_update_frequency = 6; */
|
|
2021
|
+
if (message.scoreUpdateFrequency !== 0)
|
|
2022
|
+
writer.tag(6, WireType.Varint).int32(message.scoreUpdateFrequency);
|
|
2023
|
+
/* repeated string banned_mods = 7; */
|
|
2024
|
+
for (let i = 0; i < message.bannedMods.length; i++)
|
|
2025
|
+
writer.tag(7, WireType.LengthDelimited).string(message.bannedMods[i]);
|
|
2026
|
+
/* repeated proto.models.Tournament.TournamentSettings.Pool pools = 8; */
|
|
2027
|
+
for (let i = 0; i < message.pools.length; i++)
|
|
2028
|
+
Tournament_TournamentSettings_Pool.internalBinaryWrite(message.pools[i], writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
2029
|
+
/* bool show_tournament_button = 9; */
|
|
2030
|
+
if (message.showTournamentButton !== false)
|
|
2031
|
+
writer.tag(9, WireType.Varint).bool(message.showTournamentButton);
|
|
2032
|
+
/* bool show_qualifier_button = 10; */
|
|
2033
|
+
if (message.showQualifierButton !== false)
|
|
2034
|
+
writer.tag(10, WireType.Varint).bool(message.showQualifierButton);
|
|
2035
|
+
/* bool allow_unauthorized_view = 11; */
|
|
2036
|
+
if (message.allowUnauthorizedView !== false)
|
|
2037
|
+
writer.tag(11, WireType.Varint).bool(message.allowUnauthorizedView);
|
|
2038
|
+
let u = options.writeUnknownFields;
|
|
2039
|
+
if (u !== false)
|
|
2040
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2041
|
+
return writer;
|
|
2042
|
+
}
|
|
2043
|
+
}
|
|
2044
|
+
/**
|
|
2045
|
+
* @generated MessageType for protobuf message proto.models.Tournament.TournamentSettings
|
|
2046
|
+
*/
|
|
2047
|
+
export const Tournament_TournamentSettings = new Tournament_TournamentSettings$Type();
|
|
2048
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
2049
|
+
class Tournament_TournamentSettings_Pool$Type extends MessageType<Tournament_TournamentSettings_Pool> {
|
|
2050
|
+
constructor() {
|
|
2051
|
+
super("proto.models.Tournament.TournamentSettings.Pool", [
|
|
2052
|
+
{ no: 1, name: "guid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2053
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2054
|
+
{ no: 3, name: "image", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
2055
|
+
{ no: 4, name: "maps", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Map }
|
|
2056
|
+
]);
|
|
2057
|
+
}
|
|
2058
|
+
create(value?: PartialMessage<Tournament_TournamentSettings_Pool>): Tournament_TournamentSettings_Pool {
|
|
2059
|
+
const message = { guid: "", name: "", image: new Uint8Array(0), maps: [] };
|
|
2060
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
2061
|
+
if (value !== undefined)
|
|
2062
|
+
reflectionMergePartial<Tournament_TournamentSettings_Pool>(this, message, value);
|
|
2063
|
+
return message;
|
|
2064
|
+
}
|
|
2065
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Tournament_TournamentSettings_Pool): Tournament_TournamentSettings_Pool {
|
|
2066
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2067
|
+
while (reader.pos < end) {
|
|
2068
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2069
|
+
switch (fieldNo) {
|
|
2070
|
+
case /* string guid */ 1:
|
|
2071
|
+
message.guid = reader.string();
|
|
2072
|
+
break;
|
|
2073
|
+
case /* string name */ 2:
|
|
2074
|
+
message.name = reader.string();
|
|
2075
|
+
break;
|
|
2076
|
+
case /* bytes image */ 3:
|
|
2077
|
+
message.image = reader.bytes();
|
|
2078
|
+
break;
|
|
2079
|
+
case /* repeated proto.models.Map maps */ 4:
|
|
2080
|
+
message.maps.push(Map.internalBinaryRead(reader, reader.uint32(), options));
|
|
2081
|
+
break;
|
|
2082
|
+
default:
|
|
2083
|
+
let u = options.readUnknownField;
|
|
2084
|
+
if (u === "throw")
|
|
2085
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2086
|
+
let d = reader.skip(wireType);
|
|
2087
|
+
if (u !== false)
|
|
2088
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2089
|
+
}
|
|
2090
|
+
}
|
|
2091
|
+
return message;
|
|
2092
|
+
}
|
|
2093
|
+
internalBinaryWrite(message: Tournament_TournamentSettings_Pool, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2094
|
+
/* string guid = 1; */
|
|
2095
|
+
if (message.guid !== "")
|
|
2096
|
+
writer.tag(1, WireType.LengthDelimited).string(message.guid);
|
|
2097
|
+
/* string name = 2; */
|
|
2098
|
+
if (message.name !== "")
|
|
2099
|
+
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
2100
|
+
/* bytes image = 3; */
|
|
2101
|
+
if (message.image.length)
|
|
2102
|
+
writer.tag(3, WireType.LengthDelimited).bytes(message.image);
|
|
2103
|
+
/* repeated proto.models.Map maps = 4; */
|
|
2104
|
+
for (let i = 0; i < message.maps.length; i++)
|
|
2105
|
+
Map.internalBinaryWrite(message.maps[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
2106
|
+
let u = options.writeUnknownFields;
|
|
2107
|
+
if (u !== false)
|
|
2108
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2109
|
+
return writer;
|
|
2110
|
+
}
|
|
2111
|
+
}
|
|
2112
|
+
/**
|
|
2113
|
+
* @generated MessageType for protobuf message proto.models.Tournament.TournamentSettings.Pool
|
|
2114
|
+
*/
|
|
2115
|
+
export const Tournament_TournamentSettings_Pool = new Tournament_TournamentSettings_Pool$Type();
|
|
2116
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
2117
|
+
class Tournament_TournamentSettings_Team$Type extends MessageType<Tournament_TournamentSettings_Team> {
|
|
2118
|
+
constructor() {
|
|
2119
|
+
super("proto.models.Tournament.TournamentSettings.Team", [
|
|
2120
|
+
{ no: 1, name: "guid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2121
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2122
|
+
{ no: 3, name: "image", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
2123
|
+
]);
|
|
2124
|
+
}
|
|
2125
|
+
create(value?: PartialMessage<Tournament_TournamentSettings_Team>): Tournament_TournamentSettings_Team {
|
|
2126
|
+
const message = { guid: "", name: "", image: new Uint8Array(0) };
|
|
2127
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
2128
|
+
if (value !== undefined)
|
|
2129
|
+
reflectionMergePartial<Tournament_TournamentSettings_Team>(this, message, value);
|
|
2130
|
+
return message;
|
|
2131
|
+
}
|
|
2132
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Tournament_TournamentSettings_Team): Tournament_TournamentSettings_Team {
|
|
2133
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2134
|
+
while (reader.pos < end) {
|
|
2135
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2136
|
+
switch (fieldNo) {
|
|
2137
|
+
case /* string guid */ 1:
|
|
2138
|
+
message.guid = reader.string();
|
|
2139
|
+
break;
|
|
2140
|
+
case /* string name */ 2:
|
|
2141
|
+
message.name = reader.string();
|
|
2142
|
+
break;
|
|
2143
|
+
case /* bytes image */ 3:
|
|
2144
|
+
message.image = reader.bytes();
|
|
2145
|
+
break;
|
|
2146
|
+
default:
|
|
2147
|
+
let u = options.readUnknownField;
|
|
2148
|
+
if (u === "throw")
|
|
2149
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2150
|
+
let d = reader.skip(wireType);
|
|
2151
|
+
if (u !== false)
|
|
2152
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2153
|
+
}
|
|
2154
|
+
}
|
|
2155
|
+
return message;
|
|
2156
|
+
}
|
|
2157
|
+
internalBinaryWrite(message: Tournament_TournamentSettings_Team, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2158
|
+
/* string guid = 1; */
|
|
2159
|
+
if (message.guid !== "")
|
|
2160
|
+
writer.tag(1, WireType.LengthDelimited).string(message.guid);
|
|
2161
|
+
/* string name = 2; */
|
|
2162
|
+
if (message.name !== "")
|
|
2163
|
+
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
2164
|
+
/* bytes image = 3; */
|
|
2165
|
+
if (message.image.length)
|
|
2166
|
+
writer.tag(3, WireType.LengthDelimited).bytes(message.image);
|
|
2167
|
+
let u = options.writeUnknownFields;
|
|
2168
|
+
if (u !== false)
|
|
2169
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2170
|
+
return writer;
|
|
2171
|
+
}
|
|
2172
|
+
}
|
|
2173
|
+
/**
|
|
2174
|
+
* @generated MessageType for protobuf message proto.models.Tournament.TournamentSettings.Team
|
|
2175
|
+
*/
|
|
2176
|
+
export const Tournament_TournamentSettings_Team = new Tournament_TournamentSettings_Team$Type();
|
|
2177
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
2178
|
+
class State$Type extends MessageType<State> {
|
|
2179
|
+
constructor() {
|
|
2180
|
+
super("proto.models.State", [
|
|
2181
|
+
{ no: 1, name: "tournaments", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Tournament },
|
|
2182
|
+
{ no: 2, name: "known_servers", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => CoreServer }
|
|
2183
|
+
]);
|
|
2184
|
+
}
|
|
2185
|
+
create(value?: PartialMessage<State>): State {
|
|
2186
|
+
const message = { tournaments: [], knownServers: [] };
|
|
2187
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
2188
|
+
if (value !== undefined)
|
|
2189
|
+
reflectionMergePartial<State>(this, message, value);
|
|
2190
|
+
return message;
|
|
2191
|
+
}
|
|
2192
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: State): State {
|
|
2193
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2194
|
+
while (reader.pos < end) {
|
|
2195
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2196
|
+
switch (fieldNo) {
|
|
2197
|
+
case /* repeated proto.models.Tournament tournaments */ 1:
|
|
2198
|
+
message.tournaments.push(Tournament.internalBinaryRead(reader, reader.uint32(), options));
|
|
2199
|
+
break;
|
|
2200
|
+
case /* repeated proto.models.CoreServer known_servers */ 2:
|
|
2201
|
+
message.knownServers.push(CoreServer.internalBinaryRead(reader, reader.uint32(), options));
|
|
2202
|
+
break;
|
|
2203
|
+
default:
|
|
2204
|
+
let u = options.readUnknownField;
|
|
2205
|
+
if (u === "throw")
|
|
2206
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2207
|
+
let d = reader.skip(wireType);
|
|
2208
|
+
if (u !== false)
|
|
2209
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2210
|
+
}
|
|
2211
|
+
}
|
|
2212
|
+
return message;
|
|
2213
|
+
}
|
|
2214
|
+
internalBinaryWrite(message: State, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2215
|
+
/* repeated proto.models.Tournament tournaments = 1; */
|
|
2216
|
+
for (let i = 0; i < message.tournaments.length; i++)
|
|
2217
|
+
Tournament.internalBinaryWrite(message.tournaments[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2218
|
+
/* repeated proto.models.CoreServer known_servers = 2; */
|
|
2219
|
+
for (let i = 0; i < message.knownServers.length; i++)
|
|
2220
|
+
CoreServer.internalBinaryWrite(message.knownServers[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
2221
|
+
let u = options.writeUnknownFields;
|
|
2222
|
+
if (u !== false)
|
|
2223
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2224
|
+
return writer;
|
|
2225
|
+
}
|
|
2226
|
+
}
|
|
2227
|
+
/**
|
|
2228
|
+
* @generated MessageType for protobuf message proto.models.State
|
|
2229
|
+
*/
|
|
2230
|
+
export const State = new State$Type();
|
|
2231
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
2232
|
+
class ModalOption$Type extends MessageType<ModalOption> {
|
|
2233
|
+
constructor() {
|
|
2234
|
+
super("proto.models.ModalOption", [
|
|
2235
|
+
{ no: 1, name: "label", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2236
|
+
{ no: 2, name: "value", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2237
|
+
]);
|
|
2238
|
+
}
|
|
2239
|
+
create(value?: PartialMessage<ModalOption>): ModalOption {
|
|
2240
|
+
const message = { label: "", value: "" };
|
|
2241
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
2242
|
+
if (value !== undefined)
|
|
2243
|
+
reflectionMergePartial<ModalOption>(this, message, value);
|
|
2244
|
+
return message;
|
|
2245
|
+
}
|
|
2246
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ModalOption): ModalOption {
|
|
2247
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2248
|
+
while (reader.pos < end) {
|
|
2249
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2250
|
+
switch (fieldNo) {
|
|
2251
|
+
case /* string label */ 1:
|
|
2252
|
+
message.label = reader.string();
|
|
2253
|
+
break;
|
|
2254
|
+
case /* string value */ 2:
|
|
2255
|
+
message.value = reader.string();
|
|
2256
|
+
break;
|
|
2257
|
+
default:
|
|
2258
|
+
let u = options.readUnknownField;
|
|
2259
|
+
if (u === "throw")
|
|
2260
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2261
|
+
let d = reader.skip(wireType);
|
|
2262
|
+
if (u !== false)
|
|
2263
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2264
|
+
}
|
|
2265
|
+
}
|
|
2266
|
+
return message;
|
|
2267
|
+
}
|
|
2268
|
+
internalBinaryWrite(message: ModalOption, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2269
|
+
/* string label = 1; */
|
|
2270
|
+
if (message.label !== "")
|
|
2271
|
+
writer.tag(1, WireType.LengthDelimited).string(message.label);
|
|
2272
|
+
/* string value = 2; */
|
|
2273
|
+
if (message.value !== "")
|
|
2274
|
+
writer.tag(2, WireType.LengthDelimited).string(message.value);
|
|
2275
|
+
let u = options.writeUnknownFields;
|
|
2276
|
+
if (u !== false)
|
|
2277
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2278
|
+
return writer;
|
|
2279
|
+
}
|
|
2280
|
+
}
|
|
2281
|
+
/**
|
|
2282
|
+
* @generated MessageType for protobuf message proto.models.ModalOption
|
|
2283
|
+
*/
|
|
2284
|
+
export const ModalOption = new ModalOption$Type();
|
|
2285
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
2286
|
+
class LeaderboardEntry$Type extends MessageType<LeaderboardEntry> {
|
|
2287
|
+
constructor() {
|
|
2288
|
+
super("proto.models.LeaderboardEntry", [
|
|
2289
|
+
{ no: 1, name: "event_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2290
|
+
{ no: 2, name: "map_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2291
|
+
{ no: 3, name: "platform_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2292
|
+
{ no: 4, name: "username", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2293
|
+
{ no: 5, name: "multiplied_score", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
2294
|
+
{ no: 6, name: "modified_score", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
2295
|
+
{ no: 7, name: "max_possible_score", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
2296
|
+
{ no: 8, name: "accuracy", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
|
|
2297
|
+
{ no: 9, name: "notes_missed", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
2298
|
+
{ no: 10, name: "bad_cuts", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
2299
|
+
{ no: 11, name: "good_cuts", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
2300
|
+
{ no: 12, name: "max_combo", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
2301
|
+
{ no: 13, name: "full_combo", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
2302
|
+
{ no: 14, name: "is_placeholder", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
2303
|
+
{ no: 15, name: "color", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2304
|
+
]);
|
|
2305
|
+
}
|
|
2306
|
+
create(value?: PartialMessage<LeaderboardEntry>): LeaderboardEntry {
|
|
2307
|
+
const message = { eventId: "", mapId: "", platformId: "", username: "", multipliedScore: 0, modifiedScore: 0, maxPossibleScore: 0, accuracy: 0, notesMissed: 0, badCuts: 0, goodCuts: 0, maxCombo: 0, fullCombo: false, isPlaceholder: false, color: "" };
|
|
2308
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
2309
|
+
if (value !== undefined)
|
|
2310
|
+
reflectionMergePartial<LeaderboardEntry>(this, message, value);
|
|
2311
|
+
return message;
|
|
2312
|
+
}
|
|
2313
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LeaderboardEntry): LeaderboardEntry {
|
|
2314
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2315
|
+
while (reader.pos < end) {
|
|
2316
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2317
|
+
switch (fieldNo) {
|
|
2318
|
+
case /* string event_id */ 1:
|
|
2319
|
+
message.eventId = reader.string();
|
|
2320
|
+
break;
|
|
2321
|
+
case /* string map_id */ 2:
|
|
2322
|
+
message.mapId = reader.string();
|
|
2323
|
+
break;
|
|
2324
|
+
case /* string platform_id */ 3:
|
|
2325
|
+
message.platformId = reader.string();
|
|
2326
|
+
break;
|
|
2327
|
+
case /* string username */ 4:
|
|
2328
|
+
message.username = reader.string();
|
|
2329
|
+
break;
|
|
2330
|
+
case /* int32 multiplied_score */ 5:
|
|
2331
|
+
message.multipliedScore = reader.int32();
|
|
2332
|
+
break;
|
|
2333
|
+
case /* int32 modified_score */ 6:
|
|
2334
|
+
message.modifiedScore = reader.int32();
|
|
2335
|
+
break;
|
|
2336
|
+
case /* int32 max_possible_score */ 7:
|
|
2337
|
+
message.maxPossibleScore = reader.int32();
|
|
2338
|
+
break;
|
|
2339
|
+
case /* double accuracy */ 8:
|
|
2340
|
+
message.accuracy = reader.double();
|
|
2341
|
+
break;
|
|
2342
|
+
case /* int32 notes_missed */ 9:
|
|
2343
|
+
message.notesMissed = reader.int32();
|
|
2344
|
+
break;
|
|
2345
|
+
case /* int32 bad_cuts */ 10:
|
|
2346
|
+
message.badCuts = reader.int32();
|
|
2347
|
+
break;
|
|
2348
|
+
case /* int32 good_cuts */ 11:
|
|
2349
|
+
message.goodCuts = reader.int32();
|
|
2350
|
+
break;
|
|
2351
|
+
case /* int32 max_combo */ 12:
|
|
2352
|
+
message.maxCombo = reader.int32();
|
|
2353
|
+
break;
|
|
2354
|
+
case /* bool full_combo */ 13:
|
|
2355
|
+
message.fullCombo = reader.bool();
|
|
2356
|
+
break;
|
|
2357
|
+
case /* bool is_placeholder */ 14:
|
|
2358
|
+
message.isPlaceholder = reader.bool();
|
|
2359
|
+
break;
|
|
2360
|
+
case /* string color */ 15:
|
|
2361
|
+
message.color = reader.string();
|
|
2362
|
+
break;
|
|
2363
|
+
default:
|
|
2364
|
+
let u = options.readUnknownField;
|
|
2365
|
+
if (u === "throw")
|
|
2366
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2367
|
+
let d = reader.skip(wireType);
|
|
2368
|
+
if (u !== false)
|
|
2369
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2370
|
+
}
|
|
2371
|
+
}
|
|
2372
|
+
return message;
|
|
2373
|
+
}
|
|
2374
|
+
internalBinaryWrite(message: LeaderboardEntry, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2375
|
+
/* string event_id = 1; */
|
|
2376
|
+
if (message.eventId !== "")
|
|
2377
|
+
writer.tag(1, WireType.LengthDelimited).string(message.eventId);
|
|
2378
|
+
/* string map_id = 2; */
|
|
2379
|
+
if (message.mapId !== "")
|
|
2380
|
+
writer.tag(2, WireType.LengthDelimited).string(message.mapId);
|
|
2381
|
+
/* string platform_id = 3; */
|
|
2382
|
+
if (message.platformId !== "")
|
|
2383
|
+
writer.tag(3, WireType.LengthDelimited).string(message.platformId);
|
|
2384
|
+
/* string username = 4; */
|
|
2385
|
+
if (message.username !== "")
|
|
2386
|
+
writer.tag(4, WireType.LengthDelimited).string(message.username);
|
|
2387
|
+
/* int32 multiplied_score = 5; */
|
|
2388
|
+
if (message.multipliedScore !== 0)
|
|
2389
|
+
writer.tag(5, WireType.Varint).int32(message.multipliedScore);
|
|
2390
|
+
/* int32 modified_score = 6; */
|
|
2391
|
+
if (message.modifiedScore !== 0)
|
|
2392
|
+
writer.tag(6, WireType.Varint).int32(message.modifiedScore);
|
|
2393
|
+
/* int32 max_possible_score = 7; */
|
|
2394
|
+
if (message.maxPossibleScore !== 0)
|
|
2395
|
+
writer.tag(7, WireType.Varint).int32(message.maxPossibleScore);
|
|
2396
|
+
/* double accuracy = 8; */
|
|
2397
|
+
if (message.accuracy !== 0)
|
|
2398
|
+
writer.tag(8, WireType.Bit64).double(message.accuracy);
|
|
2399
|
+
/* int32 notes_missed = 9; */
|
|
2400
|
+
if (message.notesMissed !== 0)
|
|
2401
|
+
writer.tag(9, WireType.Varint).int32(message.notesMissed);
|
|
2402
|
+
/* int32 bad_cuts = 10; */
|
|
2403
|
+
if (message.badCuts !== 0)
|
|
2404
|
+
writer.tag(10, WireType.Varint).int32(message.badCuts);
|
|
2405
|
+
/* int32 good_cuts = 11; */
|
|
2406
|
+
if (message.goodCuts !== 0)
|
|
2407
|
+
writer.tag(11, WireType.Varint).int32(message.goodCuts);
|
|
2408
|
+
/* int32 max_combo = 12; */
|
|
2409
|
+
if (message.maxCombo !== 0)
|
|
2410
|
+
writer.tag(12, WireType.Varint).int32(message.maxCombo);
|
|
2411
|
+
/* bool full_combo = 13; */
|
|
2412
|
+
if (message.fullCombo !== false)
|
|
2413
|
+
writer.tag(13, WireType.Varint).bool(message.fullCombo);
|
|
2414
|
+
/* bool is_placeholder = 14; */
|
|
2415
|
+
if (message.isPlaceholder !== false)
|
|
2416
|
+
writer.tag(14, WireType.Varint).bool(message.isPlaceholder);
|
|
2417
|
+
/* string color = 15; */
|
|
2418
|
+
if (message.color !== "")
|
|
2419
|
+
writer.tag(15, WireType.LengthDelimited).string(message.color);
|
|
2420
|
+
let u = options.writeUnknownFields;
|
|
2421
|
+
if (u !== false)
|
|
2422
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2423
|
+
return writer;
|
|
2424
|
+
}
|
|
2425
|
+
}
|
|
2426
|
+
/**
|
|
2427
|
+
* @generated MessageType for protobuf message proto.models.LeaderboardEntry
|
|
2428
|
+
*/
|
|
2429
|
+
export const LeaderboardEntry = new LeaderboardEntry$Type();
|
|
2430
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
2431
|
+
class RealtimeScore$Type extends MessageType<RealtimeScore> {
|
|
2432
|
+
constructor() {
|
|
2433
|
+
super("proto.models.RealtimeScore", [
|
|
2434
|
+
{ no: 1, name: "user_guid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2435
|
+
{ no: 2, name: "score", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
2436
|
+
{ no: 3, name: "score_with_modifiers", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
2437
|
+
{ no: 4, name: "max_score", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
2438
|
+
{ no: 5, name: "max_score_with_modifiers", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
2439
|
+
{ no: 6, name: "combo", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
2440
|
+
{ no: 7, name: "player_health", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ },
|
|
2441
|
+
{ no: 8, name: "accuracy", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ },
|
|
2442
|
+
{ no: 9, name: "song_position", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ },
|
|
2443
|
+
{ no: 10, name: "notes_missed", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
2444
|
+
{ no: 11, name: "bad_cuts", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
2445
|
+
{ no: 12, name: "bomb_hits", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
2446
|
+
{ no: 13, name: "wall_hits", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
2447
|
+
{ no: 14, name: "max_combo", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
2448
|
+
{ no: 15, name: "left_hand", kind: "message", T: () => ScoreTrackerHand },
|
|
2449
|
+
{ no: 16, name: "right_hand", kind: "message", T: () => ScoreTrackerHand }
|
|
2450
|
+
]);
|
|
2451
|
+
}
|
|
2452
|
+
create(value?: PartialMessage<RealtimeScore>): RealtimeScore {
|
|
2453
|
+
const message = { userGuid: "", score: 0, scoreWithModifiers: 0, maxScore: 0, maxScoreWithModifiers: 0, combo: 0, playerHealth: 0, accuracy: 0, songPosition: 0, notesMissed: 0, badCuts: 0, bombHits: 0, wallHits: 0, maxCombo: 0 };
|
|
2454
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
2455
|
+
if (value !== undefined)
|
|
2456
|
+
reflectionMergePartial<RealtimeScore>(this, message, value);
|
|
2457
|
+
return message;
|
|
2458
|
+
}
|
|
2459
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RealtimeScore): RealtimeScore {
|
|
2460
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2461
|
+
while (reader.pos < end) {
|
|
2462
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2463
|
+
switch (fieldNo) {
|
|
2464
|
+
case /* string user_guid */ 1:
|
|
2465
|
+
message.userGuid = reader.string();
|
|
2466
|
+
break;
|
|
2467
|
+
case /* int32 score */ 2:
|
|
2468
|
+
message.score = reader.int32();
|
|
2469
|
+
break;
|
|
2470
|
+
case /* int32 score_with_modifiers */ 3:
|
|
2471
|
+
message.scoreWithModifiers = reader.int32();
|
|
2472
|
+
break;
|
|
2473
|
+
case /* int32 max_score */ 4:
|
|
2474
|
+
message.maxScore = reader.int32();
|
|
2475
|
+
break;
|
|
2476
|
+
case /* int32 max_score_with_modifiers */ 5:
|
|
2477
|
+
message.maxScoreWithModifiers = reader.int32();
|
|
2478
|
+
break;
|
|
2479
|
+
case /* int32 combo */ 6:
|
|
2480
|
+
message.combo = reader.int32();
|
|
2481
|
+
break;
|
|
2482
|
+
case /* float player_health */ 7:
|
|
2483
|
+
message.playerHealth = reader.float();
|
|
2484
|
+
break;
|
|
2485
|
+
case /* float accuracy */ 8:
|
|
2486
|
+
message.accuracy = reader.float();
|
|
2487
|
+
break;
|
|
2488
|
+
case /* float song_position */ 9:
|
|
2489
|
+
message.songPosition = reader.float();
|
|
2490
|
+
break;
|
|
2491
|
+
case /* int32 notes_missed */ 10:
|
|
2492
|
+
message.notesMissed = reader.int32();
|
|
2493
|
+
break;
|
|
2494
|
+
case /* int32 bad_cuts */ 11:
|
|
2495
|
+
message.badCuts = reader.int32();
|
|
2496
|
+
break;
|
|
2497
|
+
case /* int32 bomb_hits */ 12:
|
|
2498
|
+
message.bombHits = reader.int32();
|
|
2499
|
+
break;
|
|
2500
|
+
case /* int32 wall_hits */ 13:
|
|
2501
|
+
message.wallHits = reader.int32();
|
|
2502
|
+
break;
|
|
2503
|
+
case /* int32 max_combo */ 14:
|
|
2504
|
+
message.maxCombo = reader.int32();
|
|
2505
|
+
break;
|
|
2506
|
+
case /* proto.models.ScoreTrackerHand left_hand */ 15:
|
|
2507
|
+
message.leftHand = ScoreTrackerHand.internalBinaryRead(reader, reader.uint32(), options, message.leftHand);
|
|
2508
|
+
break;
|
|
2509
|
+
case /* proto.models.ScoreTrackerHand right_hand */ 16:
|
|
2510
|
+
message.rightHand = ScoreTrackerHand.internalBinaryRead(reader, reader.uint32(), options, message.rightHand);
|
|
2511
|
+
break;
|
|
2512
|
+
default:
|
|
2513
|
+
let u = options.readUnknownField;
|
|
2514
|
+
if (u === "throw")
|
|
2515
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2516
|
+
let d = reader.skip(wireType);
|
|
2517
|
+
if (u !== false)
|
|
2518
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2519
|
+
}
|
|
2520
|
+
}
|
|
2521
|
+
return message;
|
|
2522
|
+
}
|
|
2523
|
+
internalBinaryWrite(message: RealtimeScore, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2524
|
+
/* string user_guid = 1; */
|
|
2525
|
+
if (message.userGuid !== "")
|
|
2526
|
+
writer.tag(1, WireType.LengthDelimited).string(message.userGuid);
|
|
2527
|
+
/* int32 score = 2; */
|
|
2528
|
+
if (message.score !== 0)
|
|
2529
|
+
writer.tag(2, WireType.Varint).int32(message.score);
|
|
2530
|
+
/* int32 score_with_modifiers = 3; */
|
|
2531
|
+
if (message.scoreWithModifiers !== 0)
|
|
2532
|
+
writer.tag(3, WireType.Varint).int32(message.scoreWithModifiers);
|
|
2533
|
+
/* int32 max_score = 4; */
|
|
2534
|
+
if (message.maxScore !== 0)
|
|
2535
|
+
writer.tag(4, WireType.Varint).int32(message.maxScore);
|
|
2536
|
+
/* int32 max_score_with_modifiers = 5; */
|
|
2537
|
+
if (message.maxScoreWithModifiers !== 0)
|
|
2538
|
+
writer.tag(5, WireType.Varint).int32(message.maxScoreWithModifiers);
|
|
2539
|
+
/* int32 combo = 6; */
|
|
2540
|
+
if (message.combo !== 0)
|
|
2541
|
+
writer.tag(6, WireType.Varint).int32(message.combo);
|
|
2542
|
+
/* float player_health = 7; */
|
|
2543
|
+
if (message.playerHealth !== 0)
|
|
2544
|
+
writer.tag(7, WireType.Bit32).float(message.playerHealth);
|
|
2545
|
+
/* float accuracy = 8; */
|
|
2546
|
+
if (message.accuracy !== 0)
|
|
2547
|
+
writer.tag(8, WireType.Bit32).float(message.accuracy);
|
|
2548
|
+
/* float song_position = 9; */
|
|
2549
|
+
if (message.songPosition !== 0)
|
|
2550
|
+
writer.tag(9, WireType.Bit32).float(message.songPosition);
|
|
2551
|
+
/* int32 notes_missed = 10; */
|
|
2552
|
+
if (message.notesMissed !== 0)
|
|
2553
|
+
writer.tag(10, WireType.Varint).int32(message.notesMissed);
|
|
2554
|
+
/* int32 bad_cuts = 11; */
|
|
2555
|
+
if (message.badCuts !== 0)
|
|
2556
|
+
writer.tag(11, WireType.Varint).int32(message.badCuts);
|
|
2557
|
+
/* int32 bomb_hits = 12; */
|
|
2558
|
+
if (message.bombHits !== 0)
|
|
2559
|
+
writer.tag(12, WireType.Varint).int32(message.bombHits);
|
|
2560
|
+
/* int32 wall_hits = 13; */
|
|
2561
|
+
if (message.wallHits !== 0)
|
|
2562
|
+
writer.tag(13, WireType.Varint).int32(message.wallHits);
|
|
2563
|
+
/* int32 max_combo = 14; */
|
|
2564
|
+
if (message.maxCombo !== 0)
|
|
2565
|
+
writer.tag(14, WireType.Varint).int32(message.maxCombo);
|
|
2566
|
+
/* proto.models.ScoreTrackerHand left_hand = 15; */
|
|
2567
|
+
if (message.leftHand)
|
|
2568
|
+
ScoreTrackerHand.internalBinaryWrite(message.leftHand, writer.tag(15, WireType.LengthDelimited).fork(), options).join();
|
|
2569
|
+
/* proto.models.ScoreTrackerHand right_hand = 16; */
|
|
2570
|
+
if (message.rightHand)
|
|
2571
|
+
ScoreTrackerHand.internalBinaryWrite(message.rightHand, writer.tag(16, WireType.LengthDelimited).fork(), options).join();
|
|
2572
|
+
let u = options.writeUnknownFields;
|
|
2573
|
+
if (u !== false)
|
|
2574
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2575
|
+
return writer;
|
|
2576
|
+
}
|
|
2577
|
+
}
|
|
2578
|
+
/**
|
|
2579
|
+
* @generated MessageType for protobuf message proto.models.RealtimeScore
|
|
2580
|
+
*/
|
|
2581
|
+
export const RealtimeScore = new RealtimeScore$Type();
|
|
2582
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
2583
|
+
class ScoreTrackerHand$Type extends MessageType<ScoreTrackerHand> {
|
|
2584
|
+
constructor() {
|
|
2585
|
+
super("proto.models.ScoreTrackerHand", [
|
|
2586
|
+
{ no: 1, name: "hit", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
2587
|
+
{ no: 2, name: "miss", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
2588
|
+
{ no: 3, name: "bad_cut", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
2589
|
+
{ no: 4, name: "avg_cut", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 2 /*ScalarType.FLOAT*/ }
|
|
2590
|
+
]);
|
|
2591
|
+
}
|
|
2592
|
+
create(value?: PartialMessage<ScoreTrackerHand>): ScoreTrackerHand {
|
|
2593
|
+
const message = { hit: 0, miss: 0, badCut: 0, avgCut: [] };
|
|
2594
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
2595
|
+
if (value !== undefined)
|
|
2596
|
+
reflectionMergePartial<ScoreTrackerHand>(this, message, value);
|
|
2597
|
+
return message;
|
|
2598
|
+
}
|
|
2599
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ScoreTrackerHand): ScoreTrackerHand {
|
|
2600
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2601
|
+
while (reader.pos < end) {
|
|
2602
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2603
|
+
switch (fieldNo) {
|
|
2604
|
+
case /* int32 hit */ 1:
|
|
2605
|
+
message.hit = reader.int32();
|
|
2606
|
+
break;
|
|
2607
|
+
case /* int32 miss */ 2:
|
|
2608
|
+
message.miss = reader.int32();
|
|
2609
|
+
break;
|
|
2610
|
+
case /* int32 bad_cut */ 3:
|
|
2611
|
+
message.badCut = reader.int32();
|
|
2612
|
+
break;
|
|
2613
|
+
case /* repeated float avg_cut */ 4:
|
|
2614
|
+
if (wireType === WireType.LengthDelimited)
|
|
2615
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
2616
|
+
message.avgCut.push(reader.float());
|
|
2617
|
+
else
|
|
2618
|
+
message.avgCut.push(reader.float());
|
|
2619
|
+
break;
|
|
2620
|
+
default:
|
|
2621
|
+
let u = options.readUnknownField;
|
|
2622
|
+
if (u === "throw")
|
|
2623
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2624
|
+
let d = reader.skip(wireType);
|
|
2625
|
+
if (u !== false)
|
|
2626
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2627
|
+
}
|
|
2628
|
+
}
|
|
2629
|
+
return message;
|
|
2630
|
+
}
|
|
2631
|
+
internalBinaryWrite(message: ScoreTrackerHand, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2632
|
+
/* int32 hit = 1; */
|
|
2633
|
+
if (message.hit !== 0)
|
|
2634
|
+
writer.tag(1, WireType.Varint).int32(message.hit);
|
|
2635
|
+
/* int32 miss = 2; */
|
|
2636
|
+
if (message.miss !== 0)
|
|
2637
|
+
writer.tag(2, WireType.Varint).int32(message.miss);
|
|
2638
|
+
/* int32 bad_cut = 3; */
|
|
2639
|
+
if (message.badCut !== 0)
|
|
2640
|
+
writer.tag(3, WireType.Varint).int32(message.badCut);
|
|
2641
|
+
/* repeated float avg_cut = 4; */
|
|
2642
|
+
if (message.avgCut.length) {
|
|
2643
|
+
writer.tag(4, WireType.LengthDelimited).fork();
|
|
2644
|
+
for (let i = 0; i < message.avgCut.length; i++)
|
|
2645
|
+
writer.float(message.avgCut[i]);
|
|
2646
|
+
writer.join();
|
|
2647
|
+
}
|
|
2648
|
+
let u = options.writeUnknownFields;
|
|
2649
|
+
if (u !== false)
|
|
2650
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2651
|
+
return writer;
|
|
2652
|
+
}
|
|
2653
|
+
}
|
|
2654
|
+
/**
|
|
2655
|
+
* @generated MessageType for protobuf message proto.models.ScoreTrackerHand
|
|
2656
|
+
*/
|
|
2657
|
+
export const ScoreTrackerHand = new ScoreTrackerHand$Type();
|