sb3_decoder/model/code/data.rs
1use crate::{macros::string_id, prelude::*};
2
3/// The representation of a Scratch variable.
4#[derive(Debug, Clone)]
5pub struct Variable {
6 pub name: String,
7 pub value: code::Value,
8 pub cloud: bool,
9}
10
11/// THe representation of a Scratch list.
12#[derive(Debug, Clone)]
13pub struct List {
14 pub name: String,
15 pub values: Vec<code::Value>,
16}
17
18string_id! {
19 /// The ID of a Scratch variable.
20 VarId
21}
22
23string_id! {
24 /// The ID of a Scratch list.
25 ListId
26}