moons-ta-client 1.0.2 → 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.
- package/dist/client.d.ts +22 -0
- package/dist/client.js +77 -0
- package/dist/constants.d.ts +4 -0
- package/{src/constants.ts → dist/constants.js} +1 -1
- package/dist/custom-event-emitter.d.ts +7 -0
- package/dist/custom-event-emitter.js +16 -0
- package/dist/index.d.ts +4591 -0
- package/dist/index.esm.js +16500 -0
- package/{src/index.ts → dist/index.js} +1 -1
- package/dist/models/commands.d.ts +116 -0
- package/{src/models/commands.ts → dist/models/commands.js} +17 -102
- package/dist/models/discord.d.ts +76 -0
- package/{src/models/discord.ts → dist/models/discord.js} +15 -62
- package/dist/models/events.d.ts +419 -0
- package/{src/models/events.ts → dist/models/events.js} +89 -354
- package/dist/models/index.js +8 -0
- package/dist/models/models.d.ts +1137 -0
- package/{src/models/models.ts → dist/models/models.js} +200 -799
- package/dist/models/packets.d.ts +144 -0
- package/{src/models/packets.ts → dist/models/packets.js} +26 -126
- package/dist/models/pushes.d.ts +122 -0
- package/{src/models/pushes.ts → dist/models/pushes.js} +24 -96
- package/dist/models/requests.d.ts +1694 -0
- package/{src/models/requests.ts → dist/models/requests.js} +323 -1469
- package/dist/models/responses.d.ts +799 -0
- package/{src/models/responses.ts → dist/models/responses.js} +161 -669
- package/dist/scraper.d.ts +2 -0
- package/dist/scraper.js +87 -0
- package/dist/state-manager.d.ts +50 -0
- package/dist/state-manager.js +196 -0
- package/dist/tournament-assistant-client.d.ts +113 -0
- package/dist/tournament-assistant-client.js +1167 -0
- package/package.json +8 -2
- package/rollup.config.mjs +0 -16
- package/scripts/esbuild.mjs +0 -24
- package/scripts/fixImports.mjs +0 -44
- package/src/client.ts +0 -101
- package/src/custom-event-emitter.ts +0 -21
- package/src/scraper.ts +0 -137
- package/src/state-manager.ts +0 -308
- package/src/tournament-assistant-client.ts +0 -1553
- package/tsconfig.json +0 -27
- /package/{src/models/index.ts → dist/models/index.d.ts} +0 -0
|
@@ -1,952 +1,353 @@
|
|
|
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
1
|
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
9
2
|
import { WireType } 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";
|
|
14
6
|
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
7
|
/**
|
|
59
8
|
* @generated from protobuf enum proto.models.GameplayModifiers.GameOptions
|
|
60
9
|
*/
|
|
61
|
-
export
|
|
10
|
+
export var GameplayModifiers_GameOptions;
|
|
11
|
+
(function (GameplayModifiers_GameOptions) {
|
|
62
12
|
/**
|
|
63
13
|
* @generated from protobuf enum value: None = 0;
|
|
64
14
|
*/
|
|
65
|
-
None = 0
|
|
15
|
+
GameplayModifiers_GameOptions[GameplayModifiers_GameOptions["None"] = 0] = "None";
|
|
66
16
|
/**
|
|
67
17
|
* Negative modifiers
|
|
68
18
|
*
|
|
69
19
|
* @generated from protobuf enum value: NoFail = 1;
|
|
70
20
|
*/
|
|
71
|
-
NoFail = 1
|
|
21
|
+
GameplayModifiers_GameOptions[GameplayModifiers_GameOptions["NoFail"] = 1] = "NoFail";
|
|
72
22
|
/**
|
|
73
23
|
* @generated from protobuf enum value: NoBombs = 2;
|
|
74
24
|
*/
|
|
75
|
-
NoBombs = 2
|
|
25
|
+
GameplayModifiers_GameOptions[GameplayModifiers_GameOptions["NoBombs"] = 2] = "NoBombs";
|
|
76
26
|
/**
|
|
77
27
|
* @generated from protobuf enum value: NoArrows = 4;
|
|
78
28
|
*/
|
|
79
|
-
NoArrows = 4
|
|
29
|
+
GameplayModifiers_GameOptions[GameplayModifiers_GameOptions["NoArrows"] = 4] = "NoArrows";
|
|
80
30
|
/**
|
|
81
31
|
* @generated from protobuf enum value: NoObstacles = 8;
|
|
82
32
|
*/
|
|
83
|
-
NoObstacles = 8
|
|
33
|
+
GameplayModifiers_GameOptions[GameplayModifiers_GameOptions["NoObstacles"] = 8] = "NoObstacles";
|
|
84
34
|
/**
|
|
85
35
|
* @generated from protobuf enum value: SlowSong = 16;
|
|
86
36
|
*/
|
|
87
|
-
SlowSong = 16
|
|
37
|
+
GameplayModifiers_GameOptions[GameplayModifiers_GameOptions["SlowSong"] = 16] = "SlowSong";
|
|
88
38
|
/**
|
|
89
39
|
* Positive Modifiers
|
|
90
40
|
*
|
|
91
41
|
* @generated from protobuf enum value: InstaFail = 32;
|
|
92
42
|
*/
|
|
93
|
-
InstaFail = 32
|
|
43
|
+
GameplayModifiers_GameOptions[GameplayModifiers_GameOptions["InstaFail"] = 32] = "InstaFail";
|
|
94
44
|
/**
|
|
95
45
|
* @generated from protobuf enum value: FailOnClash = 64;
|
|
96
46
|
*/
|
|
97
|
-
FailOnClash = 64
|
|
47
|
+
GameplayModifiers_GameOptions[GameplayModifiers_GameOptions["FailOnClash"] = 64] = "FailOnClash";
|
|
98
48
|
/**
|
|
99
49
|
* @generated from protobuf enum value: BatteryEnergy = 128;
|
|
100
50
|
*/
|
|
101
|
-
BatteryEnergy = 128
|
|
51
|
+
GameplayModifiers_GameOptions[GameplayModifiers_GameOptions["BatteryEnergy"] = 128] = "BatteryEnergy";
|
|
102
52
|
/**
|
|
103
53
|
* @generated from protobuf enum value: FastNotes = 256;
|
|
104
54
|
*/
|
|
105
|
-
FastNotes = 256
|
|
55
|
+
GameplayModifiers_GameOptions[GameplayModifiers_GameOptions["FastNotes"] = 256] = "FastNotes";
|
|
106
56
|
/**
|
|
107
57
|
* @generated from protobuf enum value: FastSong = 512;
|
|
108
58
|
*/
|
|
109
|
-
FastSong = 512
|
|
59
|
+
GameplayModifiers_GameOptions[GameplayModifiers_GameOptions["FastSong"] = 512] = "FastSong";
|
|
110
60
|
/**
|
|
111
61
|
* @generated from protobuf enum value: DisappearingArrows = 1024;
|
|
112
62
|
*/
|
|
113
|
-
DisappearingArrows = 1024
|
|
63
|
+
GameplayModifiers_GameOptions[GameplayModifiers_GameOptions["DisappearingArrows"] = 1024] = "DisappearingArrows";
|
|
114
64
|
/**
|
|
115
65
|
* @generated from protobuf enum value: GhostNotes = 2048;
|
|
116
66
|
*/
|
|
117
|
-
GhostNotes = 2048
|
|
67
|
+
GameplayModifiers_GameOptions[GameplayModifiers_GameOptions["GhostNotes"] = 2048] = "GhostNotes";
|
|
118
68
|
/**
|
|
119
69
|
* 1.12.2 Additions
|
|
120
70
|
*
|
|
121
71
|
* @generated from protobuf enum value: DemoNoFail = 4096;
|
|
122
72
|
*/
|
|
123
|
-
DemoNoFail = 4096
|
|
73
|
+
GameplayModifiers_GameOptions[GameplayModifiers_GameOptions["DemoNoFail"] = 4096] = "DemoNoFail";
|
|
124
74
|
/**
|
|
125
75
|
* @generated from protobuf enum value: DemoNoObstacles = 8192;
|
|
126
76
|
*/
|
|
127
|
-
DemoNoObstacles = 8192
|
|
77
|
+
GameplayModifiers_GameOptions[GameplayModifiers_GameOptions["DemoNoObstacles"] = 8192] = "DemoNoObstacles";
|
|
128
78
|
/**
|
|
129
79
|
* @generated from protobuf enum value: StrictAngles = 16384;
|
|
130
80
|
*/
|
|
131
|
-
StrictAngles = 16384
|
|
81
|
+
GameplayModifiers_GameOptions[GameplayModifiers_GameOptions["StrictAngles"] = 16384] = "StrictAngles";
|
|
132
82
|
/**
|
|
133
83
|
* 1.13.4 Additions
|
|
134
84
|
*
|
|
135
85
|
* @generated from protobuf enum value: ProMode = 32768;
|
|
136
86
|
*/
|
|
137
|
-
ProMode = 32768
|
|
87
|
+
GameplayModifiers_GameOptions[GameplayModifiers_GameOptions["ProMode"] = 32768] = "ProMode";
|
|
138
88
|
/**
|
|
139
89
|
* @generated from protobuf enum value: ZenMode = 65536;
|
|
140
90
|
*/
|
|
141
|
-
ZenMode = 65536
|
|
91
|
+
GameplayModifiers_GameOptions[GameplayModifiers_GameOptions["ZenMode"] = 65536] = "ZenMode";
|
|
142
92
|
/**
|
|
143
93
|
* @generated from protobuf enum value: SmallCubes = 131072;
|
|
144
94
|
*/
|
|
145
|
-
SmallCubes = 131072
|
|
95
|
+
GameplayModifiers_GameOptions[GameplayModifiers_GameOptions["SmallCubes"] = 131072] = "SmallCubes";
|
|
146
96
|
/**
|
|
147
97
|
* @generated from protobuf enum value: SuperFastSong = 262144;
|
|
148
98
|
*/
|
|
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
|
-
}
|
|
99
|
+
GameplayModifiers_GameOptions[GameplayModifiers_GameOptions["SuperFastSong"] = 262144] = "SuperFastSong";
|
|
100
|
+
})(GameplayModifiers_GameOptions = GameplayModifiers_GameOptions || (GameplayModifiers_GameOptions = {}));
|
|
188
101
|
/**
|
|
189
102
|
* @generated from protobuf enum proto.models.PlayerSpecificSettings.PlayerOptions
|
|
190
103
|
*/
|
|
191
|
-
export
|
|
104
|
+
export var PlayerSpecificSettings_PlayerOptions;
|
|
105
|
+
(function (PlayerSpecificSettings_PlayerOptions) {
|
|
192
106
|
/**
|
|
193
107
|
* @generated from protobuf enum value: NoPlayerOptions = 0;
|
|
194
108
|
*/
|
|
195
|
-
NoPlayerOptions = 0
|
|
109
|
+
PlayerSpecificSettings_PlayerOptions[PlayerSpecificSettings_PlayerOptions["NoPlayerOptions"] = 0] = "NoPlayerOptions";
|
|
196
110
|
/**
|
|
197
111
|
* @generated from protobuf enum value: LeftHanded = 1;
|
|
198
112
|
*/
|
|
199
|
-
LeftHanded = 1
|
|
113
|
+
PlayerSpecificSettings_PlayerOptions[PlayerSpecificSettings_PlayerOptions["LeftHanded"] = 1] = "LeftHanded";
|
|
200
114
|
/**
|
|
201
115
|
* @generated from protobuf enum value: StaticLights = 2;
|
|
202
116
|
*/
|
|
203
|
-
StaticLights = 2
|
|
117
|
+
PlayerSpecificSettings_PlayerOptions[PlayerSpecificSettings_PlayerOptions["StaticLights"] = 2] = "StaticLights";
|
|
204
118
|
/**
|
|
205
119
|
* @generated from protobuf enum value: NoHud = 4;
|
|
206
120
|
*/
|
|
207
|
-
NoHud = 4
|
|
121
|
+
PlayerSpecificSettings_PlayerOptions[PlayerSpecificSettings_PlayerOptions["NoHud"] = 4] = "NoHud";
|
|
208
122
|
/**
|
|
209
123
|
* @generated from protobuf enum value: AdvancedHud = 8;
|
|
210
124
|
*/
|
|
211
|
-
AdvancedHud = 8
|
|
125
|
+
PlayerSpecificSettings_PlayerOptions[PlayerSpecificSettings_PlayerOptions["AdvancedHud"] = 8] = "AdvancedHud";
|
|
212
126
|
/**
|
|
213
127
|
* @generated from protobuf enum value: ReduceDebris = 16;
|
|
214
128
|
*/
|
|
215
|
-
ReduceDebris = 16
|
|
129
|
+
PlayerSpecificSettings_PlayerOptions[PlayerSpecificSettings_PlayerOptions["ReduceDebris"] = 16] = "ReduceDebris";
|
|
216
130
|
/**
|
|
217
131
|
* @generated from protobuf enum value: AutoPlayerHeight = 32;
|
|
218
132
|
*/
|
|
219
|
-
AutoPlayerHeight = 32
|
|
133
|
+
PlayerSpecificSettings_PlayerOptions[PlayerSpecificSettings_PlayerOptions["AutoPlayerHeight"] = 32] = "AutoPlayerHeight";
|
|
220
134
|
/**
|
|
221
135
|
* @generated from protobuf enum value: NoFailEffects = 64;
|
|
222
136
|
*/
|
|
223
|
-
NoFailEffects = 64
|
|
137
|
+
PlayerSpecificSettings_PlayerOptions[PlayerSpecificSettings_PlayerOptions["NoFailEffects"] = 64] = "NoFailEffects";
|
|
224
138
|
/**
|
|
225
139
|
* @generated from protobuf enum value: AutoRestart = 128;
|
|
226
140
|
*/
|
|
227
|
-
AutoRestart = 128
|
|
141
|
+
PlayerSpecificSettings_PlayerOptions[PlayerSpecificSettings_PlayerOptions["AutoRestart"] = 128] = "AutoRestart";
|
|
228
142
|
/**
|
|
229
143
|
* @generated from protobuf enum value: HideNoteSpawnEffect = 256;
|
|
230
144
|
*/
|
|
231
|
-
HideNoteSpawnEffect = 256
|
|
145
|
+
PlayerSpecificSettings_PlayerOptions[PlayerSpecificSettings_PlayerOptions["HideNoteSpawnEffect"] = 256] = "HideNoteSpawnEffect";
|
|
232
146
|
/**
|
|
233
147
|
* @generated from protobuf enum value: AdaptiveSfx = 512;
|
|
234
148
|
*/
|
|
235
|
-
AdaptiveSfx = 512
|
|
149
|
+
PlayerSpecificSettings_PlayerOptions[PlayerSpecificSettings_PlayerOptions["AdaptiveSfx"] = 512] = "AdaptiveSfx";
|
|
236
150
|
/**
|
|
237
151
|
* @generated from protobuf enum value: ArcsHapticFeedback = 1024;
|
|
238
152
|
*/
|
|
239
|
-
ArcsHapticFeedback = 1024
|
|
240
|
-
}
|
|
153
|
+
PlayerSpecificSettings_PlayerOptions[PlayerSpecificSettings_PlayerOptions["ArcsHapticFeedback"] = 1024] = "ArcsHapticFeedback";
|
|
154
|
+
})(PlayerSpecificSettings_PlayerOptions = PlayerSpecificSettings_PlayerOptions || (PlayerSpecificSettings_PlayerOptions = {}));
|
|
241
155
|
/**
|
|
242
156
|
* @generated from protobuf enum proto.models.PlayerSpecificSettings.NoteJumpDurationTypeSettings
|
|
243
157
|
*/
|
|
244
|
-
export
|
|
158
|
+
export var PlayerSpecificSettings_NoteJumpDurationTypeSettings;
|
|
159
|
+
(function (PlayerSpecificSettings_NoteJumpDurationTypeSettings) {
|
|
245
160
|
/**
|
|
246
161
|
* @generated from protobuf enum value: Dynamic = 0;
|
|
247
162
|
*/
|
|
248
|
-
Dynamic = 0
|
|
163
|
+
PlayerSpecificSettings_NoteJumpDurationTypeSettings[PlayerSpecificSettings_NoteJumpDurationTypeSettings["Dynamic"] = 0] = "Dynamic";
|
|
249
164
|
/**
|
|
250
165
|
* @generated from protobuf enum value: Static = 1;
|
|
251
166
|
*/
|
|
252
|
-
Static = 1
|
|
253
|
-
}
|
|
167
|
+
PlayerSpecificSettings_NoteJumpDurationTypeSettings[PlayerSpecificSettings_NoteJumpDurationTypeSettings["Static"] = 1] = "Static";
|
|
168
|
+
})(PlayerSpecificSettings_NoteJumpDurationTypeSettings = PlayerSpecificSettings_NoteJumpDurationTypeSettings || (PlayerSpecificSettings_NoteJumpDurationTypeSettings = {}));
|
|
254
169
|
/**
|
|
255
170
|
* @generated from protobuf enum proto.models.PlayerSpecificSettings.ArcVisibilityType
|
|
256
171
|
*/
|
|
257
|
-
export
|
|
172
|
+
export var PlayerSpecificSettings_ArcVisibilityType;
|
|
173
|
+
(function (PlayerSpecificSettings_ArcVisibilityType) {
|
|
258
174
|
/**
|
|
259
175
|
* @generated from protobuf enum value: None = 0;
|
|
260
176
|
*/
|
|
261
|
-
None = 0
|
|
177
|
+
PlayerSpecificSettings_ArcVisibilityType[PlayerSpecificSettings_ArcVisibilityType["None"] = 0] = "None";
|
|
262
178
|
/**
|
|
263
179
|
* @generated from protobuf enum value: Low = 1;
|
|
264
180
|
*/
|
|
265
|
-
Low = 1
|
|
181
|
+
PlayerSpecificSettings_ArcVisibilityType[PlayerSpecificSettings_ArcVisibilityType["Low"] = 1] = "Low";
|
|
266
182
|
/**
|
|
267
183
|
* @generated from protobuf enum value: Standard = 2;
|
|
268
184
|
*/
|
|
269
|
-
Standard = 2
|
|
185
|
+
PlayerSpecificSettings_ArcVisibilityType[PlayerSpecificSettings_ArcVisibilityType["Standard"] = 2] = "Standard";
|
|
270
186
|
/**
|
|
271
187
|
* @generated from protobuf enum value: High = 3;
|
|
272
188
|
*/
|
|
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
|
-
}
|
|
189
|
+
PlayerSpecificSettings_ArcVisibilityType[PlayerSpecificSettings_ArcVisibilityType["High"] = 3] = "High";
|
|
190
|
+
})(PlayerSpecificSettings_ArcVisibilityType = PlayerSpecificSettings_ArcVisibilityType || (PlayerSpecificSettings_ArcVisibilityType = {}));
|
|
424
191
|
/**
|
|
425
192
|
* @generated from protobuf enum proto.models.User.PlayStates
|
|
426
193
|
*/
|
|
427
|
-
export
|
|
194
|
+
export var User_PlayStates;
|
|
195
|
+
(function (User_PlayStates) {
|
|
428
196
|
/**
|
|
429
197
|
* @generated from protobuf enum value: InMenu = 0;
|
|
430
198
|
*/
|
|
431
|
-
InMenu = 0
|
|
199
|
+
User_PlayStates[User_PlayStates["InMenu"] = 0] = "InMenu";
|
|
432
200
|
/**
|
|
433
201
|
* @generated from protobuf enum value: WaitingForCoordinator = 1;
|
|
434
202
|
*/
|
|
435
|
-
WaitingForCoordinator = 1
|
|
203
|
+
User_PlayStates[User_PlayStates["WaitingForCoordinator"] = 1] = "WaitingForCoordinator";
|
|
436
204
|
/**
|
|
437
205
|
* @generated from protobuf enum value: InGame = 2;
|
|
438
206
|
*/
|
|
439
|
-
InGame = 2
|
|
440
|
-
}
|
|
207
|
+
User_PlayStates[User_PlayStates["InGame"] = 2] = "InGame";
|
|
208
|
+
})(User_PlayStates = User_PlayStates || (User_PlayStates = {}));
|
|
441
209
|
/**
|
|
442
210
|
* @generated from protobuf enum proto.models.User.DownloadStates
|
|
443
211
|
*/
|
|
444
|
-
export
|
|
212
|
+
export var User_DownloadStates;
|
|
213
|
+
(function (User_DownloadStates) {
|
|
445
214
|
/**
|
|
446
215
|
* @generated from protobuf enum value: None = 0;
|
|
447
216
|
*/
|
|
448
|
-
None = 0
|
|
217
|
+
User_DownloadStates[User_DownloadStates["None"] = 0] = "None";
|
|
449
218
|
/**
|
|
450
219
|
* @generated from protobuf enum value: Downloading = 1;
|
|
451
220
|
*/
|
|
452
|
-
Downloading = 1
|
|
221
|
+
User_DownloadStates[User_DownloadStates["Downloading"] = 1] = "Downloading";
|
|
453
222
|
/**
|
|
454
223
|
* @generated from protobuf enum value: Downloaded = 2;
|
|
455
224
|
*/
|
|
456
|
-
Downloaded = 2
|
|
225
|
+
User_DownloadStates[User_DownloadStates["Downloaded"] = 2] = "Downloaded";
|
|
457
226
|
/**
|
|
458
227
|
* @generated from protobuf enum value: DownloadError = 3;
|
|
459
228
|
*/
|
|
460
|
-
DownloadError = 3
|
|
461
|
-
}
|
|
229
|
+
User_DownloadStates[User_DownloadStates["DownloadError"] = 3] = "DownloadError";
|
|
230
|
+
})(User_DownloadStates = User_DownloadStates || (User_DownloadStates = {}));
|
|
462
231
|
/**
|
|
463
232
|
* @generated from protobuf enum proto.models.User.ClientTypes
|
|
464
233
|
*/
|
|
465
|
-
export
|
|
234
|
+
export var User_ClientTypes;
|
|
235
|
+
(function (User_ClientTypes) {
|
|
466
236
|
/**
|
|
467
237
|
* @generated from protobuf enum value: Player = 0;
|
|
468
238
|
*/
|
|
469
|
-
Player = 0
|
|
239
|
+
User_ClientTypes[User_ClientTypes["Player"] = 0] = "Player";
|
|
470
240
|
/**
|
|
471
241
|
* @generated from protobuf enum value: WebsocketConnection = 1;
|
|
472
242
|
*/
|
|
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
|
-
}
|
|
243
|
+
User_ClientTypes[User_ClientTypes["WebsocketConnection"] = 1] = "WebsocketConnection";
|
|
244
|
+
})(User_ClientTypes = User_ClientTypes || (User_ClientTypes = {}));
|
|
529
245
|
/**
|
|
530
246
|
* @generated from protobuf enum proto.models.QualifierEvent.EventSettings
|
|
531
247
|
*/
|
|
532
|
-
export
|
|
248
|
+
export var QualifierEvent_EventSettings;
|
|
249
|
+
(function (QualifierEvent_EventSettings) {
|
|
533
250
|
/**
|
|
534
251
|
* @generated from protobuf enum value: None = 0;
|
|
535
252
|
*/
|
|
536
|
-
None = 0
|
|
253
|
+
QualifierEvent_EventSettings[QualifierEvent_EventSettings["None"] = 0] = "None";
|
|
537
254
|
/**
|
|
538
255
|
* @generated from protobuf enum value: HideScoresFromPlayers = 1;
|
|
539
256
|
*/
|
|
540
|
-
HideScoresFromPlayers = 1
|
|
257
|
+
QualifierEvent_EventSettings[QualifierEvent_EventSettings["HideScoresFromPlayers"] = 1] = "HideScoresFromPlayers";
|
|
541
258
|
/**
|
|
542
259
|
* @generated from protobuf enum value: DisableScoresaberSubmission = 2;
|
|
543
260
|
*/
|
|
544
|
-
DisableScoresaberSubmission = 2
|
|
261
|
+
QualifierEvent_EventSettings[QualifierEvent_EventSettings["DisableScoresaberSubmission"] = 2] = "DisableScoresaberSubmission";
|
|
545
262
|
/**
|
|
546
263
|
* @generated from protobuf enum value: EnableDiscordScoreFeed = 4;
|
|
547
264
|
*/
|
|
548
|
-
EnableDiscordScoreFeed = 4
|
|
265
|
+
QualifierEvent_EventSettings[QualifierEvent_EventSettings["EnableDiscordScoreFeed"] = 4] = "EnableDiscordScoreFeed";
|
|
549
266
|
/**
|
|
550
267
|
* @generated from protobuf enum value: EnableDiscordLeaderboard = 8;
|
|
551
268
|
*/
|
|
552
|
-
EnableDiscordLeaderboard = 8
|
|
553
|
-
}
|
|
269
|
+
QualifierEvent_EventSettings[QualifierEvent_EventSettings["EnableDiscordLeaderboard"] = 8] = "EnableDiscordLeaderboard";
|
|
270
|
+
})(QualifierEvent_EventSettings = QualifierEvent_EventSettings || (QualifierEvent_EventSettings = {}));
|
|
554
271
|
/**
|
|
555
272
|
* @generated from protobuf enum proto.models.QualifierEvent.LeaderboardSort
|
|
556
273
|
*/
|
|
557
|
-
export
|
|
274
|
+
export var QualifierEvent_LeaderboardSort;
|
|
275
|
+
(function (QualifierEvent_LeaderboardSort) {
|
|
558
276
|
/**
|
|
559
277
|
* @generated from protobuf enum value: ModifiedScore = 0;
|
|
560
278
|
*/
|
|
561
|
-
ModifiedScore = 0
|
|
279
|
+
QualifierEvent_LeaderboardSort[QualifierEvent_LeaderboardSort["ModifiedScore"] = 0] = "ModifiedScore";
|
|
562
280
|
/**
|
|
563
281
|
* @generated from protobuf enum value: ModifiedScoreAscending = 1;
|
|
564
282
|
*/
|
|
565
|
-
ModifiedScoreAscending = 1
|
|
283
|
+
QualifierEvent_LeaderboardSort[QualifierEvent_LeaderboardSort["ModifiedScoreAscending"] = 1] = "ModifiedScoreAscending";
|
|
566
284
|
/**
|
|
567
285
|
* @generated from protobuf enum value: NotesMissed = 2;
|
|
568
286
|
*/
|
|
569
|
-
NotesMissed = 2
|
|
287
|
+
QualifierEvent_LeaderboardSort[QualifierEvent_LeaderboardSort["NotesMissed"] = 2] = "NotesMissed";
|
|
570
288
|
/**
|
|
571
289
|
* @generated from protobuf enum value: NotesMissedAscending = 3;
|
|
572
290
|
*/
|
|
573
|
-
NotesMissedAscending = 3
|
|
291
|
+
QualifierEvent_LeaderboardSort[QualifierEvent_LeaderboardSort["NotesMissedAscending"] = 3] = "NotesMissedAscending";
|
|
574
292
|
/**
|
|
575
293
|
* @generated from protobuf enum value: BadCuts = 4;
|
|
576
294
|
*/
|
|
577
|
-
BadCuts = 4
|
|
295
|
+
QualifierEvent_LeaderboardSort[QualifierEvent_LeaderboardSort["BadCuts"] = 4] = "BadCuts";
|
|
578
296
|
/**
|
|
579
297
|
* @generated from protobuf enum value: BadCutsAscending = 5;
|
|
580
298
|
*/
|
|
581
|
-
BadCutsAscending = 5
|
|
299
|
+
QualifierEvent_LeaderboardSort[QualifierEvent_LeaderboardSort["BadCutsAscending"] = 5] = "BadCutsAscending";
|
|
582
300
|
/**
|
|
583
301
|
* @generated from protobuf enum value: MaxCombo = 6;
|
|
584
302
|
*/
|
|
585
|
-
MaxCombo = 6
|
|
303
|
+
QualifierEvent_LeaderboardSort[QualifierEvent_LeaderboardSort["MaxCombo"] = 6] = "MaxCombo";
|
|
586
304
|
/**
|
|
587
305
|
* @generated from protobuf enum value: MaxComboAscending = 7;
|
|
588
306
|
*/
|
|
589
|
-
MaxComboAscending = 7
|
|
307
|
+
QualifierEvent_LeaderboardSort[QualifierEvent_LeaderboardSort["MaxComboAscending"] = 7] = "MaxComboAscending";
|
|
590
308
|
/**
|
|
591
309
|
* @generated from protobuf enum value: GoodCuts = 8;
|
|
592
310
|
*/
|
|
593
|
-
GoodCuts = 8
|
|
311
|
+
QualifierEvent_LeaderboardSort[QualifierEvent_LeaderboardSort["GoodCuts"] = 8] = "GoodCuts";
|
|
594
312
|
/**
|
|
595
313
|
* @generated from protobuf enum value: GoodCutsAscending = 9;
|
|
596
314
|
*/
|
|
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
|
-
}
|
|
315
|
+
QualifierEvent_LeaderboardSort[QualifierEvent_LeaderboardSort["GoodCutsAscending"] = 9] = "GoodCutsAscending";
|
|
316
|
+
})(QualifierEvent_LeaderboardSort = QualifierEvent_LeaderboardSort || (QualifierEvent_LeaderboardSort = {}));
|
|
917
317
|
/**
|
|
918
318
|
* @generated from protobuf enum proto.models.Permissions
|
|
919
319
|
*/
|
|
920
|
-
export
|
|
320
|
+
export var Permissions;
|
|
321
|
+
(function (Permissions) {
|
|
921
322
|
/**
|
|
922
323
|
* @generated from protobuf enum value: None = 0;
|
|
923
324
|
*/
|
|
924
|
-
None = 0
|
|
325
|
+
Permissions[Permissions["None"] = 0] = "None";
|
|
925
326
|
/**
|
|
926
327
|
* @generated from protobuf enum value: View = 1;
|
|
927
328
|
*/
|
|
928
|
-
View = 1
|
|
329
|
+
Permissions[Permissions["View"] = 1] = "View";
|
|
929
330
|
/**
|
|
930
331
|
* @generated from protobuf enum value: Admin = 2;
|
|
931
332
|
*/
|
|
932
|
-
Admin = 2
|
|
933
|
-
}
|
|
333
|
+
Permissions[Permissions["Admin"] = 2] = "Admin";
|
|
334
|
+
})(Permissions = Permissions || (Permissions = {}));
|
|
934
335
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
935
|
-
class Characteristic$Type extends MessageType
|
|
336
|
+
class Characteristic$Type extends MessageType {
|
|
936
337
|
constructor() {
|
|
937
338
|
super("proto.models.Characteristic", [
|
|
938
339
|
{ no: 1, name: "serialized_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
939
340
|
{ no: 2, name: "difficulties", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/ }
|
|
940
341
|
]);
|
|
941
342
|
}
|
|
942
|
-
create(value
|
|
343
|
+
create(value) {
|
|
943
344
|
const message = { serializedName: "", difficulties: [] };
|
|
944
345
|
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
945
346
|
if (value !== undefined)
|
|
946
|
-
reflectionMergePartial
|
|
347
|
+
reflectionMergePartial(this, message, value);
|
|
947
348
|
return message;
|
|
948
349
|
}
|
|
949
|
-
internalBinaryRead(reader
|
|
350
|
+
internalBinaryRead(reader, length, options, target) {
|
|
950
351
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
951
352
|
while (reader.pos < end) {
|
|
952
353
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -972,7 +373,7 @@ class Characteristic$Type extends MessageType<Characteristic> {
|
|
|
972
373
|
}
|
|
973
374
|
return message;
|
|
974
375
|
}
|
|
975
|
-
internalBinaryWrite(message
|
|
376
|
+
internalBinaryWrite(message, writer, options) {
|
|
976
377
|
/* string serialized_name = 1; */
|
|
977
378
|
if (message.serializedName !== "")
|
|
978
379
|
writer.tag(1, WireType.LengthDelimited).string(message.serializedName);
|
|
@@ -994,7 +395,7 @@ class Characteristic$Type extends MessageType<Characteristic> {
|
|
|
994
395
|
*/
|
|
995
396
|
export const Characteristic = new Characteristic$Type();
|
|
996
397
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
997
|
-
class Beatmap$Type extends MessageType
|
|
398
|
+
class Beatmap$Type extends MessageType {
|
|
998
399
|
constructor() {
|
|
999
400
|
super("proto.models.Beatmap", [
|
|
1000
401
|
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
@@ -1003,14 +404,14 @@ class Beatmap$Type extends MessageType<Beatmap> {
|
|
|
1003
404
|
{ no: 4, name: "difficulty", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
|
|
1004
405
|
]);
|
|
1005
406
|
}
|
|
1006
|
-
create(value
|
|
407
|
+
create(value) {
|
|
1007
408
|
const message = { name: "", levelId: "", difficulty: 0 };
|
|
1008
409
|
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
1009
410
|
if (value !== undefined)
|
|
1010
|
-
reflectionMergePartial
|
|
411
|
+
reflectionMergePartial(this, message, value);
|
|
1011
412
|
return message;
|
|
1012
413
|
}
|
|
1013
|
-
internalBinaryRead(reader
|
|
414
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1014
415
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
1015
416
|
while (reader.pos < end) {
|
|
1016
417
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -1038,7 +439,7 @@ class Beatmap$Type extends MessageType<Beatmap> {
|
|
|
1038
439
|
}
|
|
1039
440
|
return message;
|
|
1040
441
|
}
|
|
1041
|
-
internalBinaryWrite(message
|
|
442
|
+
internalBinaryWrite(message, writer, options) {
|
|
1042
443
|
/* string name = 1; */
|
|
1043
444
|
if (message.name !== "")
|
|
1044
445
|
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
|
@@ -1062,20 +463,20 @@ class Beatmap$Type extends MessageType<Beatmap> {
|
|
|
1062
463
|
*/
|
|
1063
464
|
export const Beatmap = new Beatmap$Type();
|
|
1064
465
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
1065
|
-
class GameplayModifiers$Type extends MessageType
|
|
466
|
+
class GameplayModifiers$Type extends MessageType {
|
|
1066
467
|
constructor() {
|
|
1067
468
|
super("proto.models.GameplayModifiers", [
|
|
1068
469
|
{ no: 1, name: "options", kind: "enum", T: () => ["proto.models.GameplayModifiers.GameOptions", GameplayModifiers_GameOptions] }
|
|
1069
470
|
]);
|
|
1070
471
|
}
|
|
1071
|
-
create(value
|
|
472
|
+
create(value) {
|
|
1072
473
|
const message = { options: 0 };
|
|
1073
474
|
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
1074
475
|
if (value !== undefined)
|
|
1075
|
-
reflectionMergePartial
|
|
476
|
+
reflectionMergePartial(this, message, value);
|
|
1076
477
|
return message;
|
|
1077
478
|
}
|
|
1078
|
-
internalBinaryRead(reader
|
|
479
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1079
480
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
1080
481
|
while (reader.pos < end) {
|
|
1081
482
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -1094,7 +495,7 @@ class GameplayModifiers$Type extends MessageType<GameplayModifiers> {
|
|
|
1094
495
|
}
|
|
1095
496
|
return message;
|
|
1096
497
|
}
|
|
1097
|
-
internalBinaryWrite(message
|
|
498
|
+
internalBinaryWrite(message, writer, options) {
|
|
1098
499
|
/* proto.models.GameplayModifiers.GameOptions options = 1; */
|
|
1099
500
|
if (message.options !== 0)
|
|
1100
501
|
writer.tag(1, WireType.Varint).int32(message.options);
|
|
@@ -1109,7 +510,7 @@ class GameplayModifiers$Type extends MessageType<GameplayModifiers> {
|
|
|
1109
510
|
*/
|
|
1110
511
|
export const GameplayModifiers = new GameplayModifiers$Type();
|
|
1111
512
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
1112
|
-
class PlayerSpecificSettings$Type extends MessageType
|
|
513
|
+
class PlayerSpecificSettings$Type extends MessageType {
|
|
1113
514
|
constructor() {
|
|
1114
515
|
super("proto.models.PlayerSpecificSettings", [
|
|
1115
516
|
{ no: 1, name: "player_height", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ },
|
|
@@ -1122,14 +523,14 @@ class PlayerSpecificSettings$Type extends MessageType<PlayerSpecificSettings> {
|
|
|
1122
523
|
{ no: 8, name: "arc_visibility_type", kind: "enum", T: () => ["proto.models.PlayerSpecificSettings.ArcVisibilityType", PlayerSpecificSettings_ArcVisibilityType] }
|
|
1123
524
|
]);
|
|
1124
525
|
}
|
|
1125
|
-
create(value
|
|
526
|
+
create(value) {
|
|
1126
527
|
const message = { playerHeight: 0, sfxVolume: 0, saberTrailIntensity: 0, noteJumpStartBeatOffset: 0, noteJumpFixedDuration: 0, options: 0, noteJumpDurationTypeSettings: 0, arcVisibilityType: 0 };
|
|
1127
528
|
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
1128
529
|
if (value !== undefined)
|
|
1129
|
-
reflectionMergePartial
|
|
530
|
+
reflectionMergePartial(this, message, value);
|
|
1130
531
|
return message;
|
|
1131
532
|
}
|
|
1132
|
-
internalBinaryRead(reader
|
|
533
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1133
534
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
1134
535
|
while (reader.pos < end) {
|
|
1135
536
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -1169,7 +570,7 @@ class PlayerSpecificSettings$Type extends MessageType<PlayerSpecificSettings> {
|
|
|
1169
570
|
}
|
|
1170
571
|
return message;
|
|
1171
572
|
}
|
|
1172
|
-
internalBinaryWrite(message
|
|
573
|
+
internalBinaryWrite(message, writer, options) {
|
|
1173
574
|
/* float player_height = 1; */
|
|
1174
575
|
if (message.playerHeight !== 0)
|
|
1175
576
|
writer.tag(1, WireType.Bit32).float(message.playerHeight);
|
|
@@ -1205,7 +606,7 @@ class PlayerSpecificSettings$Type extends MessageType<PlayerSpecificSettings> {
|
|
|
1205
606
|
*/
|
|
1206
607
|
export const PlayerSpecificSettings = new PlayerSpecificSettings$Type();
|
|
1207
608
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
1208
|
-
class GameplayParameters$Type extends MessageType
|
|
609
|
+
class GameplayParameters$Type extends MessageType {
|
|
1209
610
|
constructor() {
|
|
1210
611
|
super("proto.models.GameplayParameters", [
|
|
1211
612
|
{ no: 1, name: "beatmap", kind: "message", T: () => Beatmap },
|
|
@@ -1220,14 +621,14 @@ class GameplayParameters$Type extends MessageType<GameplayParameters> {
|
|
|
1220
621
|
{ no: 10, name: "use_sync", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
1221
622
|
]);
|
|
1222
623
|
}
|
|
1223
|
-
create(value
|
|
624
|
+
create(value) {
|
|
1224
625
|
const message = { attempts: 0, showScoreboard: false, disablePause: false, disableFail: false, disableScoresaberSubmission: false, disableCustomNotesOnStream: false, useSync: false };
|
|
1225
626
|
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
1226
627
|
if (value !== undefined)
|
|
1227
|
-
reflectionMergePartial
|
|
628
|
+
reflectionMergePartial(this, message, value);
|
|
1228
629
|
return message;
|
|
1229
630
|
}
|
|
1230
|
-
internalBinaryRead(reader
|
|
631
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1231
632
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
1232
633
|
while (reader.pos < end) {
|
|
1233
634
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -1273,7 +674,7 @@ class GameplayParameters$Type extends MessageType<GameplayParameters> {
|
|
|
1273
674
|
}
|
|
1274
675
|
return message;
|
|
1275
676
|
}
|
|
1276
|
-
internalBinaryWrite(message
|
|
677
|
+
internalBinaryWrite(message, writer, options) {
|
|
1277
678
|
/* proto.models.Beatmap beatmap = 1; */
|
|
1278
679
|
if (message.beatmap)
|
|
1279
680
|
Beatmap.internalBinaryWrite(message.beatmap, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -1315,21 +716,21 @@ class GameplayParameters$Type extends MessageType<GameplayParameters> {
|
|
|
1315
716
|
*/
|
|
1316
717
|
export const GameplayParameters = new GameplayParameters$Type();
|
|
1317
718
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
1318
|
-
class Map$Type extends MessageType
|
|
719
|
+
class Map$Type extends MessageType {
|
|
1319
720
|
constructor() {
|
|
1320
721
|
super("proto.models.Map", [
|
|
1321
722
|
{ no: 1, name: "guid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1322
723
|
{ no: 2, name: "gameplay_parameters", kind: "message", T: () => GameplayParameters }
|
|
1323
724
|
]);
|
|
1324
725
|
}
|
|
1325
|
-
create(value
|
|
726
|
+
create(value) {
|
|
1326
727
|
const message = { guid: "" };
|
|
1327
728
|
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
1328
729
|
if (value !== undefined)
|
|
1329
|
-
reflectionMergePartial
|
|
730
|
+
reflectionMergePartial(this, message, value);
|
|
1330
731
|
return message;
|
|
1331
732
|
}
|
|
1332
|
-
internalBinaryRead(reader
|
|
733
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1333
734
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
1334
735
|
while (reader.pos < end) {
|
|
1335
736
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -1351,7 +752,7 @@ class Map$Type extends MessageType<Map> {
|
|
|
1351
752
|
}
|
|
1352
753
|
return message;
|
|
1353
754
|
}
|
|
1354
|
-
internalBinaryWrite(message
|
|
755
|
+
internalBinaryWrite(message, writer, options) {
|
|
1355
756
|
/* string guid = 1; */
|
|
1356
757
|
if (message.guid !== "")
|
|
1357
758
|
writer.tag(1, WireType.LengthDelimited).string(message.guid);
|
|
@@ -1369,7 +770,7 @@ class Map$Type extends MessageType<Map> {
|
|
|
1369
770
|
*/
|
|
1370
771
|
export const Map = new Map$Type();
|
|
1371
772
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
1372
|
-
class User$Type extends MessageType
|
|
773
|
+
class User$Type extends MessageType {
|
|
1373
774
|
constructor() {
|
|
1374
775
|
super("proto.models.User", [
|
|
1375
776
|
{ no: 1, name: "guid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
@@ -1388,14 +789,14 @@ class User$Type extends MessageType<User> {
|
|
|
1388
789
|
{ no: 14, name: "permissions", kind: "enum", T: () => ["proto.models.Permissions", Permissions] }
|
|
1389
790
|
]);
|
|
1390
791
|
}
|
|
1391
|
-
create(value
|
|
792
|
+
create(value) {
|
|
1392
793
|
const message = { guid: "", name: "", platformId: "", clientType: 0, teamId: "", playState: 0, downloadState: 0, modList: [], streamDelayMs: 0n, streamSyncStartMs: 0n, userImage: new Uint8Array(0), permissions: 0 };
|
|
1393
794
|
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
1394
795
|
if (value !== undefined)
|
|
1395
|
-
reflectionMergePartial
|
|
796
|
+
reflectionMergePartial(this, message, value);
|
|
1396
797
|
return message;
|
|
1397
798
|
}
|
|
1398
|
-
internalBinaryRead(reader
|
|
799
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1399
800
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
1400
801
|
while (reader.pos < end) {
|
|
1401
802
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -1453,7 +854,7 @@ class User$Type extends MessageType<User> {
|
|
|
1453
854
|
}
|
|
1454
855
|
return message;
|
|
1455
856
|
}
|
|
1456
|
-
internalBinaryWrite(message
|
|
857
|
+
internalBinaryWrite(message, writer, options) {
|
|
1457
858
|
/* string guid = 1; */
|
|
1458
859
|
if (message.guid !== "")
|
|
1459
860
|
writer.tag(1, WireType.LengthDelimited).string(message.guid);
|
|
@@ -1507,7 +908,7 @@ class User$Type extends MessageType<User> {
|
|
|
1507
908
|
*/
|
|
1508
909
|
export const User = new User$Type();
|
|
1509
910
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
1510
|
-
class User_DiscordInfo$Type extends MessageType
|
|
911
|
+
class User_DiscordInfo$Type extends MessageType {
|
|
1511
912
|
constructor() {
|
|
1512
913
|
super("proto.models.User.DiscordInfo", [
|
|
1513
914
|
{ no: 1, name: "user_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
@@ -1515,14 +916,14 @@ class User_DiscordInfo$Type extends MessageType<User_DiscordInfo> {
|
|
|
1515
916
|
{ no: 3, name: "avatar_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1516
917
|
]);
|
|
1517
918
|
}
|
|
1518
|
-
create(value
|
|
919
|
+
create(value) {
|
|
1519
920
|
const message = { userId: "", username: "", avatarUrl: "" };
|
|
1520
921
|
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
1521
922
|
if (value !== undefined)
|
|
1522
|
-
reflectionMergePartial
|
|
923
|
+
reflectionMergePartial(this, message, value);
|
|
1523
924
|
return message;
|
|
1524
925
|
}
|
|
1525
|
-
internalBinaryRead(reader
|
|
926
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1526
927
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
1527
928
|
while (reader.pos < end) {
|
|
1528
929
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -1547,7 +948,7 @@ class User_DiscordInfo$Type extends MessageType<User_DiscordInfo> {
|
|
|
1547
948
|
}
|
|
1548
949
|
return message;
|
|
1549
950
|
}
|
|
1550
|
-
internalBinaryWrite(message
|
|
951
|
+
internalBinaryWrite(message, writer, options) {
|
|
1551
952
|
/* string user_id = 1; */
|
|
1552
953
|
if (message.userId !== "")
|
|
1553
954
|
writer.tag(1, WireType.LengthDelimited).string(message.userId);
|
|
@@ -1568,21 +969,21 @@ class User_DiscordInfo$Type extends MessageType<User_DiscordInfo> {
|
|
|
1568
969
|
*/
|
|
1569
970
|
export const User_DiscordInfo = new User_DiscordInfo$Type();
|
|
1570
971
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
1571
|
-
class User_Point$Type extends MessageType
|
|
972
|
+
class User_Point$Type extends MessageType {
|
|
1572
973
|
constructor() {
|
|
1573
974
|
super("proto.models.User.Point", [
|
|
1574
975
|
{ no: 1, name: "x", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
1575
976
|
{ no: 2, name: "y", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
|
|
1576
977
|
]);
|
|
1577
978
|
}
|
|
1578
|
-
create(value
|
|
979
|
+
create(value) {
|
|
1579
980
|
const message = { x: 0, y: 0 };
|
|
1580
981
|
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
1581
982
|
if (value !== undefined)
|
|
1582
|
-
reflectionMergePartial
|
|
983
|
+
reflectionMergePartial(this, message, value);
|
|
1583
984
|
return message;
|
|
1584
985
|
}
|
|
1585
|
-
internalBinaryRead(reader
|
|
986
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1586
987
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
1587
988
|
while (reader.pos < end) {
|
|
1588
989
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -1604,7 +1005,7 @@ class User_Point$Type extends MessageType<User_Point> {
|
|
|
1604
1005
|
}
|
|
1605
1006
|
return message;
|
|
1606
1007
|
}
|
|
1607
|
-
internalBinaryWrite(message
|
|
1008
|
+
internalBinaryWrite(message, writer, options) {
|
|
1608
1009
|
/* int32 x = 1; */
|
|
1609
1010
|
if (message.x !== 0)
|
|
1610
1011
|
writer.tag(1, WireType.Varint).int32(message.x);
|
|
@@ -1622,7 +1023,7 @@ class User_Point$Type extends MessageType<User_Point> {
|
|
|
1622
1023
|
*/
|
|
1623
1024
|
export const User_Point = new User_Point$Type();
|
|
1624
1025
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
1625
|
-
class Match$Type extends MessageType
|
|
1026
|
+
class Match$Type extends MessageType {
|
|
1626
1027
|
constructor() {
|
|
1627
1028
|
super("proto.models.Match", [
|
|
1628
1029
|
{ no: 1, name: "guid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
@@ -1631,14 +1032,14 @@ class Match$Type extends MessageType<Match> {
|
|
|
1631
1032
|
{ no: 4, name: "selected_map", kind: "message", T: () => Map }
|
|
1632
1033
|
]);
|
|
1633
1034
|
}
|
|
1634
|
-
create(value
|
|
1035
|
+
create(value) {
|
|
1635
1036
|
const message = { guid: "", associatedUsers: [], leader: "" };
|
|
1636
1037
|
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
1637
1038
|
if (value !== undefined)
|
|
1638
|
-
reflectionMergePartial
|
|
1039
|
+
reflectionMergePartial(this, message, value);
|
|
1639
1040
|
return message;
|
|
1640
1041
|
}
|
|
1641
|
-
internalBinaryRead(reader
|
|
1042
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1642
1043
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
1643
1044
|
while (reader.pos < end) {
|
|
1644
1045
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -1666,7 +1067,7 @@ class Match$Type extends MessageType<Match> {
|
|
|
1666
1067
|
}
|
|
1667
1068
|
return message;
|
|
1668
1069
|
}
|
|
1669
|
-
internalBinaryWrite(message
|
|
1070
|
+
internalBinaryWrite(message, writer, options) {
|
|
1670
1071
|
/* string guid = 1; */
|
|
1671
1072
|
if (message.guid !== "")
|
|
1672
1073
|
writer.tag(1, WireType.LengthDelimited).string(message.guid);
|
|
@@ -1690,7 +1091,7 @@ class Match$Type extends MessageType<Match> {
|
|
|
1690
1091
|
*/
|
|
1691
1092
|
export const Match = new Match$Type();
|
|
1692
1093
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
1693
|
-
class QualifierEvent$Type extends MessageType
|
|
1094
|
+
class QualifierEvent$Type extends MessageType {
|
|
1694
1095
|
constructor() {
|
|
1695
1096
|
super("proto.models.QualifierEvent", [
|
|
1696
1097
|
{ no: 1, name: "guid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
@@ -1702,14 +1103,14 @@ class QualifierEvent$Type extends MessageType<QualifierEvent> {
|
|
|
1702
1103
|
{ no: 7, name: "sort", kind: "enum", T: () => ["proto.models.QualifierEvent.LeaderboardSort", QualifierEvent_LeaderboardSort] }
|
|
1703
1104
|
]);
|
|
1704
1105
|
}
|
|
1705
|
-
create(value
|
|
1106
|
+
create(value) {
|
|
1706
1107
|
const message = { guid: "", name: "", image: new Uint8Array(0), qualifierMaps: [], flags: 0, sort: 0 };
|
|
1707
1108
|
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
1708
1109
|
if (value !== undefined)
|
|
1709
|
-
reflectionMergePartial
|
|
1110
|
+
reflectionMergePartial(this, message, value);
|
|
1710
1111
|
return message;
|
|
1711
1112
|
}
|
|
1712
|
-
internalBinaryRead(reader
|
|
1113
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1713
1114
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
1714
1115
|
while (reader.pos < end) {
|
|
1715
1116
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -1746,7 +1147,7 @@ class QualifierEvent$Type extends MessageType<QualifierEvent> {
|
|
|
1746
1147
|
}
|
|
1747
1148
|
return message;
|
|
1748
1149
|
}
|
|
1749
|
-
internalBinaryWrite(message
|
|
1150
|
+
internalBinaryWrite(message, writer, options) {
|
|
1750
1151
|
/* string guid = 1; */
|
|
1751
1152
|
if (message.guid !== "")
|
|
1752
1153
|
writer.tag(1, WireType.LengthDelimited).string(message.guid);
|
|
@@ -1779,7 +1180,7 @@ class QualifierEvent$Type extends MessageType<QualifierEvent> {
|
|
|
1779
1180
|
*/
|
|
1780
1181
|
export const QualifierEvent = new QualifierEvent$Type();
|
|
1781
1182
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
1782
|
-
class CoreServer$Type extends MessageType
|
|
1183
|
+
class CoreServer$Type extends MessageType {
|
|
1783
1184
|
constructor() {
|
|
1784
1185
|
super("proto.models.CoreServer", [
|
|
1785
1186
|
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
@@ -1788,14 +1189,14 @@ class CoreServer$Type extends MessageType<CoreServer> {
|
|
|
1788
1189
|
{ no: 4, name: "websocket_port", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
|
|
1789
1190
|
]);
|
|
1790
1191
|
}
|
|
1791
|
-
create(value
|
|
1192
|
+
create(value) {
|
|
1792
1193
|
const message = { name: "", address: "", port: 0, websocketPort: 0 };
|
|
1793
1194
|
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
1794
1195
|
if (value !== undefined)
|
|
1795
|
-
reflectionMergePartial
|
|
1196
|
+
reflectionMergePartial(this, message, value);
|
|
1796
1197
|
return message;
|
|
1797
1198
|
}
|
|
1798
|
-
internalBinaryRead(reader
|
|
1199
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1799
1200
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
1800
1201
|
while (reader.pos < end) {
|
|
1801
1202
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -1823,7 +1224,7 @@ class CoreServer$Type extends MessageType<CoreServer> {
|
|
|
1823
1224
|
}
|
|
1824
1225
|
return message;
|
|
1825
1226
|
}
|
|
1826
|
-
internalBinaryWrite(message
|
|
1227
|
+
internalBinaryWrite(message, writer, options) {
|
|
1827
1228
|
/* string name = 1; */
|
|
1828
1229
|
if (message.name !== "")
|
|
1829
1230
|
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
|
@@ -1847,7 +1248,7 @@ class CoreServer$Type extends MessageType<CoreServer> {
|
|
|
1847
1248
|
*/
|
|
1848
1249
|
export const CoreServer = new CoreServer$Type();
|
|
1849
1250
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
1850
|
-
class Tournament$Type extends MessageType
|
|
1251
|
+
class Tournament$Type extends MessageType {
|
|
1851
1252
|
constructor() {
|
|
1852
1253
|
super("proto.models.Tournament", [
|
|
1853
1254
|
{ no: 1, name: "guid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
@@ -1858,14 +1259,14 @@ class Tournament$Type extends MessageType<Tournament> {
|
|
|
1858
1259
|
{ no: 6, name: "server", kind: "message", T: () => CoreServer }
|
|
1859
1260
|
]);
|
|
1860
1261
|
}
|
|
1861
|
-
create(value
|
|
1262
|
+
create(value) {
|
|
1862
1263
|
const message = { guid: "", users: [], matches: [], qualifiers: [] };
|
|
1863
1264
|
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
1864
1265
|
if (value !== undefined)
|
|
1865
|
-
reflectionMergePartial
|
|
1266
|
+
reflectionMergePartial(this, message, value);
|
|
1866
1267
|
return message;
|
|
1867
1268
|
}
|
|
1868
|
-
internalBinaryRead(reader
|
|
1269
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1869
1270
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
1870
1271
|
while (reader.pos < end) {
|
|
1871
1272
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -1899,7 +1300,7 @@ class Tournament$Type extends MessageType<Tournament> {
|
|
|
1899
1300
|
}
|
|
1900
1301
|
return message;
|
|
1901
1302
|
}
|
|
1902
|
-
internalBinaryWrite(message
|
|
1303
|
+
internalBinaryWrite(message, writer, options) {
|
|
1903
1304
|
/* string guid = 1; */
|
|
1904
1305
|
if (message.guid !== "")
|
|
1905
1306
|
writer.tag(1, WireType.LengthDelimited).string(message.guid);
|
|
@@ -1929,7 +1330,7 @@ class Tournament$Type extends MessageType<Tournament> {
|
|
|
1929
1330
|
*/
|
|
1930
1331
|
export const Tournament = new Tournament$Type();
|
|
1931
1332
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
1932
|
-
class Tournament_TournamentSettings$Type extends MessageType
|
|
1333
|
+
class Tournament_TournamentSettings$Type extends MessageType {
|
|
1933
1334
|
constructor() {
|
|
1934
1335
|
super("proto.models.Tournament.TournamentSettings", [
|
|
1935
1336
|
{ no: 1, name: "tournament_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
@@ -1945,14 +1346,14 @@ class Tournament_TournamentSettings$Type extends MessageType<Tournament_Tourname
|
|
|
1945
1346
|
{ no: 11, name: "allow_unauthorized_view", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
1946
1347
|
]);
|
|
1947
1348
|
}
|
|
1948
|
-
create(value
|
|
1349
|
+
create(value) {
|
|
1949
1350
|
const message = { tournamentName: "", tournamentImage: new Uint8Array(0), enableTeams: false, enablePools: false, teams: [], scoreUpdateFrequency: 0, bannedMods: [], pools: [], showTournamentButton: false, showQualifierButton: false, allowUnauthorizedView: false };
|
|
1950
1351
|
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
1951
1352
|
if (value !== undefined)
|
|
1952
|
-
reflectionMergePartial
|
|
1353
|
+
reflectionMergePartial(this, message, value);
|
|
1953
1354
|
return message;
|
|
1954
1355
|
}
|
|
1955
|
-
internalBinaryRead(reader
|
|
1356
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1956
1357
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
1957
1358
|
while (reader.pos < end) {
|
|
1958
1359
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -2001,7 +1402,7 @@ class Tournament_TournamentSettings$Type extends MessageType<Tournament_Tourname
|
|
|
2001
1402
|
}
|
|
2002
1403
|
return message;
|
|
2003
1404
|
}
|
|
2004
|
-
internalBinaryWrite(message
|
|
1405
|
+
internalBinaryWrite(message, writer, options) {
|
|
2005
1406
|
/* string tournament_name = 1; */
|
|
2006
1407
|
if (message.tournamentName !== "")
|
|
2007
1408
|
writer.tag(1, WireType.LengthDelimited).string(message.tournamentName);
|
|
@@ -2046,7 +1447,7 @@ class Tournament_TournamentSettings$Type extends MessageType<Tournament_Tourname
|
|
|
2046
1447
|
*/
|
|
2047
1448
|
export const Tournament_TournamentSettings = new Tournament_TournamentSettings$Type();
|
|
2048
1449
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
2049
|
-
class Tournament_TournamentSettings_Pool$Type extends MessageType
|
|
1450
|
+
class Tournament_TournamentSettings_Pool$Type extends MessageType {
|
|
2050
1451
|
constructor() {
|
|
2051
1452
|
super("proto.models.Tournament.TournamentSettings.Pool", [
|
|
2052
1453
|
{ no: 1, name: "guid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
@@ -2055,14 +1456,14 @@ class Tournament_TournamentSettings_Pool$Type extends MessageType<Tournament_Tou
|
|
|
2055
1456
|
{ no: 4, name: "maps", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Map }
|
|
2056
1457
|
]);
|
|
2057
1458
|
}
|
|
2058
|
-
create(value
|
|
1459
|
+
create(value) {
|
|
2059
1460
|
const message = { guid: "", name: "", image: new Uint8Array(0), maps: [] };
|
|
2060
1461
|
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
2061
1462
|
if (value !== undefined)
|
|
2062
|
-
reflectionMergePartial
|
|
1463
|
+
reflectionMergePartial(this, message, value);
|
|
2063
1464
|
return message;
|
|
2064
1465
|
}
|
|
2065
|
-
internalBinaryRead(reader
|
|
1466
|
+
internalBinaryRead(reader, length, options, target) {
|
|
2066
1467
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
2067
1468
|
while (reader.pos < end) {
|
|
2068
1469
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -2090,7 +1491,7 @@ class Tournament_TournamentSettings_Pool$Type extends MessageType<Tournament_Tou
|
|
|
2090
1491
|
}
|
|
2091
1492
|
return message;
|
|
2092
1493
|
}
|
|
2093
|
-
internalBinaryWrite(message
|
|
1494
|
+
internalBinaryWrite(message, writer, options) {
|
|
2094
1495
|
/* string guid = 1; */
|
|
2095
1496
|
if (message.guid !== "")
|
|
2096
1497
|
writer.tag(1, WireType.LengthDelimited).string(message.guid);
|
|
@@ -2114,7 +1515,7 @@ class Tournament_TournamentSettings_Pool$Type extends MessageType<Tournament_Tou
|
|
|
2114
1515
|
*/
|
|
2115
1516
|
export const Tournament_TournamentSettings_Pool = new Tournament_TournamentSettings_Pool$Type();
|
|
2116
1517
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
2117
|
-
class Tournament_TournamentSettings_Team$Type extends MessageType
|
|
1518
|
+
class Tournament_TournamentSettings_Team$Type extends MessageType {
|
|
2118
1519
|
constructor() {
|
|
2119
1520
|
super("proto.models.Tournament.TournamentSettings.Team", [
|
|
2120
1521
|
{ no: 1, name: "guid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
@@ -2122,14 +1523,14 @@ class Tournament_TournamentSettings_Team$Type extends MessageType<Tournament_Tou
|
|
|
2122
1523
|
{ no: 3, name: "image", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
2123
1524
|
]);
|
|
2124
1525
|
}
|
|
2125
|
-
create(value
|
|
1526
|
+
create(value) {
|
|
2126
1527
|
const message = { guid: "", name: "", image: new Uint8Array(0) };
|
|
2127
1528
|
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
2128
1529
|
if (value !== undefined)
|
|
2129
|
-
reflectionMergePartial
|
|
1530
|
+
reflectionMergePartial(this, message, value);
|
|
2130
1531
|
return message;
|
|
2131
1532
|
}
|
|
2132
|
-
internalBinaryRead(reader
|
|
1533
|
+
internalBinaryRead(reader, length, options, target) {
|
|
2133
1534
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
2134
1535
|
while (reader.pos < end) {
|
|
2135
1536
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -2154,7 +1555,7 @@ class Tournament_TournamentSettings_Team$Type extends MessageType<Tournament_Tou
|
|
|
2154
1555
|
}
|
|
2155
1556
|
return message;
|
|
2156
1557
|
}
|
|
2157
|
-
internalBinaryWrite(message
|
|
1558
|
+
internalBinaryWrite(message, writer, options) {
|
|
2158
1559
|
/* string guid = 1; */
|
|
2159
1560
|
if (message.guid !== "")
|
|
2160
1561
|
writer.tag(1, WireType.LengthDelimited).string(message.guid);
|
|
@@ -2175,21 +1576,21 @@ class Tournament_TournamentSettings_Team$Type extends MessageType<Tournament_Tou
|
|
|
2175
1576
|
*/
|
|
2176
1577
|
export const Tournament_TournamentSettings_Team = new Tournament_TournamentSettings_Team$Type();
|
|
2177
1578
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
2178
|
-
class State$Type extends MessageType
|
|
1579
|
+
class State$Type extends MessageType {
|
|
2179
1580
|
constructor() {
|
|
2180
1581
|
super("proto.models.State", [
|
|
2181
1582
|
{ no: 1, name: "tournaments", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Tournament },
|
|
2182
1583
|
{ no: 2, name: "known_servers", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => CoreServer }
|
|
2183
1584
|
]);
|
|
2184
1585
|
}
|
|
2185
|
-
create(value
|
|
1586
|
+
create(value) {
|
|
2186
1587
|
const message = { tournaments: [], knownServers: [] };
|
|
2187
1588
|
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
2188
1589
|
if (value !== undefined)
|
|
2189
|
-
reflectionMergePartial
|
|
1590
|
+
reflectionMergePartial(this, message, value);
|
|
2190
1591
|
return message;
|
|
2191
1592
|
}
|
|
2192
|
-
internalBinaryRead(reader
|
|
1593
|
+
internalBinaryRead(reader, length, options, target) {
|
|
2193
1594
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
2194
1595
|
while (reader.pos < end) {
|
|
2195
1596
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -2211,7 +1612,7 @@ class State$Type extends MessageType<State> {
|
|
|
2211
1612
|
}
|
|
2212
1613
|
return message;
|
|
2213
1614
|
}
|
|
2214
|
-
internalBinaryWrite(message
|
|
1615
|
+
internalBinaryWrite(message, writer, options) {
|
|
2215
1616
|
/* repeated proto.models.Tournament tournaments = 1; */
|
|
2216
1617
|
for (let i = 0; i < message.tournaments.length; i++)
|
|
2217
1618
|
Tournament.internalBinaryWrite(message.tournaments[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -2229,21 +1630,21 @@ class State$Type extends MessageType<State> {
|
|
|
2229
1630
|
*/
|
|
2230
1631
|
export const State = new State$Type();
|
|
2231
1632
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
2232
|
-
class ModalOption$Type extends MessageType
|
|
1633
|
+
class ModalOption$Type extends MessageType {
|
|
2233
1634
|
constructor() {
|
|
2234
1635
|
super("proto.models.ModalOption", [
|
|
2235
1636
|
{ no: 1, name: "label", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2236
1637
|
{ no: 2, name: "value", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2237
1638
|
]);
|
|
2238
1639
|
}
|
|
2239
|
-
create(value
|
|
1640
|
+
create(value) {
|
|
2240
1641
|
const message = { label: "", value: "" };
|
|
2241
1642
|
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
2242
1643
|
if (value !== undefined)
|
|
2243
|
-
reflectionMergePartial
|
|
1644
|
+
reflectionMergePartial(this, message, value);
|
|
2244
1645
|
return message;
|
|
2245
1646
|
}
|
|
2246
|
-
internalBinaryRead(reader
|
|
1647
|
+
internalBinaryRead(reader, length, options, target) {
|
|
2247
1648
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
2248
1649
|
while (reader.pos < end) {
|
|
2249
1650
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -2265,7 +1666,7 @@ class ModalOption$Type extends MessageType<ModalOption> {
|
|
|
2265
1666
|
}
|
|
2266
1667
|
return message;
|
|
2267
1668
|
}
|
|
2268
|
-
internalBinaryWrite(message
|
|
1669
|
+
internalBinaryWrite(message, writer, options) {
|
|
2269
1670
|
/* string label = 1; */
|
|
2270
1671
|
if (message.label !== "")
|
|
2271
1672
|
writer.tag(1, WireType.LengthDelimited).string(message.label);
|
|
@@ -2283,7 +1684,7 @@ class ModalOption$Type extends MessageType<ModalOption> {
|
|
|
2283
1684
|
*/
|
|
2284
1685
|
export const ModalOption = new ModalOption$Type();
|
|
2285
1686
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
2286
|
-
class LeaderboardEntry$Type extends MessageType
|
|
1687
|
+
class LeaderboardEntry$Type extends MessageType {
|
|
2287
1688
|
constructor() {
|
|
2288
1689
|
super("proto.models.LeaderboardEntry", [
|
|
2289
1690
|
{ no: 1, name: "event_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
@@ -2303,14 +1704,14 @@ class LeaderboardEntry$Type extends MessageType<LeaderboardEntry> {
|
|
|
2303
1704
|
{ no: 15, name: "color", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2304
1705
|
]);
|
|
2305
1706
|
}
|
|
2306
|
-
create(value
|
|
1707
|
+
create(value) {
|
|
2307
1708
|
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
1709
|
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
2309
1710
|
if (value !== undefined)
|
|
2310
|
-
reflectionMergePartial
|
|
1711
|
+
reflectionMergePartial(this, message, value);
|
|
2311
1712
|
return message;
|
|
2312
1713
|
}
|
|
2313
|
-
internalBinaryRead(reader
|
|
1714
|
+
internalBinaryRead(reader, length, options, target) {
|
|
2314
1715
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
2315
1716
|
while (reader.pos < end) {
|
|
2316
1717
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -2371,7 +1772,7 @@ class LeaderboardEntry$Type extends MessageType<LeaderboardEntry> {
|
|
|
2371
1772
|
}
|
|
2372
1773
|
return message;
|
|
2373
1774
|
}
|
|
2374
|
-
internalBinaryWrite(message
|
|
1775
|
+
internalBinaryWrite(message, writer, options) {
|
|
2375
1776
|
/* string event_id = 1; */
|
|
2376
1777
|
if (message.eventId !== "")
|
|
2377
1778
|
writer.tag(1, WireType.LengthDelimited).string(message.eventId);
|
|
@@ -2428,7 +1829,7 @@ class LeaderboardEntry$Type extends MessageType<LeaderboardEntry> {
|
|
|
2428
1829
|
*/
|
|
2429
1830
|
export const LeaderboardEntry = new LeaderboardEntry$Type();
|
|
2430
1831
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
2431
|
-
class RealtimeScore$Type extends MessageType
|
|
1832
|
+
class RealtimeScore$Type extends MessageType {
|
|
2432
1833
|
constructor() {
|
|
2433
1834
|
super("proto.models.RealtimeScore", [
|
|
2434
1835
|
{ no: 1, name: "user_guid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
@@ -2449,14 +1850,14 @@ class RealtimeScore$Type extends MessageType<RealtimeScore> {
|
|
|
2449
1850
|
{ no: 16, name: "right_hand", kind: "message", T: () => ScoreTrackerHand }
|
|
2450
1851
|
]);
|
|
2451
1852
|
}
|
|
2452
|
-
create(value
|
|
1853
|
+
create(value) {
|
|
2453
1854
|
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
1855
|
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
2455
1856
|
if (value !== undefined)
|
|
2456
|
-
reflectionMergePartial
|
|
1857
|
+
reflectionMergePartial(this, message, value);
|
|
2457
1858
|
return message;
|
|
2458
1859
|
}
|
|
2459
|
-
internalBinaryRead(reader
|
|
1860
|
+
internalBinaryRead(reader, length, options, target) {
|
|
2460
1861
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
2461
1862
|
while (reader.pos < end) {
|
|
2462
1863
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -2520,7 +1921,7 @@ class RealtimeScore$Type extends MessageType<RealtimeScore> {
|
|
|
2520
1921
|
}
|
|
2521
1922
|
return message;
|
|
2522
1923
|
}
|
|
2523
|
-
internalBinaryWrite(message
|
|
1924
|
+
internalBinaryWrite(message, writer, options) {
|
|
2524
1925
|
/* string user_guid = 1; */
|
|
2525
1926
|
if (message.userGuid !== "")
|
|
2526
1927
|
writer.tag(1, WireType.LengthDelimited).string(message.userGuid);
|
|
@@ -2580,7 +1981,7 @@ class RealtimeScore$Type extends MessageType<RealtimeScore> {
|
|
|
2580
1981
|
*/
|
|
2581
1982
|
export const RealtimeScore = new RealtimeScore$Type();
|
|
2582
1983
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
2583
|
-
class ScoreTrackerHand$Type extends MessageType
|
|
1984
|
+
class ScoreTrackerHand$Type extends MessageType {
|
|
2584
1985
|
constructor() {
|
|
2585
1986
|
super("proto.models.ScoreTrackerHand", [
|
|
2586
1987
|
{ no: 1, name: "hit", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
@@ -2589,14 +1990,14 @@ class ScoreTrackerHand$Type extends MessageType<ScoreTrackerHand> {
|
|
|
2589
1990
|
{ no: 4, name: "avg_cut", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 2 /*ScalarType.FLOAT*/ }
|
|
2590
1991
|
]);
|
|
2591
1992
|
}
|
|
2592
|
-
create(value
|
|
1993
|
+
create(value) {
|
|
2593
1994
|
const message = { hit: 0, miss: 0, badCut: 0, avgCut: [] };
|
|
2594
1995
|
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
2595
1996
|
if (value !== undefined)
|
|
2596
|
-
reflectionMergePartial
|
|
1997
|
+
reflectionMergePartial(this, message, value);
|
|
2597
1998
|
return message;
|
|
2598
1999
|
}
|
|
2599
|
-
internalBinaryRead(reader
|
|
2000
|
+
internalBinaryRead(reader, length, options, target) {
|
|
2600
2001
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
2601
2002
|
while (reader.pos < end) {
|
|
2602
2003
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -2628,7 +2029,7 @@ class ScoreTrackerHand$Type extends MessageType<ScoreTrackerHand> {
|
|
|
2628
2029
|
}
|
|
2629
2030
|
return message;
|
|
2630
2031
|
}
|
|
2631
|
-
internalBinaryWrite(message
|
|
2032
|
+
internalBinaryWrite(message, writer, options) {
|
|
2632
2033
|
/* int32 hit = 1; */
|
|
2633
2034
|
if (message.hit !== 0)
|
|
2634
2035
|
writer.tag(1, WireType.Varint).int32(message.hit);
|