@rian8337/osu-base 4.0.0-beta.13 → 4.0.0-beta.14

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 CHANGED
@@ -2438,6 +2438,24 @@ class ModUtil {
2438
2438
  }
2439
2439
  return this.processParsingOptions(finalMods, options);
2440
2440
  }
2441
+ /**
2442
+ * Converts an array of mods into its osu!droid string counterpart.
2443
+ *
2444
+ * @param mods The array of mods to convert.
2445
+ * @returns The string representing the mods in osu!droid.
2446
+ */
2447
+ static modsToDroidString(mods) {
2448
+ return mods.reduce((a, v) => a + v.droidString, "");
2449
+ }
2450
+ /**
2451
+ * Converts an array of mods into its osu!standard string counterpart.
2452
+ *
2453
+ * @param mods The array of mods to convert.
2454
+ * @returns The string representing the mods in osu!standard.
2455
+ */
2456
+ static modsToOsuString(mods) {
2457
+ return mods.reduce((a, v) => a + v.acronym, "");
2458
+ }
2441
2459
  /**
2442
2460
  * Checks for mods that are duplicated.
2443
2461
  *