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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
pub mod sink;
#[derive(Default, Debug, PartialEq)]
pub struct Object {
pub attr_v: u32,
pub buff: Option<Buff>,
pub dest: Option<Destructible>,
pub inv: Option<Inventory>,
pub mf: Option<Minifig>,
}
#[derive(Default, Debug, PartialEq)]
pub struct Buff {}
#[derive(Default, Debug, PartialEq)]
pub struct Destructible {
pub attr_ac: Option<u32>,
pub attr_am: Option<u32>,
pub attr_d: Option<bool>,
pub attr_hc: Option<u32>,
pub attr_hm: Option<u32>,
pub attr_ic: Option<u32>,
pub attr_im: Option<u32>,
pub attr_imm: Option<u32>,
pub attr_rsh: Option<u32>,
pub attr_rsi: Option<u32>,
}
#[derive(Default, Debug, PartialEq)]
pub struct Inventory {
pub attr_csl: Option<u32>,
pub bag: Vec<Bag>,
pub grps: Vec<Group>,
pub items: Items,
}
#[derive(Default, Debug, PartialEq)]
pub struct Bag {
pub attr_t: u32,
pub attr_m: u32,
}
#[derive(Default, Debug, PartialEq)]
pub struct Group {
pub attr_id: String,
pub attr_l: String,
pub attr_n: String,
pub attr_t: u32,
pub attr_u: String,
}
#[derive(Default, Debug, PartialEq)]
pub struct Items {
pub attr_nn: String,
pub children: Vec<ItemBag>,
}
#[derive(Default, Debug, PartialEq)]
pub struct ItemBag {
pub attr_t: u32,
pub children: Vec<Item>,
}
#[derive(Default, Debug, PartialEq)]
pub struct Item {
pub attr_b: bool,
pub attr_c: u32,
pub attr_eq: bool,
pub attr_id: u64,
pub attr_l: u32,
pub attr_s: u32,
pub attr_sk: u32,
pub x: Option<ItemExtra>,
}
#[derive(Default, Debug, PartialEq)]
pub struct ItemExtra {
pub attr_b: String,
pub attr_ma: String,
pub attr_ub: String,
pub attr_ud: String,
pub attr_ui: String,
pub attr_um: String,
pub attr_un: String,
pub attr_uo: String,
pub attr_up: String,
}
#[derive(Default, Debug, PartialEq)]
pub struct Minifig {
pub attr_cd: u32,
pub attr_es: u32,
pub attr_ess: u32,
pub attr_hc: u32,
pub attr_hd: u32,
pub attr_hdc: u32,
pub attr_hs: u32,
pub attr_l: u32,
pub attr_lh: u32,
pub attr_ms: u32,
pub attr_rh: u32,
pub attr_t: u32,
}