moons-ta-client 1.0.1 → 1.0.3

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.
Files changed (43) hide show
  1. package/dist/client.d.ts +22 -0
  2. package/dist/client.js +77 -0
  3. package/dist/constants.d.ts +4 -0
  4. package/{src/constants.ts → dist/constants.js} +1 -1
  5. package/dist/custom-event-emitter.d.ts +7 -0
  6. package/dist/custom-event-emitter.js +16 -0
  7. package/dist/index.d.ts +4591 -0
  8. package/dist/index.esm.js +16500 -0
  9. package/{src/index.ts → dist/index.js} +1 -1
  10. package/dist/models/commands.d.ts +116 -0
  11. package/{src/models/commands.ts → dist/models/commands.js} +17 -102
  12. package/dist/models/discord.d.ts +76 -0
  13. package/{src/models/discord.ts → dist/models/discord.js} +15 -62
  14. package/dist/models/events.d.ts +419 -0
  15. package/{src/models/events.ts → dist/models/events.js} +89 -354
  16. package/dist/models/index.js +8 -0
  17. package/dist/models/models.d.ts +1137 -0
  18. package/{src/models/models.ts → dist/models/models.js} +200 -799
  19. package/dist/models/packets.d.ts +144 -0
  20. package/{src/models/packets.ts → dist/models/packets.js} +26 -126
  21. package/dist/models/pushes.d.ts +122 -0
  22. package/{src/models/pushes.ts → dist/models/pushes.js} +24 -96
  23. package/dist/models/requests.d.ts +1694 -0
  24. package/{src/models/requests.ts → dist/models/requests.js} +323 -1469
  25. package/dist/models/responses.d.ts +799 -0
  26. package/{src/models/responses.ts → dist/models/responses.js} +161 -669
  27. package/dist/scraper.d.ts +2 -0
  28. package/dist/scraper.js +87 -0
  29. package/dist/state-manager.d.ts +50 -0
  30. package/dist/state-manager.js +196 -0
  31. package/dist/tournament-assistant-client.d.ts +113 -0
  32. package/dist/tournament-assistant-client.js +1167 -0
  33. package/package.json +8 -2
  34. package/rollup.config.mjs +0 -16
  35. package/scripts/esbuild.mjs +0 -24
  36. package/scripts/fixImports.mjs +0 -44
  37. package/src/client.ts +0 -101
  38. package/src/custom-event-emitter.ts +0 -21
  39. package/src/scraper.ts +0 -137
  40. package/src/state-manager.ts +0 -308
  41. package/src/tournament-assistant-client.ts +0 -1553
  42. package/tsconfig.json +0 -27
  43. /package/{src/models/index.ts → dist/models/index.d.ts} +0 -0
@@ -1,13 +1,5 @@
1
- // @generated by protobuf-ts 2.8.2
2
- // @generated from protobuf file "responses.proto" (package "proto.packets", syntax proto3)
3
- // tslint:disable
4
- import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
5
- import type { IBinaryWriter } from "@protobuf-ts/runtime";
6
1
  import { WireType } from "@protobuf-ts/runtime";
7
- import type { BinaryReadOptions } from "@protobuf-ts/runtime";
8
- import type { IBinaryReader } from "@protobuf-ts/runtime";
9
2
  import { UnknownFieldHandler } from "@protobuf-ts/runtime";
10
- import type { PartialMessage } from "@protobuf-ts/runtime";
11
3
  import { reflectionMergePartial } from "@protobuf-ts/runtime";
12
4
  import { MESSAGE_TYPE } from "@protobuf-ts/runtime";
13
5
  import { MessageType } from "@protobuf-ts/runtime";
@@ -19,542 +11,42 @@ import { Permissions } from './models.js';
19
11
  import { QualifierEvent } from './models.js';
20
12
  import { Match } from './models.js';
21
13
  import { User } from './models.js';
22
- /**
23
- * ---- Responses ---- //
24
- *
25
- * @generated from protobuf message proto.packets.Response
26
- */
27
- export interface Response {
28
- /**
29
- * @generated from protobuf field: proto.packets.Response.ResponseType type = 1;
30
- */
31
- type: Response_ResponseType;
32
- /**
33
- * @generated from protobuf field: string responding_to_packet_id = 2;
34
- */
35
- respondingToPacketId: string;
36
- /**
37
- * @generated from protobuf oneof: details
38
- */
39
- details: {
40
- oneofKind: "updateUser";
41
- /**
42
- * @generated from protobuf field: proto.packets.Response.UpdateUser update_user = 3;
43
- */
44
- updateUser: Response_UpdateUser;
45
- } | {
46
- oneofKind: "createMatch";
47
- /**
48
- * @generated from protobuf field: proto.packets.Response.CreateMatch create_match = 4;
49
- */
50
- createMatch: Response_CreateMatch;
51
- } | {
52
- oneofKind: "updateMatch";
53
- /**
54
- * @generated from protobuf field: proto.packets.Response.UpdateMatch update_match = 5;
55
- */
56
- updateMatch: Response_UpdateMatch;
57
- } | {
58
- oneofKind: "deleteMatch";
59
- /**
60
- * @generated from protobuf field: proto.packets.Response.DeleteMatch delete_match = 6;
61
- */
62
- deleteMatch: Response_DeleteMatch;
63
- } | {
64
- oneofKind: "createQualifierEvent";
65
- /**
66
- * @generated from protobuf field: proto.packets.Response.CreateQualifierEvent create_qualifier_event = 7;
67
- */
68
- createQualifierEvent: Response_CreateQualifierEvent;
69
- } | {
70
- oneofKind: "updateQualifierEvent";
71
- /**
72
- * @generated from protobuf field: proto.packets.Response.UpdateQualifierEvent update_qualifier_event = 8;
73
- */
74
- updateQualifierEvent: Response_UpdateQualifierEvent;
75
- } | {
76
- oneofKind: "deleteQualifierEvent";
77
- /**
78
- * @generated from protobuf field: proto.packets.Response.DeleteQualifierEvent delete_qualifier_event = 9;
79
- */
80
- deleteQualifierEvent: Response_DeleteQualifierEvent;
81
- } | {
82
- oneofKind: "addAuthorizedUser";
83
- /**
84
- * @generated from protobuf field: proto.packets.Response.AddAuthorizedUser add_authorized_user = 21;
85
- */
86
- addAuthorizedUser: Response_AddAuthorizedUser;
87
- } | {
88
- oneofKind: "updateAuthorizedUser";
89
- /**
90
- * @generated from protobuf field: proto.packets.Response.UpdateAuthorizedUser update_authorized_user = 22;
91
- */
92
- updateAuthorizedUser: Response_UpdateAuthorizedUser;
93
- } | {
94
- oneofKind: "removeAuthorizedUser";
95
- /**
96
- * @generated from protobuf field: proto.packets.Response.RemoveAuthorizedUser remove_authorized_user = 23;
97
- */
98
- removeAuthorizedUser: Response_RemoveAuthorizedUser;
99
- } | {
100
- oneofKind: "getAuthorizedUsers";
101
- /**
102
- * @generated from protobuf field: proto.packets.Response.GetAuthorizedUsers get_authorized_users = 24;
103
- */
104
- getAuthorizedUsers: Response_GetAuthorizedUsers;
105
- } | {
106
- oneofKind: "getDiscordInfo";
107
- /**
108
- * @generated from protobuf field: proto.packets.Response.GetDiscordInfo get_discord_info = 25;
109
- */
110
- getDiscordInfo: Response_GetDiscordInfo;
111
- } | {
112
- oneofKind: "createTournament";
113
- /**
114
- * @generated from protobuf field: proto.packets.Response.CreateTournament create_tournament = 10;
115
- */
116
- createTournament: Response_CreateTournament;
117
- } | {
118
- oneofKind: "updateTournament";
119
- /**
120
- * @generated from protobuf field: proto.packets.Response.UpdateTournament update_tournament = 11;
121
- */
122
- updateTournament: Response_UpdateTournament;
123
- } | {
124
- oneofKind: "deleteTournament";
125
- /**
126
- * @generated from protobuf field: proto.packets.Response.DeleteTournament delete_tournament = 12;
127
- */
128
- deleteTournament: Response_DeleteTournament;
129
- } | {
130
- oneofKind: "addServer";
131
- /**
132
- * @generated from protobuf field: proto.packets.Response.AddServer add_server = 13;
133
- */
134
- addServer: Response_AddServer;
135
- } | {
136
- oneofKind: "connect";
137
- /**
138
- * @generated from protobuf field: proto.packets.Response.Connect connect = 14;
139
- */
140
- connect: Response_Connect;
141
- } | {
142
- oneofKind: "join";
143
- /**
144
- * @generated from protobuf field: proto.packets.Response.Join join = 15;
145
- */
146
- join: Response_Join;
147
- } | {
148
- oneofKind: "leaderboardEntries";
149
- /**
150
- * @generated from protobuf field: proto.packets.Response.LeaderboardEntries leaderboard_entries = 16;
151
- */
152
- leaderboardEntries: Response_LeaderboardEntries;
153
- } | {
154
- oneofKind: "loadSong";
155
- /**
156
- * @generated from protobuf field: proto.packets.Response.LoadSong load_song = 17;
157
- */
158
- loadSong: Response_LoadSong;
159
- } | {
160
- oneofKind: "preloadImageForStreamSync";
161
- /**
162
- * @generated from protobuf field: proto.packets.Response.PreloadImageForStreamSync preload_image_for_stream_sync = 18;
163
- */
164
- preloadImageForStreamSync: Response_PreloadImageForStreamSync;
165
- } | {
166
- oneofKind: "showModal";
167
- /**
168
- * @generated from protobuf field: proto.packets.Response.ShowModal show_modal = 19;
169
- */
170
- showModal: Response_ShowModal;
171
- } | {
172
- oneofKind: "remainingAttempts";
173
- /**
174
- * @generated from protobuf field: proto.packets.Response.RemainingAttempts remaining_attempts = 20;
175
- */
176
- remainingAttempts: Response_RemainingAttempts;
177
- } | {
178
- oneofKind: undefined;
179
- };
180
- }
181
- /**
182
- * --- State Update Responses ---//
183
- *
184
- * @generated from protobuf message proto.packets.Response.UpdateUser
185
- */
186
- export interface Response_UpdateUser {
187
- /**
188
- * @generated from protobuf field: string message = 1;
189
- */
190
- message: string;
191
- /**
192
- * @generated from protobuf field: proto.models.User user = 2;
193
- */
194
- user?: User;
195
- }
196
- /**
197
- * @generated from protobuf message proto.packets.Response.CreateMatch
198
- */
199
- export interface Response_CreateMatch {
200
- /**
201
- * @generated from protobuf field: string message = 1;
202
- */
203
- message: string;
204
- /**
205
- * @generated from protobuf field: proto.models.Match match = 2;
206
- */
207
- match?: Match;
208
- }
209
- /**
210
- * @generated from protobuf message proto.packets.Response.UpdateMatch
211
- */
212
- export interface Response_UpdateMatch {
213
- /**
214
- * @generated from protobuf field: string message = 1;
215
- */
216
- message: string;
217
- /**
218
- * @generated from protobuf field: proto.models.Match match = 2;
219
- */
220
- match?: Match;
221
- }
222
- /**
223
- * @generated from protobuf message proto.packets.Response.DeleteMatch
224
- */
225
- export interface Response_DeleteMatch {
226
- /**
227
- * @generated from protobuf field: string message = 1;
228
- */
229
- message: string;
230
- /**
231
- * @generated from protobuf field: proto.models.Match match = 2;
232
- */
233
- match?: Match;
234
- }
235
- /**
236
- * @generated from protobuf message proto.packets.Response.CreateQualifierEvent
237
- */
238
- export interface Response_CreateQualifierEvent {
239
- /**
240
- * @generated from protobuf field: string message = 1;
241
- */
242
- message: string;
243
- /**
244
- * @generated from protobuf field: proto.models.QualifierEvent qualifier = 2;
245
- */
246
- qualifier?: QualifierEvent;
247
- }
248
- /**
249
- * @generated from protobuf message proto.packets.Response.UpdateQualifierEvent
250
- */
251
- export interface Response_UpdateQualifierEvent {
252
- /**
253
- * @generated from protobuf field: string message = 1;
254
- */
255
- message: string;
256
- /**
257
- * @generated from protobuf field: proto.models.QualifierEvent qualifier = 2;
258
- */
259
- qualifier?: QualifierEvent;
260
- }
261
- /**
262
- * @generated from protobuf message proto.packets.Response.DeleteQualifierEvent
263
- */
264
- export interface Response_DeleteQualifierEvent {
265
- /**
266
- * @generated from protobuf field: string message = 1;
267
- */
268
- message: string;
269
- /**
270
- * @generated from protobuf field: proto.models.QualifierEvent qualifier = 2;
271
- */
272
- qualifier?: QualifierEvent;
273
- }
274
- /**
275
- * @generated from protobuf message proto.packets.Response.AddAuthorizedUser
276
- */
277
- export interface Response_AddAuthorizedUser {
278
- /**
279
- * @generated from protobuf field: string tournament_id = 1;
280
- */
281
- tournamentId: string;
282
- /**
283
- * @generated from protobuf field: string discord_id = 2;
284
- */
285
- discordId: string;
286
- /**
287
- * @generated from protobuf field: proto.models.Permissions permission_flags = 3;
288
- */
289
- permissionFlags: Permissions;
290
- }
291
- /**
292
- * @generated from protobuf message proto.packets.Response.UpdateAuthorizedUser
293
- */
294
- export interface Response_UpdateAuthorizedUser {
295
- /**
296
- * @generated from protobuf field: string tournament_id = 1;
297
- */
298
- tournamentId: string;
299
- /**
300
- * @generated from protobuf field: string discord_id = 2;
301
- */
302
- discordId: string;
303
- /**
304
- * @generated from protobuf field: proto.models.Permissions permission_flags = 3;
305
- */
306
- permissionFlags: Permissions;
307
- }
308
- /**
309
- * @generated from protobuf message proto.packets.Response.RemoveAuthorizedUser
310
- */
311
- export interface Response_RemoveAuthorizedUser {
312
- /**
313
- * @generated from protobuf field: string tournament_id = 1;
314
- */
315
- tournamentId: string;
316
- /**
317
- * @generated from protobuf field: string discord_id = 2;
318
- */
319
- discordId: string;
320
- /**
321
- * @generated from protobuf field: proto.models.Permissions permission_flags = 3;
322
- */
323
- permissionFlags: Permissions;
324
- }
325
- /**
326
- * @generated from protobuf message proto.packets.Response.GetAuthorizedUsers
327
- */
328
- export interface Response_GetAuthorizedUsers {
329
- /**
330
- * @generated from protobuf field: string tournament_id = 1;
331
- */
332
- tournamentId: string;
333
- /**
334
- * @generated from protobuf field: repeated proto.packets.Response.GetAuthorizedUsers.AuthroizedUser authorized_users = 2;
335
- */
336
- authorizedUsers: Response_GetAuthorizedUsers_AuthroizedUser[];
337
- }
338
- /**
339
- * @generated from protobuf message proto.packets.Response.GetAuthorizedUsers.AuthroizedUser
340
- */
341
- export interface Response_GetAuthorizedUsers_AuthroizedUser {
342
- /**
343
- * @generated from protobuf field: string discord_id = 1;
344
- */
345
- discordId: string;
346
- /**
347
- * @generated from protobuf field: string discord_username = 2;
348
- */
349
- discordUsername: string;
350
- /**
351
- * @generated from protobuf field: string discord_avatar_url = 3;
352
- */
353
- discordAvatarUrl: string;
354
- /**
355
- * @generated from protobuf field: proto.models.Permissions permission = 4;
356
- */
357
- permission: Permissions;
358
- }
359
- /**
360
- * @generated from protobuf message proto.packets.Response.GetDiscordInfo
361
- */
362
- export interface Response_GetDiscordInfo {
363
- /**
364
- * @generated from protobuf field: string discord_id = 1;
365
- */
366
- discordId: string;
367
- /**
368
- * @generated from protobuf field: string discord_username = 2;
369
- */
370
- discordUsername: string;
371
- /**
372
- * @generated from protobuf field: string discord_avatar_url = 3;
373
- */
374
- discordAvatarUrl: string;
375
- }
376
- /**
377
- * @generated from protobuf message proto.packets.Response.CreateTournament
378
- */
379
- export interface Response_CreateTournament {
380
- /**
381
- * @generated from protobuf field: string message = 1;
382
- */
383
- message: string;
384
- /**
385
- * @generated from protobuf field: proto.models.Tournament tournament = 2;
386
- */
387
- tournament?: Tournament;
388
- }
389
- /**
390
- * @generated from protobuf message proto.packets.Response.UpdateTournament
391
- */
392
- export interface Response_UpdateTournament {
393
- /**
394
- * @generated from protobuf field: string message = 1;
395
- */
396
- message: string;
397
- /**
398
- * @generated from protobuf field: proto.models.Tournament tournament = 2;
399
- */
400
- tournament?: Tournament;
401
- }
402
- /**
403
- * @generated from protobuf message proto.packets.Response.DeleteTournament
404
- */
405
- export interface Response_DeleteTournament {
406
- /**
407
- * @generated from protobuf field: string message = 1;
408
- */
409
- message: string;
410
- /**
411
- * @generated from protobuf field: proto.models.Tournament tournament = 2;
412
- */
413
- tournament?: Tournament;
414
- }
415
- /**
416
- * @generated from protobuf message proto.packets.Response.AddServer
417
- */
418
- export interface Response_AddServer {
419
- /**
420
- * @generated from protobuf field: string message = 1;
421
- */
422
- message: string;
423
- /**
424
- * @generated from protobuf field: proto.models.CoreServer server = 2;
425
- */
426
- server?: CoreServer;
427
- }
428
- /**
429
- * -- Other Responses --/
430
- *
431
- * @generated from protobuf message proto.packets.Response.Connect
432
- */
433
- export interface Response_Connect {
434
- /**
435
- * @generated from protobuf field: proto.models.State state = 1;
436
- */
437
- state?: State;
438
- /**
439
- * @generated from protobuf field: int32 server_version = 2;
440
- */
441
- serverVersion: number;
442
- /**
443
- * @generated from protobuf field: string message = 3;
444
- */
445
- message: string;
446
- /**
447
- * @generated from protobuf field: proto.packets.Response.Connect.ConnectFailReason reason = 4;
448
- */
449
- reason: Response_Connect_ConnectFailReason;
450
- }
451
14
  /**
452
15
  * @generated from protobuf enum proto.packets.Response.Connect.ConnectFailReason
453
16
  */
454
- export enum Response_Connect_ConnectFailReason {
17
+ export var Response_Connect_ConnectFailReason;
18
+ (function (Response_Connect_ConnectFailReason) {
455
19
  /**
456
20
  * @generated from protobuf enum value: IncorrectVersion = 0;
457
21
  */
458
- IncorrectVersion = 0
459
- }
460
- /**
461
- * @generated from protobuf message proto.packets.Response.Join
462
- */
463
- export interface Response_Join {
464
- /**
465
- * @generated from protobuf field: proto.models.State state = 1;
466
- */
467
- state?: State;
468
- /**
469
- * @generated from protobuf field: string self_guid = 2;
470
- */
471
- selfGuid: string;
472
- /**
473
- * @generated from protobuf field: string tournament_id = 3;
474
- */
475
- tournamentId: string;
476
- /**
477
- * @generated from protobuf field: string message = 4;
478
- */
479
- message: string;
480
- /**
481
- * @generated from protobuf field: proto.packets.Response.Join.JoinFailReason reason = 5;
482
- */
483
- reason: Response_Join_JoinFailReason;
484
- }
22
+ Response_Connect_ConnectFailReason[Response_Connect_ConnectFailReason["IncorrectVersion"] = 0] = "IncorrectVersion";
23
+ })(Response_Connect_ConnectFailReason = Response_Connect_ConnectFailReason || (Response_Connect_ConnectFailReason = {}));
485
24
  /**
486
25
  * @generated from protobuf enum proto.packets.Response.Join.JoinFailReason
487
26
  */
488
- export enum Response_Join_JoinFailReason {
27
+ export var Response_Join_JoinFailReason;
28
+ (function (Response_Join_JoinFailReason) {
489
29
  /**
490
30
  * @generated from protobuf enum value: IncorrectPassword = 0;
491
31
  */
492
- IncorrectPassword = 0
493
- }
494
- /**
495
- * @generated from protobuf message proto.packets.Response.LeaderboardEntries
496
- */
497
- export interface Response_LeaderboardEntries {
498
- /**
499
- * @generated from protobuf field: repeated proto.models.LeaderboardEntry scores = 1;
500
- */
501
- scores: LeaderboardEntry[];
502
- }
503
- /**
504
- * @generated from protobuf message proto.packets.Response.LoadSong
505
- */
506
- export interface Response_LoadSong {
507
- /**
508
- * @generated from protobuf field: string level_id = 1;
509
- */
510
- levelId: string;
511
- }
512
- /**
513
- * @generated from protobuf message proto.packets.Response.PreloadImageForStreamSync
514
- */
515
- export interface Response_PreloadImageForStreamSync {
516
- /**
517
- * @generated from protobuf field: string file_id = 1;
518
- */
519
- fileId: string;
520
- }
521
- /**
522
- * @generated from protobuf message proto.packets.Response.ShowModal
523
- */
524
- export interface Response_ShowModal {
525
- /**
526
- * @generated from protobuf field: string modal_id = 1;
527
- */
528
- modalId: string;
529
- /**
530
- * @generated from protobuf field: string value = 2;
531
- */
532
- value: string;
533
- }
534
- /**
535
- * @generated from protobuf message proto.packets.Response.RemainingAttempts
536
- */
537
- export interface Response_RemainingAttempts {
538
- /**
539
- * @generated from protobuf field: int32 remaining_attempts = 1;
540
- */
541
- remainingAttempts: number;
542
- }
32
+ Response_Join_JoinFailReason[Response_Join_JoinFailReason["IncorrectPassword"] = 0] = "IncorrectPassword";
33
+ })(Response_Join_JoinFailReason = Response_Join_JoinFailReason || (Response_Join_JoinFailReason = {}));
543
34
  /**
544
35
  * @generated from protobuf enum proto.packets.Response.ResponseType
545
36
  */
546
- export enum Response_ResponseType {
37
+ export var Response_ResponseType;
38
+ (function (Response_ResponseType) {
547
39
  /**
548
40
  * @generated from protobuf enum value: Fail = 0;
549
41
  */
550
- Fail = 0,
42
+ Response_ResponseType[Response_ResponseType["Fail"] = 0] = "Fail";
551
43
  /**
552
44
  * @generated from protobuf enum value: Success = 1;
553
45
  */
554
- Success = 1
555
- }
46
+ Response_ResponseType[Response_ResponseType["Success"] = 1] = "Success";
47
+ })(Response_ResponseType = Response_ResponseType || (Response_ResponseType = {}));
556
48
  // @generated message type with reflection information, may provide speed optimized methods
557
- class Response$Type extends MessageType<Response> {
49
+ class Response$Type extends MessageType {
558
50
  constructor() {
559
51
  super("proto.packets.Response", [
560
52
  { no: 1, name: "type", kind: "enum", T: () => ["proto.packets.Response.ResponseType", Response_ResponseType] },
@@ -584,14 +76,14 @@ class Response$Type extends MessageType<Response> {
584
76
  { no: 20, name: "remaining_attempts", kind: "message", oneof: "details", T: () => Response_RemainingAttempts }
585
77
  ]);
586
78
  }
587
- create(value?: PartialMessage<Response>): Response {
79
+ create(value) {
588
80
  const message = { type: 0, respondingToPacketId: "", details: { oneofKind: undefined } };
589
81
  globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
590
82
  if (value !== undefined)
591
- reflectionMergePartial<Response>(this, message, value);
83
+ reflectionMergePartial(this, message, value);
592
84
  return message;
593
85
  }
594
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response): Response {
86
+ internalBinaryRead(reader, length, options, target) {
595
87
  let message = target ?? this.create(), end = reader.pos + length;
596
88
  while (reader.pos < end) {
597
89
  let [fieldNo, wireType] = reader.tag();
@@ -605,139 +97,139 @@ class Response$Type extends MessageType<Response> {
605
97
  case /* proto.packets.Response.UpdateUser update_user */ 3:
606
98
  message.details = {
607
99
  oneofKind: "updateUser",
608
- updateUser: Response_UpdateUser.internalBinaryRead(reader, reader.uint32(), options, (message.details as any).updateUser)
100
+ updateUser: Response_UpdateUser.internalBinaryRead(reader, reader.uint32(), options, message.details.updateUser)
609
101
  };
610
102
  break;
611
103
  case /* proto.packets.Response.CreateMatch create_match */ 4:
612
104
  message.details = {
613
105
  oneofKind: "createMatch",
614
- createMatch: Response_CreateMatch.internalBinaryRead(reader, reader.uint32(), options, (message.details as any).createMatch)
106
+ createMatch: Response_CreateMatch.internalBinaryRead(reader, reader.uint32(), options, message.details.createMatch)
615
107
  };
616
108
  break;
617
109
  case /* proto.packets.Response.UpdateMatch update_match */ 5:
618
110
  message.details = {
619
111
  oneofKind: "updateMatch",
620
- updateMatch: Response_UpdateMatch.internalBinaryRead(reader, reader.uint32(), options, (message.details as any).updateMatch)
112
+ updateMatch: Response_UpdateMatch.internalBinaryRead(reader, reader.uint32(), options, message.details.updateMatch)
621
113
  };
622
114
  break;
623
115
  case /* proto.packets.Response.DeleteMatch delete_match */ 6:
624
116
  message.details = {
625
117
  oneofKind: "deleteMatch",
626
- deleteMatch: Response_DeleteMatch.internalBinaryRead(reader, reader.uint32(), options, (message.details as any).deleteMatch)
118
+ deleteMatch: Response_DeleteMatch.internalBinaryRead(reader, reader.uint32(), options, message.details.deleteMatch)
627
119
  };
628
120
  break;
629
121
  case /* proto.packets.Response.CreateQualifierEvent create_qualifier_event */ 7:
630
122
  message.details = {
631
123
  oneofKind: "createQualifierEvent",
632
- createQualifierEvent: Response_CreateQualifierEvent.internalBinaryRead(reader, reader.uint32(), options, (message.details as any).createQualifierEvent)
124
+ createQualifierEvent: Response_CreateQualifierEvent.internalBinaryRead(reader, reader.uint32(), options, message.details.createQualifierEvent)
633
125
  };
634
126
  break;
635
127
  case /* proto.packets.Response.UpdateQualifierEvent update_qualifier_event */ 8:
636
128
  message.details = {
637
129
  oneofKind: "updateQualifierEvent",
638
- updateQualifierEvent: Response_UpdateQualifierEvent.internalBinaryRead(reader, reader.uint32(), options, (message.details as any).updateQualifierEvent)
130
+ updateQualifierEvent: Response_UpdateQualifierEvent.internalBinaryRead(reader, reader.uint32(), options, message.details.updateQualifierEvent)
639
131
  };
640
132
  break;
641
133
  case /* proto.packets.Response.DeleteQualifierEvent delete_qualifier_event */ 9:
642
134
  message.details = {
643
135
  oneofKind: "deleteQualifierEvent",
644
- deleteQualifierEvent: Response_DeleteQualifierEvent.internalBinaryRead(reader, reader.uint32(), options, (message.details as any).deleteQualifierEvent)
136
+ deleteQualifierEvent: Response_DeleteQualifierEvent.internalBinaryRead(reader, reader.uint32(), options, message.details.deleteQualifierEvent)
645
137
  };
646
138
  break;
647
139
  case /* proto.packets.Response.AddAuthorizedUser add_authorized_user */ 21:
648
140
  message.details = {
649
141
  oneofKind: "addAuthorizedUser",
650
- addAuthorizedUser: Response_AddAuthorizedUser.internalBinaryRead(reader, reader.uint32(), options, (message.details as any).addAuthorizedUser)
142
+ addAuthorizedUser: Response_AddAuthorizedUser.internalBinaryRead(reader, reader.uint32(), options, message.details.addAuthorizedUser)
651
143
  };
652
144
  break;
653
145
  case /* proto.packets.Response.UpdateAuthorizedUser update_authorized_user */ 22:
654
146
  message.details = {
655
147
  oneofKind: "updateAuthorizedUser",
656
- updateAuthorizedUser: Response_UpdateAuthorizedUser.internalBinaryRead(reader, reader.uint32(), options, (message.details as any).updateAuthorizedUser)
148
+ updateAuthorizedUser: Response_UpdateAuthorizedUser.internalBinaryRead(reader, reader.uint32(), options, message.details.updateAuthorizedUser)
657
149
  };
658
150
  break;
659
151
  case /* proto.packets.Response.RemoveAuthorizedUser remove_authorized_user */ 23:
660
152
  message.details = {
661
153
  oneofKind: "removeAuthorizedUser",
662
- removeAuthorizedUser: Response_RemoveAuthorizedUser.internalBinaryRead(reader, reader.uint32(), options, (message.details as any).removeAuthorizedUser)
154
+ removeAuthorizedUser: Response_RemoveAuthorizedUser.internalBinaryRead(reader, reader.uint32(), options, message.details.removeAuthorizedUser)
663
155
  };
664
156
  break;
665
157
  case /* proto.packets.Response.GetAuthorizedUsers get_authorized_users */ 24:
666
158
  message.details = {
667
159
  oneofKind: "getAuthorizedUsers",
668
- getAuthorizedUsers: Response_GetAuthorizedUsers.internalBinaryRead(reader, reader.uint32(), options, (message.details as any).getAuthorizedUsers)
160
+ getAuthorizedUsers: Response_GetAuthorizedUsers.internalBinaryRead(reader, reader.uint32(), options, message.details.getAuthorizedUsers)
669
161
  };
670
162
  break;
671
163
  case /* proto.packets.Response.GetDiscordInfo get_discord_info */ 25:
672
164
  message.details = {
673
165
  oneofKind: "getDiscordInfo",
674
- getDiscordInfo: Response_GetDiscordInfo.internalBinaryRead(reader, reader.uint32(), options, (message.details as any).getDiscordInfo)
166
+ getDiscordInfo: Response_GetDiscordInfo.internalBinaryRead(reader, reader.uint32(), options, message.details.getDiscordInfo)
675
167
  };
676
168
  break;
677
169
  case /* proto.packets.Response.CreateTournament create_tournament */ 10:
678
170
  message.details = {
679
171
  oneofKind: "createTournament",
680
- createTournament: Response_CreateTournament.internalBinaryRead(reader, reader.uint32(), options, (message.details as any).createTournament)
172
+ createTournament: Response_CreateTournament.internalBinaryRead(reader, reader.uint32(), options, message.details.createTournament)
681
173
  };
682
174
  break;
683
175
  case /* proto.packets.Response.UpdateTournament update_tournament */ 11:
684
176
  message.details = {
685
177
  oneofKind: "updateTournament",
686
- updateTournament: Response_UpdateTournament.internalBinaryRead(reader, reader.uint32(), options, (message.details as any).updateTournament)
178
+ updateTournament: Response_UpdateTournament.internalBinaryRead(reader, reader.uint32(), options, message.details.updateTournament)
687
179
  };
688
180
  break;
689
181
  case /* proto.packets.Response.DeleteTournament delete_tournament */ 12:
690
182
  message.details = {
691
183
  oneofKind: "deleteTournament",
692
- deleteTournament: Response_DeleteTournament.internalBinaryRead(reader, reader.uint32(), options, (message.details as any).deleteTournament)
184
+ deleteTournament: Response_DeleteTournament.internalBinaryRead(reader, reader.uint32(), options, message.details.deleteTournament)
693
185
  };
694
186
  break;
695
187
  case /* proto.packets.Response.AddServer add_server */ 13:
696
188
  message.details = {
697
189
  oneofKind: "addServer",
698
- addServer: Response_AddServer.internalBinaryRead(reader, reader.uint32(), options, (message.details as any).addServer)
190
+ addServer: Response_AddServer.internalBinaryRead(reader, reader.uint32(), options, message.details.addServer)
699
191
  };
700
192
  break;
701
193
  case /* proto.packets.Response.Connect connect */ 14:
702
194
  message.details = {
703
195
  oneofKind: "connect",
704
- connect: Response_Connect.internalBinaryRead(reader, reader.uint32(), options, (message.details as any).connect)
196
+ connect: Response_Connect.internalBinaryRead(reader, reader.uint32(), options, message.details.connect)
705
197
  };
706
198
  break;
707
199
  case /* proto.packets.Response.Join join */ 15:
708
200
  message.details = {
709
201
  oneofKind: "join",
710
- join: Response_Join.internalBinaryRead(reader, reader.uint32(), options, (message.details as any).join)
202
+ join: Response_Join.internalBinaryRead(reader, reader.uint32(), options, message.details.join)
711
203
  };
712
204
  break;
713
205
  case /* proto.packets.Response.LeaderboardEntries leaderboard_entries */ 16:
714
206
  message.details = {
715
207
  oneofKind: "leaderboardEntries",
716
- leaderboardEntries: Response_LeaderboardEntries.internalBinaryRead(reader, reader.uint32(), options, (message.details as any).leaderboardEntries)
208
+ leaderboardEntries: Response_LeaderboardEntries.internalBinaryRead(reader, reader.uint32(), options, message.details.leaderboardEntries)
717
209
  };
718
210
  break;
719
211
  case /* proto.packets.Response.LoadSong load_song */ 17:
720
212
  message.details = {
721
213
  oneofKind: "loadSong",
722
- loadSong: Response_LoadSong.internalBinaryRead(reader, reader.uint32(), options, (message.details as any).loadSong)
214
+ loadSong: Response_LoadSong.internalBinaryRead(reader, reader.uint32(), options, message.details.loadSong)
723
215
  };
724
216
  break;
725
217
  case /* proto.packets.Response.PreloadImageForStreamSync preload_image_for_stream_sync */ 18:
726
218
  message.details = {
727
219
  oneofKind: "preloadImageForStreamSync",
728
- preloadImageForStreamSync: Response_PreloadImageForStreamSync.internalBinaryRead(reader, reader.uint32(), options, (message.details as any).preloadImageForStreamSync)
220
+ preloadImageForStreamSync: Response_PreloadImageForStreamSync.internalBinaryRead(reader, reader.uint32(), options, message.details.preloadImageForStreamSync)
729
221
  };
730
222
  break;
731
223
  case /* proto.packets.Response.ShowModal show_modal */ 19:
732
224
  message.details = {
733
225
  oneofKind: "showModal",
734
- showModal: Response_ShowModal.internalBinaryRead(reader, reader.uint32(), options, (message.details as any).showModal)
226
+ showModal: Response_ShowModal.internalBinaryRead(reader, reader.uint32(), options, message.details.showModal)
735
227
  };
736
228
  break;
737
229
  case /* proto.packets.Response.RemainingAttempts remaining_attempts */ 20:
738
230
  message.details = {
739
231
  oneofKind: "remainingAttempts",
740
- remainingAttempts: Response_RemainingAttempts.internalBinaryRead(reader, reader.uint32(), options, (message.details as any).remainingAttempts)
232
+ remainingAttempts: Response_RemainingAttempts.internalBinaryRead(reader, reader.uint32(), options, message.details.remainingAttempts)
741
233
  };
742
234
  break;
743
235
  default:
@@ -751,7 +243,7 @@ class Response$Type extends MessageType<Response> {
751
243
  }
752
244
  return message;
753
245
  }
754
- internalBinaryWrite(message: Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
246
+ internalBinaryWrite(message, writer, options) {
755
247
  /* proto.packets.Response.ResponseType type = 1; */
756
248
  if (message.type !== 0)
757
249
  writer.tag(1, WireType.Varint).int32(message.type);
@@ -838,21 +330,21 @@ class Response$Type extends MessageType<Response> {
838
330
  */
839
331
  export const Response = new Response$Type();
840
332
  // @generated message type with reflection information, may provide speed optimized methods
841
- class Response_UpdateUser$Type extends MessageType<Response_UpdateUser> {
333
+ class Response_UpdateUser$Type extends MessageType {
842
334
  constructor() {
843
335
  super("proto.packets.Response.UpdateUser", [
844
336
  { no: 1, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
845
337
  { no: 2, name: "user", kind: "message", T: () => User }
846
338
  ]);
847
339
  }
848
- create(value?: PartialMessage<Response_UpdateUser>): Response_UpdateUser {
340
+ create(value) {
849
341
  const message = { message: "" };
850
342
  globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
851
343
  if (value !== undefined)
852
- reflectionMergePartial<Response_UpdateUser>(this, message, value);
344
+ reflectionMergePartial(this, message, value);
853
345
  return message;
854
346
  }
855
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_UpdateUser): Response_UpdateUser {
347
+ internalBinaryRead(reader, length, options, target) {
856
348
  let message = target ?? this.create(), end = reader.pos + length;
857
349
  while (reader.pos < end) {
858
350
  let [fieldNo, wireType] = reader.tag();
@@ -874,7 +366,7 @@ class Response_UpdateUser$Type extends MessageType<Response_UpdateUser> {
874
366
  }
875
367
  return message;
876
368
  }
877
- internalBinaryWrite(message: Response_UpdateUser, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
369
+ internalBinaryWrite(message, writer, options) {
878
370
  /* string message = 1; */
879
371
  if (message.message !== "")
880
372
  writer.tag(1, WireType.LengthDelimited).string(message.message);
@@ -892,21 +384,21 @@ class Response_UpdateUser$Type extends MessageType<Response_UpdateUser> {
892
384
  */
893
385
  export const Response_UpdateUser = new Response_UpdateUser$Type();
894
386
  // @generated message type with reflection information, may provide speed optimized methods
895
- class Response_CreateMatch$Type extends MessageType<Response_CreateMatch> {
387
+ class Response_CreateMatch$Type extends MessageType {
896
388
  constructor() {
897
389
  super("proto.packets.Response.CreateMatch", [
898
390
  { no: 1, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
899
391
  { no: 2, name: "match", kind: "message", T: () => Match }
900
392
  ]);
901
393
  }
902
- create(value?: PartialMessage<Response_CreateMatch>): Response_CreateMatch {
394
+ create(value) {
903
395
  const message = { message: "" };
904
396
  globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
905
397
  if (value !== undefined)
906
- reflectionMergePartial<Response_CreateMatch>(this, message, value);
398
+ reflectionMergePartial(this, message, value);
907
399
  return message;
908
400
  }
909
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_CreateMatch): Response_CreateMatch {
401
+ internalBinaryRead(reader, length, options, target) {
910
402
  let message = target ?? this.create(), end = reader.pos + length;
911
403
  while (reader.pos < end) {
912
404
  let [fieldNo, wireType] = reader.tag();
@@ -928,7 +420,7 @@ class Response_CreateMatch$Type extends MessageType<Response_CreateMatch> {
928
420
  }
929
421
  return message;
930
422
  }
931
- internalBinaryWrite(message: Response_CreateMatch, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
423
+ internalBinaryWrite(message, writer, options) {
932
424
  /* string message = 1; */
933
425
  if (message.message !== "")
934
426
  writer.tag(1, WireType.LengthDelimited).string(message.message);
@@ -946,21 +438,21 @@ class Response_CreateMatch$Type extends MessageType<Response_CreateMatch> {
946
438
  */
947
439
  export const Response_CreateMatch = new Response_CreateMatch$Type();
948
440
  // @generated message type with reflection information, may provide speed optimized methods
949
- class Response_UpdateMatch$Type extends MessageType<Response_UpdateMatch> {
441
+ class Response_UpdateMatch$Type extends MessageType {
950
442
  constructor() {
951
443
  super("proto.packets.Response.UpdateMatch", [
952
444
  { no: 1, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
953
445
  { no: 2, name: "match", kind: "message", T: () => Match }
954
446
  ]);
955
447
  }
956
- create(value?: PartialMessage<Response_UpdateMatch>): Response_UpdateMatch {
448
+ create(value) {
957
449
  const message = { message: "" };
958
450
  globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
959
451
  if (value !== undefined)
960
- reflectionMergePartial<Response_UpdateMatch>(this, message, value);
452
+ reflectionMergePartial(this, message, value);
961
453
  return message;
962
454
  }
963
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_UpdateMatch): Response_UpdateMatch {
455
+ internalBinaryRead(reader, length, options, target) {
964
456
  let message = target ?? this.create(), end = reader.pos + length;
965
457
  while (reader.pos < end) {
966
458
  let [fieldNo, wireType] = reader.tag();
@@ -982,7 +474,7 @@ class Response_UpdateMatch$Type extends MessageType<Response_UpdateMatch> {
982
474
  }
983
475
  return message;
984
476
  }
985
- internalBinaryWrite(message: Response_UpdateMatch, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
477
+ internalBinaryWrite(message, writer, options) {
986
478
  /* string message = 1; */
987
479
  if (message.message !== "")
988
480
  writer.tag(1, WireType.LengthDelimited).string(message.message);
@@ -1000,21 +492,21 @@ class Response_UpdateMatch$Type extends MessageType<Response_UpdateMatch> {
1000
492
  */
1001
493
  export const Response_UpdateMatch = new Response_UpdateMatch$Type();
1002
494
  // @generated message type with reflection information, may provide speed optimized methods
1003
- class Response_DeleteMatch$Type extends MessageType<Response_DeleteMatch> {
495
+ class Response_DeleteMatch$Type extends MessageType {
1004
496
  constructor() {
1005
497
  super("proto.packets.Response.DeleteMatch", [
1006
498
  { no: 1, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1007
499
  { no: 2, name: "match", kind: "message", T: () => Match }
1008
500
  ]);
1009
501
  }
1010
- create(value?: PartialMessage<Response_DeleteMatch>): Response_DeleteMatch {
502
+ create(value) {
1011
503
  const message = { message: "" };
1012
504
  globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
1013
505
  if (value !== undefined)
1014
- reflectionMergePartial<Response_DeleteMatch>(this, message, value);
506
+ reflectionMergePartial(this, message, value);
1015
507
  return message;
1016
508
  }
1017
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_DeleteMatch): Response_DeleteMatch {
509
+ internalBinaryRead(reader, length, options, target) {
1018
510
  let message = target ?? this.create(), end = reader.pos + length;
1019
511
  while (reader.pos < end) {
1020
512
  let [fieldNo, wireType] = reader.tag();
@@ -1036,7 +528,7 @@ class Response_DeleteMatch$Type extends MessageType<Response_DeleteMatch> {
1036
528
  }
1037
529
  return message;
1038
530
  }
1039
- internalBinaryWrite(message: Response_DeleteMatch, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
531
+ internalBinaryWrite(message, writer, options) {
1040
532
  /* string message = 1; */
1041
533
  if (message.message !== "")
1042
534
  writer.tag(1, WireType.LengthDelimited).string(message.message);
@@ -1054,21 +546,21 @@ class Response_DeleteMatch$Type extends MessageType<Response_DeleteMatch> {
1054
546
  */
1055
547
  export const Response_DeleteMatch = new Response_DeleteMatch$Type();
1056
548
  // @generated message type with reflection information, may provide speed optimized methods
1057
- class Response_CreateQualifierEvent$Type extends MessageType<Response_CreateQualifierEvent> {
549
+ class Response_CreateQualifierEvent$Type extends MessageType {
1058
550
  constructor() {
1059
551
  super("proto.packets.Response.CreateQualifierEvent", [
1060
552
  { no: 1, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1061
553
  { no: 2, name: "qualifier", kind: "message", T: () => QualifierEvent }
1062
554
  ]);
1063
555
  }
1064
- create(value?: PartialMessage<Response_CreateQualifierEvent>): Response_CreateQualifierEvent {
556
+ create(value) {
1065
557
  const message = { message: "" };
1066
558
  globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
1067
559
  if (value !== undefined)
1068
- reflectionMergePartial<Response_CreateQualifierEvent>(this, message, value);
560
+ reflectionMergePartial(this, message, value);
1069
561
  return message;
1070
562
  }
1071
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_CreateQualifierEvent): Response_CreateQualifierEvent {
563
+ internalBinaryRead(reader, length, options, target) {
1072
564
  let message = target ?? this.create(), end = reader.pos + length;
1073
565
  while (reader.pos < end) {
1074
566
  let [fieldNo, wireType] = reader.tag();
@@ -1090,7 +582,7 @@ class Response_CreateQualifierEvent$Type extends MessageType<Response_CreateQual
1090
582
  }
1091
583
  return message;
1092
584
  }
1093
- internalBinaryWrite(message: Response_CreateQualifierEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
585
+ internalBinaryWrite(message, writer, options) {
1094
586
  /* string message = 1; */
1095
587
  if (message.message !== "")
1096
588
  writer.tag(1, WireType.LengthDelimited).string(message.message);
@@ -1108,21 +600,21 @@ class Response_CreateQualifierEvent$Type extends MessageType<Response_CreateQual
1108
600
  */
1109
601
  export const Response_CreateQualifierEvent = new Response_CreateQualifierEvent$Type();
1110
602
  // @generated message type with reflection information, may provide speed optimized methods
1111
- class Response_UpdateQualifierEvent$Type extends MessageType<Response_UpdateQualifierEvent> {
603
+ class Response_UpdateQualifierEvent$Type extends MessageType {
1112
604
  constructor() {
1113
605
  super("proto.packets.Response.UpdateQualifierEvent", [
1114
606
  { no: 1, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1115
607
  { no: 2, name: "qualifier", kind: "message", T: () => QualifierEvent }
1116
608
  ]);
1117
609
  }
1118
- create(value?: PartialMessage<Response_UpdateQualifierEvent>): Response_UpdateQualifierEvent {
610
+ create(value) {
1119
611
  const message = { message: "" };
1120
612
  globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
1121
613
  if (value !== undefined)
1122
- reflectionMergePartial<Response_UpdateQualifierEvent>(this, message, value);
614
+ reflectionMergePartial(this, message, value);
1123
615
  return message;
1124
616
  }
1125
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_UpdateQualifierEvent): Response_UpdateQualifierEvent {
617
+ internalBinaryRead(reader, length, options, target) {
1126
618
  let message = target ?? this.create(), end = reader.pos + length;
1127
619
  while (reader.pos < end) {
1128
620
  let [fieldNo, wireType] = reader.tag();
@@ -1144,7 +636,7 @@ class Response_UpdateQualifierEvent$Type extends MessageType<Response_UpdateQual
1144
636
  }
1145
637
  return message;
1146
638
  }
1147
- internalBinaryWrite(message: Response_UpdateQualifierEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
639
+ internalBinaryWrite(message, writer, options) {
1148
640
  /* string message = 1; */
1149
641
  if (message.message !== "")
1150
642
  writer.tag(1, WireType.LengthDelimited).string(message.message);
@@ -1162,21 +654,21 @@ class Response_UpdateQualifierEvent$Type extends MessageType<Response_UpdateQual
1162
654
  */
1163
655
  export const Response_UpdateQualifierEvent = new Response_UpdateQualifierEvent$Type();
1164
656
  // @generated message type with reflection information, may provide speed optimized methods
1165
- class Response_DeleteQualifierEvent$Type extends MessageType<Response_DeleteQualifierEvent> {
657
+ class Response_DeleteQualifierEvent$Type extends MessageType {
1166
658
  constructor() {
1167
659
  super("proto.packets.Response.DeleteQualifierEvent", [
1168
660
  { no: 1, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1169
661
  { no: 2, name: "qualifier", kind: "message", T: () => QualifierEvent }
1170
662
  ]);
1171
663
  }
1172
- create(value?: PartialMessage<Response_DeleteQualifierEvent>): Response_DeleteQualifierEvent {
664
+ create(value) {
1173
665
  const message = { message: "" };
1174
666
  globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
1175
667
  if (value !== undefined)
1176
- reflectionMergePartial<Response_DeleteQualifierEvent>(this, message, value);
668
+ reflectionMergePartial(this, message, value);
1177
669
  return message;
1178
670
  }
1179
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_DeleteQualifierEvent): Response_DeleteQualifierEvent {
671
+ internalBinaryRead(reader, length, options, target) {
1180
672
  let message = target ?? this.create(), end = reader.pos + length;
1181
673
  while (reader.pos < end) {
1182
674
  let [fieldNo, wireType] = reader.tag();
@@ -1198,7 +690,7 @@ class Response_DeleteQualifierEvent$Type extends MessageType<Response_DeleteQual
1198
690
  }
1199
691
  return message;
1200
692
  }
1201
- internalBinaryWrite(message: Response_DeleteQualifierEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
693
+ internalBinaryWrite(message, writer, options) {
1202
694
  /* string message = 1; */
1203
695
  if (message.message !== "")
1204
696
  writer.tag(1, WireType.LengthDelimited).string(message.message);
@@ -1216,7 +708,7 @@ class Response_DeleteQualifierEvent$Type extends MessageType<Response_DeleteQual
1216
708
  */
1217
709
  export const Response_DeleteQualifierEvent = new Response_DeleteQualifierEvent$Type();
1218
710
  // @generated message type with reflection information, may provide speed optimized methods
1219
- class Response_AddAuthorizedUser$Type extends MessageType<Response_AddAuthorizedUser> {
711
+ class Response_AddAuthorizedUser$Type extends MessageType {
1220
712
  constructor() {
1221
713
  super("proto.packets.Response.AddAuthorizedUser", [
1222
714
  { no: 1, name: "tournament_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
@@ -1224,14 +716,14 @@ class Response_AddAuthorizedUser$Type extends MessageType<Response_AddAuthorized
1224
716
  { no: 3, name: "permission_flags", kind: "enum", T: () => ["proto.models.Permissions", Permissions] }
1225
717
  ]);
1226
718
  }
1227
- create(value?: PartialMessage<Response_AddAuthorizedUser>): Response_AddAuthorizedUser {
719
+ create(value) {
1228
720
  const message = { tournamentId: "", discordId: "", permissionFlags: 0 };
1229
721
  globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
1230
722
  if (value !== undefined)
1231
- reflectionMergePartial<Response_AddAuthorizedUser>(this, message, value);
723
+ reflectionMergePartial(this, message, value);
1232
724
  return message;
1233
725
  }
1234
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_AddAuthorizedUser): Response_AddAuthorizedUser {
726
+ internalBinaryRead(reader, length, options, target) {
1235
727
  let message = target ?? this.create(), end = reader.pos + length;
1236
728
  while (reader.pos < end) {
1237
729
  let [fieldNo, wireType] = reader.tag();
@@ -1256,7 +748,7 @@ class Response_AddAuthorizedUser$Type extends MessageType<Response_AddAuthorized
1256
748
  }
1257
749
  return message;
1258
750
  }
1259
- internalBinaryWrite(message: Response_AddAuthorizedUser, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
751
+ internalBinaryWrite(message, writer, options) {
1260
752
  /* string tournament_id = 1; */
1261
753
  if (message.tournamentId !== "")
1262
754
  writer.tag(1, WireType.LengthDelimited).string(message.tournamentId);
@@ -1277,7 +769,7 @@ class Response_AddAuthorizedUser$Type extends MessageType<Response_AddAuthorized
1277
769
  */
1278
770
  export const Response_AddAuthorizedUser = new Response_AddAuthorizedUser$Type();
1279
771
  // @generated message type with reflection information, may provide speed optimized methods
1280
- class Response_UpdateAuthorizedUser$Type extends MessageType<Response_UpdateAuthorizedUser> {
772
+ class Response_UpdateAuthorizedUser$Type extends MessageType {
1281
773
  constructor() {
1282
774
  super("proto.packets.Response.UpdateAuthorizedUser", [
1283
775
  { no: 1, name: "tournament_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
@@ -1285,14 +777,14 @@ class Response_UpdateAuthorizedUser$Type extends MessageType<Response_UpdateAuth
1285
777
  { no: 3, name: "permission_flags", kind: "enum", T: () => ["proto.models.Permissions", Permissions] }
1286
778
  ]);
1287
779
  }
1288
- create(value?: PartialMessage<Response_UpdateAuthorizedUser>): Response_UpdateAuthorizedUser {
780
+ create(value) {
1289
781
  const message = { tournamentId: "", discordId: "", permissionFlags: 0 };
1290
782
  globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
1291
783
  if (value !== undefined)
1292
- reflectionMergePartial<Response_UpdateAuthorizedUser>(this, message, value);
784
+ reflectionMergePartial(this, message, value);
1293
785
  return message;
1294
786
  }
1295
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_UpdateAuthorizedUser): Response_UpdateAuthorizedUser {
787
+ internalBinaryRead(reader, length, options, target) {
1296
788
  let message = target ?? this.create(), end = reader.pos + length;
1297
789
  while (reader.pos < end) {
1298
790
  let [fieldNo, wireType] = reader.tag();
@@ -1317,7 +809,7 @@ class Response_UpdateAuthorizedUser$Type extends MessageType<Response_UpdateAuth
1317
809
  }
1318
810
  return message;
1319
811
  }
1320
- internalBinaryWrite(message: Response_UpdateAuthorizedUser, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
812
+ internalBinaryWrite(message, writer, options) {
1321
813
  /* string tournament_id = 1; */
1322
814
  if (message.tournamentId !== "")
1323
815
  writer.tag(1, WireType.LengthDelimited).string(message.tournamentId);
@@ -1338,7 +830,7 @@ class Response_UpdateAuthorizedUser$Type extends MessageType<Response_UpdateAuth
1338
830
  */
1339
831
  export const Response_UpdateAuthorizedUser = new Response_UpdateAuthorizedUser$Type();
1340
832
  // @generated message type with reflection information, may provide speed optimized methods
1341
- class Response_RemoveAuthorizedUser$Type extends MessageType<Response_RemoveAuthorizedUser> {
833
+ class Response_RemoveAuthorizedUser$Type extends MessageType {
1342
834
  constructor() {
1343
835
  super("proto.packets.Response.RemoveAuthorizedUser", [
1344
836
  { no: 1, name: "tournament_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
@@ -1346,14 +838,14 @@ class Response_RemoveAuthorizedUser$Type extends MessageType<Response_RemoveAuth
1346
838
  { no: 3, name: "permission_flags", kind: "enum", T: () => ["proto.models.Permissions", Permissions] }
1347
839
  ]);
1348
840
  }
1349
- create(value?: PartialMessage<Response_RemoveAuthorizedUser>): Response_RemoveAuthorizedUser {
841
+ create(value) {
1350
842
  const message = { tournamentId: "", discordId: "", permissionFlags: 0 };
1351
843
  globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
1352
844
  if (value !== undefined)
1353
- reflectionMergePartial<Response_RemoveAuthorizedUser>(this, message, value);
845
+ reflectionMergePartial(this, message, value);
1354
846
  return message;
1355
847
  }
1356
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_RemoveAuthorizedUser): Response_RemoveAuthorizedUser {
848
+ internalBinaryRead(reader, length, options, target) {
1357
849
  let message = target ?? this.create(), end = reader.pos + length;
1358
850
  while (reader.pos < end) {
1359
851
  let [fieldNo, wireType] = reader.tag();
@@ -1378,7 +870,7 @@ class Response_RemoveAuthorizedUser$Type extends MessageType<Response_RemoveAuth
1378
870
  }
1379
871
  return message;
1380
872
  }
1381
- internalBinaryWrite(message: Response_RemoveAuthorizedUser, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
873
+ internalBinaryWrite(message, writer, options) {
1382
874
  /* string tournament_id = 1; */
1383
875
  if (message.tournamentId !== "")
1384
876
  writer.tag(1, WireType.LengthDelimited).string(message.tournamentId);
@@ -1399,21 +891,21 @@ class Response_RemoveAuthorizedUser$Type extends MessageType<Response_RemoveAuth
1399
891
  */
1400
892
  export const Response_RemoveAuthorizedUser = new Response_RemoveAuthorizedUser$Type();
1401
893
  // @generated message type with reflection information, may provide speed optimized methods
1402
- class Response_GetAuthorizedUsers$Type extends MessageType<Response_GetAuthorizedUsers> {
894
+ class Response_GetAuthorizedUsers$Type extends MessageType {
1403
895
  constructor() {
1404
896
  super("proto.packets.Response.GetAuthorizedUsers", [
1405
897
  { no: 1, name: "tournament_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1406
898
  { no: 2, name: "authorized_users", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Response_GetAuthorizedUsers_AuthroizedUser }
1407
899
  ]);
1408
900
  }
1409
- create(value?: PartialMessage<Response_GetAuthorizedUsers>): Response_GetAuthorizedUsers {
901
+ create(value) {
1410
902
  const message = { tournamentId: "", authorizedUsers: [] };
1411
903
  globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
1412
904
  if (value !== undefined)
1413
- reflectionMergePartial<Response_GetAuthorizedUsers>(this, message, value);
905
+ reflectionMergePartial(this, message, value);
1414
906
  return message;
1415
907
  }
1416
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_GetAuthorizedUsers): Response_GetAuthorizedUsers {
908
+ internalBinaryRead(reader, length, options, target) {
1417
909
  let message = target ?? this.create(), end = reader.pos + length;
1418
910
  while (reader.pos < end) {
1419
911
  let [fieldNo, wireType] = reader.tag();
@@ -1435,7 +927,7 @@ class Response_GetAuthorizedUsers$Type extends MessageType<Response_GetAuthorize
1435
927
  }
1436
928
  return message;
1437
929
  }
1438
- internalBinaryWrite(message: Response_GetAuthorizedUsers, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
930
+ internalBinaryWrite(message, writer, options) {
1439
931
  /* string tournament_id = 1; */
1440
932
  if (message.tournamentId !== "")
1441
933
  writer.tag(1, WireType.LengthDelimited).string(message.tournamentId);
@@ -1453,7 +945,7 @@ class Response_GetAuthorizedUsers$Type extends MessageType<Response_GetAuthorize
1453
945
  */
1454
946
  export const Response_GetAuthorizedUsers = new Response_GetAuthorizedUsers$Type();
1455
947
  // @generated message type with reflection information, may provide speed optimized methods
1456
- class Response_GetAuthorizedUsers_AuthroizedUser$Type extends MessageType<Response_GetAuthorizedUsers_AuthroizedUser> {
948
+ class Response_GetAuthorizedUsers_AuthroizedUser$Type extends MessageType {
1457
949
  constructor() {
1458
950
  super("proto.packets.Response.GetAuthorizedUsers.AuthroizedUser", [
1459
951
  { no: 1, name: "discord_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
@@ -1462,14 +954,14 @@ class Response_GetAuthorizedUsers_AuthroizedUser$Type extends MessageType<Respon
1462
954
  { no: 4, name: "permission", kind: "enum", T: () => ["proto.models.Permissions", Permissions] }
1463
955
  ]);
1464
956
  }
1465
- create(value?: PartialMessage<Response_GetAuthorizedUsers_AuthroizedUser>): Response_GetAuthorizedUsers_AuthroizedUser {
957
+ create(value) {
1466
958
  const message = { discordId: "", discordUsername: "", discordAvatarUrl: "", permission: 0 };
1467
959
  globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
1468
960
  if (value !== undefined)
1469
- reflectionMergePartial<Response_GetAuthorizedUsers_AuthroizedUser>(this, message, value);
961
+ reflectionMergePartial(this, message, value);
1470
962
  return message;
1471
963
  }
1472
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_GetAuthorizedUsers_AuthroizedUser): Response_GetAuthorizedUsers_AuthroizedUser {
964
+ internalBinaryRead(reader, length, options, target) {
1473
965
  let message = target ?? this.create(), end = reader.pos + length;
1474
966
  while (reader.pos < end) {
1475
967
  let [fieldNo, wireType] = reader.tag();
@@ -1497,7 +989,7 @@ class Response_GetAuthorizedUsers_AuthroizedUser$Type extends MessageType<Respon
1497
989
  }
1498
990
  return message;
1499
991
  }
1500
- internalBinaryWrite(message: Response_GetAuthorizedUsers_AuthroizedUser, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
992
+ internalBinaryWrite(message, writer, options) {
1501
993
  /* string discord_id = 1; */
1502
994
  if (message.discordId !== "")
1503
995
  writer.tag(1, WireType.LengthDelimited).string(message.discordId);
@@ -1521,7 +1013,7 @@ class Response_GetAuthorizedUsers_AuthroizedUser$Type extends MessageType<Respon
1521
1013
  */
1522
1014
  export const Response_GetAuthorizedUsers_AuthroizedUser = new Response_GetAuthorizedUsers_AuthroizedUser$Type();
1523
1015
  // @generated message type with reflection information, may provide speed optimized methods
1524
- class Response_GetDiscordInfo$Type extends MessageType<Response_GetDiscordInfo> {
1016
+ class Response_GetDiscordInfo$Type extends MessageType {
1525
1017
  constructor() {
1526
1018
  super("proto.packets.Response.GetDiscordInfo", [
1527
1019
  { no: 1, name: "discord_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
@@ -1529,14 +1021,14 @@ class Response_GetDiscordInfo$Type extends MessageType<Response_GetDiscordInfo>
1529
1021
  { no: 3, name: "discord_avatar_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1530
1022
  ]);
1531
1023
  }
1532
- create(value?: PartialMessage<Response_GetDiscordInfo>): Response_GetDiscordInfo {
1024
+ create(value) {
1533
1025
  const message = { discordId: "", discordUsername: "", discordAvatarUrl: "" };
1534
1026
  globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
1535
1027
  if (value !== undefined)
1536
- reflectionMergePartial<Response_GetDiscordInfo>(this, message, value);
1028
+ reflectionMergePartial(this, message, value);
1537
1029
  return message;
1538
1030
  }
1539
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_GetDiscordInfo): Response_GetDiscordInfo {
1031
+ internalBinaryRead(reader, length, options, target) {
1540
1032
  let message = target ?? this.create(), end = reader.pos + length;
1541
1033
  while (reader.pos < end) {
1542
1034
  let [fieldNo, wireType] = reader.tag();
@@ -1561,7 +1053,7 @@ class Response_GetDiscordInfo$Type extends MessageType<Response_GetDiscordInfo>
1561
1053
  }
1562
1054
  return message;
1563
1055
  }
1564
- internalBinaryWrite(message: Response_GetDiscordInfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1056
+ internalBinaryWrite(message, writer, options) {
1565
1057
  /* string discord_id = 1; */
1566
1058
  if (message.discordId !== "")
1567
1059
  writer.tag(1, WireType.LengthDelimited).string(message.discordId);
@@ -1582,21 +1074,21 @@ class Response_GetDiscordInfo$Type extends MessageType<Response_GetDiscordInfo>
1582
1074
  */
1583
1075
  export const Response_GetDiscordInfo = new Response_GetDiscordInfo$Type();
1584
1076
  // @generated message type with reflection information, may provide speed optimized methods
1585
- class Response_CreateTournament$Type extends MessageType<Response_CreateTournament> {
1077
+ class Response_CreateTournament$Type extends MessageType {
1586
1078
  constructor() {
1587
1079
  super("proto.packets.Response.CreateTournament", [
1588
1080
  { no: 1, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1589
1081
  { no: 2, name: "tournament", kind: "message", T: () => Tournament }
1590
1082
  ]);
1591
1083
  }
1592
- create(value?: PartialMessage<Response_CreateTournament>): Response_CreateTournament {
1084
+ create(value) {
1593
1085
  const message = { message: "" };
1594
1086
  globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
1595
1087
  if (value !== undefined)
1596
- reflectionMergePartial<Response_CreateTournament>(this, message, value);
1088
+ reflectionMergePartial(this, message, value);
1597
1089
  return message;
1598
1090
  }
1599
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_CreateTournament): Response_CreateTournament {
1091
+ internalBinaryRead(reader, length, options, target) {
1600
1092
  let message = target ?? this.create(), end = reader.pos + length;
1601
1093
  while (reader.pos < end) {
1602
1094
  let [fieldNo, wireType] = reader.tag();
@@ -1618,7 +1110,7 @@ class Response_CreateTournament$Type extends MessageType<Response_CreateTourname
1618
1110
  }
1619
1111
  return message;
1620
1112
  }
1621
- internalBinaryWrite(message: Response_CreateTournament, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1113
+ internalBinaryWrite(message, writer, options) {
1622
1114
  /* string message = 1; */
1623
1115
  if (message.message !== "")
1624
1116
  writer.tag(1, WireType.LengthDelimited).string(message.message);
@@ -1636,21 +1128,21 @@ class Response_CreateTournament$Type extends MessageType<Response_CreateTourname
1636
1128
  */
1637
1129
  export const Response_CreateTournament = new Response_CreateTournament$Type();
1638
1130
  // @generated message type with reflection information, may provide speed optimized methods
1639
- class Response_UpdateTournament$Type extends MessageType<Response_UpdateTournament> {
1131
+ class Response_UpdateTournament$Type extends MessageType {
1640
1132
  constructor() {
1641
1133
  super("proto.packets.Response.UpdateTournament", [
1642
1134
  { no: 1, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1643
1135
  { no: 2, name: "tournament", kind: "message", T: () => Tournament }
1644
1136
  ]);
1645
1137
  }
1646
- create(value?: PartialMessage<Response_UpdateTournament>): Response_UpdateTournament {
1138
+ create(value) {
1647
1139
  const message = { message: "" };
1648
1140
  globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
1649
1141
  if (value !== undefined)
1650
- reflectionMergePartial<Response_UpdateTournament>(this, message, value);
1142
+ reflectionMergePartial(this, message, value);
1651
1143
  return message;
1652
1144
  }
1653
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_UpdateTournament): Response_UpdateTournament {
1145
+ internalBinaryRead(reader, length, options, target) {
1654
1146
  let message = target ?? this.create(), end = reader.pos + length;
1655
1147
  while (reader.pos < end) {
1656
1148
  let [fieldNo, wireType] = reader.tag();
@@ -1672,7 +1164,7 @@ class Response_UpdateTournament$Type extends MessageType<Response_UpdateTourname
1672
1164
  }
1673
1165
  return message;
1674
1166
  }
1675
- internalBinaryWrite(message: Response_UpdateTournament, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1167
+ internalBinaryWrite(message, writer, options) {
1676
1168
  /* string message = 1; */
1677
1169
  if (message.message !== "")
1678
1170
  writer.tag(1, WireType.LengthDelimited).string(message.message);
@@ -1690,21 +1182,21 @@ class Response_UpdateTournament$Type extends MessageType<Response_UpdateTourname
1690
1182
  */
1691
1183
  export const Response_UpdateTournament = new Response_UpdateTournament$Type();
1692
1184
  // @generated message type with reflection information, may provide speed optimized methods
1693
- class Response_DeleteTournament$Type extends MessageType<Response_DeleteTournament> {
1185
+ class Response_DeleteTournament$Type extends MessageType {
1694
1186
  constructor() {
1695
1187
  super("proto.packets.Response.DeleteTournament", [
1696
1188
  { no: 1, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1697
1189
  { no: 2, name: "tournament", kind: "message", T: () => Tournament }
1698
1190
  ]);
1699
1191
  }
1700
- create(value?: PartialMessage<Response_DeleteTournament>): Response_DeleteTournament {
1192
+ create(value) {
1701
1193
  const message = { message: "" };
1702
1194
  globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
1703
1195
  if (value !== undefined)
1704
- reflectionMergePartial<Response_DeleteTournament>(this, message, value);
1196
+ reflectionMergePartial(this, message, value);
1705
1197
  return message;
1706
1198
  }
1707
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_DeleteTournament): Response_DeleteTournament {
1199
+ internalBinaryRead(reader, length, options, target) {
1708
1200
  let message = target ?? this.create(), end = reader.pos + length;
1709
1201
  while (reader.pos < end) {
1710
1202
  let [fieldNo, wireType] = reader.tag();
@@ -1726,7 +1218,7 @@ class Response_DeleteTournament$Type extends MessageType<Response_DeleteTourname
1726
1218
  }
1727
1219
  return message;
1728
1220
  }
1729
- internalBinaryWrite(message: Response_DeleteTournament, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1221
+ internalBinaryWrite(message, writer, options) {
1730
1222
  /* string message = 1; */
1731
1223
  if (message.message !== "")
1732
1224
  writer.tag(1, WireType.LengthDelimited).string(message.message);
@@ -1744,21 +1236,21 @@ class Response_DeleteTournament$Type extends MessageType<Response_DeleteTourname
1744
1236
  */
1745
1237
  export const Response_DeleteTournament = new Response_DeleteTournament$Type();
1746
1238
  // @generated message type with reflection information, may provide speed optimized methods
1747
- class Response_AddServer$Type extends MessageType<Response_AddServer> {
1239
+ class Response_AddServer$Type extends MessageType {
1748
1240
  constructor() {
1749
1241
  super("proto.packets.Response.AddServer", [
1750
1242
  { no: 1, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1751
1243
  { no: 2, name: "server", kind: "message", T: () => CoreServer }
1752
1244
  ]);
1753
1245
  }
1754
- create(value?: PartialMessage<Response_AddServer>): Response_AddServer {
1246
+ create(value) {
1755
1247
  const message = { message: "" };
1756
1248
  globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
1757
1249
  if (value !== undefined)
1758
- reflectionMergePartial<Response_AddServer>(this, message, value);
1250
+ reflectionMergePartial(this, message, value);
1759
1251
  return message;
1760
1252
  }
1761
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_AddServer): Response_AddServer {
1253
+ internalBinaryRead(reader, length, options, target) {
1762
1254
  let message = target ?? this.create(), end = reader.pos + length;
1763
1255
  while (reader.pos < end) {
1764
1256
  let [fieldNo, wireType] = reader.tag();
@@ -1780,7 +1272,7 @@ class Response_AddServer$Type extends MessageType<Response_AddServer> {
1780
1272
  }
1781
1273
  return message;
1782
1274
  }
1783
- internalBinaryWrite(message: Response_AddServer, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1275
+ internalBinaryWrite(message, writer, options) {
1784
1276
  /* string message = 1; */
1785
1277
  if (message.message !== "")
1786
1278
  writer.tag(1, WireType.LengthDelimited).string(message.message);
@@ -1798,7 +1290,7 @@ class Response_AddServer$Type extends MessageType<Response_AddServer> {
1798
1290
  */
1799
1291
  export const Response_AddServer = new Response_AddServer$Type();
1800
1292
  // @generated message type with reflection information, may provide speed optimized methods
1801
- class Response_Connect$Type extends MessageType<Response_Connect> {
1293
+ class Response_Connect$Type extends MessageType {
1802
1294
  constructor() {
1803
1295
  super("proto.packets.Response.Connect", [
1804
1296
  { no: 1, name: "state", kind: "message", T: () => State },
@@ -1807,14 +1299,14 @@ class Response_Connect$Type extends MessageType<Response_Connect> {
1807
1299
  { no: 4, name: "reason", kind: "enum", T: () => ["proto.packets.Response.Connect.ConnectFailReason", Response_Connect_ConnectFailReason] }
1808
1300
  ]);
1809
1301
  }
1810
- create(value?: PartialMessage<Response_Connect>): Response_Connect {
1302
+ create(value) {
1811
1303
  const message = { serverVersion: 0, message: "", reason: 0 };
1812
1304
  globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
1813
1305
  if (value !== undefined)
1814
- reflectionMergePartial<Response_Connect>(this, message, value);
1306
+ reflectionMergePartial(this, message, value);
1815
1307
  return message;
1816
1308
  }
1817
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_Connect): Response_Connect {
1309
+ internalBinaryRead(reader, length, options, target) {
1818
1310
  let message = target ?? this.create(), end = reader.pos + length;
1819
1311
  while (reader.pos < end) {
1820
1312
  let [fieldNo, wireType] = reader.tag();
@@ -1842,7 +1334,7 @@ class Response_Connect$Type extends MessageType<Response_Connect> {
1842
1334
  }
1843
1335
  return message;
1844
1336
  }
1845
- internalBinaryWrite(message: Response_Connect, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1337
+ internalBinaryWrite(message, writer, options) {
1846
1338
  /* proto.models.State state = 1; */
1847
1339
  if (message.state)
1848
1340
  State.internalBinaryWrite(message.state, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
@@ -1866,7 +1358,7 @@ class Response_Connect$Type extends MessageType<Response_Connect> {
1866
1358
  */
1867
1359
  export const Response_Connect = new Response_Connect$Type();
1868
1360
  // @generated message type with reflection information, may provide speed optimized methods
1869
- class Response_Join$Type extends MessageType<Response_Join> {
1361
+ class Response_Join$Type extends MessageType {
1870
1362
  constructor() {
1871
1363
  super("proto.packets.Response.Join", [
1872
1364
  { no: 1, name: "state", kind: "message", T: () => State },
@@ -1876,14 +1368,14 @@ class Response_Join$Type extends MessageType<Response_Join> {
1876
1368
  { no: 5, name: "reason", kind: "enum", T: () => ["proto.packets.Response.Join.JoinFailReason", Response_Join_JoinFailReason] }
1877
1369
  ]);
1878
1370
  }
1879
- create(value?: PartialMessage<Response_Join>): Response_Join {
1371
+ create(value) {
1880
1372
  const message = { selfGuid: "", tournamentId: "", message: "", reason: 0 };
1881
1373
  globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
1882
1374
  if (value !== undefined)
1883
- reflectionMergePartial<Response_Join>(this, message, value);
1375
+ reflectionMergePartial(this, message, value);
1884
1376
  return message;
1885
1377
  }
1886
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_Join): Response_Join {
1378
+ internalBinaryRead(reader, length, options, target) {
1887
1379
  let message = target ?? this.create(), end = reader.pos + length;
1888
1380
  while (reader.pos < end) {
1889
1381
  let [fieldNo, wireType] = reader.tag();
@@ -1914,7 +1406,7 @@ class Response_Join$Type extends MessageType<Response_Join> {
1914
1406
  }
1915
1407
  return message;
1916
1408
  }
1917
- internalBinaryWrite(message: Response_Join, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1409
+ internalBinaryWrite(message, writer, options) {
1918
1410
  /* proto.models.State state = 1; */
1919
1411
  if (message.state)
1920
1412
  State.internalBinaryWrite(message.state, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
@@ -1941,20 +1433,20 @@ class Response_Join$Type extends MessageType<Response_Join> {
1941
1433
  */
1942
1434
  export const Response_Join = new Response_Join$Type();
1943
1435
  // @generated message type with reflection information, may provide speed optimized methods
1944
- class Response_LeaderboardEntries$Type extends MessageType<Response_LeaderboardEntries> {
1436
+ class Response_LeaderboardEntries$Type extends MessageType {
1945
1437
  constructor() {
1946
1438
  super("proto.packets.Response.LeaderboardEntries", [
1947
1439
  { no: 1, name: "scores", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => LeaderboardEntry }
1948
1440
  ]);
1949
1441
  }
1950
- create(value?: PartialMessage<Response_LeaderboardEntries>): Response_LeaderboardEntries {
1442
+ create(value) {
1951
1443
  const message = { scores: [] };
1952
1444
  globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
1953
1445
  if (value !== undefined)
1954
- reflectionMergePartial<Response_LeaderboardEntries>(this, message, value);
1446
+ reflectionMergePartial(this, message, value);
1955
1447
  return message;
1956
1448
  }
1957
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_LeaderboardEntries): Response_LeaderboardEntries {
1449
+ internalBinaryRead(reader, length, options, target) {
1958
1450
  let message = target ?? this.create(), end = reader.pos + length;
1959
1451
  while (reader.pos < end) {
1960
1452
  let [fieldNo, wireType] = reader.tag();
@@ -1973,7 +1465,7 @@ class Response_LeaderboardEntries$Type extends MessageType<Response_LeaderboardE
1973
1465
  }
1974
1466
  return message;
1975
1467
  }
1976
- internalBinaryWrite(message: Response_LeaderboardEntries, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1468
+ internalBinaryWrite(message, writer, options) {
1977
1469
  /* repeated proto.models.LeaderboardEntry scores = 1; */
1978
1470
  for (let i = 0; i < message.scores.length; i++)
1979
1471
  LeaderboardEntry.internalBinaryWrite(message.scores[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
@@ -1988,20 +1480,20 @@ class Response_LeaderboardEntries$Type extends MessageType<Response_LeaderboardE
1988
1480
  */
1989
1481
  export const Response_LeaderboardEntries = new Response_LeaderboardEntries$Type();
1990
1482
  // @generated message type with reflection information, may provide speed optimized methods
1991
- class Response_LoadSong$Type extends MessageType<Response_LoadSong> {
1483
+ class Response_LoadSong$Type extends MessageType {
1992
1484
  constructor() {
1993
1485
  super("proto.packets.Response.LoadSong", [
1994
1486
  { no: 1, name: "level_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1995
1487
  ]);
1996
1488
  }
1997
- create(value?: PartialMessage<Response_LoadSong>): Response_LoadSong {
1489
+ create(value) {
1998
1490
  const message = { levelId: "" };
1999
1491
  globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
2000
1492
  if (value !== undefined)
2001
- reflectionMergePartial<Response_LoadSong>(this, message, value);
1493
+ reflectionMergePartial(this, message, value);
2002
1494
  return message;
2003
1495
  }
2004
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_LoadSong): Response_LoadSong {
1496
+ internalBinaryRead(reader, length, options, target) {
2005
1497
  let message = target ?? this.create(), end = reader.pos + length;
2006
1498
  while (reader.pos < end) {
2007
1499
  let [fieldNo, wireType] = reader.tag();
@@ -2020,7 +1512,7 @@ class Response_LoadSong$Type extends MessageType<Response_LoadSong> {
2020
1512
  }
2021
1513
  return message;
2022
1514
  }
2023
- internalBinaryWrite(message: Response_LoadSong, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1515
+ internalBinaryWrite(message, writer, options) {
2024
1516
  /* string level_id = 1; */
2025
1517
  if (message.levelId !== "")
2026
1518
  writer.tag(1, WireType.LengthDelimited).string(message.levelId);
@@ -2035,20 +1527,20 @@ class Response_LoadSong$Type extends MessageType<Response_LoadSong> {
2035
1527
  */
2036
1528
  export const Response_LoadSong = new Response_LoadSong$Type();
2037
1529
  // @generated message type with reflection information, may provide speed optimized methods
2038
- class Response_PreloadImageForStreamSync$Type extends MessageType<Response_PreloadImageForStreamSync> {
1530
+ class Response_PreloadImageForStreamSync$Type extends MessageType {
2039
1531
  constructor() {
2040
1532
  super("proto.packets.Response.PreloadImageForStreamSync", [
2041
1533
  { no: 1, name: "file_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
2042
1534
  ]);
2043
1535
  }
2044
- create(value?: PartialMessage<Response_PreloadImageForStreamSync>): Response_PreloadImageForStreamSync {
1536
+ create(value) {
2045
1537
  const message = { fileId: "" };
2046
1538
  globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
2047
1539
  if (value !== undefined)
2048
- reflectionMergePartial<Response_PreloadImageForStreamSync>(this, message, value);
1540
+ reflectionMergePartial(this, message, value);
2049
1541
  return message;
2050
1542
  }
2051
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_PreloadImageForStreamSync): Response_PreloadImageForStreamSync {
1543
+ internalBinaryRead(reader, length, options, target) {
2052
1544
  let message = target ?? this.create(), end = reader.pos + length;
2053
1545
  while (reader.pos < end) {
2054
1546
  let [fieldNo, wireType] = reader.tag();
@@ -2067,7 +1559,7 @@ class Response_PreloadImageForStreamSync$Type extends MessageType<Response_Prelo
2067
1559
  }
2068
1560
  return message;
2069
1561
  }
2070
- internalBinaryWrite(message: Response_PreloadImageForStreamSync, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1562
+ internalBinaryWrite(message, writer, options) {
2071
1563
  /* string file_id = 1; */
2072
1564
  if (message.fileId !== "")
2073
1565
  writer.tag(1, WireType.LengthDelimited).string(message.fileId);
@@ -2082,21 +1574,21 @@ class Response_PreloadImageForStreamSync$Type extends MessageType<Response_Prelo
2082
1574
  */
2083
1575
  export const Response_PreloadImageForStreamSync = new Response_PreloadImageForStreamSync$Type();
2084
1576
  // @generated message type with reflection information, may provide speed optimized methods
2085
- class Response_ShowModal$Type extends MessageType<Response_ShowModal> {
1577
+ class Response_ShowModal$Type extends MessageType {
2086
1578
  constructor() {
2087
1579
  super("proto.packets.Response.ShowModal", [
2088
1580
  { no: 1, name: "modal_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2089
1581
  { no: 2, name: "value", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
2090
1582
  ]);
2091
1583
  }
2092
- create(value?: PartialMessage<Response_ShowModal>): Response_ShowModal {
1584
+ create(value) {
2093
1585
  const message = { modalId: "", value: "" };
2094
1586
  globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
2095
1587
  if (value !== undefined)
2096
- reflectionMergePartial<Response_ShowModal>(this, message, value);
1588
+ reflectionMergePartial(this, message, value);
2097
1589
  return message;
2098
1590
  }
2099
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_ShowModal): Response_ShowModal {
1591
+ internalBinaryRead(reader, length, options, target) {
2100
1592
  let message = target ?? this.create(), end = reader.pos + length;
2101
1593
  while (reader.pos < end) {
2102
1594
  let [fieldNo, wireType] = reader.tag();
@@ -2118,7 +1610,7 @@ class Response_ShowModal$Type extends MessageType<Response_ShowModal> {
2118
1610
  }
2119
1611
  return message;
2120
1612
  }
2121
- internalBinaryWrite(message: Response_ShowModal, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1613
+ internalBinaryWrite(message, writer, options) {
2122
1614
  /* string modal_id = 1; */
2123
1615
  if (message.modalId !== "")
2124
1616
  writer.tag(1, WireType.LengthDelimited).string(message.modalId);
@@ -2136,20 +1628,20 @@ class Response_ShowModal$Type extends MessageType<Response_ShowModal> {
2136
1628
  */
2137
1629
  export const Response_ShowModal = new Response_ShowModal$Type();
2138
1630
  // @generated message type with reflection information, may provide speed optimized methods
2139
- class Response_RemainingAttempts$Type extends MessageType<Response_RemainingAttempts> {
1631
+ class Response_RemainingAttempts$Type extends MessageType {
2140
1632
  constructor() {
2141
1633
  super("proto.packets.Response.RemainingAttempts", [
2142
1634
  { no: 1, name: "remaining_attempts", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
2143
1635
  ]);
2144
1636
  }
2145
- create(value?: PartialMessage<Response_RemainingAttempts>): Response_RemainingAttempts {
1637
+ create(value) {
2146
1638
  const message = { remainingAttempts: 0 };
2147
1639
  globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
2148
1640
  if (value !== undefined)
2149
- reflectionMergePartial<Response_RemainingAttempts>(this, message, value);
1641
+ reflectionMergePartial(this, message, value);
2150
1642
  return message;
2151
1643
  }
2152
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_RemainingAttempts): Response_RemainingAttempts {
1644
+ internalBinaryRead(reader, length, options, target) {
2153
1645
  let message = target ?? this.create(), end = reader.pos + length;
2154
1646
  while (reader.pos < end) {
2155
1647
  let [fieldNo, wireType] = reader.tag();
@@ -2168,7 +1660,7 @@ class Response_RemainingAttempts$Type extends MessageType<Response_RemainingAtte
2168
1660
  }
2169
1661
  return message;
2170
1662
  }
2171
- internalBinaryWrite(message: Response_RemainingAttempts, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1663
+ internalBinaryWrite(message, writer, options) {
2172
1664
  /* int32 remaining_attempts = 1; */
2173
1665
  if (message.remainingAttempts !== 0)
2174
1666
  writer.tag(1, WireType.Varint).int32(message.remainingAttempts);