Crates.io | osu-beatmap-parser |
lib.rs | osu-beatmap-parser |
version | 0.14.0 |
source | src |
created_at | 2022-09-08 23:34:22.224955 |
updated_at | 2022-09-08 23:34:22.224955 |
description | Rust library to parse .osu beatmap file and manage beatmap data |
homepage | |
repository | https://github.com/SailorSnoW/osu-beatmap-parser/ |
max_upload_size | |
id | 661369 |
size | 222,943 |
A Rust library to read, parse and write contained data of an Osu! beatmap file to easily manipulate beatmap data in a Rust project.
This library was made according how a .osu beatmap file is structured explained on the official wiki of Osu! (https://osu.ppy.sh/wiki/en/Client/File_formats/Osu_%28file_format%29).
use osu_beatmap_parser::BeatmapLevel;
fn main() {
let beatmap_path = Path::from("./assets/examples/test.osu");
let beatmap: BeatmapLevel = BeatmapLevel::open(&beatmap_path).unwrap();
// Editing the approach rate
beatmap.difficulty.approach_rate = 9;
// Getting all the hit objects
let objects = beatmap.hitobjects;
}