@rian8337/osu-difficulty-calculator 3.0.0-beta.20 → 3.0.0-beta.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/typings/index.d.ts +65 -65
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rian8337/osu-difficulty-calculator",
3
- "version": "3.0.0-beta.20",
3
+ "version": "3.0.0-beta.21",
4
4
  "description": "A module for calculating osu!standard beatmap difficulty and performance value with respect to the current difficulty and performance algorithm.",
5
5
  "keywords": [
6
6
  "osu",
@@ -35,5 +35,5 @@
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "3c931705c74b1f7132a6fb8eb647bfcc7b39df1c"
38
+ "gitHead": "59f33a842c7294a745b31071dac7cba0740647ef"
39
39
  }
@@ -30,6 +30,70 @@ interface CalculationOptions {
30
30
  stats?: MapStats;
31
31
  }
32
32
 
33
+ /**
34
+ * Holds data that can be used to calculate performance points.
35
+ */
36
+ interface DifficultyAttributes {
37
+ /**
38
+ * The mods which were applied to the beatmap.
39
+ */
40
+ mods: Mod[];
41
+ /**
42
+ * The combined star rating of all skills.
43
+ */
44
+ starRating: number;
45
+ /**
46
+ * The maximum achievable combo.
47
+ */
48
+ maxCombo: number;
49
+ /**
50
+ * The difficulty corresponding to the aim skill.
51
+ */
52
+ aimDifficulty: number;
53
+ /**
54
+ * The difficulty corresponding to the flashlight skill.
55
+ */
56
+ flashlightDifficulty: number;
57
+ /**
58
+ * The number of clickable objects weighted by difficulty.
59
+ *
60
+ * Related to speed/tap difficulty.
61
+ */
62
+ speedNoteCount: number;
63
+ /**
64
+ * Describes how much of aim difficulty is contributed to by hitcircles or sliders.
65
+ *
66
+ * A value closer to 1 indicates most of aim difficulty is contributed by hitcircles.
67
+ *
68
+ * A value closer to 0 indicates most of aim difficulty is contributed by sliders.
69
+ */
70
+ sliderFactor: number;
71
+ /**
72
+ * The perceived approach rate inclusive of rate-adjusting mods (DT/HT/etc).
73
+ *
74
+ * Rate-adjusting mods don't directly affect the approach rate difficulty value, but have a perceived effect as a result of adjusting audio timing.
75
+ */
76
+ approachRate: number;
77
+ /**
78
+ * The perceived overall difficulty inclusive of rate-adjusting mods (DT/HT/etc), based on osu!standard judgement.
79
+ *
80
+ * Rate-adjusting mods don't directly affect the overall difficulty value, but have a perceived effect as a result of adjusting audio timing.
81
+ */
82
+ overallDifficulty: number;
83
+ /**
84
+ * The number of hitcircles in the beatmap.
85
+ */
86
+ hitCircleCount: number;
87
+ /**
88
+ * The number of sliders in the beatmap.
89
+ */
90
+ sliderCount: number;
91
+ /**
92
+ * The number of spinners in the beatmap.
93
+ */
94
+ spinnerCount: number;
95
+ }
96
+
33
97
  /**
34
98
  * Represents options for difficulty calculation.
35
99
  */
@@ -311,70 +375,6 @@ declare abstract class StrainSkill extends Skill {
311
375
  private startNewSectionFrom;
312
376
  }
313
377
 
314
- /**
315
- * Holds data that can be used to calculate performance points.
316
- */
317
- interface DifficultyAttributes {
318
- /**
319
- * The mods which were applied to the beatmap.
320
- */
321
- mods: Mod[];
322
- /**
323
- * The combined star rating of all skills.
324
- */
325
- starRating: number;
326
- /**
327
- * The maximum achievable combo.
328
- */
329
- maxCombo: number;
330
- /**
331
- * The difficulty corresponding to the aim skill.
332
- */
333
- aimDifficulty: number;
334
- /**
335
- * The difficulty corresponding to the flashlight skill.
336
- */
337
- flashlightDifficulty: number;
338
- /**
339
- * The number of clickable objects weighted by difficulty.
340
- *
341
- * Related to speed/tap difficulty.
342
- */
343
- speedNoteCount: number;
344
- /**
345
- * Describes how much of aim difficulty is contributed to by hitcircles or sliders.
346
- *
347
- * A value closer to 1 indicates most of aim difficulty is contributed by hitcircles.
348
- *
349
- * A value closer to 0 indicates most of aim difficulty is contributed by sliders.
350
- */
351
- sliderFactor: number;
352
- /**
353
- * The perceived approach rate inclusive of rate-adjusting mods (DT/HT/etc).
354
- *
355
- * Rate-adjusting mods don't directly affect the approach rate difficulty value, but have a perceived effect as a result of adjusting audio timing.
356
- */
357
- approachRate: number;
358
- /**
359
- * The perceived overall difficulty inclusive of rate-adjusting mods (DT/HT/etc), based on osu!standard judgement.
360
- *
361
- * Rate-adjusting mods don't directly affect the overall difficulty value, but have a perceived effect as a result of adjusting audio timing.
362
- */
363
- overallDifficulty: number;
364
- /**
365
- * The number of hitcircles in the beatmap.
366
- */
367
- hitCircleCount: number;
368
- /**
369
- * The number of sliders in the beatmap.
370
- */
371
- sliderCount: number;
372
- /**
373
- * The number of spinners in the beatmap.
374
- */
375
- spinnerCount: number;
376
- }
377
-
378
378
  /**
379
379
  * Represents the strain peaks of various calculated difficulties.
380
380
  */
@@ -1384,4 +1384,4 @@ declare abstract class OsuSpeedEvaluator extends SpeedEvaluator {
1384
1384
  static evaluateDifficultyOf(current: DifficultyHitObject, greatWindow: number): number;
1385
1385
  }
1386
1386
 
1387
- export { AimEvaluator, CalculationOptions, DifficultyCalculationOptions, DifficultyCalculator, DifficultyHitObject, DifficultyHitObjectCreator, DroidAim, DroidAimEvaluator, DroidDifficultyCalculator, DroidFlashlight, DroidFlashlightEvaluator, DroidPerformanceCalculator, DroidRhythm, DroidRhythmEvaluator, DroidTap, DroidTapEvaluator, DroidVisual, DroidVisualEvaluator, FlashlightEvaluator, MapStars, OsuAim, OsuAimEvaluator, OsuDifficultyCalculator, OsuFlashlight, OsuFlashlightEvaluator, OsuPerformanceCalculator, OsuRhythmEvaluator, OsuSpeed, OsuSpeedEvaluator, PerformanceCalculationOptions, PerformanceCalculator, RhythmEvaluator, SpeedEvaluator, StrainPeaks };
1387
+ export { AimEvaluator, CalculationOptions, DifficultyAttributes, DifficultyCalculationOptions, DifficultyCalculator, DifficultyHitObject, DifficultyHitObjectCreator, DroidAim, DroidAimEvaluator, DroidDifficultyAttributes, DroidDifficultyCalculator, DroidFlashlight, DroidFlashlightEvaluator, DroidPerformanceCalculator, DroidRhythm, DroidRhythmEvaluator, DroidTap, DroidTapEvaluator, DroidVisual, DroidVisualEvaluator, FlashlightEvaluator, MapStars, OsuAim, OsuAimEvaluator, OsuDifficultyAttributes, OsuDifficultyCalculator, OsuFlashlight, OsuFlashlightEvaluator, OsuPerformanceCalculator, OsuRhythmEvaluator, OsuSpeed, OsuSpeedEvaluator, PerformanceCalculationOptions, PerformanceCalculator, RhythmEvaluator, SpeedEvaluator, StrainPeaks };