Crates.io | rosu-storyboard |
lib.rs | rosu-storyboard |
version | 0.1.1 |
source | src |
created_at | 2024-02-27 17:34:49.983155 |
updated_at | 2024-03-11 15:37:59.6061 |
description | Library to de- and encode osu! storyboards |
homepage | |
repository | https://github.com/MaxOhn/rosu-storyboard |
max_upload_size | |
id | 1155291 |
size | 166,792 |
Library to de- and encode osu! storyboards.
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(_)));