Expand description
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(_)));Modules§
- command
- Command types.
- element
- Storyboard elements.
- reexport
- Re-exported types of
rosu-map. - visual
- Visual elements.
Structs§
- Layer
- A layer of a
Storyboard. - Storyboard
- The storyboard of a beatmap.
- Storyboard
State - The parsing state for
StoryboardinDecodeBeatmap.
Enums§
- Parse
Storyboard Error - All the ways that parsing an osu! file into a
Storyboardcan fail.