libosu 0.0.30

General-purpose osu! library.
1
2
3
4
5
6
7
8
9
10
11
12
13
//! pp calculation

use rosu_pp::Beatmap as RosuBeatmap;

use super::Beatmap;

impl Beatmap {
  /// Convert to rosu_pp::Beatmap
  pub fn convert_to_rosu_beatmap(&self) -> rosu_pp::ParseResult<RosuBeatmap> {
    let contents = format!("{}", self);
    RosuBeatmap::parse(contents.as_bytes())
  }
}