1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
---
source: src/tests/decode_projects.rs
expression: decoded
---
Project {
sprites: [
Sprite {
name: "Sprite1",
scripts: [
Script {
hat: Some(
DefineProcedure {
prototype: ProcPrototype {
proccode: "my block %s %b",
params: [
Param {
id: ArgId(
"-hEFvc3YNx;?i[lJ=7uv",
),
name: "x",
kind: StringNumber,
default: Text(
"",
),
},
Param {
id: ArgId(
"H-.ICO0OQvjSJb7DH^/R",
),
name: "y",
kind: Boolean,
default: Boolean(
false,
),
},
],
warp: true,
},
},
),
actions: [
SayForSeconds {
content: Argument {
name: "x",
},
secs: Number {
num: 2.0,
},
},
SayForSeconds {
content: Argument {
name: "y",
},
secs: Number {
num: 2.0,
},
},
],
},
Script {
hat: None,
actions: [
CallProcedure {
proccode: "my block %s %b",
args: [
Text {
text: "x",
},
Not {
x: Empty,
},
],
},
],
},
],
loose_reporters: [],
x: 0.0,
y: 0.0,
direction: 90.0,
rotation_style: AllAround,
draggable: false,
current_costume: 0,
costumes: [
Costume {
name: "costume1",
data_format: Svg,
rotation_center_x: 30.74937882782359,
rotation_center_y: 58.864768144346826,
bitmap_resolution: 1.0,
data_len: 2954,
},
],
visible: true,
layer: 1,
size: 100.0,
sounds: [],
volume: 100.0,
variables: {},
lists: {},
},
],
stage: Stage {
scripts: [],
loose_reporters: [],
current_backdrop: 0,
backdrops: [
Costume {
name: "backdrop1",
data_format: Svg,
rotation_center_x: 240.0,
rotation_center_y: 180.0,
bitmap_resolution: 1.0,
data_len: 202,
},
],
sounds: [],
volume: 100.0,
},
global_variables: {
VarId(
"`jEk@4|i[#Fk?(8x)AV.-my variable",
): Variable {
name: "my variable",
value: Number(
0.0,
),
cloud: false,
},
},
global_lists: {},
broadcasts: {},
}