rosu-storyboard

Crates.iorosu-storyboard
lib.rsrosu-storyboard
version0.1.1
sourcesrc
created_at2024-02-27 17:34:49.983155
updated_at2024-03-11 15:37:59.6061
descriptionLibrary to de- and encode osu! storyboards
homepage
repositoryhttps://github.com/MaxOhn/rosu-storyboard
max_upload_size
id1155291
size166,792
Badewanne3 (MaxOhn)

documentation

https://docs.rs/rosu-storyboard/

README

crates.io docs

rosu-storyboard

Library to de- and encode osu! storyboards.

Usage

Based on rosu-map's DecodeBeatmap trait, the Storyboard struct provides a way to decode .osu or .osb files.

use rosu_storyboard::Storyboard;
use rosu_storyboard::element::ElementKind;

let path = "./resources/Himeringo - Yotsuya-san ni Yoroshiku (RLC) [Winber1's Extreme].osu";
let storyboard = Storyboard::from_path(path).unwrap();

let first_bg_elem = &storyboard.layers["Background"].elements[0];
assert!(matches!(first_bg_elem.kind, ElementKind::Sprite(_)));
Commit count: 0

cargo fmt