sb3_decoder/model/stage.rs
1use crate::prelude::*;
2
3/// The representation of a Scratch stage.
4///
5/// In the project.json file, all the global variables and lists are stored inside the stage. They
6/// are moved to the [`Project`] struct when decoding and not here.
7#[derive(Debug, Clone)]
8#[non_exhaustive]
9pub struct Stage {
10 pub scripts: Vec<code::Script>,
11 pub loose_reporters: Vec<code::Reporter>,
12
13 pub current_backdrop: usize,
14 pub backdrops: Vec<Costume>,
15
16 pub sounds: Vec<Sound>,
17 pub volume: f64,
18}