@rian8337/osu-base 4.0.0-beta.1 → 4.0.0-beta.102
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 +9968 -4075
- package/package.json +10 -16
- package/typings/index.d.ts +5245 -2282
- package/dist/index.js.map +0 -1
package/README.md
CHANGED
|
@@ -6,25 +6,25 @@ The base module required for all my osu! modules.
|
|
|
6
6
|
|
|
7
7
|
This module serves as the foundation of all my osu! modules. It provides multiple features such as:
|
|
8
8
|
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
-
|
|
9
|
+
- Accuracy calculator and estimator
|
|
10
|
+
- Calculate an accuracy value from hit values or estimate hit values from an accuracy value.
|
|
11
|
+
- API request builders
|
|
12
|
+
- Supports osu!droid API and osu! API v1.
|
|
13
|
+
- Beatmap decoder
|
|
14
|
+
- Fully decodes an `.osu` file into a `Beatmap` object that is easier to work with.
|
|
15
|
+
- Beatmap encoder
|
|
16
|
+
- Will encode a beatmap into an `.osu` file with format version 14.
|
|
17
|
+
- Hit window converters
|
|
18
|
+
- Convert an OD value to its hit window values and vice versa.
|
|
19
|
+
- Map statistics calculator
|
|
20
|
+
- Calculate a given map statistics (CS, AR, OD, and HP) with modifications applied (mods, custom speed multiplier, etc).
|
|
21
|
+
- Mod conversion utilities
|
|
22
|
+
- Convert a mod combination string in osu!droid (i.e. `hr`) and osu!standard (i.e. `HDHR`) into an array of mods.
|
|
23
|
+
- Available mods can be looked at the documentation.
|
|
24
|
+
- Storyboard decoder
|
|
25
|
+
- Supports `.osb` and `.osu` files.
|
|
26
|
+
- Storyboard encoder
|
|
27
|
+
- Storyboard will be encoded into a format that is supported by `.osu` files (that is, all variable instances will be replaced).
|
|
28
28
|
|
|
29
29
|
# Specific Requirements
|
|
30
30
|
|
|
@@ -245,10 +245,10 @@ Every value is optional.
|
|
|
245
245
|
|
|
246
246
|
You can specify more options to alter the final result of the calculation:
|
|
247
247
|
|
|
248
|
-
-
|
|
249
|
-
-
|
|
250
|
-
-
|
|
251
|
-
-
|
|
248
|
+
- Mods
|
|
249
|
+
- Custom speed multiplier
|
|
250
|
+
- Force AR (whether to keep the AR at its original value)
|
|
251
|
+
- Game mode (switch between osu!droid and osu!standard, defaults to osu!standard)
|
|
252
252
|
|
|
253
253
|
```js
|
|
254
254
|
import { MapStats, ModUtil, modes } from "@rian8337/osu-base";
|
|
@@ -261,7 +261,7 @@ const stats = new MapStats({
|
|
|
261
261
|
mods: ModUtil.pcStringToMods("HDHR"),
|
|
262
262
|
speedMultiplier: 1.25,
|
|
263
263
|
isForceAR: true,
|
|
264
|
-
}).calculate({ mode:
|
|
264
|
+
}).calculate({ mode: Modes.Osu });
|
|
265
265
|
|
|
266
266
|
console.log(stats);
|
|
267
267
|
```
|