sb3-decoder 0.2.0

A Rust library for decoding Scratch 3.0 project files (.sb3)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::prelude::*;

/// The representation of a Scratch stage.
///
/// In the project.json file, all the global variables and lists are stored inside the stage. They
/// are moved to the [`Project`] struct when decoding and not here.
#[derive(Debug, Clone)]
#[non_exhaustive]
pub struct Stage {
    pub scripts: Vec<code::Script>,
    pub loose_reporters: Vec<code::Reporter>,

    pub current_backdrop: usize,
    pub backdrops: Vec<Costume>,

    pub sounds: Vec<Sound>,
    pub volume: f64,
}