y0: Y0,
custom_currency: CustomCurrency,
#[br(if(version == Version::V1))]
- v1: Optional<Counted<N0>>,
+ v1: Counted<Optional<N0>>,
#[br(if(version == Version::V3))]
v3: Option<Counted<FormatsV3>>,
}
#[br(parse_with(parse_vec))]
subscripts: Vec<U32String>,
#[br(if(version == Version::V1))]
- v1: Option<Sponge>,
+ v1: Option<ValueModsV1>,
#[br(if(version == Version::V3), parse_with(parse_counted))]
v3: ValueModsV3,
}
+#[binread]
+#[br(little)]
+#[derive(Debug, Default)]
+struct ValueModsV1 {
+ #[br(temp, magic(0u8), assert(_1 == 1 || _1 == 2))]
+ _1: i32,
+ #[br(temp)]
+ _0: Optional<Zero>,
+ #[br(temp)]
+ _1: Optional<Zero>,
+ #[br(temp)]
+ _2: i32,
+ #[br(temp)]
+ _3: Optional<Zero>,
+ #[br(temp)]
+ _4: Optional<Zero>,
+}
+
#[binread]
#[br(little)]
#[derive(Debug, Default)]