@rian8337/osu-base 4.0.0-beta.96 → 4.0.0-beta.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2693 -1490
- package/package.json +2 -2
- package/typings/index.d.ts +706 -291
package/typings/index.d.ts
CHANGED
|
@@ -89,19 +89,6 @@ interface IModApplicableToDroid {
|
|
|
89
89
|
* Whether this `Mod` results in a meaningful effect to gameplay when applied in osu!droid.
|
|
90
90
|
*/
|
|
91
91
|
get isDroidRelevant(): boolean;
|
|
92
|
-
/**
|
|
93
|
-
* The score multiplier of this `Mod` in osu!droid.
|
|
94
|
-
*/
|
|
95
|
-
get droidScoreMultiplier(): number;
|
|
96
|
-
/**
|
|
97
|
-
* The score multiplier used when reverse-engineering raw scores from stored total score with
|
|
98
|
-
* multiplier during database migration for osu!droid. Defaults to {@link droidScoreMultiplier}.
|
|
99
|
-
*
|
|
100
|
-
* **If {@link droidScoreMultiplier} is changed in the future, this must be changed in the affected `Mod`
|
|
101
|
-
* subclass to return the old formula, so scores that need to be migrated on-fly are divided by the correct
|
|
102
|
-
* historical multiplier**.
|
|
103
|
-
*/
|
|
104
|
-
get migrationDroidScoreMultiplier(): number;
|
|
105
92
|
}
|
|
106
93
|
|
|
107
94
|
/**
|
|
@@ -1911,10 +1898,6 @@ interface IModApplicableToOsu {
|
|
|
1911
1898
|
* Whether this `Mod` results in a meaningful effect to gameplay when applied in osu!standard.
|
|
1912
1899
|
*/
|
|
1913
1900
|
get isOsuRelevant(): boolean;
|
|
1914
|
-
/**
|
|
1915
|
-
* The score multiplier of this `Mod` in osu!standard.
|
|
1916
|
-
*/
|
|
1917
|
-
get osuScoreMultiplier(): number;
|
|
1918
1901
|
}
|
|
1919
1902
|
|
|
1920
1903
|
/**
|
|
@@ -1956,21 +1939,6 @@ interface IModFacilitatesAdjustment {
|
|
|
1956
1939
|
readonly facilitateAdjustment: true;
|
|
1957
1940
|
}
|
|
1958
1941
|
|
|
1959
|
-
/**
|
|
1960
|
-
* An interface for `Mod`s that require the original instance of a `BeatmapDifficulty` to perform
|
|
1961
|
-
* conversion and processing.
|
|
1962
|
-
*/
|
|
1963
|
-
interface IModRequiresBeatmapDifficulty {
|
|
1964
|
-
/**
|
|
1965
|
-
* Applies this `IModRequiresBeatmapDifficulty` from a `BeatmapDifficulty`.
|
|
1966
|
-
*
|
|
1967
|
-
* This is called before conversion and processing.
|
|
1968
|
-
*
|
|
1969
|
-
* @param difficulty The `BeatmapDifficulty` to apply from.
|
|
1970
|
-
*/
|
|
1971
|
-
applyFromBeatmapDifficulty(difficulty: BeatmapDifficulty): void;
|
|
1972
|
-
}
|
|
1973
|
-
|
|
1974
1942
|
/**
|
|
1975
1943
|
* Represents a mod that has been serialized.
|
|
1976
1944
|
*/
|
|
@@ -2062,6 +2030,13 @@ declare class ModSetting<T = unknown> {
|
|
|
2062
2030
|
* @returns A string representation of this `ModSetting`'s value.
|
|
2063
2031
|
*/
|
|
2064
2032
|
toDisplayString(): string;
|
|
2033
|
+
/**
|
|
2034
|
+
* Formats a value of this `ModSetting` to a string using the display formatter.
|
|
2035
|
+
*
|
|
2036
|
+
* @param value The value to format.
|
|
2037
|
+
* @returns The formatted string representation of the value.
|
|
2038
|
+
*/
|
|
2039
|
+
formatValue(value: T): string;
|
|
2065
2040
|
/**
|
|
2066
2041
|
* Binds an action that will be called when the value of this `ModSetting` changes.
|
|
2067
2042
|
*
|
|
@@ -2095,17 +2070,6 @@ declare abstract class Mod {
|
|
|
2095
2070
|
* Should be `false` for cases where the user is not meant to apply the `Mod` by themselves.
|
|
2096
2071
|
*/
|
|
2097
2072
|
readonly userPlayable: boolean;
|
|
2098
|
-
/**
|
|
2099
|
-
* The {@link Mod}s this {@link Mod} cannot be enabled with.
|
|
2100
|
-
*
|
|
2101
|
-
* This is merely a static list of {@link Mod} constructors that this {@link Mod} is incompatible with,
|
|
2102
|
-
* regardless of the actual instance of the {@link Mod}.
|
|
2103
|
-
*
|
|
2104
|
-
* Some {@link Mod}s may have additional compatibility requirements that are captured in
|
|
2105
|
-
* {@link isCompatibleWith}. When checking for {@link Mod} compatibility, always use
|
|
2106
|
-
* {@link isCompatibleWith}.
|
|
2107
|
-
*/
|
|
2108
|
-
readonly incompatibleMods: Set<typeof Mod>;
|
|
2109
2073
|
private settingsBacking;
|
|
2110
2074
|
/**
|
|
2111
2075
|
* `ModSetting`s that are specific to this `Mod`.
|
|
@@ -2118,13 +2082,20 @@ declare abstract class Mod {
|
|
|
2118
2082
|
/**
|
|
2119
2083
|
* Determines whether this {@link Mod} is compatible with another {@link Mod}.
|
|
2120
2084
|
*
|
|
2121
|
-
* This extends {@link incompatibleMods} by allowing for dynamic checks against
|
|
2122
|
-
* the actual instance of the {@link Mod} (i.e., its specific settings).
|
|
2123
|
-
*
|
|
2124
2085
|
* @param other The {@link Mod} to check compatibility with.
|
|
2125
2086
|
* @return `true` if this {@link Mod} is compatible with {@link other}, `false` otherwise.
|
|
2126
2087
|
*/
|
|
2127
2088
|
isCompatibleWith(other: Mod): boolean;
|
|
2089
|
+
/**
|
|
2090
|
+
* Determines whether {@link other} is an instance of any of the given {@link Mod} types.
|
|
2091
|
+
*
|
|
2092
|
+
* This is a convenience method for {@link isCompatibleWith} overrides that need to exclude a
|
|
2093
|
+
* fixed set of {@link Mod} types.
|
|
2094
|
+
*
|
|
2095
|
+
* @param other The {@link Mod} to check.
|
|
2096
|
+
* @param types The {@link Mod} types to check {@link other} against.
|
|
2097
|
+
*/
|
|
2098
|
+
protected isInstanceOfAny(other: Mod, ...types: readonly (typeof Mod)[]): boolean;
|
|
2128
2099
|
/**
|
|
2129
2100
|
* Serializes this `Mod` to a `SerializedMod`.
|
|
2130
2101
|
*/
|
|
@@ -2180,10 +2151,6 @@ declare abstract class Mod {
|
|
|
2180
2151
|
* Whether this `Mod` facilitates adjustment to a `HitObject` or `BeatmapDifficulty`.
|
|
2181
2152
|
*/
|
|
2182
2153
|
facilitatesAdjustment(): this is this & IModFacilitatesAdjustment;
|
|
2183
|
-
/**
|
|
2184
|
-
* Whether this `Mod` requires the original `BeatmapDifficulty` for conversion and processing.
|
|
2185
|
-
*/
|
|
2186
|
-
requiresBeatmapDifficulty(): this is this & IModRequiresBeatmapDifficulty;
|
|
2187
2154
|
/**
|
|
2188
2155
|
* Compares this `Mod` to another `Mod` for equality.
|
|
2189
2156
|
*
|
|
@@ -2270,6 +2237,7 @@ declare class ModMap extends Map<typeof Mod, Mod> {
|
|
|
2270
2237
|
* Represents a beatmap that is in a playable state for a specific game mode.
|
|
2271
2238
|
*/
|
|
2272
2239
|
declare abstract class PlayableBeatmap implements IBeatmap {
|
|
2240
|
+
private readonly baseBeatmap;
|
|
2273
2241
|
readonly formatVersion: number;
|
|
2274
2242
|
readonly general: BeatmapGeneral;
|
|
2275
2243
|
readonly editor: BeatmapEditor;
|
|
@@ -2278,14 +2246,14 @@ declare abstract class PlayableBeatmap implements IBeatmap {
|
|
|
2278
2246
|
readonly events: BeatmapEvents;
|
|
2279
2247
|
readonly controlPoints: BeatmapControlPoints;
|
|
2280
2248
|
readonly colors: BeatmapColor;
|
|
2281
|
-
|
|
2282
|
-
|
|
2249
|
+
hitObjects: BeatmapHitObjects;
|
|
2250
|
+
get maxCombo(): number;
|
|
2283
2251
|
/**
|
|
2284
2252
|
* The `Mod`s that were applied to this `PlayableBeatmap`.
|
|
2285
2253
|
*/
|
|
2286
2254
|
readonly mods: ModMap;
|
|
2287
2255
|
/**
|
|
2288
|
-
* The speed multiplier that was applied to this
|
|
2256
|
+
* The speed multiplier that was applied to this `PlayableBeatmap`.
|
|
2289
2257
|
*/
|
|
2290
2258
|
readonly speedMultiplier: number;
|
|
2291
2259
|
private readonly _hitWindow;
|
|
@@ -4436,6 +4404,62 @@ declare class DecimalModSetting extends NumberModSetting {
|
|
|
4436
4404
|
protected processValue(value: number): number;
|
|
4437
4405
|
}
|
|
4438
4406
|
|
|
4407
|
+
/**
|
|
4408
|
+
* Represents a `Mod` specific setting that is constrained to one of a fixed set of enum-like values.
|
|
4409
|
+
*
|
|
4410
|
+
* Values are serialized by their index within {@link entries} to match the format used by osu!droid's
|
|
4411
|
+
* `EnumModSetting`.
|
|
4412
|
+
*/
|
|
4413
|
+
declare class EnumModSetting<T> extends ModSetting<T> {
|
|
4414
|
+
protected readonly displayFormatter: (value: T) => string;
|
|
4415
|
+
/**
|
|
4416
|
+
* The possible values of this `EnumModSetting`, in the order used for serialization.
|
|
4417
|
+
*/
|
|
4418
|
+
readonly entries: readonly T[];
|
|
4419
|
+
constructor(name: string, key: string | null, description: string, defaultValue: T, entries: readonly T[], displayFormatter?: (value: T) => string);
|
|
4420
|
+
load(settings: Record<string, unknown>): void;
|
|
4421
|
+
save(settings: Record<string, unknown>): void;
|
|
4422
|
+
}
|
|
4423
|
+
|
|
4424
|
+
/**
|
|
4425
|
+
* The mode of accuracy that triggers a failure in {@link ModAccuracyChallenge}.
|
|
4426
|
+
*/
|
|
4427
|
+
declare enum AccuracyMode {
|
|
4428
|
+
MaximumAchievable = 0,
|
|
4429
|
+
Standard = 1
|
|
4430
|
+
}
|
|
4431
|
+
/**
|
|
4432
|
+
* Represents the Accuracy Challenge mod.
|
|
4433
|
+
*/
|
|
4434
|
+
declare class ModAccuracyChallenge extends Mod implements IModApplicableToOsu {
|
|
4435
|
+
readonly acronym = "AC";
|
|
4436
|
+
readonly name = "Accuracy Challenge";
|
|
4437
|
+
readonly osuRanked = true;
|
|
4438
|
+
readonly isOsuRelevant = true;
|
|
4439
|
+
readonly osuScoreMultiplier = 1;
|
|
4440
|
+
/**
|
|
4441
|
+
* Trigger a failure if accuracy goes below this value.
|
|
4442
|
+
*/
|
|
4443
|
+
readonly minimumAccuracy: DecimalModSetting;
|
|
4444
|
+
/**
|
|
4445
|
+
* The mode of accuracy that will trigger failure.
|
|
4446
|
+
*/
|
|
4447
|
+
readonly accuracyJudgeMode: EnumModSetting<AccuracyMode>;
|
|
4448
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4449
|
+
}
|
|
4450
|
+
|
|
4451
|
+
/**
|
|
4452
|
+
* Represents the Alternate mod.
|
|
4453
|
+
*/
|
|
4454
|
+
declare class ModAlternate extends Mod implements IModApplicableToOsu {
|
|
4455
|
+
readonly acronym = "AL";
|
|
4456
|
+
readonly name = "Alternate";
|
|
4457
|
+
readonly osuRanked = true;
|
|
4458
|
+
readonly isOsuRelevant = true;
|
|
4459
|
+
readonly osuScoreMultiplier = 1;
|
|
4460
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4461
|
+
}
|
|
4462
|
+
|
|
4439
4463
|
/**
|
|
4440
4464
|
* Represents the Approach Different mod.
|
|
4441
4465
|
*/
|
|
@@ -4443,12 +4467,9 @@ declare class ModApproachDifferent extends Mod implements IModApplicableToDroid,
|
|
|
4443
4467
|
readonly name = "Approach Different";
|
|
4444
4468
|
readonly acronym = "AD";
|
|
4445
4469
|
readonly droidRanked = false;
|
|
4446
|
-
readonly droidScoreMultiplier = 1;
|
|
4447
|
-
readonly migrationDroidScoreMultiplier = 1;
|
|
4448
4470
|
readonly isDroidRelevant = true;
|
|
4449
4471
|
readonly osuRanked = false;
|
|
4450
4472
|
readonly isOsuRelevant = true;
|
|
4451
|
-
readonly osuScoreMultiplier = 1;
|
|
4452
4473
|
/**
|
|
4453
4474
|
* The initial size of the approach circle, relative to hit circles.
|
|
4454
4475
|
*/
|
|
@@ -4456,12 +4477,12 @@ declare class ModApproachDifferent extends Mod implements IModApplicableToDroid,
|
|
|
4456
4477
|
/**
|
|
4457
4478
|
* The animation style of the approach circles.
|
|
4458
4479
|
*/
|
|
4459
|
-
readonly style:
|
|
4480
|
+
readonly style: EnumModSetting<AnimationStyle>;
|
|
4460
4481
|
/**
|
|
4461
4482
|
* The {@link Easing} to apply to the approach circle animation.
|
|
4462
4483
|
*/
|
|
4463
4484
|
get easing(): Easing;
|
|
4464
|
-
|
|
4485
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4465
4486
|
}
|
|
4466
4487
|
declare enum AnimationStyle {
|
|
4467
4488
|
Linear = 0,
|
|
@@ -4484,13 +4505,10 @@ declare class ModAuto extends Mod implements IModApplicableToDroid, IModApplicab
|
|
|
4484
4505
|
readonly name = "Autoplay";
|
|
4485
4506
|
readonly droidRanked = false;
|
|
4486
4507
|
readonly isDroidRelevant = true;
|
|
4487
|
-
readonly droidScoreMultiplier = 1;
|
|
4488
|
-
readonly migrationDroidScoreMultiplier = 1;
|
|
4489
4508
|
readonly osuRanked = false;
|
|
4490
4509
|
readonly isOsuRelevant = true;
|
|
4491
|
-
readonly osuScoreMultiplier = 1;
|
|
4492
4510
|
readonly bitwise: number;
|
|
4493
|
-
|
|
4511
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4494
4512
|
}
|
|
4495
4513
|
|
|
4496
4514
|
/**
|
|
@@ -4501,13 +4519,37 @@ declare class ModAutopilot extends Mod implements IModApplicableToDroid, IModApp
|
|
|
4501
4519
|
readonly name = "Autopilot";
|
|
4502
4520
|
readonly droidRanked = false;
|
|
4503
4521
|
readonly isDroidRelevant = true;
|
|
4504
|
-
readonly droidScoreMultiplier = 0.001;
|
|
4505
|
-
readonly migrationDroidScoreMultiplier = 0.001;
|
|
4506
4522
|
readonly osuRanked = false;
|
|
4507
4523
|
readonly isOsuRelevant = true;
|
|
4508
|
-
readonly osuScoreMultiplier = 0;
|
|
4509
4524
|
readonly bitwise: number;
|
|
4510
|
-
|
|
4525
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4526
|
+
}
|
|
4527
|
+
|
|
4528
|
+
/**
|
|
4529
|
+
* The direction of rotation of {@link ModBarrelRoll}.
|
|
4530
|
+
*/
|
|
4531
|
+
declare enum RotationDirection {
|
|
4532
|
+
Clockwise = 0,
|
|
4533
|
+
Counterclockwise = 1
|
|
4534
|
+
}
|
|
4535
|
+
/**
|
|
4536
|
+
* Represents the Barrel Roll mod.
|
|
4537
|
+
*/
|
|
4538
|
+
declare class ModBarrelRoll extends Mod implements IModApplicableToOsu {
|
|
4539
|
+
readonly acronym = "BR";
|
|
4540
|
+
readonly name = "Barrel Roll";
|
|
4541
|
+
readonly osuRanked = false;
|
|
4542
|
+
readonly isOsuRelevant = true;
|
|
4543
|
+
readonly osuScoreMultiplier = 1;
|
|
4544
|
+
/**
|
|
4545
|
+
* Rotations per minute.
|
|
4546
|
+
*/
|
|
4547
|
+
readonly spinSpeed: DecimalModSetting;
|
|
4548
|
+
/**
|
|
4549
|
+
* The direction of rotation.
|
|
4550
|
+
*/
|
|
4551
|
+
readonly direction: EnumModSetting<RotationDirection>;
|
|
4552
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4511
4553
|
}
|
|
4512
4554
|
|
|
4513
4555
|
/**
|
|
@@ -4519,25 +4561,113 @@ declare class ModBlinds extends Mod implements IModApplicableToOsu {
|
|
|
4519
4561
|
readonly osuRanked = true;
|
|
4520
4562
|
readonly isOsuRelevant = true;
|
|
4521
4563
|
readonly osuScoreMultiplier = 1.12;
|
|
4522
|
-
|
|
4564
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4523
4565
|
}
|
|
4524
4566
|
|
|
4525
4567
|
/**
|
|
4526
|
-
* Represents a `Mod` that
|
|
4568
|
+
* Represents a `Mod` specific setting that is constrained to a range of integer values.
|
|
4527
4569
|
*/
|
|
4528
|
-
declare
|
|
4570
|
+
declare class IntegerModSetting extends NumberModSetting {
|
|
4571
|
+
constructor(name: string, key: string | null, description: string, defaultValue: number, min?: number, max?: number);
|
|
4572
|
+
}
|
|
4573
|
+
|
|
4574
|
+
/**
|
|
4575
|
+
* Represents the Bloom mod.
|
|
4576
|
+
*/
|
|
4577
|
+
declare class ModBloom extends Mod implements IModApplicableToOsu {
|
|
4578
|
+
readonly acronym = "BM";
|
|
4579
|
+
readonly name = "Bloom";
|
|
4580
|
+
readonly osuRanked = false;
|
|
4581
|
+
readonly isOsuRelevant = true;
|
|
4582
|
+
readonly osuScoreMultiplier = 1;
|
|
4529
4583
|
/**
|
|
4530
|
-
* The
|
|
4584
|
+
* The combo count at which the cursor reaches its maximum size.
|
|
4531
4585
|
*/
|
|
4532
|
-
|
|
4586
|
+
readonly maxSizeComboCount: IntegerModSetting;
|
|
4533
4587
|
/**
|
|
4534
|
-
* The
|
|
4588
|
+
* The multiplier applied to cursor size when combo reaches maximum.
|
|
4535
4589
|
*/
|
|
4536
|
-
|
|
4590
|
+
readonly maxCursorSize: DecimalModSetting;
|
|
4591
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4592
|
+
}
|
|
4593
|
+
|
|
4594
|
+
/**
|
|
4595
|
+
* Represents the Bubbles mod.
|
|
4596
|
+
*/
|
|
4597
|
+
declare class ModBubbles extends Mod implements IModApplicableToOsu {
|
|
4598
|
+
readonly acronym = "BU";
|
|
4599
|
+
readonly name = "Bubbles";
|
|
4600
|
+
readonly osuRanked = false;
|
|
4601
|
+
readonly isOsuRelevant = true;
|
|
4602
|
+
readonly osuScoreMultiplier = 1;
|
|
4603
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4604
|
+
}
|
|
4605
|
+
|
|
4606
|
+
/**
|
|
4607
|
+
* Represents the Cinema mod.
|
|
4608
|
+
*/
|
|
4609
|
+
declare class ModCinema extends Mod implements IModApplicableToOsu {
|
|
4610
|
+
readonly acronym = "CN";
|
|
4611
|
+
readonly name = "Cinema";
|
|
4612
|
+
readonly osuRanked = false;
|
|
4613
|
+
readonly isOsuRelevant = true;
|
|
4614
|
+
readonly osuScoreMultiplier = 1;
|
|
4615
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4616
|
+
}
|
|
4617
|
+
|
|
4618
|
+
/**
|
|
4619
|
+
* Represents a `Mod` specific setting that is constrained to a boolean value.
|
|
4620
|
+
*/
|
|
4621
|
+
declare class BooleanModSetting extends ModSetting<boolean> {
|
|
4622
|
+
readonly displayFormatter: (value: boolean) => string;
|
|
4623
|
+
load(settings: Record<string, unknown>): void;
|
|
4624
|
+
}
|
|
4625
|
+
|
|
4626
|
+
/**
|
|
4627
|
+
* Represents the Classic mod.
|
|
4628
|
+
*
|
|
4629
|
+
* Classic mods are not to be ranked yet due to compatibility and multiplier concerns. Right now
|
|
4630
|
+
* they are considered, for leaderboard purposes, to be equal to scores set on osu!stable, but
|
|
4631
|
+
* this is not the case (e.g. hit windows differ, sliders always give combo for the slider end
|
|
4632
|
+
* even on miss).
|
|
4633
|
+
*/
|
|
4634
|
+
declare class ModClassic extends Mod implements IModApplicableToOsu {
|
|
4635
|
+
readonly acronym = "CL";
|
|
4636
|
+
readonly name = "Classic";
|
|
4637
|
+
readonly osuRanked = false;
|
|
4638
|
+
readonly isOsuRelevant = true;
|
|
4639
|
+
readonly osuScoreMultiplier = 1;
|
|
4537
4640
|
/**
|
|
4538
|
-
*
|
|
4641
|
+
* Scores sliders proportionally to the number of ticks hit.
|
|
4539
4642
|
*/
|
|
4540
|
-
|
|
4643
|
+
readonly noSliderHeadAccuracy: BooleanModSetting;
|
|
4644
|
+
/**
|
|
4645
|
+
* Applies note lock to the full hit window.
|
|
4646
|
+
*/
|
|
4647
|
+
readonly classicNoteLock: BooleanModSetting;
|
|
4648
|
+
/**
|
|
4649
|
+
* Always plays a slider's tail sample regardless of whether it was hit or not.
|
|
4650
|
+
*/
|
|
4651
|
+
readonly alwaysPlayTailSample: BooleanModSetting;
|
|
4652
|
+
/**
|
|
4653
|
+
* Make hit circles fade out into a miss, rather than after it.
|
|
4654
|
+
*/
|
|
4655
|
+
readonly fadeHitCircleEarly: BooleanModSetting;
|
|
4656
|
+
/**
|
|
4657
|
+
* More closely resembles the original HP drain mechanics.
|
|
4658
|
+
*/
|
|
4659
|
+
readonly classicHealth: BooleanModSetting;
|
|
4660
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4661
|
+
}
|
|
4662
|
+
|
|
4663
|
+
/**
|
|
4664
|
+
* Represents a `Mod` that adjusts the playback rate of a track.
|
|
4665
|
+
*/
|
|
4666
|
+
declare abstract class ModRateAdjust extends Mod implements IModApplicableToTrackRate {
|
|
4667
|
+
/**
|
|
4668
|
+
* The multiplier for the track's playback rate after applying this `Mod`.
|
|
4669
|
+
*/
|
|
4670
|
+
abstract rate: number;
|
|
4541
4671
|
/**
|
|
4542
4672
|
* Generic getter to determine if this `ModRateAdjust` is relevant.
|
|
4543
4673
|
*/
|
|
@@ -4561,14 +4691,25 @@ declare class ModCustomSpeed extends ModRateAdjust implements IModApplicableToDr
|
|
|
4561
4691
|
readonly droidRanked = true;
|
|
4562
4692
|
readonly osuRanked = false;
|
|
4563
4693
|
get isDroidRelevant(): boolean;
|
|
4564
|
-
get droidScoreMultiplier(): number;
|
|
4565
|
-
get migrationDroidScoreMultiplier(): number;
|
|
4566
4694
|
get isOsuRelevant(): boolean;
|
|
4567
4695
|
get osuScoreMultiplier(): number;
|
|
4568
4696
|
constructor(trackRateMultiplier?: number);
|
|
4569
4697
|
toString(): string;
|
|
4570
4698
|
}
|
|
4571
4699
|
|
|
4700
|
+
/**
|
|
4701
|
+
* Represents the Daycore mod.
|
|
4702
|
+
*/
|
|
4703
|
+
declare class ModDaycore extends ModRateAdjust implements IModApplicableToOsu {
|
|
4704
|
+
readonly acronym = "DC";
|
|
4705
|
+
readonly name = "Daycore";
|
|
4706
|
+
readonly osuRanked = true;
|
|
4707
|
+
readonly osuScoreMultiplier = 1;
|
|
4708
|
+
readonly rate = 0.75;
|
|
4709
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4710
|
+
get isOsuRelevant(): boolean;
|
|
4711
|
+
}
|
|
4712
|
+
|
|
4572
4713
|
/**
|
|
4573
4714
|
* Represents a `Mod` that adjusts the size of `HitObject`s during their fade in animation.
|
|
4574
4715
|
*/
|
|
@@ -4581,25 +4722,40 @@ declare abstract class ModObjectScaleTween extends Mod {
|
|
|
4581
4722
|
* The final size multiplier applied to all [HitObject]s.
|
|
4582
4723
|
*/
|
|
4583
4724
|
endScale: number;
|
|
4584
|
-
|
|
4725
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4585
4726
|
}
|
|
4586
4727
|
|
|
4587
4728
|
/**
|
|
4588
4729
|
* Represents the Deflate mod.
|
|
4589
4730
|
*/
|
|
4590
|
-
declare class ModDeflate extends ModObjectScaleTween implements
|
|
4731
|
+
declare class ModDeflate extends ModObjectScaleTween implements IModApplicableToOsu {
|
|
4591
4732
|
readonly name = "Deflate";
|
|
4592
4733
|
readonly acronym = "DF";
|
|
4593
|
-
readonly droidRanked = false;
|
|
4594
|
-
readonly isDroidRelevant = true;
|
|
4595
|
-
readonly droidScoreMultiplier = 1;
|
|
4596
|
-
readonly migrationDroidScoreMultiplier = 1;
|
|
4597
4734
|
readonly osuRanked = false;
|
|
4598
4735
|
readonly isOsuRelevant = true;
|
|
4599
|
-
readonly osuScoreMultiplier = 1;
|
|
4600
4736
|
readonly startScale: DecimalModSetting;
|
|
4601
4737
|
}
|
|
4602
4738
|
|
|
4739
|
+
/**
|
|
4740
|
+
* Represents the Depth mod.
|
|
4741
|
+
*/
|
|
4742
|
+
declare class ModDepth extends Mod implements IModApplicableToOsu {
|
|
4743
|
+
readonly acronym = "DP";
|
|
4744
|
+
readonly name = "Depth";
|
|
4745
|
+
readonly osuRanked = false;
|
|
4746
|
+
readonly isOsuRelevant = true;
|
|
4747
|
+
readonly osuScoreMultiplier = 1;
|
|
4748
|
+
/**
|
|
4749
|
+
* How far away objects appear.
|
|
4750
|
+
*/
|
|
4751
|
+
readonly maxDepth: DecimalModSetting;
|
|
4752
|
+
/**
|
|
4753
|
+
* Whether approach circles should be visible.
|
|
4754
|
+
*/
|
|
4755
|
+
readonly showApproachCircles: BooleanModSetting;
|
|
4756
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4757
|
+
}
|
|
4758
|
+
|
|
4603
4759
|
/**
|
|
4604
4760
|
* Represents a `Mod` specific setting that is constrained to a number of values.
|
|
4605
4761
|
*
|
|
@@ -4622,24 +4778,21 @@ declare class NullableDecimalModSetting extends RangeConstrainedModSetting<numbe
|
|
|
4622
4778
|
}
|
|
4623
4779
|
|
|
4624
4780
|
/**
|
|
4625
|
-
* A `NullableDecimalModSetting` variant for `ModDifficultyAdjust
|
|
4626
|
-
* difficulty value alongside the user's adjusted value in the serialized format:
|
|
4627
|
-
*
|
|
4628
|
-
* `{ "adjusted": 7.0, "original": 4.0 }`
|
|
4781
|
+
* A `NullableDecimalModSetting` variant for `ModDifficultyAdjust`.
|
|
4629
4782
|
*
|
|
4630
|
-
*
|
|
4631
|
-
* alone, without a beatmap lookup. When `null`, `applyFromBeatmapDifficulty` must be called first.
|
|
4783
|
+
* The serialized format is a plain scalar (e.g. `"cs": 7.0`), matching the game client.
|
|
4632
4784
|
*
|
|
4633
|
-
*
|
|
4785
|
+
* The legacy `{ "adjusted": 7.0, "original": 4.0 }` object format is still accepted in `load` for
|
|
4786
|
+
* backward compatibility with old saved data. When present, `original` is used to set `defaultValue`
|
|
4787
|
+
* directly rather than being tracked separately.
|
|
4634
4788
|
*/
|
|
4635
4789
|
declare class DifficultyAdjustModSetting extends NullableDecimalModSetting {
|
|
4790
|
+
constructor(name: string, key: string, description: string, min?: number, max?: number, step?: number, precision?: number | null);
|
|
4636
4791
|
/**
|
|
4637
|
-
*
|
|
4638
|
-
*
|
|
4639
|
-
* Non-null means the score multiplier is self-contained; `null` means a beatmap lookup is needed.
|
|
4792
|
+
* "Default" means no override is active (`value` is `null`), regardless of what `defaultValue`
|
|
4793
|
+
* currently holds (which may be set to the beatmap's difficulty for UI hint display).
|
|
4640
4794
|
*/
|
|
4641
|
-
|
|
4642
|
-
constructor(name: string, key: string, description: string, min?: number, max?: number, step?: number, precision?: number | null);
|
|
4795
|
+
get isDefault(): boolean;
|
|
4643
4796
|
load(settings: Record<string, unknown>): void;
|
|
4644
4797
|
save(settings: Record<string, unknown>): void;
|
|
4645
4798
|
}
|
|
@@ -4647,13 +4800,12 @@ declare class DifficultyAdjustModSetting extends NullableDecimalModSetting {
|
|
|
4647
4800
|
/**
|
|
4648
4801
|
* Represents the Difficulty Adjust mod.
|
|
4649
4802
|
*/
|
|
4650
|
-
declare class ModDifficultyAdjust extends Mod implements IModApplicableToDroid, IModApplicableToOsu, IModApplicableToDifficultyWithMods, IModApplicableToHitObjectWithMods
|
|
4803
|
+
declare class ModDifficultyAdjust extends Mod implements IModApplicableToDroid, IModApplicableToOsu, IModApplicableToDifficultyWithMods, IModApplicableToHitObjectWithMods {
|
|
4651
4804
|
readonly acronym = "DA";
|
|
4652
4805
|
readonly name = "Difficulty Adjust";
|
|
4653
4806
|
readonly droidRanked = false;
|
|
4654
4807
|
readonly osuRanked = false;
|
|
4655
4808
|
readonly isOsuRelevant = true;
|
|
4656
|
-
readonly osuScoreMultiplier = 1;
|
|
4657
4809
|
/**
|
|
4658
4810
|
* The circle size to enforce.
|
|
4659
4811
|
*/
|
|
@@ -4678,9 +4830,6 @@ declare class ModDifficultyAdjust extends Mod implements IModApplicableToDroid,
|
|
|
4678
4830
|
hp?: number;
|
|
4679
4831
|
});
|
|
4680
4832
|
get isDroidRelevant(): boolean;
|
|
4681
|
-
get droidScoreMultiplier(): number;
|
|
4682
|
-
get migrationDroidScoreMultiplier(): number;
|
|
4683
|
-
applyFromBeatmapDifficulty(difficulty: BeatmapDifficulty): void;
|
|
4684
4833
|
applyToDifficultyWithMods(_: Modes, difficulty: BeatmapDifficulty, mods: ModMap): void;
|
|
4685
4834
|
applyToHitObjectWithMods(_: Modes, hitObject: HitObject, mods: ModMap): void;
|
|
4686
4835
|
isCompatibleWith(other: Mod): boolean;
|
|
@@ -4694,16 +4843,13 @@ declare class ModDifficultyAdjust extends Mod implements IModApplicableToDroid,
|
|
|
4694
4843
|
*/
|
|
4695
4844
|
declare class ModDoubleTime extends ModRateAdjust implements IModApplicableToDroid, IModApplicableToOsuStable {
|
|
4696
4845
|
readonly acronym = "DT";
|
|
4697
|
-
readonly name = "
|
|
4846
|
+
readonly name = "Double Time";
|
|
4698
4847
|
readonly droidRanked = true;
|
|
4699
4848
|
readonly osuRanked = true;
|
|
4700
|
-
readonly osuScoreMultiplier = 1.12;
|
|
4701
4849
|
readonly bitwise: number;
|
|
4702
4850
|
readonly rate = 1.5;
|
|
4703
|
-
|
|
4851
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4704
4852
|
get isDroidRelevant(): boolean;
|
|
4705
|
-
get droidScoreMultiplier(): number;
|
|
4706
|
-
get migrationDroidScoreMultiplier(): number;
|
|
4707
4853
|
get isOsuRelevant(): boolean;
|
|
4708
4854
|
}
|
|
4709
4855
|
|
|
@@ -4715,25 +4861,17 @@ declare class ModEasy extends Mod implements IModApplicableToDroid, IModApplicab
|
|
|
4715
4861
|
readonly name = "Easy";
|
|
4716
4862
|
readonly droidRanked = true;
|
|
4717
4863
|
readonly isDroidRelevant = true;
|
|
4718
|
-
readonly droidScoreMultiplier = 0.5;
|
|
4719
|
-
readonly migrationDroidScoreMultiplier = 0.5;
|
|
4720
4864
|
readonly osuRanked = true;
|
|
4721
4865
|
readonly isOsuRelevant = true;
|
|
4722
|
-
readonly osuScoreMultiplier = 0.5;
|
|
4723
4866
|
readonly bitwise: number;
|
|
4724
|
-
|
|
4867
|
+
/**
|
|
4868
|
+
* The amount of extra lives to give the player.
|
|
4869
|
+
*/
|
|
4870
|
+
readonly retries: IntegerModSetting;
|
|
4725
4871
|
applyToDifficulty(mode: Modes, difficulty: BeatmapDifficulty, adjustmentMods: ModMap): void;
|
|
4726
4872
|
isCompatibleWith(other: Mod): boolean;
|
|
4727
4873
|
}
|
|
4728
4874
|
|
|
4729
|
-
/**
|
|
4730
|
-
* Represents a `Mod` specific setting that is constrained to a boolean value.
|
|
4731
|
-
*/
|
|
4732
|
-
declare class BooleanModSetting extends ModSetting<boolean> {
|
|
4733
|
-
readonly displayFormatter: (value: boolean) => string;
|
|
4734
|
-
load(settings: Record<string, unknown>): void;
|
|
4735
|
-
}
|
|
4736
|
-
|
|
4737
4875
|
/**
|
|
4738
4876
|
* Represents the Flashlight mod.
|
|
4739
4877
|
*/
|
|
@@ -4746,11 +4884,8 @@ declare class ModFlashlight extends Mod implements IModApplicableToDroid, IModAp
|
|
|
4746
4884
|
readonly name = "Flashlight";
|
|
4747
4885
|
get droidRanked(): boolean;
|
|
4748
4886
|
readonly isDroidRelevant = true;
|
|
4749
|
-
get droidScoreMultiplier(): number;
|
|
4750
|
-
get migrationDroidScoreMultiplier(): number;
|
|
4751
4887
|
get osuRanked(): boolean;
|
|
4752
4888
|
readonly isOsuRelevant = true;
|
|
4753
|
-
get osuScoreMultiplier(): number;
|
|
4754
4889
|
readonly bitwise: number;
|
|
4755
4890
|
/**
|
|
4756
4891
|
* The amount of seconds until the Flashlight follow area reaches the cursor.
|
|
@@ -4764,7 +4899,7 @@ declare class ModFlashlight extends Mod implements IModApplicableToDroid, IModAp
|
|
|
4764
4899
|
* Whether to decrease the Flashlight size as combo increases.
|
|
4765
4900
|
*/
|
|
4766
4901
|
readonly comboBasedSize: BooleanModSetting;
|
|
4767
|
-
|
|
4902
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4768
4903
|
toString(): string;
|
|
4769
4904
|
}
|
|
4770
4905
|
|
|
@@ -4776,12 +4911,9 @@ declare class ModFreezeFrame extends Mod implements IModApplicableToDroid, IModA
|
|
|
4776
4911
|
readonly acronym = "FR";
|
|
4777
4912
|
readonly droidRanked = false;
|
|
4778
4913
|
readonly isDroidRelevant = true;
|
|
4779
|
-
readonly droidScoreMultiplier = 1;
|
|
4780
|
-
readonly migrationDroidScoreMultiplier = 1;
|
|
4781
4914
|
readonly osuRanked = false;
|
|
4782
4915
|
readonly isOsuRelevant = true;
|
|
4783
|
-
|
|
4784
|
-
constructor();
|
|
4916
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4785
4917
|
private lastNewComboTime;
|
|
4786
4918
|
applyToBeatmap(beatmap: IBeatmap): void;
|
|
4787
4919
|
private applyFadeInAdjustment;
|
|
@@ -4790,16 +4922,11 @@ declare class ModFreezeFrame extends Mod implements IModApplicableToDroid, IModA
|
|
|
4790
4922
|
/**
|
|
4791
4923
|
* Represents the Grow mod.
|
|
4792
4924
|
*/
|
|
4793
|
-
declare class ModGrow extends ModObjectScaleTween implements
|
|
4925
|
+
declare class ModGrow extends ModObjectScaleTween implements IModApplicableToOsu {
|
|
4794
4926
|
readonly name = "Grow";
|
|
4795
4927
|
readonly acronym = "GR";
|
|
4796
|
-
readonly droidRanked = false;
|
|
4797
|
-
readonly isDroidRelevant = true;
|
|
4798
|
-
readonly droidScoreMultiplier = 1;
|
|
4799
|
-
readonly migrationDroidScoreMultiplier = 1;
|
|
4800
4928
|
readonly osuRanked = false;
|
|
4801
4929
|
readonly isOsuRelevant = true;
|
|
4802
|
-
readonly osuScoreMultiplier = 1;
|
|
4803
4930
|
readonly startScale: DecimalModSetting;
|
|
4804
4931
|
}
|
|
4805
4932
|
|
|
@@ -4808,16 +4935,13 @@ declare class ModGrow extends ModObjectScaleTween implements IModApplicableToDro
|
|
|
4808
4935
|
*/
|
|
4809
4936
|
declare class ModHalfTime extends ModRateAdjust implements IModApplicableToDroid, IModApplicableToOsuStable {
|
|
4810
4937
|
readonly acronym = "HT";
|
|
4811
|
-
readonly name = "
|
|
4938
|
+
readonly name = "Half Time";
|
|
4812
4939
|
readonly droidRanked = true;
|
|
4813
4940
|
readonly osuRanked = true;
|
|
4814
|
-
readonly osuScoreMultiplier = 0.3;
|
|
4815
4941
|
readonly bitwise: number;
|
|
4816
4942
|
readonly rate = 0.75;
|
|
4817
|
-
|
|
4943
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4818
4944
|
get isDroidRelevant(): boolean;
|
|
4819
|
-
get droidScoreMultiplier(): number;
|
|
4820
|
-
get migrationDroidScoreMultiplier(): number;
|
|
4821
4945
|
get isOsuRelevant(): boolean;
|
|
4822
4946
|
}
|
|
4823
4947
|
|
|
@@ -4826,16 +4950,12 @@ declare class ModHalfTime extends ModRateAdjust implements IModApplicableToDroid
|
|
|
4826
4950
|
*/
|
|
4827
4951
|
declare class ModHardRock extends Mod implements IModApplicableToDroid, IModApplicableToOsuStable, IModApplicableToDifficulty, IModApplicableToHitObject {
|
|
4828
4952
|
readonly acronym = "HR";
|
|
4829
|
-
readonly name = "
|
|
4953
|
+
readonly name = "Hard Rock";
|
|
4830
4954
|
readonly droidRanked = true;
|
|
4831
4955
|
readonly isDroidRelevant = true;
|
|
4832
|
-
readonly droidScoreMultiplier = 1.06;
|
|
4833
|
-
readonly migrationDroidScoreMultiplier = 1.06;
|
|
4834
4956
|
readonly osuRanked = true;
|
|
4835
4957
|
readonly isOsuRelevant = true;
|
|
4836
|
-
readonly osuScoreMultiplier = 1.06;
|
|
4837
4958
|
readonly bitwise: number;
|
|
4838
|
-
constructor();
|
|
4839
4959
|
applyToDifficulty(mode: Modes, difficulty: BeatmapDifficulty, adjustmentMods: ModMap): void;
|
|
4840
4960
|
applyToHitObject(_: Modes, hitObject: HitObject): void;
|
|
4841
4961
|
isCompatibleWith(other: Mod): boolean;
|
|
@@ -4861,10 +4981,7 @@ declare class ModHidden extends Mod implements IModApplicableToDroid, IModApplic
|
|
|
4861
4981
|
* The main object body will not fade when enabled.
|
|
4862
4982
|
*/
|
|
4863
4983
|
readonly onlyFadeApproachCircles: BooleanModSetting;
|
|
4864
|
-
|
|
4865
|
-
get droidScoreMultiplier(): number;
|
|
4866
|
-
get migrationDroidScoreMultiplier(): number;
|
|
4867
|
-
get osuScoreMultiplier(): number;
|
|
4984
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4868
4985
|
applyToBeatmap(beatmap: IBeatmap): void;
|
|
4869
4986
|
toString(): string;
|
|
4870
4987
|
}
|
|
@@ -4884,10 +5001,6 @@ declare class ModMagnetised extends Mod implements IModApplicableToOsu {
|
|
|
4884
5001
|
readonly attractionStrength: DecimalModSetting;
|
|
4885
5002
|
}
|
|
4886
5003
|
|
|
4887
|
-
declare class AxesModSetting extends ModSetting<Exclude<Axes, Axes.None>> {
|
|
4888
|
-
load(settings: Record<string, unknown>): void;
|
|
4889
|
-
save(settings: Record<string, unknown>): void;
|
|
4890
|
-
}
|
|
4891
5004
|
/**
|
|
4892
5005
|
* Represents the Mirror mod.
|
|
4893
5006
|
*/
|
|
@@ -4896,27 +5009,17 @@ declare class ModMirror extends Mod implements IModApplicableToDroid, IModApplic
|
|
|
4896
5009
|
readonly acronym = "MR";
|
|
4897
5010
|
readonly droidRanked = false;
|
|
4898
5011
|
readonly isDroidRelevant = true;
|
|
4899
|
-
readonly droidScoreMultiplier = 1;
|
|
4900
|
-
readonly migrationDroidScoreMultiplier = 1;
|
|
4901
5012
|
readonly osuRanked = false;
|
|
4902
5013
|
readonly isOsuRelevant = true;
|
|
4903
|
-
readonly osuScoreMultiplier = 1;
|
|
4904
5014
|
/**
|
|
4905
5015
|
* The axes to reflect the `HitObject`s along.
|
|
4906
5016
|
*/
|
|
4907
|
-
readonly flippedAxes:
|
|
4908
|
-
|
|
5017
|
+
readonly flippedAxes: EnumModSetting<Axes.X | Axes.Y | Axes.Both>;
|
|
5018
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4909
5019
|
applyToHitObject(_: Modes, hitObject: HitObject): void;
|
|
4910
5020
|
toString(): string;
|
|
4911
5021
|
}
|
|
4912
5022
|
|
|
4913
|
-
/**
|
|
4914
|
-
* Represents a `Mod` specific setting that is constrained to a range of integer values.
|
|
4915
|
-
*/
|
|
4916
|
-
declare class IntegerModSetting extends NumberModSetting {
|
|
4917
|
-
constructor(name: string, key: string | null, description: string, defaultValue: number, min?: number, max?: number);
|
|
4918
|
-
}
|
|
4919
|
-
|
|
4920
5023
|
/**
|
|
4921
5024
|
* Represents the Muted mod.
|
|
4922
5025
|
*/
|
|
@@ -4925,11 +5028,8 @@ declare class ModMuted extends Mod implements IModApplicableToDroid, IModApplica
|
|
|
4925
5028
|
readonly acronym = "MU";
|
|
4926
5029
|
readonly droidRanked = false;
|
|
4927
5030
|
readonly isDroidRelevant = true;
|
|
4928
|
-
readonly droidScoreMultiplier = 1;
|
|
4929
|
-
readonly migrationDroidScoreMultiplier = 1;
|
|
4930
5031
|
readonly osuRanked = true;
|
|
4931
5032
|
readonly isOsuRelevant = true;
|
|
4932
|
-
readonly osuScoreMultiplier = 1;
|
|
4933
5033
|
/**
|
|
4934
5034
|
* Increase volume as combo builds.
|
|
4935
5035
|
*/
|
|
@@ -4961,16 +5061,13 @@ declare class ModMuted extends Mod implements IModApplicableToDroid, IModApplica
|
|
|
4961
5061
|
*/
|
|
4962
5062
|
declare class ModNightCore extends ModRateAdjust implements IModApplicableToDroid, IModApplicableToOsuStable {
|
|
4963
5063
|
readonly acronym = "NC";
|
|
4964
|
-
readonly name = "
|
|
5064
|
+
readonly name = "Night Core";
|
|
4965
5065
|
readonly droidRanked = true;
|
|
4966
5066
|
readonly osuRanked = true;
|
|
4967
|
-
readonly osuScoreMultiplier = 1.12;
|
|
4968
5067
|
readonly bitwise: number;
|
|
4969
5068
|
readonly rate: number;
|
|
4970
|
-
|
|
5069
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4971
5070
|
get isDroidRelevant(): boolean;
|
|
4972
|
-
get droidScoreMultiplier(): number;
|
|
4973
|
-
get migrationDroidScoreMultiplier(): number;
|
|
4974
5071
|
get isOsuRelevant(): boolean;
|
|
4975
5072
|
}
|
|
4976
5073
|
|
|
@@ -4982,13 +5079,26 @@ declare class ModNoFail extends Mod implements IModApplicableToDroid, IModApplic
|
|
|
4982
5079
|
readonly name = "NoFail";
|
|
4983
5080
|
readonly droidRanked = true;
|
|
4984
5081
|
readonly isDroidRelevant = true;
|
|
4985
|
-
readonly droidScoreMultiplier = 0.5;
|
|
4986
|
-
readonly migrationDroidScoreMultiplier = 0.5;
|
|
4987
5082
|
readonly osuRanked = true;
|
|
4988
5083
|
readonly isOsuRelevant = true;
|
|
4989
|
-
readonly osuScoreMultiplier = 0.5;
|
|
4990
5084
|
readonly bitwise: number;
|
|
4991
|
-
|
|
5085
|
+
isCompatibleWith(other: Mod): boolean;
|
|
5086
|
+
}
|
|
5087
|
+
|
|
5088
|
+
/**
|
|
5089
|
+
* Represents the No Scope mod.
|
|
5090
|
+
*/
|
|
5091
|
+
declare class ModNoScope extends Mod implements IModApplicableToOsu {
|
|
5092
|
+
readonly acronym = "NS";
|
|
5093
|
+
readonly name = "No Scope";
|
|
5094
|
+
readonly osuRanked = true;
|
|
5095
|
+
readonly isOsuRelevant = true;
|
|
5096
|
+
readonly osuScoreMultiplier = 1;
|
|
5097
|
+
/**
|
|
5098
|
+
* The combo count at which the cursor becomes completely hidden.
|
|
5099
|
+
*/
|
|
5100
|
+
readonly hiddenComboCount: IntegerModSetting;
|
|
5101
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4992
5102
|
}
|
|
4993
5103
|
|
|
4994
5104
|
/**
|
|
@@ -5017,8 +5127,6 @@ declare class ModNoFail extends Mod implements IModApplicableToDroid, IModApplic
|
|
|
5017
5127
|
*/
|
|
5018
5128
|
declare class ModOldNightCore extends ModNightCore {
|
|
5019
5129
|
readonly rate: number;
|
|
5020
|
-
get droidScoreMultiplier(): number;
|
|
5021
|
-
get migrationDroidScoreMultiplier(): number;
|
|
5022
5130
|
}
|
|
5023
5131
|
|
|
5024
5132
|
/**
|
|
@@ -5029,13 +5137,10 @@ declare class ModPerfect extends Mod implements IModApplicableToDroid, IModAppli
|
|
|
5029
5137
|
readonly name = "Perfect";
|
|
5030
5138
|
readonly droidRanked = true;
|
|
5031
5139
|
readonly isDroidRelevant = true;
|
|
5032
|
-
readonly droidScoreMultiplier = 1;
|
|
5033
|
-
readonly migrationDroidScoreMultiplier = 1;
|
|
5034
5140
|
readonly osuRanked = true;
|
|
5035
5141
|
readonly isOsuRelevant = true;
|
|
5036
|
-
readonly osuScoreMultiplier = 1;
|
|
5037
5142
|
readonly bitwise: number;
|
|
5038
|
-
|
|
5143
|
+
isCompatibleWith(other: Mod): boolean;
|
|
5039
5144
|
}
|
|
5040
5145
|
|
|
5041
5146
|
/**
|
|
@@ -5046,8 +5151,6 @@ declare class ModPrecise extends Mod implements IModApplicableToDroid, IModAppli
|
|
|
5046
5151
|
readonly name = "Precise";
|
|
5047
5152
|
readonly droidRanked = true;
|
|
5048
5153
|
readonly isDroidRelevant = true;
|
|
5049
|
-
readonly droidScoreMultiplier = 1.06;
|
|
5050
|
-
readonly migrationDroidScoreMultiplier = 1.06;
|
|
5051
5154
|
applyToHitObject(mode: Modes, hitObject: HitObject): void;
|
|
5052
5155
|
}
|
|
5053
5156
|
|
|
@@ -5073,11 +5176,8 @@ declare class ModRandom extends Mod implements IModApplicableToDroid, IModApplic
|
|
|
5073
5176
|
readonly acronym = "RD";
|
|
5074
5177
|
readonly droidRanked = false;
|
|
5075
5178
|
readonly isDroidRelevant = true;
|
|
5076
|
-
readonly droidScoreMultiplier = 1;
|
|
5077
|
-
readonly migrationDroidScoreMultiplier = 1;
|
|
5078
5179
|
readonly osuRanked = false;
|
|
5079
5180
|
readonly isOsuRelevant = true;
|
|
5080
|
-
readonly osuScoreMultiplier = 1;
|
|
5081
5181
|
/**
|
|
5082
5182
|
* The seed to use.
|
|
5083
5183
|
*/
|
|
@@ -5103,30 +5203,6 @@ declare class ModRandom extends Mod implements IModApplicableToDroid, IModApplic
|
|
|
5103
5203
|
toString(): string;
|
|
5104
5204
|
}
|
|
5105
5205
|
|
|
5106
|
-
/**
|
|
5107
|
-
* Helper class for `Mod`s related to track rate adjustments.
|
|
5108
|
-
*/
|
|
5109
|
-
declare class ModRateAdjustHelper {
|
|
5110
|
-
/**
|
|
5111
|
-
* The multiplier for the track's playback rate.
|
|
5112
|
-
*/
|
|
5113
|
-
readonly trackRateMultiplier: number;
|
|
5114
|
-
/**
|
|
5115
|
-
* The osu!droid score multiplier of this `Mod`.
|
|
5116
|
-
*/
|
|
5117
|
-
get droidScoreMultiplier(): number;
|
|
5118
|
-
/**
|
|
5119
|
-
* The score multiplier used when reverse-engineering raw scores from stored total score with
|
|
5120
|
-
* multiplier during database migration for osu!droid. Defaults to {@link droidScoreMultiplier}.
|
|
5121
|
-
*
|
|
5122
|
-
* **If {@link droidScoreMultiplier} is changed in the future, this must be changed in the affected `Mod`
|
|
5123
|
-
* subclass to return the old formula, so scores that need to be migrated on-fly are divided by the correct
|
|
5124
|
-
* historical multiplier**.
|
|
5125
|
-
*/
|
|
5126
|
-
get migrationDroidScoreMultiplier(): number;
|
|
5127
|
-
constructor(trackRateMultiplier: number);
|
|
5128
|
-
}
|
|
5129
|
-
|
|
5130
5206
|
/**
|
|
5131
5207
|
* Represents the ReallyEasy mod.
|
|
5132
5208
|
*/
|
|
@@ -5135,8 +5211,6 @@ declare class ModReallyEasy extends Mod implements IModApplicableToDroid, IModAp
|
|
|
5135
5211
|
readonly name = "Really Easy";
|
|
5136
5212
|
readonly droidRanked = false;
|
|
5137
5213
|
readonly isDroidRelevant = true;
|
|
5138
|
-
readonly droidScoreMultiplier = 0.4;
|
|
5139
|
-
readonly migrationDroidScoreMultiplier = 0.4;
|
|
5140
5214
|
applyToDifficultyWithMods(mode: Modes, difficulty: BeatmapDifficulty, mods: ModMap): void;
|
|
5141
5215
|
isCompatibleWith(other: Mod): boolean;
|
|
5142
5216
|
}
|
|
@@ -5149,13 +5223,26 @@ declare class ModRelax extends Mod implements IModApplicableToDroid, IModApplica
|
|
|
5149
5223
|
readonly name = "Relax";
|
|
5150
5224
|
readonly droidRanked = false;
|
|
5151
5225
|
readonly isDroidRelevant = true;
|
|
5152
|
-
readonly droidScoreMultiplier = 0.001;
|
|
5153
|
-
readonly migrationDroidScoreMultiplier = 0.001;
|
|
5154
5226
|
readonly osuRanked = false;
|
|
5155
5227
|
readonly isOsuRelevant = true;
|
|
5156
|
-
readonly osuScoreMultiplier = 0;
|
|
5157
5228
|
readonly bitwise: number;
|
|
5158
|
-
|
|
5229
|
+
isCompatibleWith(other: Mod): boolean;
|
|
5230
|
+
}
|
|
5231
|
+
|
|
5232
|
+
/**
|
|
5233
|
+
* Represents the Repel mod.
|
|
5234
|
+
*/
|
|
5235
|
+
declare class ModRepel extends Mod implements IModApplicableToOsu {
|
|
5236
|
+
readonly acronym = "RP";
|
|
5237
|
+
readonly name = "Repel";
|
|
5238
|
+
readonly osuRanked = false;
|
|
5239
|
+
readonly isOsuRelevant = true;
|
|
5240
|
+
readonly osuScoreMultiplier = 1;
|
|
5241
|
+
/**
|
|
5242
|
+
* How strong the repulsion is.
|
|
5243
|
+
*/
|
|
5244
|
+
readonly repulsionStrength: DecimalModSetting;
|
|
5245
|
+
isCompatibleWith(other: Mod): boolean;
|
|
5159
5246
|
}
|
|
5160
5247
|
|
|
5161
5248
|
/**
|
|
@@ -5173,8 +5260,6 @@ declare class ModReplayV6 extends Mod implements IModApplicableToDroid, IModAppl
|
|
|
5173
5260
|
readonly userPlayable = false;
|
|
5174
5261
|
readonly droidRanked = false;
|
|
5175
5262
|
readonly isDroidRelevant = true;
|
|
5176
|
-
readonly droidScoreMultiplier = 1;
|
|
5177
|
-
readonly migrationDroidScoreMultiplier = 1;
|
|
5178
5263
|
readonly facilitateAdjustment = true;
|
|
5179
5264
|
applyToBeatmap(beatmap: IBeatmap): void;
|
|
5180
5265
|
private revertObjectScale;
|
|
@@ -5185,17 +5270,26 @@ declare class ModReplayV6 extends Mod implements IModApplicableToDroid, IModAppl
|
|
|
5185
5270
|
*/
|
|
5186
5271
|
declare class ModScoreV2 extends Mod implements IModApplicableToDroid, IModApplicableToOsuStable {
|
|
5187
5272
|
readonly acronym = "V2";
|
|
5188
|
-
readonly name = "
|
|
5273
|
+
readonly name = "Score V2";
|
|
5189
5274
|
readonly droidRanked = false;
|
|
5190
5275
|
readonly isDroidRelevant = true;
|
|
5191
|
-
readonly droidScoreMultiplier = 1;
|
|
5192
|
-
readonly migrationDroidScoreMultiplier = 1;
|
|
5193
5276
|
readonly osuRanked = false;
|
|
5194
5277
|
readonly isOsuRelevant = true;
|
|
5195
|
-
readonly osuScoreMultiplier = 1;
|
|
5196
5278
|
readonly bitwise: number;
|
|
5197
5279
|
}
|
|
5198
5280
|
|
|
5281
|
+
/**
|
|
5282
|
+
* Represents the Single Tap mod.
|
|
5283
|
+
*/
|
|
5284
|
+
declare class ModSingleTap extends Mod implements IModApplicableToOsu {
|
|
5285
|
+
readonly acronym = "SG";
|
|
5286
|
+
readonly name = "Single Tap";
|
|
5287
|
+
readonly osuRanked = true;
|
|
5288
|
+
readonly isOsuRelevant = true;
|
|
5289
|
+
readonly osuScoreMultiplier = 1;
|
|
5290
|
+
isCompatibleWith(other: Mod): boolean;
|
|
5291
|
+
}
|
|
5292
|
+
|
|
5199
5293
|
/**
|
|
5200
5294
|
* Represents the SmallCircle mod.
|
|
5201
5295
|
*
|
|
@@ -5203,28 +5297,50 @@ declare class ModScoreV2 extends Mod implements IModApplicableToDroid, IModAppli
|
|
|
5203
5297
|
*/
|
|
5204
5298
|
declare class ModSmallCircle extends Mod implements IModApplicableToDroid, IModApplicableToDifficulty, IMigratableDroidMod {
|
|
5205
5299
|
readonly acronym = "SC";
|
|
5206
|
-
readonly name = "
|
|
5300
|
+
readonly name = "Small Circle";
|
|
5207
5301
|
readonly droidRanked = false;
|
|
5208
5302
|
readonly isDroidRelevant = true;
|
|
5209
|
-
readonly droidScoreMultiplier = 1;
|
|
5210
|
-
readonly migrationDroidScoreMultiplier = 1;
|
|
5211
5303
|
migrateDroidMod(difficulty: BeatmapDifficulty): Mod & IModApplicableToDroid;
|
|
5212
5304
|
applyToDifficulty(mode: Modes, difficulty: BeatmapDifficulty, adjustmentMods: ModMap): void;
|
|
5213
5305
|
isCompatibleWith(other: Mod): boolean;
|
|
5214
5306
|
}
|
|
5215
5307
|
|
|
5308
|
+
/**
|
|
5309
|
+
* Represents the Spin In mod.
|
|
5310
|
+
*/
|
|
5311
|
+
declare class ModSpinIn extends Mod implements IModApplicableToOsu {
|
|
5312
|
+
readonly acronym = "SI";
|
|
5313
|
+
readonly name = "Spin In";
|
|
5314
|
+
readonly osuRanked = false;
|
|
5315
|
+
readonly isOsuRelevant = true;
|
|
5316
|
+
readonly osuScoreMultiplier = 1;
|
|
5317
|
+
isCompatibleWith(other: Mod): boolean;
|
|
5318
|
+
}
|
|
5319
|
+
|
|
5216
5320
|
/**
|
|
5217
5321
|
* Represents the SpunOut mod.
|
|
5218
5322
|
*/
|
|
5219
5323
|
declare class ModSpunOut extends Mod implements IModApplicableToOsuStable {
|
|
5220
5324
|
readonly acronym = "SO";
|
|
5221
|
-
readonly name = "
|
|
5325
|
+
readonly name = "Spun Out";
|
|
5222
5326
|
readonly osuRanked = true;
|
|
5223
5327
|
readonly bitwise: number;
|
|
5224
5328
|
readonly isOsuRelevant = true;
|
|
5225
5329
|
readonly osuScoreMultiplier = 0.9;
|
|
5226
5330
|
}
|
|
5227
5331
|
|
|
5332
|
+
/**
|
|
5333
|
+
* Represents the Strict Tracking mod.
|
|
5334
|
+
*/
|
|
5335
|
+
declare class ModStrictTracking extends Mod implements IModApplicableToOsu {
|
|
5336
|
+
readonly acronym = "ST";
|
|
5337
|
+
readonly name = "Strict Tracking";
|
|
5338
|
+
readonly osuRanked = true;
|
|
5339
|
+
readonly isOsuRelevant = true;
|
|
5340
|
+
readonly osuScoreMultiplier = 1;
|
|
5341
|
+
isCompatibleWith(other: Mod): boolean;
|
|
5342
|
+
}
|
|
5343
|
+
|
|
5228
5344
|
/**
|
|
5229
5345
|
* Represents the SuddenDeath mod.
|
|
5230
5346
|
*/
|
|
@@ -5233,13 +5349,14 @@ declare class ModSuddenDeath extends Mod implements IModApplicableToDroid, IModA
|
|
|
5233
5349
|
readonly name = "Sudden Death";
|
|
5234
5350
|
readonly droidRanked = true;
|
|
5235
5351
|
readonly isDroidRelevant = true;
|
|
5236
|
-
readonly droidScoreMultiplier = 1;
|
|
5237
|
-
readonly migrationDroidScoreMultiplier = 1;
|
|
5238
5352
|
readonly osuRanked = true;
|
|
5239
5353
|
readonly isOsuRelevant = true;
|
|
5240
|
-
readonly osuScoreMultiplier = 1;
|
|
5241
5354
|
readonly bitwise: number;
|
|
5242
|
-
|
|
5355
|
+
/**
|
|
5356
|
+
* Whether a miss on a slider's tail should also trigger a fail.
|
|
5357
|
+
*/
|
|
5358
|
+
readonly failOnSliderTail: BooleanModSetting;
|
|
5359
|
+
isCompatibleWith(other: Mod): boolean;
|
|
5243
5360
|
}
|
|
5244
5361
|
|
|
5245
5362
|
/**
|
|
@@ -5250,11 +5367,64 @@ declare class ModSynesthesia extends Mod implements IModApplicableToDroid, IModA
|
|
|
5250
5367
|
readonly acronym = "SY";
|
|
5251
5368
|
readonly droidRanked = false;
|
|
5252
5369
|
readonly isDroidRelevant = true;
|
|
5253
|
-
readonly droidScoreMultiplier = 0.8;
|
|
5254
|
-
readonly migrationDroidScoreMultiplier = 0.8;
|
|
5255
5370
|
readonly osuRanked = false;
|
|
5256
5371
|
readonly isOsuRelevant = true;
|
|
5257
|
-
|
|
5372
|
+
}
|
|
5373
|
+
|
|
5374
|
+
/**
|
|
5375
|
+
* Represents the Target Practice mod.
|
|
5376
|
+
*/
|
|
5377
|
+
declare class ModTargetPractice extends Mod implements IModApplicableToOsu, IModApplicableToBeatmap, IModApplicableToDifficulty {
|
|
5378
|
+
readonly acronym = "TP";
|
|
5379
|
+
readonly name = "Target Practice";
|
|
5380
|
+
readonly osuRanked = false;
|
|
5381
|
+
readonly isOsuRelevant = true;
|
|
5382
|
+
readonly osuScoreMultiplier = 1;
|
|
5383
|
+
/**
|
|
5384
|
+
* Jump distance for circles in the last combo.
|
|
5385
|
+
*/
|
|
5386
|
+
private static readonly maxBaseDistance;
|
|
5387
|
+
/**
|
|
5388
|
+
* The maximum allowed jump distance after multipliers are applied.
|
|
5389
|
+
*/
|
|
5390
|
+
private static readonly distanceCap;
|
|
5391
|
+
/**
|
|
5392
|
+
* The extent of rotation towards playfield centre when a circle is near the edge.
|
|
5393
|
+
*/
|
|
5394
|
+
private static readonly edgeRotationMultiplier;
|
|
5395
|
+
/**
|
|
5396
|
+
* Number of recent circles to check for overlap.
|
|
5397
|
+
*/
|
|
5398
|
+
private static readonly overlapCheckCount;
|
|
5399
|
+
/**
|
|
5400
|
+
* Acceptable difference for timing comparisons.
|
|
5401
|
+
*/
|
|
5402
|
+
private static readonly timingPrecision;
|
|
5403
|
+
/**
|
|
5404
|
+
* Use a custom seed instead of a random one.
|
|
5405
|
+
*/
|
|
5406
|
+
readonly seed: NullableIntegerModSetting;
|
|
5407
|
+
/**
|
|
5408
|
+
* Whether a metronome beat should play in the background.
|
|
5409
|
+
*/
|
|
5410
|
+
readonly metronome: BooleanModSetting;
|
|
5411
|
+
isCompatibleWith(other: Mod): boolean;
|
|
5412
|
+
applyToDifficulty(_: Modes, difficulty: BeatmapDifficulty): void;
|
|
5413
|
+
applyToBeatmap(beatmap: IBeatmap): void;
|
|
5414
|
+
private generateBeats;
|
|
5415
|
+
private getBeatsForTimingPoint;
|
|
5416
|
+
private isInsideBreakPeriod;
|
|
5417
|
+
private determineNewComboBoundaries;
|
|
5418
|
+
private getClosestPrecedingComboIndex;
|
|
5419
|
+
private addHitSamples;
|
|
5420
|
+
private getClosestObject;
|
|
5421
|
+
private randomizeCirclePos;
|
|
5422
|
+
private checkForOverlap;
|
|
5423
|
+
private clampToPlayfield;
|
|
5424
|
+
private mapRange;
|
|
5425
|
+
private almostBigger;
|
|
5426
|
+
private definitelyBigger;
|
|
5427
|
+
private almostEquals;
|
|
5258
5428
|
}
|
|
5259
5429
|
|
|
5260
5430
|
/**
|
|
@@ -5283,7 +5453,7 @@ declare abstract class ModTimeRamp extends Mod implements IModApplicableToBeatma
|
|
|
5283
5453
|
protected get migrationDroidScoreMultiplier(): number;
|
|
5284
5454
|
private initialRateTime;
|
|
5285
5455
|
private finalRateTime;
|
|
5286
|
-
|
|
5456
|
+
isCompatibleWith(other: Mod): boolean;
|
|
5287
5457
|
applyToBeatmap(beatmap: IBeatmap): void;
|
|
5288
5458
|
applyToRate(time: number, rate: number): number;
|
|
5289
5459
|
private calculateScoreMultiplierAt;
|
|
@@ -5295,7 +5465,7 @@ declare abstract class ModTimeRamp extends Mod implements IModApplicableToBeatma
|
|
|
5295
5465
|
*/
|
|
5296
5466
|
declare class ModTouchDevice extends Mod implements IModApplicableToOsuStable {
|
|
5297
5467
|
readonly acronym = "TD";
|
|
5298
|
-
readonly name = "
|
|
5468
|
+
readonly name = "Touch Device";
|
|
5299
5469
|
readonly osuRanked = true;
|
|
5300
5470
|
readonly bitwise: number;
|
|
5301
5471
|
readonly isOsuRelevant = true;
|
|
@@ -5310,12 +5480,37 @@ declare class ModTraceable extends Mod implements IModApplicableToDroid, IModApp
|
|
|
5310
5480
|
readonly name = "Traceable";
|
|
5311
5481
|
readonly droidRanked = false;
|
|
5312
5482
|
readonly isDroidRelevant = true;
|
|
5313
|
-
readonly droidScoreMultiplier = 1.06;
|
|
5314
|
-
readonly migrationDroidScoreMultiplier = 1.06;
|
|
5315
5483
|
readonly osuRanked = true;
|
|
5316
5484
|
readonly isOsuRelevant = true;
|
|
5485
|
+
isCompatibleWith(other: Mod): boolean;
|
|
5486
|
+
}
|
|
5487
|
+
|
|
5488
|
+
/**
|
|
5489
|
+
* Represents the Transform mod.
|
|
5490
|
+
*/
|
|
5491
|
+
declare class ModTransform extends Mod implements IModApplicableToOsu {
|
|
5492
|
+
readonly acronym = "TR";
|
|
5493
|
+
readonly name = "Transform";
|
|
5494
|
+
readonly osuRanked = false;
|
|
5495
|
+
readonly isOsuRelevant = true;
|
|
5317
5496
|
readonly osuScoreMultiplier = 1;
|
|
5318
|
-
|
|
5497
|
+
isCompatibleWith(other: Mod): boolean;
|
|
5498
|
+
}
|
|
5499
|
+
|
|
5500
|
+
/**
|
|
5501
|
+
* Represents the Wiggle mod.
|
|
5502
|
+
*/
|
|
5503
|
+
declare class ModWiggle extends Mod implements IModApplicableToOsu {
|
|
5504
|
+
readonly acronym = "WG";
|
|
5505
|
+
readonly name = "Wiggle";
|
|
5506
|
+
readonly osuRanked = false;
|
|
5507
|
+
readonly isOsuRelevant = true;
|
|
5508
|
+
readonly osuScoreMultiplier = 1;
|
|
5509
|
+
/**
|
|
5510
|
+
* Multiplier applied to the wiggling strength.
|
|
5511
|
+
*/
|
|
5512
|
+
readonly strength: DecimalModSetting;
|
|
5513
|
+
isCompatibleWith(other: Mod): boolean;
|
|
5319
5514
|
}
|
|
5320
5515
|
|
|
5321
5516
|
/**
|
|
@@ -5328,9 +5523,6 @@ declare class ModWindDown extends ModTimeRamp implements IModApplicableToDroid,
|
|
|
5328
5523
|
readonly isDroidRelevant = true;
|
|
5329
5524
|
readonly osuRanked = false;
|
|
5330
5525
|
readonly isOsuRelevant = true;
|
|
5331
|
-
readonly osuScoreMultiplier = 1;
|
|
5332
|
-
get droidScoreMultiplier(): number;
|
|
5333
|
-
get migrationDroidScoreMultiplier(): number;
|
|
5334
5526
|
readonly initialRate: DecimalModSetting;
|
|
5335
5527
|
readonly finalRate: DecimalModSetting;
|
|
5336
5528
|
constructor();
|
|
@@ -5346,14 +5538,30 @@ declare class ModWindUp extends ModTimeRamp implements IModApplicableToDroid, IM
|
|
|
5346
5538
|
readonly isDroidRelevant = true;
|
|
5347
5539
|
readonly osuRanked = false;
|
|
5348
5540
|
readonly isOsuRelevant = true;
|
|
5349
|
-
readonly osuScoreMultiplier = 1;
|
|
5350
|
-
get droidScoreMultiplier(): number;
|
|
5351
|
-
get migrationDroidScoreMultiplier(): number;
|
|
5352
5541
|
readonly initialRate: DecimalModSetting;
|
|
5353
5542
|
readonly finalRate: DecimalModSetting;
|
|
5354
5543
|
constructor();
|
|
5355
5544
|
}
|
|
5356
5545
|
|
|
5546
|
+
/**
|
|
5547
|
+
* Represents a transport-level failure of an API request (e.g., DNS failure, timeout,
|
|
5548
|
+
* connection refused) that persisted across every retry attempt.
|
|
5549
|
+
*
|
|
5550
|
+
* This is distinct from a received HTTP response with a non-2xx status code, which is
|
|
5551
|
+
* not an error at the transport level and is represented by a normal `RequestResponse`.
|
|
5552
|
+
*/
|
|
5553
|
+
declare class APIRequestError extends Error {
|
|
5554
|
+
readonly url: string;
|
|
5555
|
+
readonly attempts: number;
|
|
5556
|
+
/**
|
|
5557
|
+
* @param message The error message.
|
|
5558
|
+
* @param url The URL that was requested.
|
|
5559
|
+
* @param attempts The amount of attempts that were made before giving up.
|
|
5560
|
+
* @param cause The underlying error that was thrown on the final attempt.
|
|
5561
|
+
*/
|
|
5562
|
+
constructor(message: string, url: string, attempts: number, cause: unknown);
|
|
5563
|
+
}
|
|
5564
|
+
|
|
5357
5565
|
/**
|
|
5358
5566
|
* Available genres in an online osu! beatmap.
|
|
5359
5567
|
*/
|
|
@@ -5396,17 +5604,45 @@ declare enum BeatmapLanguage {
|
|
|
5396
5604
|
}
|
|
5397
5605
|
|
|
5398
5606
|
/**
|
|
5399
|
-
*
|
|
5607
|
+
* Wraps the `fetch` response an API request obtained, pairing it with the pre-read
|
|
5608
|
+
* request body and the amount of attempts it took to obtain it.
|
|
5609
|
+
*
|
|
5610
|
+
* The body is read out once, eagerly, rather than lazily from the underlying `Response`
|
|
5611
|
+
* itself, since a `fetch` response body stream can only be consumed once - reading it
|
|
5612
|
+
* eagerly avoids that footgun and lets `data` be read as many times as needed.
|
|
5400
5613
|
*/
|
|
5401
|
-
|
|
5614
|
+
declare class RequestResponse {
|
|
5615
|
+
private readonly response;
|
|
5616
|
+
readonly data: Buffer;
|
|
5617
|
+
readonly attempts: number;
|
|
5402
5618
|
/**
|
|
5403
|
-
* The result
|
|
5619
|
+
* @param response The raw `fetch` response this result was obtained from.
|
|
5620
|
+
* @param data The result of the API request, already read out of `response`'s body.
|
|
5621
|
+
* @param attempts The amount of attempts it took to obtain this response.
|
|
5404
5622
|
*/
|
|
5405
|
-
|
|
5623
|
+
constructor(response: Response, data: Buffer, attempts: number);
|
|
5406
5624
|
/**
|
|
5407
5625
|
* The status code of the API request.
|
|
5408
5626
|
*/
|
|
5409
|
-
|
|
5627
|
+
get statusCode(): number;
|
|
5628
|
+
/**
|
|
5629
|
+
* The status text of the API request (e.g., "Too Many Requests" for status code 429).
|
|
5630
|
+
*/
|
|
5631
|
+
get statusText(): string;
|
|
5632
|
+
/**
|
|
5633
|
+
* The final URL of the API request, after any redirects.
|
|
5634
|
+
*/
|
|
5635
|
+
get url(): string;
|
|
5636
|
+
/**
|
|
5637
|
+
* The response headers of the API request.
|
|
5638
|
+
*/
|
|
5639
|
+
get headers(): Headers;
|
|
5640
|
+
/**
|
|
5641
|
+
* Formats the status code, status text, and (if present) `Retry-After` header of
|
|
5642
|
+
* this response into a human-readable diagnostic string, e.g.
|
|
5643
|
+
* `"429 Too Many Requests (Retry-After: 30)"`.
|
|
5644
|
+
*/
|
|
5645
|
+
describeFailure(): string;
|
|
5410
5646
|
}
|
|
5411
5647
|
|
|
5412
5648
|
/**
|
|
@@ -5441,7 +5677,6 @@ declare abstract class APIRequestBuilder<TEndpoint extends string> {
|
|
|
5441
5677
|
* The base URL of this builder.
|
|
5442
5678
|
*/
|
|
5443
5679
|
protected get baseURL(): string;
|
|
5444
|
-
private fetchAttempts;
|
|
5445
5680
|
/**
|
|
5446
5681
|
* Sets the API endpoint.
|
|
5447
5682
|
*
|
|
@@ -5458,10 +5693,24 @@ declare abstract class APIRequestBuilder<TEndpoint extends string> {
|
|
|
5458
5693
|
* Builds the URL to request the API.
|
|
5459
5694
|
*/
|
|
5460
5695
|
buildURL(): string;
|
|
5696
|
+
/**
|
|
5697
|
+
* The maximum amount of attempts `sendRequest` will make before giving up.
|
|
5698
|
+
*/
|
|
5699
|
+
private static readonly maxAttempts;
|
|
5700
|
+
private static backoffDelay;
|
|
5701
|
+
/**
|
|
5702
|
+
* Redacts the API key value from a URL string so it does not leak into logs or thrown errors.
|
|
5703
|
+
*/
|
|
5704
|
+
private static redactURL;
|
|
5461
5705
|
/**
|
|
5462
5706
|
* Sends a request to the API using built parameters.
|
|
5463
5707
|
*
|
|
5464
|
-
* If the request fails, it will be
|
|
5708
|
+
* If the request fails (a 5xx response, or the request itself throwing), it will be
|
|
5709
|
+
* retried up to 5 times with exponential backoff between attempts.
|
|
5710
|
+
*
|
|
5711
|
+
* Resolves with the response for any HTTP response actually received, whatever its
|
|
5712
|
+
* status code. Only rejects with an `APIRequestError` if every attempt's request threw
|
|
5713
|
+
* (e.g., DNS failure, timeout, connection refused) rather than receiving a response.
|
|
5465
5714
|
*/
|
|
5466
5715
|
sendRequest(): Promise<RequestResponse>;
|
|
5467
5716
|
/**
|
|
@@ -5815,23 +6064,143 @@ declare class OsuAPIRequestBuilder extends APIRequestBuilder<OsuAPIEndpoint> {
|
|
|
5815
6064
|
protected readonly APIkeyParam: string;
|
|
5816
6065
|
}
|
|
5817
6066
|
|
|
6067
|
+
type ModClass<T extends Mod = Mod> = abstract new (...args: any[]) => T;
|
|
6068
|
+
/**
|
|
6069
|
+
* Calculates the multiplier to be applied to score with a given combination of {@link Mod}s.
|
|
6070
|
+
*/
|
|
6071
|
+
declare class ScoreMultiplierCalculator {
|
|
6072
|
+
/**
|
|
6073
|
+
* The {@link BeatmapDifficulty} for the beatmap that the multipliers are calculated for. This must be the
|
|
6074
|
+
* {@link BeatmapDifficulty} for the beatmap **before** any {@link Mod} application.
|
|
6075
|
+
*/
|
|
6076
|
+
protected readonly difficulty: BeatmapDifficulty | null;
|
|
6077
|
+
private readonly singleMultipliers;
|
|
6078
|
+
private readonly combinationMultipliers;
|
|
6079
|
+
private readonly groupMultipliers;
|
|
6080
|
+
constructor(
|
|
6081
|
+
/**
|
|
6082
|
+
* The {@link BeatmapDifficulty} for the beatmap that the multipliers are calculated for. This must be the
|
|
6083
|
+
* {@link BeatmapDifficulty} for the beatmap **before** any {@link Mod} application.
|
|
6084
|
+
*/
|
|
6085
|
+
difficulty: BeatmapDifficulty | null);
|
|
6086
|
+
/**
|
|
6087
|
+
* Defines a score multiplier for the given {@link Mod}.
|
|
6088
|
+
*
|
|
6089
|
+
* @param modClass The class of the {@link Mod} to define a multiplier for.
|
|
6090
|
+
* @param multiplier The multiplier to apply when the {@link Mod} is present, or a function that returns the
|
|
6091
|
+
* multiplier based on the {@link Mod} instance.
|
|
6092
|
+
*/
|
|
6093
|
+
protected single<TMod extends Mod>(modClass: ModClass<TMod>, multiplier: number | ((mod: TMod) => number)): void;
|
|
6094
|
+
/**
|
|
6095
|
+
* Defines a score multiplier specific to when two {@link Mod}s are present. In that case, the combination
|
|
6096
|
+
* multiplier will be used instead of the individual single multipliers, if any.
|
|
6097
|
+
*
|
|
6098
|
+
* @param modClass1 The class of the first {@link Mod} to define a combination multiplier for.
|
|
6099
|
+
* @param modClass2 The class of the second {@link Mod} to define a combination multiplier for.
|
|
6100
|
+
* @param multiplier The multiplier to apply when both {@link Mod}s are present, or a function that returns the
|
|
6101
|
+
* multiplier based on the two {@link Mod} instances.
|
|
6102
|
+
*/
|
|
6103
|
+
protected combination<T1 extends Mod, T2 extends Mod>(modClass1: ModClass<T1>, modClass2: ModClass<T2>, multiplier: number | ((mod1: T1, mod2: T2) => number)): void;
|
|
6104
|
+
/**
|
|
6105
|
+
* Defines a score multiplier for all {@link Mod}s that are instances of {@link TMod}, applied as a group. The multiplier
|
|
6106
|
+
* function receives the full list of matched {@link Mod}s, allowing their combined state to influence the result.
|
|
6107
|
+
* Group multipliers take precedence over single multipliers for the same {@link Mod}s.
|
|
6108
|
+
*
|
|
6109
|
+
* @param modClass The class of the {@link Mod} to define a group multiplier for.
|
|
6110
|
+
* @param multiplier The multiplier to apply when one or more {@link Mod}s of the specified class are present, or a function
|
|
6111
|
+
* that returns the multiplier based on the list of matched {@link Mod} instances.
|
|
6112
|
+
*/
|
|
6113
|
+
protected group<TMod extends Mod>(modClass: ModClass<TMod>, multiplier: number | ((mods: TMod[]) => number)): void;
|
|
6114
|
+
/**
|
|
6115
|
+
* Calculates the multiplier to be applied to score with the given {@link Mod}s.
|
|
6116
|
+
*
|
|
6117
|
+
* @param mods The list of {@link Mod}s to calculate the score multiplier for.
|
|
6118
|
+
* @returns The calculated score multiplier.
|
|
6119
|
+
*/
|
|
6120
|
+
calculateFor(mods: Iterable<Mod>): number;
|
|
6121
|
+
/**
|
|
6122
|
+
* Multiplies two numbers together. This method is provided to allow subclasses to override the multiplication behavior if needed.
|
|
6123
|
+
*
|
|
6124
|
+
* @param a The first number to multiply.
|
|
6125
|
+
* @param b The second number to multiply.
|
|
6126
|
+
* @returns The product of the two numbers.
|
|
6127
|
+
*/
|
|
6128
|
+
protected multiply(a: number, b: number): number;
|
|
6129
|
+
}
|
|
6130
|
+
|
|
6131
|
+
/**
|
|
6132
|
+
* osu!droid legacy score multiplier calculator. This is used to calculate score during version 4 to 5 database migration
|
|
6133
|
+
* by separating the total score with mod multipliers from the multiplier itself. This allows future mod score multiplier
|
|
6134
|
+
* changes to be applied without database migrations.
|
|
6135
|
+
*/
|
|
6136
|
+
declare class DroidLegacyScoreMultiplierCalculator extends ScoreMultiplierCalculator {
|
|
6137
|
+
constructor(difficulty: BeatmapDifficulty | null);
|
|
6138
|
+
private difficultyAdjustMultiplier;
|
|
6139
|
+
private rateAdjustMultiplier;
|
|
6140
|
+
private rateMultiplier;
|
|
6141
|
+
private timeRampMultiplier;
|
|
6142
|
+
protected multiply(a: number, b: number): number;
|
|
6143
|
+
}
|
|
6144
|
+
|
|
6145
|
+
/**
|
|
6146
|
+
* Current osu!droid score multiplier calculator. This is used to calculate score after version 5 database migration.
|
|
6147
|
+
*/
|
|
6148
|
+
declare class DroidScoreMultiplierCalculator extends ScoreMultiplierCalculator {
|
|
6149
|
+
private appliedDifficulty;
|
|
6150
|
+
constructor(difficulty: BeatmapDifficulty | null);
|
|
6151
|
+
calculateFor(mods: Iterable<Mod>): number;
|
|
6152
|
+
private difficultyAdjustMultiplier;
|
|
6153
|
+
private preciseMultiplier;
|
|
6154
|
+
private hiddenMultiplier;
|
|
6155
|
+
private flashlightMultiplier;
|
|
6156
|
+
private rateAdjustMultiplier;
|
|
6157
|
+
private rateMultiplier;
|
|
6158
|
+
private timeRampMultiplier;
|
|
6159
|
+
}
|
|
6160
|
+
|
|
6161
|
+
/**
|
|
6162
|
+
* A score multiplier calculator for osu!stable.
|
|
6163
|
+
*/
|
|
6164
|
+
declare class OsuLegacyScoreMultiplierCalculator extends ScoreMultiplierCalculator {
|
|
6165
|
+
constructor();
|
|
6166
|
+
}
|
|
6167
|
+
|
|
6168
|
+
/**
|
|
6169
|
+
* A score multiplier calculator for osu!standard.
|
|
6170
|
+
*
|
|
6171
|
+
* Used before osu!lazer version 2026.621.0.
|
|
6172
|
+
*/
|
|
6173
|
+
declare class OsuScoreMultiplierCalculatorV1 extends ScoreMultiplierCalculator {
|
|
6174
|
+
constructor();
|
|
6175
|
+
private rateAdjustMultiplier;
|
|
6176
|
+
}
|
|
6177
|
+
|
|
6178
|
+
/**
|
|
6179
|
+
* A score multiplier calculator for osu!standard.
|
|
6180
|
+
*
|
|
6181
|
+
* Used for osu!lazer version 2026.621.0 and onwards.
|
|
6182
|
+
*/
|
|
6183
|
+
declare class OsuScoreMultiplierCalculatorV2 extends ScoreMultiplierCalculator {
|
|
6184
|
+
constructor(difficulty: BeatmapDifficulty);
|
|
6185
|
+
private easyMultiplier;
|
|
6186
|
+
private halfTimeMultiplier;
|
|
6187
|
+
private doubleTimeMultiplier;
|
|
6188
|
+
private hiddenMultiplier;
|
|
6189
|
+
private flashlightMultiplier;
|
|
6190
|
+
private difficultyAdjustMultiplier;
|
|
6191
|
+
private timeRampMultiplier;
|
|
6192
|
+
private deflateMultiplier;
|
|
6193
|
+
}
|
|
6194
|
+
|
|
5818
6195
|
/**
|
|
5819
6196
|
* Possible ranks that a score can have.
|
|
5820
6197
|
*/
|
|
5821
6198
|
type ScoreRank = "XH" | "SH" | "X" | "S" | "A" | "B" | "C" | "D";
|
|
5822
6199
|
|
|
5823
6200
|
/**
|
|
5824
|
-
*
|
|
6201
|
+
* Hit counts used to construct an {@link Accuracy}.
|
|
5825
6202
|
*/
|
|
5826
|
-
interface
|
|
5827
|
-
/**
|
|
5828
|
-
* The amount of objects in the beatmap.
|
|
5829
|
-
*/
|
|
5830
|
-
nobjects?: number;
|
|
5831
|
-
/**
|
|
5832
|
-
* The accuracy achieved.
|
|
5833
|
-
*/
|
|
5834
|
-
percent?: number;
|
|
6203
|
+
interface AccuracyHitCounts {
|
|
5835
6204
|
/**
|
|
5836
6205
|
* The amount of 300s achieved.
|
|
5837
6206
|
*/
|
|
@@ -5852,27 +6221,92 @@ interface AccuracyInformation {
|
|
|
5852
6221
|
/**
|
|
5853
6222
|
* An accuracy calculator that calculates accuracy based on given parameters.
|
|
5854
6223
|
*/
|
|
5855
|
-
declare class Accuracy
|
|
6224
|
+
declare class Accuracy {
|
|
6225
|
+
/**
|
|
6226
|
+
* The value {@link n300} holds when it was not specified and has not
|
|
6227
|
+
* been derived via {@link Accuracy.fromHitCounts} or {@link Accuracy.fromPercent}.
|
|
6228
|
+
*/
|
|
6229
|
+
private static readonly unresolvedN300;
|
|
6230
|
+
/**
|
|
6231
|
+
* The amount of 300s.
|
|
6232
|
+
*
|
|
6233
|
+
* If this is {@link Accuracy.unresolvedN300}, it means that `n300` was not
|
|
6234
|
+
* specified and has not been derived from `nobjects` or `percent` during
|
|
6235
|
+
* construction.
|
|
6236
|
+
*/
|
|
5856
6237
|
n300: number;
|
|
6238
|
+
/**
|
|
6239
|
+
* The amount of 100s.
|
|
6240
|
+
*/
|
|
5857
6241
|
n100: number;
|
|
6242
|
+
/**
|
|
6243
|
+
* The amount of 50s.
|
|
6244
|
+
*/
|
|
5858
6245
|
n50: number;
|
|
6246
|
+
/**
|
|
6247
|
+
* The amount of misses.
|
|
6248
|
+
*/
|
|
5859
6249
|
nmiss: number;
|
|
5860
6250
|
/**
|
|
5861
|
-
*
|
|
6251
|
+
* Whether {@link n300} holds an actual hit count.
|
|
6252
|
+
*
|
|
6253
|
+
* `false` if it was left unspecified and this instance was not constructed via
|
|
6254
|
+
* {@link Accuracy.fromHitCounts} or {@link Accuracy.fromPercent} to derive it.
|
|
6255
|
+
*/
|
|
6256
|
+
get isN300Resolved(): boolean;
|
|
6257
|
+
/**
|
|
6258
|
+
* Constructs an {@link Accuracy} from exact hit counts.
|
|
6259
|
+
*
|
|
6260
|
+
* Unlike {@link Accuracy.fromHitCounts}, this does not derive or clamp anything
|
|
6261
|
+
* against the amount of objects in a beatmap - the given counts are taken as-is.
|
|
6262
|
+
*
|
|
6263
|
+
* @param values The hit counts to construct this instance with.
|
|
6264
|
+
*/
|
|
6265
|
+
constructor(values?: AccuracyHitCounts);
|
|
6266
|
+
/**
|
|
6267
|
+
* Constructs an {@link Accuracy} from hit counts, deriving `n300` from `nobjects`
|
|
6268
|
+
* if it was not specified.
|
|
6269
|
+
*
|
|
6270
|
+
* `n300`, `n100`, `n50`, and `nmiss` are clamped so that they do not add up to
|
|
6271
|
+
* more than `nobjects`.
|
|
6272
|
+
*
|
|
6273
|
+
* @param values The hit counts to construct this instance with.
|
|
6274
|
+
* @param nobjects The amount of objects in the beatmap.
|
|
6275
|
+
*/
|
|
6276
|
+
static fromHitCounts(values: AccuracyHitCounts, nobjects: number): Accuracy;
|
|
6277
|
+
/**
|
|
6278
|
+
* Constructs an {@link Accuracy} by reverse-solving `n300`, `n100`, and `n50`
|
|
6279
|
+
* so that the resulting accuracy is the closest to the given accuracy percentage.
|
|
5862
6280
|
*
|
|
5863
|
-
*
|
|
5864
|
-
*
|
|
5865
|
-
*
|
|
6281
|
+
* @param percent The accuracy percentage to reverse-solve for.
|
|
6282
|
+
* @param nobjects The amount of objects in the beatmap.
|
|
6283
|
+
* @param nmiss The amount of misses achieved. Defaults to 0.
|
|
6284
|
+
*/
|
|
6285
|
+
static fromPercent(percent: number, nobjects: number, nmiss?: number): Accuracy;
|
|
6286
|
+
/**
|
|
6287
|
+
* Derives `n300` (if unspecified) from `nobjects`, then clamps `n300`,
|
|
6288
|
+
* `n100`, `n50`, and `nmiss` so that they do not add up to more than
|
|
6289
|
+
* `nobjects`.
|
|
6290
|
+
*
|
|
6291
|
+
* @param nobjects The amount of objects in the beatmap.
|
|
6292
|
+
*/
|
|
6293
|
+
private resolveFromHitCounts;
|
|
6294
|
+
/**
|
|
6295
|
+
* Reverse-solves `n100` and `n50` (and therefore `n300`) so that the
|
|
6296
|
+
* resulting accuracy is the closest to the given accuracy percentage.
|
|
5866
6297
|
*
|
|
5867
|
-
* @param
|
|
6298
|
+
* @param percent The accuracy percentage to reverse-solve for.
|
|
6299
|
+
* @param nobjects The amount of objects in the beatmap.
|
|
5868
6300
|
*/
|
|
5869
|
-
|
|
6301
|
+
private resolveFromPercent;
|
|
5870
6302
|
/**
|
|
5871
|
-
*
|
|
6303
|
+
* The accuracy value (0.0 - 1.0).
|
|
5872
6304
|
*
|
|
5873
|
-
*
|
|
6305
|
+
* `n300` must be resolved for this to be computable - either specify it directly
|
|
6306
|
+
* in the constructor, or construct this instance via {@link Accuracy.fromHitCounts}
|
|
6307
|
+
* or {@link Accuracy.fromPercent}. Otherwise, accessing this throws.
|
|
5874
6308
|
*/
|
|
5875
|
-
value(
|
|
6309
|
+
get value(): number;
|
|
5876
6310
|
/**
|
|
5877
6311
|
* Determines whether this accuracy instance is equal to another instance.
|
|
5878
6312
|
*
|
|
@@ -6228,25 +6662,6 @@ declare abstract class ModUtil {
|
|
|
6228
6662
|
* @returns The list of mods.
|
|
6229
6663
|
*/
|
|
6230
6664
|
static pcModbitsToMods(modbits: number): ModMap;
|
|
6231
|
-
/**
|
|
6232
|
-
* Calculates the score multiplier of the given mods and game mode.
|
|
6233
|
-
*
|
|
6234
|
-
* @param mods The mods to calculate the score multiplier for.
|
|
6235
|
-
* @param mode The game mode to calculate the score multiplier for.
|
|
6236
|
-
* @param difficulty The `BeatmapDifficulty` to apply to the mods. Needed for some mods to have an effect on
|
|
6237
|
-
* score multiplier (i.e., `ModDifficultyAdjust`).
|
|
6238
|
-
* @returns The score multiplier.
|
|
6239
|
-
*/
|
|
6240
|
-
static calculateScoreMultiplier(mods: Iterable<Mod>, mode: Modes, difficulty?: BeatmapDifficulty): number;
|
|
6241
|
-
/**
|
|
6242
|
-
* Calculates the score multiplier for the selected `Mod`s using `Mod.migrationDroidScoreMultiplier` instead of
|
|
6243
|
-
* `Mod.droidScoreMultiplier`. Use this when reverse-engineering raw scores from stored effective scores during migration.
|
|
6244
|
-
*
|
|
6245
|
-
* @param mods The selected `Mod`s.
|
|
6246
|
-
* @return The migration score multiplier.
|
|
6247
|
-
*/
|
|
6248
|
-
static calculateMigrationScoreMultiplier(mods: Iterable<Mod>): number;
|
|
6249
|
-
private static calculateScoreMultiplierInternal;
|
|
6250
6665
|
/**
|
|
6251
6666
|
* Serializes a list of `Mod`s.
|
|
6252
6667
|
*
|
|
@@ -6530,5 +6945,5 @@ declare abstract class Utils {
|
|
|
6530
6945
|
static sleep(duration: number): Promise<void>;
|
|
6531
6946
|
}
|
|
6532
6947
|
|
|
6533
|
-
export { Accuracy, Anchor, AnimationLoopType, AnimationStyle, Axes, BankHitSampleInfo, Beatmap, BeatmapBackground, BeatmapColor, BeatmapControlPoints, BeatmapConverter, BeatmapCountdown, BeatmapDecoder, BeatmapDifficulty, BeatmapEditor, BeatmapEncoder, BeatmapEvents, BeatmapGeneral, BeatmapGenre, BeatmapHitObjects, BeatmapLanguage, BeatmapMetadata, BeatmapOverlayPosition, BeatmapProcessor, BeatmapVideo, Bin, BlendingEquation, BlendingParameters, BlendingType, BooleanModSetting, BreakPoint, Brent, Chandrupatla, Circle, CircleSizeCalculator, Command, CommandLoop, CommandTimeline, CommandTimelineGroup, CommandTrigger, ControlPointManager, DecimalModSetting, DifficultyAdjustModSetting, DifficultyControlPoint, DifficultyControlPointManager, DroidAPIRequestBuilder, DroidHitWindow, DroidLegacyModConverter, DroidPlayableBeatmap, Easing, EditorGridSize, EffectControlPoint, EffectControlPointManager, EmptyHitWindow, ErrorFunction, FileHitSampleInfo, GameMode, HitObject, HitObjectGenerationUtils, HitResult, HitSampleInfo, HitSoundType, HitWindow, IntegerModSetting, Interpolation, IterativePoissonBinomial, MapInfo, MathUtils, Mod, ModApproachDifferent, ModAuto, ModAutopilot, ModBlinds, ModCustomSpeed, ModDeflate, ModDifficultyAdjust, ModDoubleTime, ModEasy, ModFlashlight, ModFreezeFrame, ModGrow, ModHalfTime, ModHardRock, ModHidden, ModMagnetised, ModMap, ModMirror, ModMuted, ModNightCore, ModNoFail, ModObjectScaleTween, ModOldNightCore, ModPerfect, ModPrecise, ModRandom, ModRateAdjust,
|
|
6534
|
-
export type {
|
|
6948
|
+
export { APIRequestError, Accuracy, AccuracyMode, Anchor, AnimationLoopType, AnimationStyle, Axes, BankHitSampleInfo, Beatmap, BeatmapBackground, BeatmapColor, BeatmapControlPoints, BeatmapConverter, BeatmapCountdown, BeatmapDecoder, BeatmapDifficulty, BeatmapEditor, BeatmapEncoder, BeatmapEvents, BeatmapGeneral, BeatmapGenre, BeatmapHitObjects, BeatmapLanguage, BeatmapMetadata, BeatmapOverlayPosition, BeatmapProcessor, BeatmapVideo, Bin, BlendingEquation, BlendingParameters, BlendingType, BooleanModSetting, BreakPoint, Brent, Chandrupatla, Circle, CircleSizeCalculator, Command, CommandLoop, CommandTimeline, CommandTimelineGroup, CommandTrigger, ControlPointManager, DecimalModSetting, DifficultyAdjustModSetting, DifficultyControlPoint, DifficultyControlPointManager, DroidAPIRequestBuilder, DroidHitWindow, DroidLegacyModConverter, DroidLegacyScoreMultiplierCalculator, DroidPlayableBeatmap, DroidScoreMultiplierCalculator, Easing, EditorGridSize, EffectControlPoint, EffectControlPointManager, EmptyHitWindow, EnumModSetting, ErrorFunction, FileHitSampleInfo, GameMode, HitObject, HitObjectGenerationUtils, HitResult, HitSampleInfo, HitSoundType, HitWindow, IntegerModSetting, Interpolation, IterativePoissonBinomial, MapInfo, MathUtils, Mod, ModAccuracyChallenge, ModAlternate, ModApproachDifferent, ModAuto, ModAutopilot, ModBarrelRoll, ModBlinds, ModBloom, ModBubbles, ModCinema, ModClassic, ModCustomSpeed, ModDaycore, ModDeflate, ModDepth, ModDifficultyAdjust, ModDoubleTime, ModEasy, ModFlashlight, ModFreezeFrame, ModGrow, ModHalfTime, ModHardRock, ModHidden, ModMagnetised, ModMap, ModMirror, ModMuted, ModNightCore, ModNoFail, ModNoScope, ModObjectScaleTween, ModOldNightCore, ModPerfect, ModPrecise, ModRandom, ModRateAdjust, ModReallyEasy, ModRelax, ModRepel, ModReplayV6, ModScoreV2, ModSetting, ModSingleTap, ModSmallCircle, ModSpinIn, ModSpunOut, ModStrictTracking, ModSuddenDeath, ModSynesthesia, ModTargetPractice, ModTimeRamp, ModTouchDevice, ModTraceable, ModTransform, ModUtil, ModWiggle, ModWindDown, ModWindUp, Modes, NormalDistribution, NullableDecimalModSetting, NullableIntegerModSetting, NumberModSetting, ObjectTypes, OsuAPIRequestBuilder, OsuHitWindow, OsuLegacyScoreMultiplierCalculator, OsuPlayableBeatmap, OsuScoreMultiplierCalculatorV1, OsuScoreMultiplierCalculatorV2, PathApproximator, PathType, PlayableBeatmap, Playfield, PoissonBinomial, Polynomial, PreciseDroidHitWindow, Precision, RGBColor, Random, RangeConstrainedModSetting, RankedStatus, RequestResponse, RotationDirection, SampleBank, SampleBankInfo, SampleControlPoint, SampleControlPointManager, ScoreMultiplierCalculator, SequenceHitSampleInfo, Slider, SliderHead, SliderNestedHitObject, SliderPath, SliderRepeat, SliderTail, SliderTick, Spinner, Storyboard, StoryboardAnimation, StoryboardCommandType, StoryboardDecoder, StoryboardElement, StoryboardEncoder, StoryboardEventType, StoryboardLayer, StoryboardLayerType, StoryboardParameterCommandType, StoryboardSample, StoryboardSprite, TimedHitSampleInfo, TimingControlPoint, TimingControlPointManager, UnadjustedOsuHitWindow, Utils, Vector2, Vector4, ZeroCrossingBracketing, normalize };
|
|
6949
|
+
export type { AccuracyHitCounts, ChandrupatlaOptions, CommandTimelineSelector, DroidAPIEndpoint, IBeatmap, ICommandTimeline, IMigratableDroidMod, IModApplicableToBeatmap, IModApplicableToDifficulty, IModApplicableToDifficultyWithMods, IModApplicableToDroid, IModApplicableToHitObject, IModApplicableToHitObjectWithMods, IModApplicableToOsu, IModApplicableToOsuStable, IModApplicableToTrackRate, IModFacilitatesAdjustment, If, ModSettingValueChange, ModSettingValueChangedListener, OmitType, OsuAPIEndpoint, OsuAPIResponse, PlaceableHitObject, RootBounds, ScoreRank, SerializedMod };
|