sb3-decoder 0.2.1

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
use std::collections::BTreeMap;

use crate::prelude::*;

/// The representation of a Scratch project.
#[derive(Debug)]
#[non_exhaustive]
pub struct Project {
    pub sprites: Vec<Sprite>,
    pub stage: Stage,

    pub global_variables: BTreeMap<code::VarId, code::Variable>,
    pub global_lists: BTreeMap<code::ListId, code::List>,

    pub broadcasts: BTreeMap<code::BroadcastId, code::Broadcast>,
}