@rian8337/osu-base 4.0.0-beta.90 → 4.0.0-beta.95
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/README.md +24 -24
- package/dist/index.js +407 -406
- package/package.json +2 -2
- package/typings/index.d.ts +209 -194
package/dist/index.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
exports.Modes = void 0;
|
|
7
7
|
(function (Modes) {
|
|
8
|
-
Modes["
|
|
9
|
-
Modes["
|
|
8
|
+
Modes["Droid"] = "droid";
|
|
9
|
+
Modes["Osu"] = "osu";
|
|
10
10
|
})(exports.Modes || (exports.Modes = {}));
|
|
11
11
|
|
|
12
12
|
/**
|
|
@@ -234,19 +234,19 @@ exports.HitResult = void 0;
|
|
|
234
234
|
/**
|
|
235
235
|
* Miss (0).
|
|
236
236
|
*/
|
|
237
|
-
HitResult[HitResult["
|
|
237
|
+
HitResult[HitResult["Miss"] = 1] = "Miss";
|
|
238
238
|
/**
|
|
239
239
|
* Meh (50).
|
|
240
240
|
*/
|
|
241
|
-
HitResult[HitResult["
|
|
241
|
+
HitResult[HitResult["Meh"] = 2] = "Meh";
|
|
242
242
|
/**
|
|
243
243
|
* Good (100).
|
|
244
244
|
*/
|
|
245
|
-
HitResult[HitResult["
|
|
245
|
+
HitResult[HitResult["Good"] = 3] = "Good";
|
|
246
246
|
/**
|
|
247
247
|
* Great (300).
|
|
248
248
|
*/
|
|
249
|
-
HitResult[HitResult["
|
|
249
|
+
HitResult[HitResult["Great"] = 4] = "Great";
|
|
250
250
|
})(exports.HitResult || (exports.HitResult = {}));
|
|
251
251
|
|
|
252
252
|
/**
|
|
@@ -268,13 +268,13 @@ class HitWindow {
|
|
|
268
268
|
*/
|
|
269
269
|
hitWindowFor(result) {
|
|
270
270
|
switch (result) {
|
|
271
|
-
case exports.HitResult.
|
|
271
|
+
case exports.HitResult.Great:
|
|
272
272
|
return this.greatWindow;
|
|
273
|
-
case exports.HitResult.
|
|
273
|
+
case exports.HitResult.Good:
|
|
274
274
|
return this.okWindow;
|
|
275
|
-
case exports.HitResult.
|
|
275
|
+
case exports.HitResult.Meh:
|
|
276
276
|
return this.mehWindow;
|
|
277
|
-
case exports.HitResult.
|
|
277
|
+
case exports.HitResult.Miss:
|
|
278
278
|
return HitWindow.missWindow;
|
|
279
279
|
}
|
|
280
280
|
}
|
|
@@ -389,11 +389,11 @@ class PreciseDroidHitWindow extends HitWindow {
|
|
|
389
389
|
*/
|
|
390
390
|
exports.ObjectTypes = void 0;
|
|
391
391
|
(function (ObjectTypes) {
|
|
392
|
-
ObjectTypes[ObjectTypes["
|
|
393
|
-
ObjectTypes[ObjectTypes["
|
|
394
|
-
ObjectTypes[ObjectTypes["
|
|
395
|
-
ObjectTypes[ObjectTypes["
|
|
396
|
-
ObjectTypes[ObjectTypes["
|
|
392
|
+
ObjectTypes[ObjectTypes["Circle"] = 1] = "Circle";
|
|
393
|
+
ObjectTypes[ObjectTypes["Slider"] = 2] = "Slider";
|
|
394
|
+
ObjectTypes[ObjectTypes["NewCombo"] = 4] = "NewCombo";
|
|
395
|
+
ObjectTypes[ObjectTypes["Spinner"] = 8] = "Spinner";
|
|
396
|
+
ObjectTypes[ObjectTypes["ComboOffset"] = 112] = "ComboOffset";
|
|
397
397
|
})(exports.ObjectTypes || (exports.ObjectTypes = {}));
|
|
398
398
|
|
|
399
399
|
/**
|
|
@@ -401,10 +401,10 @@ exports.ObjectTypes = void 0;
|
|
|
401
401
|
*/
|
|
402
402
|
exports.SampleBank = void 0;
|
|
403
403
|
(function (SampleBank) {
|
|
404
|
-
SampleBank[SampleBank["
|
|
405
|
-
SampleBank[SampleBank["
|
|
406
|
-
SampleBank[SampleBank["
|
|
407
|
-
SampleBank[SampleBank["
|
|
404
|
+
SampleBank[SampleBank["None"] = 0] = "None";
|
|
405
|
+
SampleBank[SampleBank["Normal"] = 1] = "Normal";
|
|
406
|
+
SampleBank[SampleBank["Soft"] = 2] = "Soft";
|
|
407
|
+
SampleBank[SampleBank["Drum"] = 3] = "Drum";
|
|
408
408
|
})(exports.SampleBank || (exports.SampleBank = {}));
|
|
409
409
|
|
|
410
410
|
/**
|
|
@@ -688,12 +688,12 @@ class CircleSizeCalculator {
|
|
|
688
688
|
}
|
|
689
689
|
for (const mod of mods.values()) {
|
|
690
690
|
if (mod.isApplicableToDifficulty()) {
|
|
691
|
-
mod.applyToDifficulty(exports.Modes.
|
|
691
|
+
mod.applyToDifficulty(exports.Modes.Droid, difficulty, adjustmentMods);
|
|
692
692
|
}
|
|
693
693
|
}
|
|
694
694
|
for (const mod of mods.values()) {
|
|
695
695
|
if (mod.isApplicableToDifficultyWithMods()) {
|
|
696
|
-
mod.applyToDifficultyWithMods(exports.Modes.
|
|
696
|
+
mod.applyToDifficultyWithMods(exports.Modes.Droid, difficulty, mods);
|
|
697
697
|
}
|
|
698
698
|
}
|
|
699
699
|
}
|
|
@@ -840,16 +840,16 @@ class BankHitSampleInfo extends HitSampleInfo {
|
|
|
840
840
|
const names = [];
|
|
841
841
|
let prefix;
|
|
842
842
|
switch (this.bank) {
|
|
843
|
-
case exports.SampleBank.
|
|
843
|
+
case exports.SampleBank.None:
|
|
844
844
|
prefix = "";
|
|
845
845
|
break;
|
|
846
|
-
case exports.SampleBank.
|
|
846
|
+
case exports.SampleBank.Normal:
|
|
847
847
|
prefix = "normal";
|
|
848
848
|
break;
|
|
849
|
-
case exports.SampleBank.
|
|
849
|
+
case exports.SampleBank.Soft:
|
|
850
850
|
prefix = "soft";
|
|
851
851
|
break;
|
|
852
|
-
case exports.SampleBank.
|
|
852
|
+
case exports.SampleBank.Drum:
|
|
853
853
|
prefix = "drum";
|
|
854
854
|
break;
|
|
855
855
|
}
|
|
@@ -859,7 +859,7 @@ class BankHitSampleInfo extends HitSampleInfo {
|
|
|
859
859
|
names.push(`${prefix}-${this.name}`, this.name);
|
|
860
860
|
return names;
|
|
861
861
|
}
|
|
862
|
-
constructor(name, bank = exports.SampleBank.
|
|
862
|
+
constructor(name, bank = exports.SampleBank.None, customSampleBank = 0, volume = 0, isLayered = false) {
|
|
863
863
|
super(volume);
|
|
864
864
|
this.name = name;
|
|
865
865
|
this.bank = bank;
|
|
@@ -981,13 +981,13 @@ class HitObject {
|
|
|
981
981
|
*/
|
|
982
982
|
get typeStr() {
|
|
983
983
|
let res = "";
|
|
984
|
-
if (this.type & exports.ObjectTypes.
|
|
984
|
+
if (this.type & exports.ObjectTypes.Circle) {
|
|
985
985
|
res += "circle | ";
|
|
986
986
|
}
|
|
987
|
-
if (this.type & exports.ObjectTypes.
|
|
987
|
+
if (this.type & exports.ObjectTypes.Slider) {
|
|
988
988
|
res += "slider | ";
|
|
989
989
|
}
|
|
990
|
-
if (this.type & exports.ObjectTypes.
|
|
990
|
+
if (this.type & exports.ObjectTypes.Spinner) {
|
|
991
991
|
res += "spinner | ";
|
|
992
992
|
}
|
|
993
993
|
return res.substring(0, Math.max(0, res.length - 3));
|
|
@@ -1035,7 +1035,7 @@ class HitObject {
|
|
|
1035
1035
|
*/
|
|
1036
1036
|
this.timeFadeIn = 400;
|
|
1037
1037
|
this.startTime = values.startTime;
|
|
1038
|
-
this.type = (_a = values.type) !== null && _a !== void 0 ? _a : exports.ObjectTypes.
|
|
1038
|
+
this.type = (_a = values.type) !== null && _a !== void 0 ? _a : exports.ObjectTypes.Circle;
|
|
1039
1039
|
this._position = values.position;
|
|
1040
1040
|
this.isNewCombo = (_b = values.newCombo) !== null && _b !== void 0 ? _b : false;
|
|
1041
1041
|
this.comboOffset = (_c = values.comboOffset) !== null && _c !== void 0 ? _c : 0;
|
|
@@ -1062,11 +1062,11 @@ class HitObject {
|
|
|
1062
1062
|
this.timeFadeIn =
|
|
1063
1063
|
400 * Math.min(1, this.timePreempt / HitObject.preemptMin);
|
|
1064
1064
|
switch (mode) {
|
|
1065
|
-
case exports.Modes.
|
|
1065
|
+
case exports.Modes.Droid:
|
|
1066
1066
|
this.scale = CircleSizeCalculator.droidCSToDroidScale(difficulty.cs);
|
|
1067
1067
|
this.stackOffsetMultiplier = -4;
|
|
1068
1068
|
break;
|
|
1069
|
-
case exports.Modes.
|
|
1069
|
+
case exports.Modes.Osu:
|
|
1070
1070
|
this.scale = CircleSizeCalculator.standardCSToStandardScale(difficulty.cs, true);
|
|
1071
1071
|
this.stackOffsetMultiplier = -6.4;
|
|
1072
1072
|
break;
|
|
@@ -1091,10 +1091,10 @@ class HitObject {
|
|
|
1091
1091
|
this._comboIndex = (_a = prev === null || prev === void 0 ? void 0 : prev.comboIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1092
1092
|
this._comboIndexWithOffsets = (_b = prev === null || prev === void 0 ? void 0 : prev.comboIndexWithOffsets) !== null && _b !== void 0 ? _b : 0;
|
|
1093
1093
|
this._indexInCurrentCombo = prev ? prev.indexInCurrentCombo + 1 : 0;
|
|
1094
|
-
if (this.isNewCombo || !prev || prev.type & exports.ObjectTypes.
|
|
1094
|
+
if (this.isNewCombo || !prev || prev.type & exports.ObjectTypes.Spinner) {
|
|
1095
1095
|
this._indexInCurrentCombo = 0;
|
|
1096
1096
|
++this._comboIndex;
|
|
1097
|
-
if (!(this.type & exports.ObjectTypes.
|
|
1097
|
+
if (!(this.type & exports.ObjectTypes.Spinner)) {
|
|
1098
1098
|
// Spinners do not affect combo color offsets.
|
|
1099
1099
|
this._comboIndexWithOffsets += this.comboOffset + 1;
|
|
1100
1100
|
}
|
|
@@ -1118,7 +1118,7 @@ class HitObject {
|
|
|
1118
1118
|
if (sample) {
|
|
1119
1119
|
return new BankHitSampleInfo(sampleName, sample.bank, sample.customSampleBank, sample.volume);
|
|
1120
1120
|
}
|
|
1121
|
-
return new BankHitSampleInfo(sampleName, exports.SampleBank.
|
|
1121
|
+
return new BankHitSampleInfo(sampleName, exports.SampleBank.None);
|
|
1122
1122
|
}
|
|
1123
1123
|
/**
|
|
1124
1124
|
* Creates the hit window of this hitobject.
|
|
@@ -1132,9 +1132,9 @@ class HitObject {
|
|
|
1132
1132
|
*/
|
|
1133
1133
|
createHitWindow(mode) {
|
|
1134
1134
|
switch (mode) {
|
|
1135
|
-
case exports.Modes.
|
|
1135
|
+
case exports.Modes.Droid:
|
|
1136
1136
|
return new DroidHitWindow();
|
|
1137
|
-
case exports.Modes.
|
|
1137
|
+
case exports.Modes.Osu:
|
|
1138
1138
|
return new OsuHitWindow();
|
|
1139
1139
|
}
|
|
1140
1140
|
}
|
|
@@ -1145,7 +1145,7 @@ class HitObject {
|
|
|
1145
1145
|
* @returns The stacked position.
|
|
1146
1146
|
*/
|
|
1147
1147
|
evaluateStackedPosition(position) {
|
|
1148
|
-
if ((this.type & exports.ObjectTypes.
|
|
1148
|
+
if ((this.type & exports.ObjectTypes.Spinner) > 0 || this.stackHeight === 0) {
|
|
1149
1149
|
return position;
|
|
1150
1150
|
}
|
|
1151
1151
|
return position.add(this.stackOffset);
|
|
@@ -1179,42 +1179,42 @@ HitObject.controlPointLeniency = 1;
|
|
|
1179
1179
|
*/
|
|
1180
1180
|
exports.Easing = void 0;
|
|
1181
1181
|
(function (Easing) {
|
|
1182
|
-
Easing[Easing["
|
|
1183
|
-
Easing[Easing["
|
|
1184
|
-
Easing[Easing["
|
|
1185
|
-
Easing[Easing["
|
|
1186
|
-
Easing[Easing["
|
|
1187
|
-
Easing[Easing["
|
|
1188
|
-
Easing[Easing["
|
|
1189
|
-
Easing[Easing["
|
|
1190
|
-
Easing[Easing["
|
|
1191
|
-
Easing[Easing["
|
|
1192
|
-
Easing[Easing["
|
|
1193
|
-
Easing[Easing["
|
|
1194
|
-
Easing[Easing["
|
|
1195
|
-
Easing[Easing["
|
|
1196
|
-
Easing[Easing["
|
|
1197
|
-
Easing[Easing["
|
|
1198
|
-
Easing[Easing["
|
|
1199
|
-
Easing[Easing["
|
|
1200
|
-
Easing[Easing["
|
|
1201
|
-
Easing[Easing["
|
|
1202
|
-
Easing[Easing["
|
|
1203
|
-
Easing[Easing["
|
|
1204
|
-
Easing[Easing["
|
|
1205
|
-
Easing[Easing["
|
|
1206
|
-
Easing[Easing["
|
|
1207
|
-
Easing[Easing["
|
|
1208
|
-
Easing[Easing["
|
|
1209
|
-
Easing[Easing["
|
|
1210
|
-
Easing[Easing["
|
|
1211
|
-
Easing[Easing["
|
|
1212
|
-
Easing[Easing["
|
|
1213
|
-
Easing[Easing["
|
|
1214
|
-
Easing[Easing["
|
|
1215
|
-
Easing[Easing["
|
|
1216
|
-
Easing[Easing["
|
|
1217
|
-
Easing[Easing["
|
|
1182
|
+
Easing[Easing["None"] = 0] = "None";
|
|
1183
|
+
Easing[Easing["Out"] = 1] = "Out";
|
|
1184
|
+
Easing[Easing["In"] = 2] = "In";
|
|
1185
|
+
Easing[Easing["InQuad"] = 3] = "InQuad";
|
|
1186
|
+
Easing[Easing["OutQuad"] = 4] = "OutQuad";
|
|
1187
|
+
Easing[Easing["InOutQuad"] = 5] = "InOutQuad";
|
|
1188
|
+
Easing[Easing["InCubic"] = 6] = "InCubic";
|
|
1189
|
+
Easing[Easing["OutCubic"] = 7] = "OutCubic";
|
|
1190
|
+
Easing[Easing["InOutCubic"] = 8] = "InOutCubic";
|
|
1191
|
+
Easing[Easing["InQuart"] = 9] = "InQuart";
|
|
1192
|
+
Easing[Easing["OutQuart"] = 10] = "OutQuart";
|
|
1193
|
+
Easing[Easing["InOutQuart"] = 11] = "InOutQuart";
|
|
1194
|
+
Easing[Easing["InQuint"] = 12] = "InQuint";
|
|
1195
|
+
Easing[Easing["OutQuint"] = 13] = "OutQuint";
|
|
1196
|
+
Easing[Easing["InOutQuint"] = 14] = "InOutQuint";
|
|
1197
|
+
Easing[Easing["InSine"] = 15] = "InSine";
|
|
1198
|
+
Easing[Easing["OutSine"] = 16] = "OutSine";
|
|
1199
|
+
Easing[Easing["InOutSine"] = 17] = "InOutSine";
|
|
1200
|
+
Easing[Easing["InExpo"] = 18] = "InExpo";
|
|
1201
|
+
Easing[Easing["OutExpo"] = 19] = "OutExpo";
|
|
1202
|
+
Easing[Easing["InOutExpo"] = 20] = "InOutExpo";
|
|
1203
|
+
Easing[Easing["InCirc"] = 21] = "InCirc";
|
|
1204
|
+
Easing[Easing["OutCirc"] = 22] = "OutCirc";
|
|
1205
|
+
Easing[Easing["InOutCirc"] = 23] = "InOutCirc";
|
|
1206
|
+
Easing[Easing["InElastic"] = 24] = "InElastic";
|
|
1207
|
+
Easing[Easing["OutElastic"] = 25] = "OutElastic";
|
|
1208
|
+
Easing[Easing["OutElasticHalf"] = 26] = "OutElasticHalf";
|
|
1209
|
+
Easing[Easing["OutElasticQuarter"] = 27] = "OutElasticQuarter";
|
|
1210
|
+
Easing[Easing["InOutElastic"] = 28] = "InOutElastic";
|
|
1211
|
+
Easing[Easing["InBack"] = 29] = "InBack";
|
|
1212
|
+
Easing[Easing["OutBack"] = 30] = "OutBack";
|
|
1213
|
+
Easing[Easing["InOutBack"] = 31] = "InOutBack";
|
|
1214
|
+
Easing[Easing["InBounce"] = 32] = "InBounce";
|
|
1215
|
+
Easing[Easing["OutBounce"] = 33] = "OutBounce";
|
|
1216
|
+
Easing[Easing["InOutBounce"] = 34] = "InOutBounce";
|
|
1217
|
+
Easing[Easing["OutPow10"] = 35] = "OutPow10";
|
|
1218
1218
|
})(exports.Easing || (exports.Easing = {}));
|
|
1219
1219
|
|
|
1220
1220
|
/**
|
|
@@ -2405,26 +2405,26 @@ class ModApproachDifferent extends Mod {
|
|
|
2405
2405
|
*/
|
|
2406
2406
|
get easing() {
|
|
2407
2407
|
switch (this.style.value) {
|
|
2408
|
-
case exports.AnimationStyle.
|
|
2409
|
-
return exports.Easing.
|
|
2410
|
-
case exports.AnimationStyle.
|
|
2411
|
-
return exports.Easing.
|
|
2412
|
-
case exports.AnimationStyle.
|
|
2413
|
-
return exports.Easing.
|
|
2414
|
-
case exports.AnimationStyle.
|
|
2415
|
-
return exports.Easing.
|
|
2416
|
-
case exports.AnimationStyle.
|
|
2417
|
-
return exports.Easing.
|
|
2418
|
-
case exports.AnimationStyle.
|
|
2419
|
-
return exports.Easing.
|
|
2420
|
-
case exports.AnimationStyle.
|
|
2421
|
-
return exports.Easing.
|
|
2422
|
-
case exports.AnimationStyle.
|
|
2423
|
-
return exports.Easing.
|
|
2424
|
-
case exports.AnimationStyle.
|
|
2425
|
-
return exports.Easing.
|
|
2426
|
-
case exports.AnimationStyle.
|
|
2427
|
-
return exports.Easing.
|
|
2408
|
+
case exports.AnimationStyle.Linear:
|
|
2409
|
+
return exports.Easing.None;
|
|
2410
|
+
case exports.AnimationStyle.Gravity:
|
|
2411
|
+
return exports.Easing.InBack;
|
|
2412
|
+
case exports.AnimationStyle.InOut1:
|
|
2413
|
+
return exports.Easing.InOutCubic;
|
|
2414
|
+
case exports.AnimationStyle.InOut2:
|
|
2415
|
+
return exports.Easing.InOutQuint;
|
|
2416
|
+
case exports.AnimationStyle.Accelerate1:
|
|
2417
|
+
return exports.Easing.In;
|
|
2418
|
+
case exports.AnimationStyle.Accelerate2:
|
|
2419
|
+
return exports.Easing.InCubic;
|
|
2420
|
+
case exports.AnimationStyle.Accelerate3:
|
|
2421
|
+
return exports.Easing.InQuint;
|
|
2422
|
+
case exports.AnimationStyle.Decelerate1:
|
|
2423
|
+
return exports.Easing.Out;
|
|
2424
|
+
case exports.AnimationStyle.Decelerate2:
|
|
2425
|
+
return exports.Easing.OutCubic;
|
|
2426
|
+
case exports.AnimationStyle.Decelerate3:
|
|
2427
|
+
return exports.Easing.OutQuint;
|
|
2428
2428
|
}
|
|
2429
2429
|
}
|
|
2430
2430
|
constructor() {
|
|
@@ -2445,22 +2445,22 @@ class ModApproachDifferent extends Mod {
|
|
|
2445
2445
|
/**
|
|
2446
2446
|
* The animation style of the approach circles.
|
|
2447
2447
|
*/
|
|
2448
|
-
this.style = new ModSetting("Style", "style", "The animation style of the approach circles.", exports.AnimationStyle.
|
|
2448
|
+
this.style = new ModSetting("Style", "style", "The animation style of the approach circles.", exports.AnimationStyle.Gravity);
|
|
2449
2449
|
this.incompatibleMods.add(ModHidden).add(ModFreezeFrame);
|
|
2450
2450
|
}
|
|
2451
2451
|
}
|
|
2452
2452
|
exports.AnimationStyle = void 0;
|
|
2453
2453
|
(function (AnimationStyle) {
|
|
2454
|
-
AnimationStyle[AnimationStyle["
|
|
2455
|
-
AnimationStyle[AnimationStyle["
|
|
2456
|
-
AnimationStyle[AnimationStyle["
|
|
2457
|
-
AnimationStyle[AnimationStyle["
|
|
2458
|
-
AnimationStyle[AnimationStyle["
|
|
2459
|
-
AnimationStyle[AnimationStyle["
|
|
2460
|
-
AnimationStyle[AnimationStyle["
|
|
2461
|
-
AnimationStyle[AnimationStyle["
|
|
2462
|
-
AnimationStyle[AnimationStyle["
|
|
2463
|
-
AnimationStyle[AnimationStyle["
|
|
2454
|
+
AnimationStyle[AnimationStyle["Linear"] = 0] = "Linear";
|
|
2455
|
+
AnimationStyle[AnimationStyle["Gravity"] = 1] = "Gravity";
|
|
2456
|
+
AnimationStyle[AnimationStyle["InOut1"] = 2] = "InOut1";
|
|
2457
|
+
AnimationStyle[AnimationStyle["InOut2"] = 3] = "InOut2";
|
|
2458
|
+
AnimationStyle[AnimationStyle["Accelerate1"] = 4] = "Accelerate1";
|
|
2459
|
+
AnimationStyle[AnimationStyle["Accelerate2"] = 5] = "Accelerate2";
|
|
2460
|
+
AnimationStyle[AnimationStyle["Accelerate3"] = 6] = "Accelerate3";
|
|
2461
|
+
AnimationStyle[AnimationStyle["Decelerate1"] = 7] = "Decelerate1";
|
|
2462
|
+
AnimationStyle[AnimationStyle["Decelerate2"] = 8] = "Decelerate2";
|
|
2463
|
+
AnimationStyle[AnimationStyle["Decelerate3"] = 9] = "Decelerate3";
|
|
2464
2464
|
})(exports.AnimationStyle || (exports.AnimationStyle = {}));
|
|
2465
2465
|
|
|
2466
2466
|
/**
|
|
@@ -3941,19 +3941,19 @@ exports.Axes = void 0;
|
|
|
3941
3941
|
/**
|
|
3942
3942
|
* No axis.
|
|
3943
3943
|
*/
|
|
3944
|
-
Axes[Axes["
|
|
3944
|
+
Axes[Axes["None"] = 0] = "None";
|
|
3945
3945
|
/**
|
|
3946
3946
|
* The X axis.
|
|
3947
3947
|
*/
|
|
3948
|
-
Axes[Axes["
|
|
3948
|
+
Axes[Axes["X"] = 1] = "X";
|
|
3949
3949
|
/**
|
|
3950
3950
|
* The Y axis.
|
|
3951
3951
|
*/
|
|
3952
|
-
Axes[Axes["
|
|
3952
|
+
Axes[Axes["Y"] = 2] = "Y";
|
|
3953
3953
|
/**
|
|
3954
3954
|
* The X and Y axes.
|
|
3955
3955
|
*/
|
|
3956
|
-
Axes[Axes["
|
|
3956
|
+
Axes[Axes["Both"] = 3] = "Both";
|
|
3957
3957
|
})(exports.Axes || (exports.Axes = {}));
|
|
3958
3958
|
|
|
3959
3959
|
// Serializes Axes as a 0-indexed ordinal to match the Kotlin EnumModSetting format:
|
|
@@ -3992,18 +3992,18 @@ class ModMirror extends Mod {
|
|
|
3992
3992
|
/**
|
|
3993
3993
|
* The axes to reflect the `HitObject`s along.
|
|
3994
3994
|
*/
|
|
3995
|
-
this.flippedAxes = new AxesModSetting("Flipped axes", "flippedAxes", "The axes to reflect the hit objects along.", exports.Axes.
|
|
3995
|
+
this.flippedAxes = new AxesModSetting("Flipped axes", "flippedAxes", "The axes to reflect the hit objects along.", exports.Axes.X);
|
|
3996
3996
|
this.incompatibleMods.add(ModHardRock);
|
|
3997
3997
|
}
|
|
3998
3998
|
applyToHitObject(_, hitObject) {
|
|
3999
3999
|
switch (this.flippedAxes.value) {
|
|
4000
|
-
case exports.Axes.
|
|
4000
|
+
case exports.Axes.X:
|
|
4001
4001
|
HitObjectGenerationUtils.reflectHorizontallyAlongPlayfield(hitObject);
|
|
4002
4002
|
break;
|
|
4003
|
-
case exports.Axes.
|
|
4003
|
+
case exports.Axes.Y:
|
|
4004
4004
|
HitObjectGenerationUtils.reflectVerticallyAlongPlayfield(hitObject);
|
|
4005
4005
|
break;
|
|
4006
|
-
case exports.Axes.
|
|
4006
|
+
case exports.Axes.Both:
|
|
4007
4007
|
HitObjectGenerationUtils.reflectHorizontallyAlongPlayfield(hitObject);
|
|
4008
4008
|
HitObjectGenerationUtils.reflectVerticallyAlongPlayfield(hitObject);
|
|
4009
4009
|
break;
|
|
@@ -4011,12 +4011,12 @@ class ModMirror extends Mod {
|
|
|
4011
4011
|
}
|
|
4012
4012
|
toString() {
|
|
4013
4013
|
const settings = [];
|
|
4014
|
-
if (this.flippedAxes.value === exports.Axes.
|
|
4015
|
-
this.flippedAxes.value === exports.Axes.
|
|
4014
|
+
if (this.flippedAxes.value === exports.Axes.X ||
|
|
4015
|
+
this.flippedAxes.value === exports.Axes.Both) {
|
|
4016
4016
|
settings.push("↔");
|
|
4017
4017
|
}
|
|
4018
|
-
if (this.flippedAxes.value === exports.Axes.
|
|
4019
|
-
this.flippedAxes.value === exports.Axes.
|
|
4018
|
+
if (this.flippedAxes.value === exports.Axes.Y ||
|
|
4019
|
+
this.flippedAxes.value === exports.Axes.Both) {
|
|
4020
4020
|
settings.push("↕");
|
|
4021
4021
|
}
|
|
4022
4022
|
return `${super.toString()} (${settings.join(", ")})`;
|
|
@@ -4097,7 +4097,7 @@ class ModHardRock extends Mod {
|
|
|
4097
4097
|
this.incompatibleMods.add(ModMirror);
|
|
4098
4098
|
}
|
|
4099
4099
|
applyToDifficulty(mode, difficulty, adjustmentMods) {
|
|
4100
|
-
if (mode === exports.Modes.
|
|
4100
|
+
if (mode === exports.Modes.Osu || !adjustmentMods.has(ModReplayV6)) {
|
|
4101
4101
|
difficulty.cs = this.applySetting(difficulty.cs, 1.3);
|
|
4102
4102
|
}
|
|
4103
4103
|
else {
|
|
@@ -4146,7 +4146,7 @@ class ModEasy extends Mod {
|
|
|
4146
4146
|
this.incompatibleMods.add(ModHardRock);
|
|
4147
4147
|
}
|
|
4148
4148
|
applyToDifficulty(mode, difficulty, adjustmentMods) {
|
|
4149
|
-
if (mode === exports.Modes.
|
|
4149
|
+
if (mode === exports.Modes.Osu || !adjustmentMods.has(ModReplayV6)) {
|
|
4150
4150
|
difficulty.cs /= 2;
|
|
4151
4151
|
}
|
|
4152
4152
|
else {
|
|
@@ -4185,7 +4185,7 @@ class ModReallyEasy extends Mod {
|
|
|
4185
4185
|
}
|
|
4186
4186
|
applyToDifficultyWithMods(mode, difficulty, mods) {
|
|
4187
4187
|
var _a;
|
|
4188
|
-
if (mode !== exports.Modes.
|
|
4188
|
+
if (mode !== exports.Modes.Droid) {
|
|
4189
4189
|
return;
|
|
4190
4190
|
}
|
|
4191
4191
|
const difficultyAdjust = mods.get(ModDifficultyAdjust);
|
|
@@ -4246,7 +4246,7 @@ class ModSmallCircle extends Mod {
|
|
|
4246
4246
|
return new ModDifficultyAdjust({ cs: difficulty.cs + 4 });
|
|
4247
4247
|
}
|
|
4248
4248
|
applyToDifficulty(mode, difficulty, adjustmentMods) {
|
|
4249
|
-
if (mode === exports.Modes.
|
|
4249
|
+
if (mode === exports.Modes.Osu || !adjustmentMods.has(ModDifficultyAdjust)) {
|
|
4250
4250
|
difficulty.cs += 4;
|
|
4251
4251
|
}
|
|
4252
4252
|
else {
|
|
@@ -4800,7 +4800,7 @@ class ModPrecise extends Mod {
|
|
|
4800
4800
|
}
|
|
4801
4801
|
applyToHitObject(mode, hitObject) {
|
|
4802
4802
|
var _a, _b;
|
|
4803
|
-
if (mode !== exports.Modes.
|
|
4803
|
+
if (mode !== exports.Modes.Droid || hitObject instanceof Spinner) {
|
|
4804
4804
|
return;
|
|
4805
4805
|
}
|
|
4806
4806
|
if (hitObject instanceof Slider) {
|
|
@@ -5242,47 +5242,47 @@ class Interpolation {
|
|
|
5242
5242
|
*/
|
|
5243
5243
|
static easing(easing, t) {
|
|
5244
5244
|
switch (easing) {
|
|
5245
|
-
case exports.Easing.
|
|
5245
|
+
case exports.Easing.None:
|
|
5246
5246
|
return t;
|
|
5247
|
-
case exports.Easing.
|
|
5248
|
-
case exports.Easing.
|
|
5247
|
+
case exports.Easing.Out:
|
|
5248
|
+
case exports.Easing.OutQuad:
|
|
5249
5249
|
return t * (2 - t);
|
|
5250
|
-
case exports.Easing.
|
|
5251
|
-
case exports.Easing.
|
|
5250
|
+
case exports.Easing.In:
|
|
5251
|
+
case exports.Easing.InQuad:
|
|
5252
5252
|
return t * t;
|
|
5253
|
-
case exports.Easing.
|
|
5253
|
+
case exports.Easing.InOutQuad:
|
|
5254
5254
|
return t < 0.5 ? t * t * 2 : --t * t * -2 + 1;
|
|
5255
|
-
case exports.Easing.
|
|
5255
|
+
case exports.Easing.InCubic:
|
|
5256
5256
|
return t * t * t;
|
|
5257
|
-
case exports.Easing.
|
|
5257
|
+
case exports.Easing.OutCubic:
|
|
5258
5258
|
return --t * t * t + 1;
|
|
5259
|
-
case exports.Easing.
|
|
5259
|
+
case exports.Easing.InOutCubic:
|
|
5260
5260
|
return t < 0.5 ? t * t * t * 4 : --t * t * t * 4 + 1;
|
|
5261
|
-
case exports.Easing.
|
|
5261
|
+
case exports.Easing.InQuart:
|
|
5262
5262
|
return t * t * t * t;
|
|
5263
|
-
case exports.Easing.
|
|
5263
|
+
case exports.Easing.OutQuart:
|
|
5264
5264
|
return 1 - --t * t * t * t;
|
|
5265
|
-
case exports.Easing.
|
|
5265
|
+
case exports.Easing.InOutQuart:
|
|
5266
5266
|
return t < 0.5 ? t * t * t * t * 8 : --t * t * t * t * -8 + 1;
|
|
5267
|
-
case exports.Easing.
|
|
5267
|
+
case exports.Easing.InQuint:
|
|
5268
5268
|
return t * t * t * t * t;
|
|
5269
|
-
case exports.Easing.
|
|
5269
|
+
case exports.Easing.OutQuint:
|
|
5270
5270
|
return --t * t * t * t * t + 1;
|
|
5271
|
-
case exports.Easing.
|
|
5271
|
+
case exports.Easing.InOutQuint:
|
|
5272
5272
|
return t < 0.5
|
|
5273
5273
|
? t * t * t * t * t * 16
|
|
5274
5274
|
: --t * t * t * t * t * 16 + 1;
|
|
5275
|
-
case exports.Easing.
|
|
5275
|
+
case exports.Easing.InSine:
|
|
5276
5276
|
return 1 - Math.cos((t * Math.PI) / 2);
|
|
5277
|
-
case exports.Easing.
|
|
5277
|
+
case exports.Easing.OutSine:
|
|
5278
5278
|
return Math.sin((t * Math.PI) / 2);
|
|
5279
|
-
case exports.Easing.
|
|
5279
|
+
case exports.Easing.InOutSine:
|
|
5280
5280
|
return 0.5 - 0.5 * Math.cos(Math.PI * t);
|
|
5281
|
-
case exports.Easing.
|
|
5281
|
+
case exports.Easing.InExpo:
|
|
5282
5282
|
return t === 0 ? 0 : Math.pow(2, 10 * t - 10);
|
|
5283
|
-
case exports.Easing.
|
|
5283
|
+
case exports.Easing.OutExpo:
|
|
5284
5284
|
return t === 1 ? 1 : 1 - Math.pow(2, -10 * t);
|
|
5285
|
-
case exports.Easing.
|
|
5285
|
+
case exports.Easing.InOutExpo:
|
|
5286
5286
|
if (t === 0) {
|
|
5287
5287
|
return 0;
|
|
5288
5288
|
}
|
|
@@ -5293,30 +5293,30 @@ class Interpolation {
|
|
|
5293
5293
|
return 0.5 * Math.pow(2, 10 * t - 10);
|
|
5294
5294
|
}
|
|
5295
5295
|
return 0.5 * (2 - Math.pow(2, -10 * --t));
|
|
5296
|
-
case exports.Easing.
|
|
5296
|
+
case exports.Easing.InCirc:
|
|
5297
5297
|
return 1 - Math.sqrt(1 - t * t);
|
|
5298
|
-
case exports.Easing.
|
|
5298
|
+
case exports.Easing.OutCirc:
|
|
5299
5299
|
return Math.sqrt(1 - --t * t);
|
|
5300
|
-
case exports.Easing.
|
|
5300
|
+
case exports.Easing.InOutCirc:
|
|
5301
5301
|
return (t *= 2) < 1
|
|
5302
5302
|
? 0.5 - 0.5 * Math.sqrt(1 - t * t)
|
|
5303
5303
|
: 0.5 * Math.sqrt(1 - (t -= 2) * t) + 0.5;
|
|
5304
|
-
case exports.Easing.
|
|
5304
|
+
case exports.Easing.InElastic:
|
|
5305
5305
|
return (-Math.pow(2, -10 + 10 * t) *
|
|
5306
5306
|
Math.sin((1 - 0.3 / 4 - t) * ((2 * Math.PI) / 0.3)));
|
|
5307
|
-
case exports.Easing.
|
|
5307
|
+
case exports.Easing.OutElastic:
|
|
5308
5308
|
return (Math.pow(2, -10 * t) *
|
|
5309
5309
|
Math.sin((t - 0.3 / 4) * ((2 * Math.PI) / 0.3)) +
|
|
5310
5310
|
1);
|
|
5311
|
-
case exports.Easing.
|
|
5311
|
+
case exports.Easing.OutElasticHalf:
|
|
5312
5312
|
return (Math.pow(2, -10 * t) *
|
|
5313
5313
|
Math.sin((0.5 * t - 0.3 / 4) * ((2 * Math.PI) / 0.3)) +
|
|
5314
5314
|
1);
|
|
5315
|
-
case exports.Easing.
|
|
5315
|
+
case exports.Easing.OutElasticQuarter:
|
|
5316
5316
|
return (Math.pow(2, -10 * t) *
|
|
5317
5317
|
Math.sin((0.25 * t - 0.3 / 4) * ((2 * Math.PI) / 0.3)) +
|
|
5318
5318
|
1);
|
|
5319
|
-
case exports.Easing.
|
|
5319
|
+
case exports.Easing.InOutElastic:
|
|
5320
5320
|
if (t === 0) {
|
|
5321
5321
|
return 0;
|
|
5322
5322
|
}
|
|
@@ -5335,11 +5335,11 @@ class Interpolation {
|
|
|
5335
5335
|
Math.sin(((t - (0.3 / 4) * 1.5) * ((2 * Math.PI) / 0.3)) /
|
|
5336
5336
|
1.5) +
|
|
5337
5337
|
1);
|
|
5338
|
-
case exports.Easing.
|
|
5338
|
+
case exports.Easing.InBack:
|
|
5339
5339
|
return t * t * ((1.70158 + 1) * t - 1.70158);
|
|
5340
|
-
case exports.Easing.
|
|
5340
|
+
case exports.Easing.OutBack:
|
|
5341
5341
|
return --t * t * ((1.70158 + 1) * t + 1.70158) + 1;
|
|
5342
|
-
case exports.Easing.
|
|
5342
|
+
case exports.Easing.InOutBack:
|
|
5343
5343
|
return (t *= 2) < 1
|
|
5344
5344
|
? 0.5 *
|
|
5345
5345
|
t *
|
|
@@ -5350,7 +5350,7 @@ class Interpolation {
|
|
|
5350
5350
|
t *
|
|
5351
5351
|
((1.70158 * 1.525 + 1) * t + 1.70158 * 1.525) +
|
|
5352
5352
|
2);
|
|
5353
|
-
case exports.Easing.
|
|
5353
|
+
case exports.Easing.InBounce:
|
|
5354
5354
|
t = 1 - t;
|
|
5355
5355
|
if (t < 1 / 2.75) {
|
|
5356
5356
|
return 1 - 7.5625 * t * t;
|
|
@@ -5362,7 +5362,7 @@ class Interpolation {
|
|
|
5362
5362
|
return 1 - (7.5625 * (t -= 2.25 / 2.75) * t + 0.9375);
|
|
5363
5363
|
}
|
|
5364
5364
|
return 1 - (7.5625 * (t -= 2.625 / 2.75) * t + 0.984375);
|
|
5365
|
-
case exports.Easing.
|
|
5365
|
+
case exports.Easing.OutBounce:
|
|
5366
5366
|
if (t < 1 / 2.75) {
|
|
5367
5367
|
return 7.5625 * t * t;
|
|
5368
5368
|
}
|
|
@@ -5373,11 +5373,11 @@ class Interpolation {
|
|
|
5373
5373
|
return 7.5625 * (t -= 2.25 / 2.75) * t + 0.9375;
|
|
5374
5374
|
}
|
|
5375
5375
|
return 7.5625 * (t -= 2.625 / 2.75) * t + 0.984375;
|
|
5376
|
-
case exports.Easing.
|
|
5376
|
+
case exports.Easing.InOutBounce:
|
|
5377
5377
|
return t < 0.5
|
|
5378
|
-
? 0.5 - 0.5 * this.easing(exports.Easing.
|
|
5379
|
-
: 0.5 * this.easing(exports.Easing.
|
|
5380
|
-
case exports.Easing.
|
|
5378
|
+
? 0.5 - 0.5 * this.easing(exports.Easing.OutBounce, 1 - t * 2)
|
|
5379
|
+
: 0.5 * this.easing(exports.Easing.OutBounce, (t - 0.5) * 2) + 0.5;
|
|
5380
|
+
case exports.Easing.OutPow10:
|
|
5381
5381
|
return --t * Math.pow(t, 10) + 1;
|
|
5382
5382
|
}
|
|
5383
5383
|
}
|
|
@@ -5532,11 +5532,11 @@ class ModUtil {
|
|
|
5532
5532
|
static calculateScoreMultiplier(mods, mode, difficulty) {
|
|
5533
5533
|
return this.calculateScoreMultiplierInternal(mods, mode, (mod) => {
|
|
5534
5534
|
switch (mode) {
|
|
5535
|
-
case exports.Modes.
|
|
5535
|
+
case exports.Modes.Droid:
|
|
5536
5536
|
return mod.isApplicableToDroid()
|
|
5537
5537
|
? mod.droidScoreMultiplier
|
|
5538
5538
|
: 1;
|
|
5539
|
-
case exports.Modes.
|
|
5539
|
+
case exports.Modes.Osu:
|
|
5540
5540
|
return mod.isApplicableToOsuStable()
|
|
5541
5541
|
? mod.osuScoreMultiplier
|
|
5542
5542
|
: 1;
|
|
@@ -5553,7 +5553,7 @@ class ModUtil {
|
|
|
5553
5553
|
* @return The migration score multiplier.
|
|
5554
5554
|
*/
|
|
5555
5555
|
static calculateMigrationScoreMultiplier(mods) {
|
|
5556
|
-
return this.calculateScoreMultiplierInternal(mods, exports.Modes.
|
|
5556
|
+
return this.calculateScoreMultiplierInternal(mods, exports.Modes.Droid, (mod) => mod.isApplicableToDroid()
|
|
5557
5557
|
? mod.migrationDroidScoreMultiplier
|
|
5558
5558
|
: 1, (helper) => helper.migrationDroidScoreMultiplier);
|
|
5559
5559
|
}
|
|
@@ -5565,18 +5565,18 @@ class ModUtil {
|
|
|
5565
5565
|
if (mod.requiresBeatmapDifficulty() && difficulty) {
|
|
5566
5566
|
mod.applyFromBeatmapDifficulty(difficulty);
|
|
5567
5567
|
}
|
|
5568
|
-
if (mode === exports.Modes.
|
|
5568
|
+
if (mode === exports.Modes.Droid && mod instanceof ModRateAdjust) {
|
|
5569
5569
|
totalRateAdjustTrackRateMultiplier *= mod.rate;
|
|
5570
5570
|
}
|
|
5571
5571
|
else {
|
|
5572
5572
|
const multiplierValue = modSelector(mod);
|
|
5573
5573
|
scoreMultiplier =
|
|
5574
|
-
mode === exports.Modes.
|
|
5574
|
+
mode === exports.Modes.Droid
|
|
5575
5575
|
? Math.fround(scoreMultiplier * Math.fround(multiplierValue))
|
|
5576
5576
|
: scoreMultiplier * multiplierValue;
|
|
5577
5577
|
}
|
|
5578
5578
|
}
|
|
5579
|
-
if (mode === exports.Modes.
|
|
5579
|
+
if (mode === exports.Modes.Droid) {
|
|
5580
5580
|
const rateAdjustHelper = new ModRateAdjustHelper(totalRateAdjustTrackRateMultiplier);
|
|
5581
5581
|
scoreMultiplier = Math.fround(scoreMultiplier *
|
|
5582
5582
|
Math.fround(rateAdjustSelector(rateAdjustHelper)));
|
|
@@ -5731,7 +5731,7 @@ class ModUtil {
|
|
|
5731
5731
|
const preempt = BeatmapDifficulty.difficultyRange(difficulty.ar, HitObject.preemptMax, HitObject.preemptMid, HitObject.preemptMin) / rate;
|
|
5732
5732
|
difficulty.ar = BeatmapDifficulty.inverseDifficultyRange(preempt, HitObject.preemptMax, HitObject.preemptMid, HitObject.preemptMin);
|
|
5733
5733
|
switch (mode) {
|
|
5734
|
-
case exports.Modes.
|
|
5734
|
+
case exports.Modes.Droid:
|
|
5735
5735
|
if (mods === null || mods === void 0 ? void 0 : mods.has(ModPrecise)) {
|
|
5736
5736
|
const hitWindow = new PreciseDroidHitWindow(difficulty.od);
|
|
5737
5737
|
difficulty.od = PreciseDroidHitWindow.greatWindowToOD(hitWindow.greatWindow / rate);
|
|
@@ -5741,7 +5741,7 @@ class ModUtil {
|
|
|
5741
5741
|
difficulty.od = DroidHitWindow.greatWindowToOD(hitWindow.greatWindow / rate);
|
|
5742
5742
|
}
|
|
5743
5743
|
break;
|
|
5744
|
-
case exports.Modes.
|
|
5744
|
+
case exports.Modes.Osu: {
|
|
5745
5745
|
const greatWindow = new OsuHitWindow(difficulty.od).greatWindow / rate;
|
|
5746
5746
|
difficulty.od = (79.5 - greatWindow) / 6;
|
|
5747
5747
|
break;
|
|
@@ -6750,7 +6750,7 @@ class SampleControlPoint extends ControlPoint {
|
|
|
6750
6750
|
applyTo(hitSampleInfo) {
|
|
6751
6751
|
const volume = hitSampleInfo.volume > 0 ? hitSampleInfo.volume : this.sampleVolume;
|
|
6752
6752
|
if (hitSampleInfo instanceof BankHitSampleInfo) {
|
|
6753
|
-
return new BankHitSampleInfo(hitSampleInfo.name, hitSampleInfo.bank !== exports.SampleBank.
|
|
6753
|
+
return new BankHitSampleInfo(hitSampleInfo.name, hitSampleInfo.bank !== exports.SampleBank.None
|
|
6754
6754
|
? hitSampleInfo.bank
|
|
6755
6755
|
: this.sampleBank, hitSampleInfo.customSampleBank > 0
|
|
6756
6756
|
? hitSampleInfo.customSampleBank
|
|
@@ -6789,7 +6789,7 @@ class SampleControlPointManager extends ControlPointManager {
|
|
|
6789
6789
|
super(...arguments);
|
|
6790
6790
|
this.defaultControlPoint = new SampleControlPoint({
|
|
6791
6791
|
time: 0,
|
|
6792
|
-
sampleBank: exports.SampleBank.
|
|
6792
|
+
sampleBank: exports.SampleBank.Normal,
|
|
6793
6793
|
sampleVolume: 100,
|
|
6794
6794
|
customSampleBank: 0,
|
|
6795
6795
|
});
|
|
@@ -6838,10 +6838,10 @@ class BeatmapControlPoints {
|
|
|
6838
6838
|
*/
|
|
6839
6839
|
exports.EditorGridSize = void 0;
|
|
6840
6840
|
(function (EditorGridSize) {
|
|
6841
|
-
EditorGridSize[EditorGridSize["
|
|
6842
|
-
EditorGridSize[EditorGridSize["
|
|
6843
|
-
EditorGridSize[EditorGridSize["
|
|
6844
|
-
EditorGridSize[EditorGridSize["
|
|
6841
|
+
EditorGridSize[EditorGridSize["Tiny"] = 4] = "Tiny";
|
|
6842
|
+
EditorGridSize[EditorGridSize["Small"] = 8] = "Small";
|
|
6843
|
+
EditorGridSize[EditorGridSize["Medium"] = 16] = "Medium";
|
|
6844
|
+
EditorGridSize[EditorGridSize["Large"] = 32] = "Large";
|
|
6845
6845
|
})(exports.EditorGridSize || (exports.EditorGridSize = {}));
|
|
6846
6846
|
|
|
6847
6847
|
/**
|
|
@@ -6864,7 +6864,7 @@ class BeatmapEditor {
|
|
|
6864
6864
|
/**
|
|
6865
6865
|
* The grid size setting in the editor.
|
|
6866
6866
|
*/
|
|
6867
|
-
this.gridSize = exports.EditorGridSize.
|
|
6867
|
+
this.gridSize = exports.EditorGridSize.Small;
|
|
6868
6868
|
/**
|
|
6869
6869
|
* The scale factor for the {@link https://osu.ppy.sh/wiki/en/Client/Beatmap_editor/Compose#top-left-(hit-objects-timeline) object timeline}.
|
|
6870
6870
|
*/
|
|
@@ -6877,12 +6877,12 @@ class BeatmapEditor {
|
|
|
6877
6877
|
*/
|
|
6878
6878
|
exports.StoryboardLayerType = void 0;
|
|
6879
6879
|
(function (StoryboardLayerType) {
|
|
6880
|
-
StoryboardLayerType["
|
|
6881
|
-
StoryboardLayerType["
|
|
6882
|
-
StoryboardLayerType["
|
|
6883
|
-
StoryboardLayerType["
|
|
6884
|
-
StoryboardLayerType["
|
|
6885
|
-
StoryboardLayerType["
|
|
6880
|
+
StoryboardLayerType["Background"] = "Background";
|
|
6881
|
+
StoryboardLayerType["Fail"] = "Fail";
|
|
6882
|
+
StoryboardLayerType["Pass"] = "Pass";
|
|
6883
|
+
StoryboardLayerType["Foreground"] = "Foreground";
|
|
6884
|
+
StoryboardLayerType["Overlay"] = "Overlay";
|
|
6885
|
+
StoryboardLayerType["Sample"] = "Sample";
|
|
6886
6886
|
})(exports.StoryboardLayerType || (exports.StoryboardLayerType = {}));
|
|
6887
6887
|
|
|
6888
6888
|
/**
|
|
@@ -6900,7 +6900,7 @@ class BeatmapEvents {
|
|
|
6900
6900
|
*/
|
|
6901
6901
|
get storyboardReplacesBackground() {
|
|
6902
6902
|
var _a, _b;
|
|
6903
|
-
return ((_b = (_a = this.storyboard) === null || _a === void 0 ? void 0 : _a.getLayer(exports.StoryboardLayerType.
|
|
6903
|
+
return ((_b = (_a = this.storyboard) === null || _a === void 0 ? void 0 : _a.getLayer(exports.StoryboardLayerType.Background).elements.some((e) => { var _a; return e.path.toLowerCase() === ((_a = this.background) === null || _a === void 0 ? void 0 : _a.filename); })) !== null && _b !== void 0 ? _b : false);
|
|
6904
6904
|
}
|
|
6905
6905
|
}
|
|
6906
6906
|
|
|
@@ -6909,24 +6909,24 @@ class BeatmapEvents {
|
|
|
6909
6909
|
*/
|
|
6910
6910
|
exports.BeatmapCountdown = void 0;
|
|
6911
6911
|
(function (BeatmapCountdown) {
|
|
6912
|
-
BeatmapCountdown[BeatmapCountdown["
|
|
6913
|
-
BeatmapCountdown[BeatmapCountdown["
|
|
6914
|
-
BeatmapCountdown[BeatmapCountdown["
|
|
6915
|
-
BeatmapCountdown[BeatmapCountdown["
|
|
6912
|
+
BeatmapCountdown[BeatmapCountdown["NoCountdown"] = 0] = "NoCountdown";
|
|
6913
|
+
BeatmapCountdown[BeatmapCountdown["Normal"] = 1] = "Normal";
|
|
6914
|
+
BeatmapCountdown[BeatmapCountdown["Half"] = 2] = "Half";
|
|
6915
|
+
BeatmapCountdown[BeatmapCountdown["Double"] = 3] = "Double";
|
|
6916
6916
|
})(exports.BeatmapCountdown || (exports.BeatmapCountdown = {}));
|
|
6917
6917
|
|
|
6918
6918
|
/**
|
|
6919
6919
|
* Represents the draw order of hit circle overlays compared to hit numbers.
|
|
6920
6920
|
*
|
|
6921
|
-
* - `
|
|
6922
|
-
* - `
|
|
6923
|
-
* - `
|
|
6921
|
+
* - `NoChange` = use skin setting
|
|
6922
|
+
* - `Below` = draw overlays under numbers
|
|
6923
|
+
* - `Above` = draw overlays on top of numbers
|
|
6924
6924
|
*/
|
|
6925
6925
|
exports.BeatmapOverlayPosition = void 0;
|
|
6926
6926
|
(function (BeatmapOverlayPosition) {
|
|
6927
|
-
BeatmapOverlayPosition["
|
|
6928
|
-
BeatmapOverlayPosition["
|
|
6929
|
-
BeatmapOverlayPosition["
|
|
6927
|
+
BeatmapOverlayPosition["NoChange"] = "NoChange";
|
|
6928
|
+
BeatmapOverlayPosition["Below"] = "Below";
|
|
6929
|
+
BeatmapOverlayPosition["Above"] = "Above";
|
|
6930
6930
|
})(exports.BeatmapOverlayPosition || (exports.BeatmapOverlayPosition = {}));
|
|
6931
6931
|
|
|
6932
6932
|
/**
|
|
@@ -6934,10 +6934,10 @@ exports.BeatmapOverlayPosition = void 0;
|
|
|
6934
6934
|
*/
|
|
6935
6935
|
exports.GameMode = void 0;
|
|
6936
6936
|
(function (GameMode) {
|
|
6937
|
-
GameMode[GameMode["
|
|
6938
|
-
GameMode[GameMode["
|
|
6939
|
-
GameMode[GameMode["
|
|
6940
|
-
GameMode[GameMode["
|
|
6937
|
+
GameMode[GameMode["Osu"] = 0] = "Osu";
|
|
6938
|
+
GameMode[GameMode["Taiko"] = 1] = "Taiko";
|
|
6939
|
+
GameMode[GameMode["Catch"] = 2] = "Catch";
|
|
6940
|
+
GameMode[GameMode["Mania"] = 3] = "Mania";
|
|
6941
6941
|
})(exports.GameMode || (exports.GameMode = {}));
|
|
6942
6942
|
|
|
6943
6943
|
/**
|
|
@@ -6962,11 +6962,11 @@ class BeatmapGeneral {
|
|
|
6962
6962
|
/**
|
|
6963
6963
|
* The speed of the countdown before the first hit object.
|
|
6964
6964
|
*/
|
|
6965
|
-
this.countdown = exports.BeatmapCountdown.
|
|
6965
|
+
this.countdown = exports.BeatmapCountdown.Normal;
|
|
6966
6966
|
/**
|
|
6967
6967
|
* The sample bank that will be used if timing points do not override it.
|
|
6968
6968
|
*/
|
|
6969
|
-
this.sampleBank = exports.SampleBank.
|
|
6969
|
+
this.sampleBank = exports.SampleBank.Normal;
|
|
6970
6970
|
/**
|
|
6971
6971
|
* The sample volume that will be used if timing points do not override it.
|
|
6972
6972
|
*/
|
|
@@ -6979,7 +6979,7 @@ class BeatmapGeneral {
|
|
|
6979
6979
|
/**
|
|
6980
6980
|
* The game mode of the beatmap.
|
|
6981
6981
|
*/
|
|
6982
|
-
this.mode = exports.GameMode.
|
|
6982
|
+
this.mode = exports.GameMode.Osu;
|
|
6983
6983
|
/**
|
|
6984
6984
|
* Whether or not breaks have a letterboxing effect.
|
|
6985
6985
|
*/
|
|
@@ -6991,7 +6991,7 @@ class BeatmapGeneral {
|
|
|
6991
6991
|
/**
|
|
6992
6992
|
* The draw order of hit circle overlays compared to hit numbers.
|
|
6993
6993
|
*/
|
|
6994
|
-
this.overlayPosition = exports.BeatmapOverlayPosition.
|
|
6994
|
+
this.overlayPosition = exports.BeatmapOverlayPosition.NoChange;
|
|
6995
6995
|
/**
|
|
6996
6996
|
* The preffered skin to use during gameplay.
|
|
6997
6997
|
*/
|
|
@@ -7077,7 +7077,7 @@ class Beatmap {
|
|
|
7077
7077
|
/**
|
|
7078
7078
|
* The game mode this `Beatmap` was parsed as.
|
|
7079
7079
|
*/
|
|
7080
|
-
this.mode = exports.Modes.
|
|
7080
|
+
this.mode = exports.Modes.Osu;
|
|
7081
7081
|
if (shallowCopy) {
|
|
7082
7082
|
this.mode = shallowCopy.mode;
|
|
7083
7083
|
this.formatVersion = shallowCopy.formatVersion;
|
|
@@ -7150,7 +7150,7 @@ class Beatmap {
|
|
|
7150
7150
|
*/
|
|
7151
7151
|
maxDroidScore(mods) {
|
|
7152
7152
|
const scoreMultiplier = mods
|
|
7153
|
-
? ModUtil.calculateScoreMultiplier(mods.values(), exports.Modes.
|
|
7153
|
+
? ModUtil.calculateScoreMultiplier(mods.values(), exports.Modes.Droid, this.difficulty)
|
|
7154
7154
|
: 1;
|
|
7155
7155
|
if (mods === null || mods === void 0 ? void 0 : mods.has(ModScoreV2)) {
|
|
7156
7156
|
return Math.round(Math.fround(1e6 * scoreMultiplier));
|
|
@@ -7164,7 +7164,7 @@ class Beatmap {
|
|
|
7164
7164
|
// Spinners need non-rate adjusted to calculate required spins.
|
|
7165
7165
|
const nonRateAdjustedDifficulty = new BeatmapDifficulty(this.difficulty);
|
|
7166
7166
|
if (mods) {
|
|
7167
|
-
ModUtil.applyModsToBeatmapDifficulty(nonRateAdjustedDifficulty, exports.Modes.
|
|
7167
|
+
ModUtil.applyModsToBeatmapDifficulty(nonRateAdjustedDifficulty, exports.Modes.Droid, mods);
|
|
7168
7168
|
}
|
|
7169
7169
|
for (const object of this.hitObjects.objects) {
|
|
7170
7170
|
if (object instanceof Slider) {
|
|
@@ -7204,7 +7204,7 @@ class Beatmap {
|
|
|
7204
7204
|
const accumulatedDiffPoints = this.difficulty.cs + this.difficulty.hp + this.difficulty.od;
|
|
7205
7205
|
let difficultyMultiplier = 2;
|
|
7206
7206
|
const scoreMultiplier = mods
|
|
7207
|
-
? ModUtil.calculateScoreMultiplier(mods.values(), exports.Modes.
|
|
7207
|
+
? ModUtil.calculateScoreMultiplier(mods.values(), exports.Modes.Osu, this.difficulty)
|
|
7208
7208
|
: 1;
|
|
7209
7209
|
if (mods === null || mods === void 0 ? void 0 : mods.has(ModScoreV2)) {
|
|
7210
7210
|
return 1e6 * scoreMultiplier;
|
|
@@ -7231,7 +7231,7 @@ class Beatmap {
|
|
|
7231
7231
|
// Spinners need non-rate adjusted to calculate required spins.
|
|
7232
7232
|
const nonRateAdjustedDifficulty = new BeatmapDifficulty(this.difficulty);
|
|
7233
7233
|
if (mods) {
|
|
7234
|
-
ModUtil.applyModsToBeatmapDifficulty(nonRateAdjustedDifficulty, exports.Modes.
|
|
7234
|
+
ModUtil.applyModsToBeatmapDifficulty(nonRateAdjustedDifficulty, exports.Modes.Osu, mods);
|
|
7235
7235
|
}
|
|
7236
7236
|
for (const object of this.hitObjects.objects) {
|
|
7237
7237
|
if (object instanceof Slider) {
|
|
@@ -7272,7 +7272,7 @@ class Beatmap {
|
|
|
7272
7272
|
* @return The constructed `DroidPlayableBeatmap`.
|
|
7273
7273
|
*/
|
|
7274
7274
|
createDroidPlayableBeatmap(mods = new ModMap()) {
|
|
7275
|
-
return new DroidPlayableBeatmap(this.createPlayableBeatmap(mods, exports.Modes.
|
|
7275
|
+
return new DroidPlayableBeatmap(this.createPlayableBeatmap(mods, exports.Modes.Droid), mods);
|
|
7276
7276
|
}
|
|
7277
7277
|
/**
|
|
7278
7278
|
* Constructs a `OsuPlayableBeatmap` from this `Beatmap`.
|
|
@@ -7284,7 +7284,7 @@ class Beatmap {
|
|
|
7284
7284
|
* @return The constructed `OsuPlayableBeatmap`.
|
|
7285
7285
|
*/
|
|
7286
7286
|
createOsuPlayableBeatmap(mods = new ModMap()) {
|
|
7287
|
-
return new OsuPlayableBeatmap(this.createPlayableBeatmap(mods, exports.Modes.
|
|
7287
|
+
return new OsuPlayableBeatmap(this.createPlayableBeatmap(mods, exports.Modes.Osu), mods);
|
|
7288
7288
|
}
|
|
7289
7289
|
createPlayableBeatmap(mods, mode) {
|
|
7290
7290
|
if (this.mode === mode && mods.size === 0) {
|
|
@@ -7388,11 +7388,11 @@ class Beatmap {
|
|
|
7388
7388
|
*/
|
|
7389
7389
|
exports.HitSoundType = void 0;
|
|
7390
7390
|
(function (HitSoundType) {
|
|
7391
|
-
HitSoundType[HitSoundType["
|
|
7392
|
-
HitSoundType[HitSoundType["
|
|
7393
|
-
HitSoundType[HitSoundType["
|
|
7394
|
-
HitSoundType[HitSoundType["
|
|
7395
|
-
HitSoundType[HitSoundType["
|
|
7391
|
+
HitSoundType[HitSoundType["None"] = 0] = "None";
|
|
7392
|
+
HitSoundType[HitSoundType["Normal"] = 1] = "Normal";
|
|
7393
|
+
HitSoundType[HitSoundType["Whistle"] = 2] = "Whistle";
|
|
7394
|
+
HitSoundType[HitSoundType["Finish"] = 4] = "Finish";
|
|
7395
|
+
HitSoundType[HitSoundType["Clap"] = 8] = "Clap";
|
|
7396
7396
|
})(exports.HitSoundType || (exports.HitSoundType = {}));
|
|
7397
7397
|
|
|
7398
7398
|
/* eslint-disable @typescript-eslint/no-duplicate-enum-values */
|
|
@@ -7420,8 +7420,8 @@ class SampleBankInfo {
|
|
|
7420
7420
|
constructor(bankInfo) {
|
|
7421
7421
|
var _a, _b, _c, _d, _e;
|
|
7422
7422
|
this.filename = (_a = bankInfo === null || bankInfo === void 0 ? void 0 : bankInfo.filename) !== null && _a !== void 0 ? _a : "";
|
|
7423
|
-
this.normal = (_b = bankInfo === null || bankInfo === void 0 ? void 0 : bankInfo.normal) !== null && _b !== void 0 ? _b : exports.SampleBank.
|
|
7424
|
-
this.add = (_c = bankInfo === null || bankInfo === void 0 ? void 0 : bankInfo.add) !== null && _c !== void 0 ? _c : exports.SampleBank.
|
|
7423
|
+
this.normal = (_b = bankInfo === null || bankInfo === void 0 ? void 0 : bankInfo.normal) !== null && _b !== void 0 ? _b : exports.SampleBank.None;
|
|
7424
|
+
this.add = (_c = bankInfo === null || bankInfo === void 0 ? void 0 : bankInfo.add) !== null && _c !== void 0 ? _c : exports.SampleBank.None;
|
|
7425
7425
|
this.volume = (_d = bankInfo === null || bankInfo === void 0 ? void 0 : bankInfo.volume) !== null && _d !== void 0 ? _d : 0;
|
|
7426
7426
|
this.customSampleBank = (_e = bankInfo === null || bankInfo === void 0 ? void 0 : bankInfo.customSampleBank) !== null && _e !== void 0 ? _e : 0;
|
|
7427
7427
|
}
|
|
@@ -7432,15 +7432,15 @@ class SampleBankInfo {
|
|
|
7432
7432
|
*/
|
|
7433
7433
|
var BeatmapSection;
|
|
7434
7434
|
(function (BeatmapSection) {
|
|
7435
|
-
BeatmapSection["
|
|
7436
|
-
BeatmapSection["
|
|
7437
|
-
BeatmapSection["
|
|
7438
|
-
BeatmapSection["
|
|
7439
|
-
BeatmapSection["
|
|
7440
|
-
BeatmapSection["
|
|
7441
|
-
BeatmapSection["
|
|
7442
|
-
BeatmapSection["
|
|
7443
|
-
BeatmapSection["
|
|
7435
|
+
BeatmapSection["General"] = "General";
|
|
7436
|
+
BeatmapSection["Editor"] = "Editor";
|
|
7437
|
+
BeatmapSection["Metadata"] = "Metadata";
|
|
7438
|
+
BeatmapSection["Difficulty"] = "Difficulty";
|
|
7439
|
+
BeatmapSection["Events"] = "Events";
|
|
7440
|
+
BeatmapSection["Variables"] = "Variables";
|
|
7441
|
+
BeatmapSection["TimingPoints"] = "TimingPoints";
|
|
7442
|
+
BeatmapSection["Colors"] = "Colours";
|
|
7443
|
+
BeatmapSection["HitObjects"] = "HitObjects";
|
|
7444
7444
|
})(BeatmapSection || (BeatmapSection = {}));
|
|
7445
7445
|
|
|
7446
7446
|
/**
|
|
@@ -7463,7 +7463,7 @@ class Decoder {
|
|
|
7463
7463
|
/**
|
|
7464
7464
|
* The currently processed section.
|
|
7465
7465
|
*/
|
|
7466
|
-
this.section = BeatmapSection.
|
|
7466
|
+
this.section = BeatmapSection.General;
|
|
7467
7467
|
}
|
|
7468
7468
|
/**
|
|
7469
7469
|
* The result of the decoding process.
|
|
@@ -7486,7 +7486,7 @@ class Decoder {
|
|
|
7486
7486
|
if (this.shouldSkipLine(line)) {
|
|
7487
7487
|
continue;
|
|
7488
7488
|
}
|
|
7489
|
-
if (this.section !== BeatmapSection.
|
|
7489
|
+
if (this.section !== BeatmapSection.Metadata) {
|
|
7490
7490
|
// Comments should not be stripped from metadata lines, as the song metadata may contain "//" as valid data.
|
|
7491
7491
|
const index = line.indexOf("//");
|
|
7492
7492
|
if (index > 0) {
|
|
@@ -7547,7 +7547,7 @@ class Decoder {
|
|
|
7547
7547
|
reset() {
|
|
7548
7548
|
this.line = 0;
|
|
7549
7549
|
this.currentLine = "";
|
|
7550
|
-
this.section = BeatmapSection.
|
|
7550
|
+
this.section = BeatmapSection.General;
|
|
7551
7551
|
}
|
|
7552
7552
|
}
|
|
7553
7553
|
Decoder.latestVersion = 14;
|
|
@@ -7681,15 +7681,15 @@ class BeatmapHitObjectsDecoder extends SectionDecoder {
|
|
|
7681
7681
|
const time = this.target.getOffsetTime(this.tryParseFloat(this.setPosition(s[2])));
|
|
7682
7682
|
const type = this.tryParseInt(this.setPosition(s[3]));
|
|
7683
7683
|
let tempType = type;
|
|
7684
|
-
let comboOffset = (tempType & exports.ObjectTypes.
|
|
7685
|
-
tempType &= ~exports.ObjectTypes.
|
|
7686
|
-
let newCombo = !!(type & exports.ObjectTypes.
|
|
7687
|
-
tempType &= ~exports.ObjectTypes.
|
|
7684
|
+
let comboOffset = (tempType & exports.ObjectTypes.ComboOffset) >> 4;
|
|
7685
|
+
tempType &= ~exports.ObjectTypes.ComboOffset;
|
|
7686
|
+
let newCombo = !!(type & exports.ObjectTypes.NewCombo);
|
|
7687
|
+
tempType &= ~exports.ObjectTypes.NewCombo;
|
|
7688
7688
|
const position = new Vector2(this.tryParseFloat(this.setPosition(s[0]), -ParserConstants.MAX_COORDINATE_VALUE, ParserConstants.MAX_COORDINATE_VALUE), this.tryParseFloat(this.setPosition(s[1]), -ParserConstants.MAX_COORDINATE_VALUE, ParserConstants.MAX_COORDINATE_VALUE));
|
|
7689
7689
|
const soundType = this.tryParseInt(s[4]);
|
|
7690
7690
|
const bankInfo = new SampleBankInfo();
|
|
7691
7691
|
let object = null;
|
|
7692
|
-
if (type & exports.ObjectTypes.
|
|
7692
|
+
if (type & exports.ObjectTypes.Circle) {
|
|
7693
7693
|
newCombo || (newCombo = this.forceNewCombo);
|
|
7694
7694
|
comboOffset += this.extraComboOffset;
|
|
7695
7695
|
this.forceNewCombo = false;
|
|
@@ -7705,7 +7705,7 @@ class BeatmapHitObjectsDecoder extends SectionDecoder {
|
|
|
7705
7705
|
this.readCustomSampleBanks(bankInfo, s[5]);
|
|
7706
7706
|
}
|
|
7707
7707
|
}
|
|
7708
|
-
else if (type & exports.ObjectTypes.
|
|
7708
|
+
else if (type & exports.ObjectTypes.Slider) {
|
|
7709
7709
|
if (s.length < 8) {
|
|
7710
7710
|
throw new Error("Ignoring malformed slider");
|
|
7711
7711
|
}
|
|
@@ -7813,7 +7813,7 @@ class BeatmapHitObjectsDecoder extends SectionDecoder {
|
|
|
7813
7813
|
tickDistanceMultiplier: tickDistanceMultiplier,
|
|
7814
7814
|
});
|
|
7815
7815
|
}
|
|
7816
|
-
else if (type & exports.ObjectTypes.
|
|
7816
|
+
else if (type & exports.ObjectTypes.Spinner) {
|
|
7817
7817
|
// Spinners don't create the new combo themselves, but force the next non-spinner hitobject to create a new combo.
|
|
7818
7818
|
// Their combo offset is still added to that next hitobject's combo index.
|
|
7819
7819
|
this.forceNewCombo || (this.forceNewCombo = this.target.formatVersion <= 8 || newCombo);
|
|
@@ -7850,18 +7850,18 @@ class BeatmapHitObjectsDecoder extends SectionDecoder {
|
|
|
7850
7850
|
soundTypes.push(new BankHitSampleInfo(BankHitSampleInfo.HIT_NORMAL, bankInfo.normal, bankInfo.customSampleBank, bankInfo.volume,
|
|
7851
7851
|
// If the sound type doesn't have the Normal flag set, attach it anyway as a layered sample.
|
|
7852
7852
|
// None also counts as a normal non-layered sample: https://osu.ppy.sh/help/wiki/osu!_File_Formats/Osu_(file_format)#hitsounds
|
|
7853
|
-
type !== exports.HitSoundType.
|
|
7853
|
+
type !== exports.HitSoundType.None && !(type & exports.HitSoundType.Normal)));
|
|
7854
7854
|
}
|
|
7855
7855
|
const addBankSample = (name) => {
|
|
7856
7856
|
soundTypes.push(new BankHitSampleInfo(name, bankInfo.add, bankInfo.customSampleBank, bankInfo.volume));
|
|
7857
7857
|
};
|
|
7858
|
-
if (type & exports.HitSoundType.
|
|
7858
|
+
if (type & exports.HitSoundType.Finish) {
|
|
7859
7859
|
addBankSample(BankHitSampleInfo.HIT_FINISH);
|
|
7860
7860
|
}
|
|
7861
|
-
if (type & exports.HitSoundType.
|
|
7861
|
+
if (type & exports.HitSoundType.Whistle) {
|
|
7862
7862
|
addBankSample(BankHitSampleInfo.HIT_WHISTLE);
|
|
7863
7863
|
}
|
|
7864
|
-
if (type & exports.HitSoundType.
|
|
7864
|
+
if (type & exports.HitSoundType.Clap) {
|
|
7865
7865
|
addBankSample(BankHitSampleInfo.HIT_CLAP);
|
|
7866
7866
|
}
|
|
7867
7867
|
return soundTypes;
|
|
@@ -7879,7 +7879,7 @@ class BeatmapHitObjectsDecoder extends SectionDecoder {
|
|
|
7879
7879
|
const s = str.split(":");
|
|
7880
7880
|
bankInfo.normal = parseInt(s[0]);
|
|
7881
7881
|
const addBank = parseInt(s[1]);
|
|
7882
|
-
bankInfo.add = addBank === exports.SampleBank.
|
|
7882
|
+
bankInfo.add = addBank === exports.SampleBank.None ? bankInfo.normal : addBank;
|
|
7883
7883
|
if (s.length > 2) {
|
|
7884
7884
|
bankInfo.customSampleBank = parseInt(s[2]);
|
|
7885
7885
|
}
|
|
@@ -7915,13 +7915,13 @@ class BeatmapGeneralDecoder extends SectionDecoder {
|
|
|
7915
7915
|
case "SampleSet":
|
|
7916
7916
|
switch (p[1]) {
|
|
7917
7917
|
case "Normal":
|
|
7918
|
-
this.target.general.sampleBank = exports.SampleBank.
|
|
7918
|
+
this.target.general.sampleBank = exports.SampleBank.Normal;
|
|
7919
7919
|
break;
|
|
7920
7920
|
case "Soft":
|
|
7921
|
-
this.target.general.sampleBank = exports.SampleBank.
|
|
7921
|
+
this.target.general.sampleBank = exports.SampleBank.Soft;
|
|
7922
7922
|
break;
|
|
7923
7923
|
case "Drum":
|
|
7924
|
-
this.target.general.sampleBank = exports.SampleBank.
|
|
7924
|
+
this.target.general.sampleBank = exports.SampleBank.Drum;
|
|
7925
7925
|
break;
|
|
7926
7926
|
}
|
|
7927
7927
|
break;
|
|
@@ -8169,9 +8169,9 @@ class BeatmapMetadataDecoder extends SectionDecoder {
|
|
|
8169
8169
|
*/
|
|
8170
8170
|
var EffectFlags;
|
|
8171
8171
|
(function (EffectFlags) {
|
|
8172
|
-
EffectFlags[EffectFlags["
|
|
8173
|
-
EffectFlags[EffectFlags["
|
|
8174
|
-
EffectFlags[EffectFlags["
|
|
8172
|
+
EffectFlags[EffectFlags["None"] = 0] = "None";
|
|
8173
|
+
EffectFlags[EffectFlags["Kiai"] = 1] = "Kiai";
|
|
8174
|
+
EffectFlags[EffectFlags["OmitFirstBarLine"] = 8] = "OmitFirstBarLine";
|
|
8175
8175
|
})(EffectFlags || (EffectFlags = {}));
|
|
8176
8176
|
|
|
8177
8177
|
/**
|
|
@@ -8210,8 +8210,8 @@ class BeatmapControlPointsDecoder extends SectionDecoder {
|
|
|
8210
8210
|
let omitFirstBarSignature = false;
|
|
8211
8211
|
if (s.length >= 8) {
|
|
8212
8212
|
const effectBitFlags = this.tryParseInt(this.setPosition(s[7]));
|
|
8213
|
-
kiaiMode = !!(effectBitFlags & EffectFlags.
|
|
8214
|
-
omitFirstBarSignature = !!(effectBitFlags & EffectFlags.
|
|
8213
|
+
kiaiMode = !!(effectBitFlags & EffectFlags.Kiai);
|
|
8214
|
+
omitFirstBarSignature = !!(effectBitFlags & EffectFlags.OmitFirstBarLine);
|
|
8215
8215
|
}
|
|
8216
8216
|
let timingChange = true;
|
|
8217
8217
|
if (s.length >= 7) {
|
|
@@ -8429,27 +8429,27 @@ exports.BlendingEquation = void 0;
|
|
|
8429
8429
|
/**
|
|
8430
8430
|
* Inherits from parent.
|
|
8431
8431
|
*/
|
|
8432
|
-
BlendingEquation[BlendingEquation["
|
|
8432
|
+
BlendingEquation[BlendingEquation["Inherit"] = 0] = "Inherit";
|
|
8433
8433
|
/**
|
|
8434
8434
|
* Adds the source and destination colours.
|
|
8435
8435
|
*/
|
|
8436
|
-
BlendingEquation[BlendingEquation["
|
|
8436
|
+
BlendingEquation[BlendingEquation["Add"] = 1] = "Add";
|
|
8437
8437
|
/**
|
|
8438
8438
|
* Chooses the minimum of each component of the source and destination colours.
|
|
8439
8439
|
*/
|
|
8440
|
-
BlendingEquation[BlendingEquation["
|
|
8440
|
+
BlendingEquation[BlendingEquation["Min"] = 2] = "Min";
|
|
8441
8441
|
/**
|
|
8442
8442
|
* Chooses the maximum of each component of the source and destination colours.
|
|
8443
8443
|
*/
|
|
8444
|
-
BlendingEquation[BlendingEquation["
|
|
8444
|
+
BlendingEquation[BlendingEquation["Max"] = 3] = "Max";
|
|
8445
8445
|
/**
|
|
8446
8446
|
* Subtracts the destination colour from the source colour.
|
|
8447
8447
|
*/
|
|
8448
|
-
BlendingEquation[BlendingEquation["
|
|
8448
|
+
BlendingEquation[BlendingEquation["Subtract"] = 4] = "Subtract";
|
|
8449
8449
|
/**
|
|
8450
8450
|
* Subtracts the source colour from the destination colour.
|
|
8451
8451
|
*/
|
|
8452
|
-
BlendingEquation[BlendingEquation["
|
|
8452
|
+
BlendingEquation[BlendingEquation["ReverseSubtract"] = 5] = "ReverseSubtract";
|
|
8453
8453
|
})(exports.BlendingEquation || (exports.BlendingEquation = {}));
|
|
8454
8454
|
|
|
8455
8455
|
/**
|
|
@@ -8457,22 +8457,22 @@ exports.BlendingEquation = void 0;
|
|
|
8457
8457
|
*/
|
|
8458
8458
|
exports.BlendingType = void 0;
|
|
8459
8459
|
(function (BlendingType) {
|
|
8460
|
-
BlendingType[BlendingType["
|
|
8461
|
-
BlendingType[BlendingType["
|
|
8462
|
-
BlendingType[BlendingType["
|
|
8463
|
-
BlendingType[BlendingType["
|
|
8464
|
-
BlendingType[BlendingType["
|
|
8465
|
-
BlendingType[BlendingType["
|
|
8466
|
-
BlendingType[BlendingType["
|
|
8467
|
-
BlendingType[BlendingType["
|
|
8468
|
-
BlendingType[BlendingType["
|
|
8469
|
-
BlendingType[BlendingType["
|
|
8470
|
-
BlendingType[BlendingType["
|
|
8471
|
-
BlendingType[BlendingType["
|
|
8472
|
-
BlendingType[BlendingType["
|
|
8473
|
-
BlendingType[BlendingType["
|
|
8474
|
-
BlendingType[BlendingType["
|
|
8475
|
-
BlendingType[BlendingType["
|
|
8460
|
+
BlendingType[BlendingType["Inherit"] = 0] = "Inherit";
|
|
8461
|
+
BlendingType[BlendingType["ConstantAlpha"] = 1] = "ConstantAlpha";
|
|
8462
|
+
BlendingType[BlendingType["ConstantColor"] = 2] = "ConstantColor";
|
|
8463
|
+
BlendingType[BlendingType["DstAlpha"] = 3] = "DstAlpha";
|
|
8464
|
+
BlendingType[BlendingType["DstColor"] = 4] = "DstColor";
|
|
8465
|
+
BlendingType[BlendingType["One"] = 5] = "One";
|
|
8466
|
+
BlendingType[BlendingType["OneMinusConstantAlpha"] = 6] = "OneMinusConstantAlpha";
|
|
8467
|
+
BlendingType[BlendingType["OneMinusConstantColor"] = 7] = "OneMinusConstantColor";
|
|
8468
|
+
BlendingType[BlendingType["OneMinusDstAlpha"] = 8] = "OneMinusDstAlpha";
|
|
8469
|
+
BlendingType[BlendingType["OneMinusDstColor"] = 9] = "OneMinusDstColor";
|
|
8470
|
+
BlendingType[BlendingType["OneMinusSrcAlpha"] = 10] = "OneMinusSrcAlpha";
|
|
8471
|
+
BlendingType[BlendingType["OneMinusSrcColor"] = 11] = "OneMinusSrcColor";
|
|
8472
|
+
BlendingType[BlendingType["SrcAlpha"] = 12] = "SrcAlpha";
|
|
8473
|
+
BlendingType[BlendingType["SrcAlphaSaturate"] = 13] = "SrcAlphaSaturate";
|
|
8474
|
+
BlendingType[BlendingType["SrcColor"] = 14] = "SrcColor";
|
|
8475
|
+
BlendingType[BlendingType["Zero"] = 15] = "Zero";
|
|
8476
8476
|
})(exports.BlendingType || (exports.BlendingType = {}));
|
|
8477
8477
|
|
|
8478
8478
|
/**
|
|
@@ -8488,27 +8488,27 @@ class BlendingParameters {
|
|
|
8488
8488
|
this.alphaEquation = alphaEquation;
|
|
8489
8489
|
}
|
|
8490
8490
|
}
|
|
8491
|
-
BlendingParameters.none = new BlendingParameters(exports.BlendingType.
|
|
8492
|
-
BlendingParameters.inherit = new BlendingParameters(exports.BlendingType.
|
|
8493
|
-
BlendingParameters.mixture = new BlendingParameters(exports.BlendingType.
|
|
8494
|
-
BlendingParameters.additive = new BlendingParameters(exports.BlendingType.
|
|
8491
|
+
BlendingParameters.none = new BlendingParameters(exports.BlendingType.One, exports.BlendingType.Zero, exports.BlendingType.One, exports.BlendingType.Zero, exports.BlendingEquation.Add, exports.BlendingEquation.Add);
|
|
8492
|
+
BlendingParameters.inherit = new BlendingParameters(exports.BlendingType.Inherit, exports.BlendingType.Inherit, exports.BlendingType.Inherit, exports.BlendingType.Inherit, exports.BlendingEquation.Inherit, exports.BlendingEquation.Inherit);
|
|
8493
|
+
BlendingParameters.mixture = new BlendingParameters(exports.BlendingType.SrcAlpha, exports.BlendingType.OneMinusSrcAlpha, exports.BlendingType.One, exports.BlendingType.One, exports.BlendingEquation.Add, exports.BlendingEquation.Add);
|
|
8494
|
+
BlendingParameters.additive = new BlendingParameters(exports.BlendingType.SrcAlpha, exports.BlendingType.One, exports.BlendingType.One, exports.BlendingType.One, exports.BlendingEquation.Add, exports.BlendingEquation.Add);
|
|
8495
8495
|
|
|
8496
8496
|
/**
|
|
8497
8497
|
* Available storyboard command types.
|
|
8498
8498
|
*/
|
|
8499
8499
|
exports.StoryboardCommandType = void 0;
|
|
8500
8500
|
(function (StoryboardCommandType) {
|
|
8501
|
-
StoryboardCommandType["
|
|
8502
|
-
StoryboardCommandType["
|
|
8503
|
-
StoryboardCommandType["
|
|
8504
|
-
StoryboardCommandType["
|
|
8505
|
-
StoryboardCommandType["
|
|
8506
|
-
StoryboardCommandType["
|
|
8507
|
-
StoryboardCommandType["
|
|
8508
|
-
StoryboardCommandType["
|
|
8509
|
-
StoryboardCommandType["
|
|
8510
|
-
StoryboardCommandType["
|
|
8511
|
-
StoryboardCommandType["
|
|
8501
|
+
StoryboardCommandType["Movement"] = "M";
|
|
8502
|
+
StoryboardCommandType["MovementX"] = "MX";
|
|
8503
|
+
StoryboardCommandType["MovementY"] = "MY";
|
|
8504
|
+
StoryboardCommandType["Fade"] = "F";
|
|
8505
|
+
StoryboardCommandType["Scale"] = "S";
|
|
8506
|
+
StoryboardCommandType["VectorScale"] = "V";
|
|
8507
|
+
StoryboardCommandType["Rotation"] = "R";
|
|
8508
|
+
StoryboardCommandType["Color"] = "C";
|
|
8509
|
+
StoryboardCommandType["Parameter"] = "P";
|
|
8510
|
+
StoryboardCommandType["Loop"] = "L";
|
|
8511
|
+
StoryboardCommandType["Trigger"] = "T";
|
|
8512
8512
|
})(exports.StoryboardCommandType || (exports.StoryboardCommandType = {}));
|
|
8513
8513
|
|
|
8514
8514
|
/**
|
|
@@ -8516,9 +8516,9 @@ exports.StoryboardCommandType = void 0;
|
|
|
8516
8516
|
*/
|
|
8517
8517
|
exports.StoryboardParameterCommandType = void 0;
|
|
8518
8518
|
(function (StoryboardParameterCommandType) {
|
|
8519
|
-
StoryboardParameterCommandType["
|
|
8520
|
-
StoryboardParameterCommandType["
|
|
8521
|
-
StoryboardParameterCommandType["
|
|
8519
|
+
StoryboardParameterCommandType["HorizontalFlip"] = "H";
|
|
8520
|
+
StoryboardParameterCommandType["VerticalFlip"] = "V";
|
|
8521
|
+
StoryboardParameterCommandType["BlendingMode"] = "A";
|
|
8522
8522
|
})(exports.StoryboardParameterCommandType || (exports.StoryboardParameterCommandType = {}));
|
|
8523
8523
|
|
|
8524
8524
|
/**
|
|
@@ -8628,51 +8628,51 @@ class CommandTimelineGroup {
|
|
|
8628
8628
|
/**
|
|
8629
8629
|
* The command timeline that changes an animation or sprite's X and Y coordinates.
|
|
8630
8630
|
*/
|
|
8631
|
-
this.move = new CommandTimeline(exports.StoryboardCommandType.
|
|
8631
|
+
this.move = new CommandTimeline(exports.StoryboardCommandType.Movement);
|
|
8632
8632
|
/**
|
|
8633
8633
|
* The command timeline that changes an animation or sprite's X-coordinate.
|
|
8634
8634
|
*/
|
|
8635
|
-
this.x = new CommandTimeline(exports.StoryboardCommandType.
|
|
8635
|
+
this.x = new CommandTimeline(exports.StoryboardCommandType.MovementX);
|
|
8636
8636
|
/**
|
|
8637
8637
|
* The command timeline that changes an animation or sprite's Y-coordinate.
|
|
8638
8638
|
*/
|
|
8639
|
-
this.y = new CommandTimeline(exports.StoryboardCommandType.
|
|
8639
|
+
this.y = new CommandTimeline(exports.StoryboardCommandType.MovementY);
|
|
8640
8640
|
/**
|
|
8641
8641
|
* The command timeline that scales an animation or sprite with a number.
|
|
8642
8642
|
*/
|
|
8643
|
-
this.scale = new CommandTimeline(exports.StoryboardCommandType.
|
|
8643
|
+
this.scale = new CommandTimeline(exports.StoryboardCommandType.Scale);
|
|
8644
8644
|
/**
|
|
8645
8645
|
* The command timeline that scales an animation or sprite with a vector.
|
|
8646
8646
|
*
|
|
8647
8647
|
* This allows scaling the width and height of an animation or sprite individually at the same time.
|
|
8648
8648
|
*/
|
|
8649
|
-
this.vectorScale = new CommandTimeline(exports.StoryboardCommandType.
|
|
8649
|
+
this.vectorScale = new CommandTimeline(exports.StoryboardCommandType.VectorScale);
|
|
8650
8650
|
/**
|
|
8651
8651
|
* The command timeline that rotates an animation or sprite, in radians, clockwise.
|
|
8652
8652
|
*/
|
|
8653
|
-
this.rotation = new CommandTimeline(exports.StoryboardCommandType.
|
|
8653
|
+
this.rotation = new CommandTimeline(exports.StoryboardCommandType.Rotation);
|
|
8654
8654
|
/**
|
|
8655
8655
|
* The command timeline that changes an animation or sprite's virtual light source color.
|
|
8656
8656
|
*
|
|
8657
8657
|
* The colors of the pixels on the animation or sprite are determined subtractively.
|
|
8658
8658
|
*/
|
|
8659
|
-
this.color = new CommandTimeline(exports.StoryboardCommandType.
|
|
8659
|
+
this.color = new CommandTimeline(exports.StoryboardCommandType.Color);
|
|
8660
8660
|
/**
|
|
8661
8661
|
* The command timeline that changes the opacity of an animation or sprite.
|
|
8662
8662
|
*/
|
|
8663
|
-
this.alpha = new CommandTimeline(exports.StoryboardCommandType.
|
|
8663
|
+
this.alpha = new CommandTimeline(exports.StoryboardCommandType.Fade);
|
|
8664
8664
|
/**
|
|
8665
8665
|
* The command timeline that determines the blending behavior of an animation or sprite.
|
|
8666
8666
|
*/
|
|
8667
|
-
this.blendingParameters = new CommandTimeline(exports.StoryboardCommandType.
|
|
8667
|
+
this.blendingParameters = new CommandTimeline(exports.StoryboardCommandType.Parameter, exports.StoryboardParameterCommandType.BlendingMode);
|
|
8668
8668
|
/**
|
|
8669
8669
|
* The command timeline that determines whether the animation or sprite should be flipped horizontally.
|
|
8670
8670
|
*/
|
|
8671
|
-
this.flipHorizontal = new CommandTimeline(exports.StoryboardCommandType.
|
|
8671
|
+
this.flipHorizontal = new CommandTimeline(exports.StoryboardCommandType.Parameter, exports.StoryboardParameterCommandType.HorizontalFlip);
|
|
8672
8672
|
/**
|
|
8673
8673
|
* The command timeline that determines whether the animation or sprite should be flipped vertically.
|
|
8674
8674
|
*/
|
|
8675
|
-
this.flipVertical = new CommandTimeline(exports.StoryboardCommandType.
|
|
8675
|
+
this.flipVertical = new CommandTimeline(exports.StoryboardCommandType.Parameter, exports.StoryboardParameterCommandType.VerticalFlip);
|
|
8676
8676
|
this.timelines = [
|
|
8677
8677
|
this.x,
|
|
8678
8678
|
this.y,
|
|
@@ -8947,8 +8947,8 @@ class StoryboardSample extends StoryboardElement {
|
|
|
8947
8947
|
*/
|
|
8948
8948
|
exports.AnimationLoopType = void 0;
|
|
8949
8949
|
(function (AnimationLoopType) {
|
|
8950
|
-
AnimationLoopType["
|
|
8951
|
-
AnimationLoopType["
|
|
8950
|
+
AnimationLoopType["LoopForever"] = "LoopForever";
|
|
8951
|
+
AnimationLoopType["LoopOnce"] = "LoopOnce";
|
|
8952
8952
|
})(exports.AnimationLoopType || (exports.AnimationLoopType = {}));
|
|
8953
8953
|
|
|
8954
8954
|
/**
|
|
@@ -8956,11 +8956,11 @@ exports.AnimationLoopType = void 0;
|
|
|
8956
8956
|
*/
|
|
8957
8957
|
exports.StoryboardEventType = void 0;
|
|
8958
8958
|
(function (StoryboardEventType) {
|
|
8959
|
-
StoryboardEventType["
|
|
8960
|
-
StoryboardEventType["
|
|
8961
|
-
StoryboardEventType["
|
|
8962
|
-
StoryboardEventType["
|
|
8963
|
-
StoryboardEventType["
|
|
8959
|
+
StoryboardEventType["Background"] = "Background";
|
|
8960
|
+
StoryboardEventType["Sprite"] = "Sprite";
|
|
8961
|
+
StoryboardEventType["Color"] = "Colour";
|
|
8962
|
+
StoryboardEventType["Sample"] = "Sample";
|
|
8963
|
+
StoryboardEventType["Animation"] = "Animation";
|
|
8964
8964
|
})(exports.StoryboardEventType || (exports.StoryboardEventType = {}));
|
|
8965
8965
|
|
|
8966
8966
|
/**
|
|
@@ -9001,18 +9001,18 @@ class StoryboardEventsDecoder extends SectionDecoder {
|
|
|
9001
9001
|
if (depth === 0) {
|
|
9002
9002
|
this.storyboardSprite = null;
|
|
9003
9003
|
switch (this.setPosition(s[0])) {
|
|
9004
|
-
case exports.StoryboardEventType.
|
|
9004
|
+
case exports.StoryboardEventType.Sprite: {
|
|
9005
9005
|
this.storyboardSprite = new StoryboardSprite(this.cleanFilename(this.setPosition(s[3])), this.setPosition(s[2]), new Vector2(this.tryParseFloat(this.setPosition(s[4]), -ParserConstants.MAX_COORDINATE_VALUE, ParserConstants.MAX_COORDINATE_VALUE), this.tryParseFloat(this.setPosition(s[5]), -ParserConstants.MAX_COORDINATE_VALUE, ParserConstants.MAX_COORDINATE_VALUE)));
|
|
9006
9006
|
this.target
|
|
9007
9007
|
.getLayer(this.setPosition(s[1]))
|
|
9008
9008
|
.elements.push(this.storyboardSprite);
|
|
9009
9009
|
break;
|
|
9010
9010
|
}
|
|
9011
|
-
case exports.StoryboardEventType.
|
|
9011
|
+
case exports.StoryboardEventType.Animation: {
|
|
9012
9012
|
let frameDelay = this.tryParseInt(this.setPosition(s[7]));
|
|
9013
9013
|
const loopType = s[8] === "1" || s[8] === "LoopOnce"
|
|
9014
|
-
? exports.AnimationLoopType.
|
|
9015
|
-
: exports.AnimationLoopType.
|
|
9014
|
+
? exports.AnimationLoopType.LoopOnce
|
|
9015
|
+
: exports.AnimationLoopType.LoopForever;
|
|
9016
9016
|
if (this.formatVersion < 6) {
|
|
9017
9017
|
// This is random as hell but taken straight from osu-stable.
|
|
9018
9018
|
frameDelay =
|
|
@@ -9026,7 +9026,7 @@ class StoryboardEventsDecoder extends SectionDecoder {
|
|
|
9026
9026
|
.elements.push(this.storyboardSprite);
|
|
9027
9027
|
break;
|
|
9028
9028
|
}
|
|
9029
|
-
case exports.StoryboardEventType.
|
|
9029
|
+
case exports.StoryboardEventType.Sample:
|
|
9030
9030
|
this.target
|
|
9031
9031
|
.getLayer(this.setPosition(s[2]))
|
|
9032
9032
|
.elements.push(new StoryboardSample(this.cleanFilename(this.setPosition(s[3])), this.tryParseInt(this.setPosition(s[1])), s.length > 4
|
|
@@ -9042,7 +9042,7 @@ class StoryboardEventsDecoder extends SectionDecoder {
|
|
|
9042
9042
|
this.timelineGroup = (_a = this.storyboardSprite) === null || _a === void 0 ? void 0 : _a.timelineGroup;
|
|
9043
9043
|
}
|
|
9044
9044
|
switch (this.setPosition(s[0])) {
|
|
9045
|
-
case exports.StoryboardCommandType.
|
|
9045
|
+
case exports.StoryboardCommandType.Trigger:
|
|
9046
9046
|
this.timelineGroup = (_b = this.storyboardSprite) === null || _b === void 0 ? void 0 : _b.addTrigger(this.setPosition(s[1]), s.length > 2
|
|
9047
9047
|
? this.tryParseInt(this.setPosition(s[2]))
|
|
9048
9048
|
: Number.MIN_SAFE_INTEGER, s.length > 3
|
|
@@ -9051,7 +9051,7 @@ class StoryboardEventsDecoder extends SectionDecoder {
|
|
|
9051
9051
|
? this.tryParseInt(this.setPosition(s[4]))
|
|
9052
9052
|
: 0);
|
|
9053
9053
|
break;
|
|
9054
|
-
case exports.StoryboardCommandType.
|
|
9054
|
+
case exports.StoryboardCommandType.Loop:
|
|
9055
9055
|
this.timelineGroup = (_c = this.storyboardSprite) === null || _c === void 0 ? void 0 : _c.addLoop(this.tryParseInt(this.setPosition(s[1])), Math.max(0, this.tryParseInt(this.setPosition(s[2])) - 1));
|
|
9056
9056
|
break;
|
|
9057
9057
|
default: {
|
|
@@ -9062,7 +9062,7 @@ class StoryboardEventsDecoder extends SectionDecoder {
|
|
|
9062
9062
|
const startTime = this.tryParseInt(this.setPosition(s[2]));
|
|
9063
9063
|
const endTime = this.tryParseInt(this.setPosition(s[3]));
|
|
9064
9064
|
switch (s[0]) {
|
|
9065
|
-
case exports.StoryboardCommandType.
|
|
9065
|
+
case exports.StoryboardCommandType.Fade: {
|
|
9066
9066
|
const startValue = this.tryParseFloat(this.setPosition(s[4]));
|
|
9067
9067
|
const endValue = s.length > 5
|
|
9068
9068
|
? this.tryParseFloat(this.setPosition(s[5]))
|
|
@@ -9070,7 +9070,7 @@ class StoryboardEventsDecoder extends SectionDecoder {
|
|
|
9070
9070
|
(_d = this.timelineGroup) === null || _d === void 0 ? void 0 : _d.alpha.add(easing, startTime, endTime, startValue, endValue);
|
|
9071
9071
|
break;
|
|
9072
9072
|
}
|
|
9073
|
-
case exports.StoryboardCommandType.
|
|
9073
|
+
case exports.StoryboardCommandType.Scale: {
|
|
9074
9074
|
const startValue = this.tryParseFloat(this.setPosition(s[4]));
|
|
9075
9075
|
const endValue = s.length > 5
|
|
9076
9076
|
? this.tryParseFloat(this.setPosition(s[5]))
|
|
@@ -9078,7 +9078,7 @@ class StoryboardEventsDecoder extends SectionDecoder {
|
|
|
9078
9078
|
(_e = this.timelineGroup) === null || _e === void 0 ? void 0 : _e.scale.add(easing, startTime, endTime, startValue, endValue);
|
|
9079
9079
|
break;
|
|
9080
9080
|
}
|
|
9081
|
-
case exports.StoryboardCommandType.
|
|
9081
|
+
case exports.StoryboardCommandType.VectorScale: {
|
|
9082
9082
|
const startX = this.tryParseFloat(this.setPosition(s[4]));
|
|
9083
9083
|
const startY = this.tryParseFloat(this.setPosition(s[5]));
|
|
9084
9084
|
const endX = s.length > 6
|
|
@@ -9090,7 +9090,7 @@ class StoryboardEventsDecoder extends SectionDecoder {
|
|
|
9090
9090
|
(_f = this.timelineGroup) === null || _f === void 0 ? void 0 : _f.vectorScale.add(easing, startTime, endTime, new Vector2(startX, startY), new Vector2(endX, endY));
|
|
9091
9091
|
break;
|
|
9092
9092
|
}
|
|
9093
|
-
case exports.StoryboardCommandType.
|
|
9093
|
+
case exports.StoryboardCommandType.Rotation: {
|
|
9094
9094
|
const startValue = this.tryParseFloat(this.setPosition(s[4]));
|
|
9095
9095
|
const endValue = s.length > 5
|
|
9096
9096
|
? this.tryParseFloat(this.setPosition(s[5]))
|
|
@@ -9098,7 +9098,7 @@ class StoryboardEventsDecoder extends SectionDecoder {
|
|
|
9098
9098
|
(_g = this.timelineGroup) === null || _g === void 0 ? void 0 : _g.rotation.add(easing, startTime, endTime, MathUtils.radiansToDegrees(startValue), MathUtils.radiansToDegrees(endValue));
|
|
9099
9099
|
break;
|
|
9100
9100
|
}
|
|
9101
|
-
case exports.StoryboardCommandType.
|
|
9101
|
+
case exports.StoryboardCommandType.Movement: {
|
|
9102
9102
|
const startX = this.tryParseFloat(this.setPosition(s[4]));
|
|
9103
9103
|
const startY = this.tryParseFloat(this.setPosition(s[5]));
|
|
9104
9104
|
const endX = s.length > 6
|
|
@@ -9110,7 +9110,7 @@ class StoryboardEventsDecoder extends SectionDecoder {
|
|
|
9110
9110
|
(_h = this.timelineGroup) === null || _h === void 0 ? void 0 : _h.move.add(easing, startTime, endTime, new Vector2(startX, endX), new Vector2(startY, endY));
|
|
9111
9111
|
break;
|
|
9112
9112
|
}
|
|
9113
|
-
case exports.StoryboardCommandType.
|
|
9113
|
+
case exports.StoryboardCommandType.MovementX: {
|
|
9114
9114
|
const startValue = this.tryParseFloat(this.setPosition(s[4]));
|
|
9115
9115
|
const endValue = s.length > 5
|
|
9116
9116
|
? this.tryParseFloat(this.setPosition(s[5]))
|
|
@@ -9118,7 +9118,7 @@ class StoryboardEventsDecoder extends SectionDecoder {
|
|
|
9118
9118
|
(_j = this.timelineGroup) === null || _j === void 0 ? void 0 : _j.x.add(easing, startTime, endTime, startValue, endValue);
|
|
9119
9119
|
break;
|
|
9120
9120
|
}
|
|
9121
|
-
case exports.StoryboardCommandType.
|
|
9121
|
+
case exports.StoryboardCommandType.MovementY: {
|
|
9122
9122
|
const startValue = this.tryParseFloat(this.setPosition(s[4]));
|
|
9123
9123
|
const endValue = s.length > 5
|
|
9124
9124
|
? this.tryParseFloat(this.setPosition(s[5]))
|
|
@@ -9126,7 +9126,7 @@ class StoryboardEventsDecoder extends SectionDecoder {
|
|
|
9126
9126
|
(_k = this.timelineGroup) === null || _k === void 0 ? void 0 : _k.y.add(easing, startTime, endTime, startValue, endValue);
|
|
9127
9127
|
break;
|
|
9128
9128
|
}
|
|
9129
|
-
case exports.StoryboardCommandType.
|
|
9129
|
+
case exports.StoryboardCommandType.Color: {
|
|
9130
9130
|
const startRed = this.tryParseFloat(this.setPosition(s[4]));
|
|
9131
9131
|
const startGreen = this.tryParseFloat(this.setPosition(s[5]));
|
|
9132
9132
|
const startBlue = this.tryParseFloat(this.setPosition(s[6]));
|
|
@@ -9142,17 +9142,17 @@ class StoryboardEventsDecoder extends SectionDecoder {
|
|
|
9142
9142
|
(_l = this.timelineGroup) === null || _l === void 0 ? void 0 : _l.color.add(easing, startTime, endTime, new RGBColor(startRed, startGreen, startBlue), new RGBColor(endRed, endGreen, endBlue));
|
|
9143
9143
|
break;
|
|
9144
9144
|
}
|
|
9145
|
-
case exports.StoryboardCommandType.
|
|
9145
|
+
case exports.StoryboardCommandType.Parameter:
|
|
9146
9146
|
switch (this.setPosition(s[4])) {
|
|
9147
|
-
case exports.StoryboardParameterCommandType.
|
|
9147
|
+
case exports.StoryboardParameterCommandType.BlendingMode:
|
|
9148
9148
|
(_m = this.timelineGroup) === null || _m === void 0 ? void 0 : _m.blendingParameters.add(easing, startTime, endTime, BlendingParameters.additive, startTime === endTime
|
|
9149
9149
|
? BlendingParameters.additive
|
|
9150
9150
|
: BlendingParameters.inherit);
|
|
9151
9151
|
break;
|
|
9152
|
-
case exports.StoryboardParameterCommandType.
|
|
9152
|
+
case exports.StoryboardParameterCommandType.HorizontalFlip:
|
|
9153
9153
|
(_o = this.timelineGroup) === null || _o === void 0 ? void 0 : _o.flipHorizontal.add(easing, startTime, endTime, true, startTime === endTime);
|
|
9154
9154
|
break;
|
|
9155
|
-
case exports.StoryboardParameterCommandType.
|
|
9155
|
+
case exports.StoryboardParameterCommandType.VerticalFlip:
|
|
9156
9156
|
(_p = this.timelineGroup) === null || _p === void 0 ? void 0 : _p.flipVertical.add(easing, startTime, endTime, true, startTime === endTime);
|
|
9157
9157
|
break;
|
|
9158
9158
|
}
|
|
@@ -9227,11 +9227,11 @@ class Storyboard {
|
|
|
9227
9227
|
* The layers in the storyboard.
|
|
9228
9228
|
*/
|
|
9229
9229
|
this.layers = {
|
|
9230
|
-
Background: new StoryboardLayer(exports.StoryboardLayerType.
|
|
9231
|
-
Fail: new StoryboardLayer(exports.StoryboardLayerType.
|
|
9232
|
-
Pass: new StoryboardLayer(exports.StoryboardLayerType.
|
|
9233
|
-
Foreground: new StoryboardLayer(exports.StoryboardLayerType.
|
|
9234
|
-
Overlay: new StoryboardLayer(exports.StoryboardLayerType.
|
|
9230
|
+
Background: new StoryboardLayer(exports.StoryboardLayerType.Background, 3),
|
|
9231
|
+
Fail: new StoryboardLayer(exports.StoryboardLayerType.Fail, 2, false),
|
|
9232
|
+
Pass: new StoryboardLayer(exports.StoryboardLayerType.Pass, 1, true, false),
|
|
9233
|
+
Foreground: new StoryboardLayer(exports.StoryboardLayerType.Foreground, 0),
|
|
9234
|
+
Overlay: new StoryboardLayer(exports.StoryboardLayerType.Overlay, Number.MIN_SAFE_INTEGER),
|
|
9235
9235
|
};
|
|
9236
9236
|
/**
|
|
9237
9237
|
* Whether the storyboard can fall back to skin sprites in case no matching storyboard sprites are found.
|
|
@@ -9318,11 +9318,11 @@ class BeatmapDecoder extends Decoder {
|
|
|
9318
9318
|
* @param mode The mode to parse the beatmap as. Defaults to osu!standard.
|
|
9319
9319
|
* @param parseStoryboard Whether to parse the beatmap's storyboard. Defaults to `true`.
|
|
9320
9320
|
*/
|
|
9321
|
-
decode(str, mode = exports.Modes.
|
|
9321
|
+
decode(str, mode = exports.Modes.Osu, parseStoryboard = true) {
|
|
9322
9322
|
super.decode(str);
|
|
9323
9323
|
this.finalResult.mode = mode;
|
|
9324
9324
|
if (parseStoryboard) {
|
|
9325
|
-
const eventsDecoder = this.decoders[BeatmapSection.
|
|
9325
|
+
const eventsDecoder = this.decoders[BeatmapSection.Events];
|
|
9326
9326
|
if (eventsDecoder.storyboardLines.length > 0) {
|
|
9327
9327
|
this.finalResult.events.storyboard = new StoryboardDecoder(this.finalResult.formatVersion).decode(eventsDecoder.storyboardLines.join("\n")).result;
|
|
9328
9328
|
}
|
|
@@ -9463,11 +9463,11 @@ class BeatmapBaseEncoder extends BaseEncoder {
|
|
|
9463
9463
|
*/
|
|
9464
9464
|
sampleBankToString(sampleBank) {
|
|
9465
9465
|
switch (sampleBank) {
|
|
9466
|
-
case exports.SampleBank.
|
|
9466
|
+
case exports.SampleBank.Normal:
|
|
9467
9467
|
return "Normal";
|
|
9468
|
-
case exports.SampleBank.
|
|
9468
|
+
case exports.SampleBank.Soft:
|
|
9469
9469
|
return "Soft";
|
|
9470
|
-
case exports.SampleBank.
|
|
9470
|
+
case exports.SampleBank.Drum:
|
|
9471
9471
|
return "Drum";
|
|
9472
9472
|
default:
|
|
9473
9473
|
return "None";
|
|
@@ -9575,12 +9575,12 @@ class BeatmapControlPointsEncoder extends BeatmapBaseEncoder {
|
|
|
9575
9575
|
const samplePoint = (_a = group.sample) !== null && _a !== void 0 ? _a : this.map.controlPoints.sample.controlPointAt(group.time);
|
|
9576
9576
|
const effectPoint = (_b = group.effect) !== null && _b !== void 0 ? _b : this.map.controlPoints.effect.controlPointAt(group.time);
|
|
9577
9577
|
// Convert effect flags.
|
|
9578
|
-
let effectFlags = EffectFlags.
|
|
9578
|
+
let effectFlags = EffectFlags.None;
|
|
9579
9579
|
if (effectPoint.isKiai) {
|
|
9580
|
-
effectFlags |= EffectFlags.
|
|
9580
|
+
effectFlags |= EffectFlags.Kiai;
|
|
9581
9581
|
}
|
|
9582
9582
|
if (effectPoint.omitFirstBarLine) {
|
|
9583
|
-
effectFlags |= EffectFlags.
|
|
9583
|
+
effectFlags |= EffectFlags.OmitFirstBarLine;
|
|
9584
9584
|
}
|
|
9585
9585
|
this.write(`${((_c = group.timing) !== null && _c !== void 0 ? _c : this.map.controlPoints.timing.controlPointAt(group.time)).timeSignature.toString()},`);
|
|
9586
9586
|
this.write(`${samplePoint.sampleBank.toString()},`);
|
|
@@ -9648,17 +9648,17 @@ class StoryboardEventsEncoder extends StoryboardBaseEncoder {
|
|
|
9648
9648
|
this.writeLine("[Events]");
|
|
9649
9649
|
}
|
|
9650
9650
|
this.writeLine("//Storyboard Layer 0 (Background)");
|
|
9651
|
-
this.encodeLayer(exports.StoryboardLayerType.
|
|
9651
|
+
this.encodeLayer(exports.StoryboardLayerType.Background);
|
|
9652
9652
|
this.writeLine("//Storyboard Layer 1 (Fail)");
|
|
9653
|
-
this.encodeLayer(exports.StoryboardLayerType.
|
|
9653
|
+
this.encodeLayer(exports.StoryboardLayerType.Fail);
|
|
9654
9654
|
this.writeLine("//Storyboard Layer 2 (Pass)");
|
|
9655
|
-
this.encodeLayer(exports.StoryboardLayerType.
|
|
9655
|
+
this.encodeLayer(exports.StoryboardLayerType.Pass);
|
|
9656
9656
|
this.writeLine("//Storyboard Layer 3 (Foreground)");
|
|
9657
|
-
this.encodeLayer(exports.StoryboardLayerType.
|
|
9657
|
+
this.encodeLayer(exports.StoryboardLayerType.Foreground);
|
|
9658
9658
|
this.writeLine("//Storyboard Layer 4 (Overlay)");
|
|
9659
|
-
this.encodeLayer(exports.StoryboardLayerType.
|
|
9659
|
+
this.encodeLayer(exports.StoryboardLayerType.Overlay);
|
|
9660
9660
|
this.writeLine("//Storyboard Sound Samples");
|
|
9661
|
-
this.encodeLayer(exports.StoryboardLayerType.
|
|
9661
|
+
this.encodeLayer(exports.StoryboardLayerType.Sample);
|
|
9662
9662
|
}
|
|
9663
9663
|
write(line) {
|
|
9664
9664
|
super.write(this.encodeVariables(line));
|
|
@@ -9678,7 +9678,7 @@ class StoryboardEventsEncoder extends StoryboardBaseEncoder {
|
|
|
9678
9678
|
for (const element of (_a = layer === null || layer === void 0 ? void 0 : layer.elements) !== null && _a !== void 0 ? _a : []) {
|
|
9679
9679
|
// Checking for StoryboardAnimation first is mandatory as it extends StoryboardSprite.
|
|
9680
9680
|
if (element instanceof StoryboardAnimation) {
|
|
9681
|
-
this.write(`${exports.StoryboardEventType.
|
|
9681
|
+
this.write(`${exports.StoryboardEventType.Animation},`);
|
|
9682
9682
|
this.write(`${layerType},`);
|
|
9683
9683
|
this.write(`${element.origin},`);
|
|
9684
9684
|
this.write(`"${element.path}",`);
|
|
@@ -9689,7 +9689,7 @@ class StoryboardEventsEncoder extends StoryboardBaseEncoder {
|
|
|
9689
9689
|
this.encodeElement(element);
|
|
9690
9690
|
}
|
|
9691
9691
|
else if (element instanceof StoryboardSprite) {
|
|
9692
|
-
this.write(`${exports.StoryboardEventType.
|
|
9692
|
+
this.write(`${exports.StoryboardEventType.Sprite},`);
|
|
9693
9693
|
this.write(`${layerType},`);
|
|
9694
9694
|
this.write(`${element.origin},`);
|
|
9695
9695
|
this.write(`"${element.path}",`);
|
|
@@ -9697,7 +9697,7 @@ class StoryboardEventsEncoder extends StoryboardBaseEncoder {
|
|
|
9697
9697
|
this.encodeElement(element);
|
|
9698
9698
|
}
|
|
9699
9699
|
else if (element instanceof StoryboardSample) {
|
|
9700
|
-
this.write(`${exports.StoryboardEventType.
|
|
9700
|
+
this.write(`${exports.StoryboardEventType.Sample},`);
|
|
9701
9701
|
this.write(`${element.startTime.toString()},`);
|
|
9702
9702
|
this.write(`${layerType},`);
|
|
9703
9703
|
this.write(`"${element.path}",`);
|
|
@@ -9717,13 +9717,13 @@ class StoryboardEventsEncoder extends StoryboardBaseEncoder {
|
|
|
9717
9717
|
encodeTimelineGroup(group) {
|
|
9718
9718
|
if (group instanceof CommandLoop) {
|
|
9719
9719
|
this.write(" ");
|
|
9720
|
-
this.write(`${exports.StoryboardCommandType.
|
|
9720
|
+
this.write(`${exports.StoryboardCommandType.Loop},`);
|
|
9721
9721
|
this.write(`${group.startTime.toString()},`);
|
|
9722
9722
|
this.write(group.totalIterations.toString());
|
|
9723
9723
|
}
|
|
9724
9724
|
else if (group instanceof CommandTrigger) {
|
|
9725
9725
|
this.write(" ");
|
|
9726
|
-
this.write(`${exports.StoryboardCommandType.
|
|
9726
|
+
this.write(`${exports.StoryboardCommandType.Trigger},`);
|
|
9727
9727
|
this.write(group.triggerName);
|
|
9728
9728
|
if (group.triggerEndTime !== Number.MAX_SAFE_INTEGER) {
|
|
9729
9729
|
this.write(",");
|
|
@@ -9784,7 +9784,7 @@ class StoryboardEventsEncoder extends StoryboardBaseEncoder {
|
|
|
9784
9784
|
else if (typeof command.startValue === "number" &&
|
|
9785
9785
|
typeof command.endValue === "number") {
|
|
9786
9786
|
// Move X, move Y, scale, fade, and rotation commands
|
|
9787
|
-
if (command.type === exports.StoryboardCommandType.
|
|
9787
|
+
if (command.type === exports.StoryboardCommandType.Rotation) {
|
|
9788
9788
|
this.write(MathUtils.degreesToRadians(command.startValue).toString());
|
|
9789
9789
|
}
|
|
9790
9790
|
else {
|
|
@@ -9792,7 +9792,7 @@ class StoryboardEventsEncoder extends StoryboardBaseEncoder {
|
|
|
9792
9792
|
}
|
|
9793
9793
|
if (command.startValue !== command.endValue) {
|
|
9794
9794
|
this.write(",");
|
|
9795
|
-
if (command.type === exports.StoryboardCommandType.
|
|
9795
|
+
if (command.type === exports.StoryboardCommandType.Rotation) {
|
|
9796
9796
|
this.write(MathUtils.degreesToRadians(command.endValue).toString());
|
|
9797
9797
|
}
|
|
9798
9798
|
else {
|
|
@@ -9938,18 +9938,18 @@ class BeatmapHitObjectsEncoder extends BeatmapBaseEncoder {
|
|
|
9938
9938
|
this.writeLine();
|
|
9939
9939
|
}
|
|
9940
9940
|
samplesToHitSoundType(samples) {
|
|
9941
|
-
let type = exports.HitSoundType.
|
|
9941
|
+
let type = exports.HitSoundType.None;
|
|
9942
9942
|
for (const sample of samples) {
|
|
9943
9943
|
if (sample instanceof BankHitSampleInfo) {
|
|
9944
9944
|
switch (sample.name) {
|
|
9945
9945
|
case BankHitSampleInfo.HIT_WHISTLE:
|
|
9946
|
-
type |= exports.HitSoundType.
|
|
9946
|
+
type |= exports.HitSoundType.Whistle;
|
|
9947
9947
|
break;
|
|
9948
9948
|
case BankHitSampleInfo.HIT_FINISH:
|
|
9949
|
-
type |= exports.HitSoundType.
|
|
9949
|
+
type |= exports.HitSoundType.Finish;
|
|
9950
9950
|
break;
|
|
9951
9951
|
case BankHitSampleInfo.HIT_CLAP:
|
|
9952
|
-
type |= exports.HitSoundType.
|
|
9952
|
+
type |= exports.HitSoundType.Clap;
|
|
9953
9953
|
break;
|
|
9954
9954
|
}
|
|
9955
9955
|
}
|
|
@@ -9983,10 +9983,10 @@ class BeatmapHitObjectsEncoder extends BeatmapBaseEncoder {
|
|
|
9983
9983
|
getSampleBank(samples, banksOnly = false) {
|
|
9984
9984
|
var _a, _b, _c, _d, _e;
|
|
9985
9985
|
const normalBank = (_b = (_a = samples.find((s) => s instanceof BankHitSampleInfo &&
|
|
9986
|
-
s.name === BankHitSampleInfo.HIT_NORMAL)) === null || _a === void 0 ? void 0 : _a.bank) !== null && _b !== void 0 ? _b : exports.SampleBank.
|
|
9986
|
+
s.name === BankHitSampleInfo.HIT_NORMAL)) === null || _a === void 0 ? void 0 : _a.bank) !== null && _b !== void 0 ? _b : exports.SampleBank.None;
|
|
9987
9987
|
const addBank = (_d = (_c = samples.find((s) => s instanceof BankHitSampleInfo &&
|
|
9988
9988
|
s.name &&
|
|
9989
|
-
s.name !== BankHitSampleInfo.HIT_NORMAL)) === null || _c === void 0 ? void 0 : _c.bank) !== null && _d !== void 0 ? _d : exports.SampleBank.
|
|
9989
|
+
s.name !== BankHitSampleInfo.HIT_NORMAL)) === null || _c === void 0 ? void 0 : _c.bank) !== null && _d !== void 0 ? _d : exports.SampleBank.None;
|
|
9990
9990
|
let sampleBankString = `${normalBank.toString()}:${addBank.toString()}`;
|
|
9991
9991
|
if (!banksOnly) {
|
|
9992
9992
|
const firstSample = samples.at(0);
|
|
@@ -9996,14 +9996,14 @@ class BeatmapHitObjectsEncoder extends BeatmapBaseEncoder {
|
|
|
9996
9996
|
: "0"}:`;
|
|
9997
9997
|
sampleBankString += `${((_e = firstSample === null || firstSample === void 0 ? void 0 : firstSample.volume) !== null && _e !== void 0 ? _e : 100).toString()}:`;
|
|
9998
9998
|
if (firstSample instanceof FileHitSampleInfo) {
|
|
9999
|
-
sampleBankString += `${this.sampleBankToString(exports.SampleBank.
|
|
9999
|
+
sampleBankString += `${this.sampleBankToString(exports.SampleBank.None)}-${firstSample.filename}`;
|
|
10000
10000
|
}
|
|
10001
10001
|
}
|
|
10002
10002
|
return sampleBankString;
|
|
10003
10003
|
}
|
|
10004
10004
|
sampleBankToString(sampleBank) {
|
|
10005
10005
|
switch (sampleBank) {
|
|
10006
|
-
case exports.SampleBank.
|
|
10006
|
+
case exports.SampleBank.None:
|
|
10007
10007
|
return "";
|
|
10008
10008
|
default:
|
|
10009
10009
|
return super.sampleBankToString(sampleBank);
|
|
@@ -10129,19 +10129,19 @@ class UnadjustedOsuHitWindow extends HitWindow {
|
|
|
10129
10129
|
*/
|
|
10130
10130
|
exports.Anchor = void 0;
|
|
10131
10131
|
(function (Anchor) {
|
|
10132
|
-
Anchor["
|
|
10133
|
-
Anchor["
|
|
10134
|
-
Anchor["
|
|
10135
|
-
Anchor["
|
|
10136
|
-
Anchor["
|
|
10137
|
-
Anchor["
|
|
10132
|
+
Anchor["TopLeft"] = "TopLeft";
|
|
10133
|
+
Anchor["Center"] = "Centre";
|
|
10134
|
+
Anchor["CenterLeft"] = "CentreLeft";
|
|
10135
|
+
Anchor["TopRight"] = "TopRight";
|
|
10136
|
+
Anchor["BottomCenter"] = "BottomCentre";
|
|
10137
|
+
Anchor["TopCenter"] = "TopCentre";
|
|
10138
10138
|
/**
|
|
10139
10139
|
* The user is manually updating the outcome, so we shouldn't.
|
|
10140
10140
|
*/
|
|
10141
|
-
Anchor["
|
|
10142
|
-
Anchor["
|
|
10143
|
-
Anchor["
|
|
10144
|
-
Anchor["
|
|
10141
|
+
Anchor["Custom"] = "Custom";
|
|
10142
|
+
Anchor["CenterRight"] = "CentreRight";
|
|
10143
|
+
Anchor["BottomLeft"] = "BottomLeft";
|
|
10144
|
+
Anchor["BottomRight"] = "BottomRight";
|
|
10145
10145
|
})(exports.Anchor || (exports.Anchor = {}));
|
|
10146
10146
|
|
|
10147
10147
|
/**
|
|
@@ -10149,13 +10149,13 @@ exports.Anchor = void 0;
|
|
|
10149
10149
|
*/
|
|
10150
10150
|
exports.RankedStatus = void 0;
|
|
10151
10151
|
(function (RankedStatus) {
|
|
10152
|
-
RankedStatus[RankedStatus["
|
|
10153
|
-
RankedStatus[RankedStatus["
|
|
10154
|
-
RankedStatus[RankedStatus["
|
|
10155
|
-
RankedStatus[RankedStatus["
|
|
10156
|
-
RankedStatus[RankedStatus["
|
|
10157
|
-
RankedStatus[RankedStatus["
|
|
10158
|
-
RankedStatus[RankedStatus["
|
|
10152
|
+
RankedStatus[RankedStatus["Graveyard"] = -2] = "Graveyard";
|
|
10153
|
+
RankedStatus[RankedStatus["Wip"] = -1] = "Wip";
|
|
10154
|
+
RankedStatus[RankedStatus["Pending"] = 0] = "Pending";
|
|
10155
|
+
RankedStatus[RankedStatus["Ranked"] = 1] = "Ranked";
|
|
10156
|
+
RankedStatus[RankedStatus["Approved"] = 2] = "Approved";
|
|
10157
|
+
RankedStatus[RankedStatus["Qualified"] = 3] = "Qualified";
|
|
10158
|
+
RankedStatus[RankedStatus["Loved"] = 4] = "Loved";
|
|
10159
10159
|
})(exports.RankedStatus || (exports.RankedStatus = {}));
|
|
10160
10160
|
|
|
10161
10161
|
class Bin {
|
|
@@ -11840,20 +11840,20 @@ class ModOldNightCore extends ModNightCore {
|
|
|
11840
11840
|
*/
|
|
11841
11841
|
exports.BeatmapGenre = void 0;
|
|
11842
11842
|
(function (BeatmapGenre) {
|
|
11843
|
-
BeatmapGenre[BeatmapGenre["
|
|
11844
|
-
BeatmapGenre[BeatmapGenre["
|
|
11845
|
-
BeatmapGenre[BeatmapGenre["
|
|
11846
|
-
BeatmapGenre[BeatmapGenre["
|
|
11847
|
-
BeatmapGenre[BeatmapGenre["
|
|
11848
|
-
BeatmapGenre[BeatmapGenre["
|
|
11849
|
-
BeatmapGenre[BeatmapGenre["
|
|
11850
|
-
BeatmapGenre[BeatmapGenre["
|
|
11851
|
-
BeatmapGenre[BeatmapGenre["
|
|
11852
|
-
BeatmapGenre[BeatmapGenre["
|
|
11853
|
-
BeatmapGenre[BeatmapGenre["
|
|
11854
|
-
BeatmapGenre[BeatmapGenre["
|
|
11855
|
-
BeatmapGenre[BeatmapGenre["
|
|
11856
|
-
BeatmapGenre[BeatmapGenre["
|
|
11843
|
+
BeatmapGenre[BeatmapGenre["Any"] = 0] = "Any";
|
|
11844
|
+
BeatmapGenre[BeatmapGenre["Unspecified"] = 1] = "Unspecified";
|
|
11845
|
+
BeatmapGenre[BeatmapGenre["VideoGame"] = 2] = "VideoGame";
|
|
11846
|
+
BeatmapGenre[BeatmapGenre["Anime"] = 3] = "Anime";
|
|
11847
|
+
BeatmapGenre[BeatmapGenre["Rock"] = 4] = "Rock";
|
|
11848
|
+
BeatmapGenre[BeatmapGenre["Pop"] = 5] = "Pop";
|
|
11849
|
+
BeatmapGenre[BeatmapGenre["Other"] = 6] = "Other";
|
|
11850
|
+
BeatmapGenre[BeatmapGenre["Novelty"] = 7] = "Novelty";
|
|
11851
|
+
BeatmapGenre[BeatmapGenre["HipHop"] = 9] = "HipHop";
|
|
11852
|
+
BeatmapGenre[BeatmapGenre["Electronic"] = 10] = "Electronic";
|
|
11853
|
+
BeatmapGenre[BeatmapGenre["Metal"] = 11] = "Metal";
|
|
11854
|
+
BeatmapGenre[BeatmapGenre["Classical"] = 12] = "Classical";
|
|
11855
|
+
BeatmapGenre[BeatmapGenre["Folk"] = 13] = "Folk";
|
|
11856
|
+
BeatmapGenre[BeatmapGenre["Jazz"] = 14] = "Jazz";
|
|
11857
11857
|
})(exports.BeatmapGenre || (exports.BeatmapGenre = {}));
|
|
11858
11858
|
|
|
11859
11859
|
/**
|
|
@@ -11861,21 +11861,21 @@ exports.BeatmapGenre = void 0;
|
|
|
11861
11861
|
*/
|
|
11862
11862
|
exports.BeatmapLanguage = void 0;
|
|
11863
11863
|
(function (BeatmapLanguage) {
|
|
11864
|
-
BeatmapLanguage[BeatmapLanguage["
|
|
11865
|
-
BeatmapLanguage[BeatmapLanguage["
|
|
11866
|
-
BeatmapLanguage[BeatmapLanguage["
|
|
11867
|
-
BeatmapLanguage[BeatmapLanguage["
|
|
11868
|
-
BeatmapLanguage[BeatmapLanguage["
|
|
11869
|
-
BeatmapLanguage[BeatmapLanguage["
|
|
11870
|
-
BeatmapLanguage[BeatmapLanguage["
|
|
11871
|
-
BeatmapLanguage[BeatmapLanguage["
|
|
11872
|
-
BeatmapLanguage[BeatmapLanguage["
|
|
11873
|
-
BeatmapLanguage[BeatmapLanguage["
|
|
11874
|
-
BeatmapLanguage[BeatmapLanguage["
|
|
11875
|
-
BeatmapLanguage[BeatmapLanguage["
|
|
11876
|
-
BeatmapLanguage[BeatmapLanguage["
|
|
11877
|
-
BeatmapLanguage[BeatmapLanguage["
|
|
11878
|
-
BeatmapLanguage[BeatmapLanguage["
|
|
11864
|
+
BeatmapLanguage[BeatmapLanguage["Any"] = 0] = "Any";
|
|
11865
|
+
BeatmapLanguage[BeatmapLanguage["Unspecified"] = 1] = "Unspecified";
|
|
11866
|
+
BeatmapLanguage[BeatmapLanguage["English"] = 2] = "English";
|
|
11867
|
+
BeatmapLanguage[BeatmapLanguage["Japanese"] = 3] = "Japanese";
|
|
11868
|
+
BeatmapLanguage[BeatmapLanguage["Chinese"] = 4] = "Chinese";
|
|
11869
|
+
BeatmapLanguage[BeatmapLanguage["Instrumental"] = 5] = "Instrumental";
|
|
11870
|
+
BeatmapLanguage[BeatmapLanguage["Korean"] = 6] = "Korean";
|
|
11871
|
+
BeatmapLanguage[BeatmapLanguage["French"] = 7] = "French";
|
|
11872
|
+
BeatmapLanguage[BeatmapLanguage["German"] = 8] = "German";
|
|
11873
|
+
BeatmapLanguage[BeatmapLanguage["Swedish"] = 9] = "Swedish";
|
|
11874
|
+
BeatmapLanguage[BeatmapLanguage["Spanish"] = 10] = "Spanish";
|
|
11875
|
+
BeatmapLanguage[BeatmapLanguage["Italian"] = 11] = "Italian";
|
|
11876
|
+
BeatmapLanguage[BeatmapLanguage["Russian"] = 12] = "Russian";
|
|
11877
|
+
BeatmapLanguage[BeatmapLanguage["Polish"] = 13] = "Polish";
|
|
11878
|
+
BeatmapLanguage[BeatmapLanguage["Other"] = 14] = "Other";
|
|
11879
11879
|
})(exports.BeatmapLanguage || (exports.BeatmapLanguage = {}));
|
|
11880
11880
|
|
|
11881
11881
|
/******************************************************************************
|
|
@@ -12112,7 +12112,7 @@ class MapInfo {
|
|
|
12112
12112
|
/**
|
|
12113
12113
|
* The ranking status of the beatmap.
|
|
12114
12114
|
*/
|
|
12115
|
-
this.approved = exports.RankedStatus.
|
|
12115
|
+
this.approved = exports.RankedStatus.Pending;
|
|
12116
12116
|
/**
|
|
12117
12117
|
* The ID of the beatmap.
|
|
12118
12118
|
*/
|
|
@@ -12160,11 +12160,11 @@ class MapInfo {
|
|
|
12160
12160
|
/**
|
|
12161
12161
|
* The genre of this beatmap.
|
|
12162
12162
|
*/
|
|
12163
|
-
this.genre = exports.BeatmapGenre.
|
|
12163
|
+
this.genre = exports.BeatmapGenre.Any;
|
|
12164
12164
|
/**
|
|
12165
12165
|
* The language of this beatmap.
|
|
12166
12166
|
*/
|
|
12167
|
-
this.language = exports.BeatmapLanguage.
|
|
12167
|
+
this.language = exports.BeatmapLanguage.Any;
|
|
12168
12168
|
/**
|
|
12169
12169
|
* The BPM of the beatmap.
|
|
12170
12170
|
*/
|
|
@@ -12664,6 +12664,7 @@ exports.ModSetting = ModSetting;
|
|
|
12664
12664
|
exports.ModSmallCircle = ModSmallCircle;
|
|
12665
12665
|
exports.ModSpunOut = ModSpunOut;
|
|
12666
12666
|
exports.ModSuddenDeath = ModSuddenDeath;
|
|
12667
|
+
exports.ModSynesthesia = ModSynesthesia;
|
|
12667
12668
|
exports.ModTimeRamp = ModTimeRamp;
|
|
12668
12669
|
exports.ModTouchDevice = ModTouchDevice;
|
|
12669
12670
|
exports.ModTraceable = ModTraceable;
|