Rehost saved world absolute counter state
This commit is contained in:
parent
126a637bc2
commit
2441fe6374
8 changed files with 381 additions and 54 deletions
|
|
@ -35,6 +35,14 @@ pub struct ExpectedRuntimeSummary {
|
|||
#[serde(default)]
|
||||
pub world_restore_absolute_counter_reconstructible_from_save: Option<bool>,
|
||||
#[serde(default)]
|
||||
pub world_restore_current_calendar_tuple_word_raw_u32: Option<u32>,
|
||||
#[serde(default)]
|
||||
pub world_restore_current_calendar_tuple_word_2_raw_u32: Option<u32>,
|
||||
#[serde(default)]
|
||||
pub world_restore_absolute_counter_raw_u32: Option<u32>,
|
||||
#[serde(default)]
|
||||
pub world_restore_absolute_counter_mirror_raw_u32: Option<u32>,
|
||||
#[serde(default)]
|
||||
pub world_restore_disable_cargo_economy_special_condition_slot: Option<u8>,
|
||||
#[serde(default)]
|
||||
pub world_restore_disable_cargo_economy_special_condition_reconstructible_from_save:
|
||||
|
|
@ -369,6 +377,38 @@ impl ExpectedRuntimeSummary {
|
|||
));
|
||||
}
|
||||
}
|
||||
if let Some(value) = self.world_restore_current_calendar_tuple_word_raw_u32 {
|
||||
if actual.world_restore_current_calendar_tuple_word_raw_u32 != Some(value) {
|
||||
mismatches.push(format!(
|
||||
"world_restore_current_calendar_tuple_word_raw_u32 mismatch: expected {value}, got {:?}",
|
||||
actual.world_restore_current_calendar_tuple_word_raw_u32
|
||||
));
|
||||
}
|
||||
}
|
||||
if let Some(value) = self.world_restore_current_calendar_tuple_word_2_raw_u32 {
|
||||
if actual.world_restore_current_calendar_tuple_word_2_raw_u32 != Some(value) {
|
||||
mismatches.push(format!(
|
||||
"world_restore_current_calendar_tuple_word_2_raw_u32 mismatch: expected {value}, got {:?}",
|
||||
actual.world_restore_current_calendar_tuple_word_2_raw_u32
|
||||
));
|
||||
}
|
||||
}
|
||||
if let Some(value) = self.world_restore_absolute_counter_raw_u32 {
|
||||
if actual.world_restore_absolute_counter_raw_u32 != Some(value) {
|
||||
mismatches.push(format!(
|
||||
"world_restore_absolute_counter_raw_u32 mismatch: expected {value}, got {:?}",
|
||||
actual.world_restore_absolute_counter_raw_u32
|
||||
));
|
||||
}
|
||||
}
|
||||
if let Some(value) = self.world_restore_absolute_counter_mirror_raw_u32 {
|
||||
if actual.world_restore_absolute_counter_mirror_raw_u32 != Some(value) {
|
||||
mismatches.push(format!(
|
||||
"world_restore_absolute_counter_mirror_raw_u32 mismatch: expected {value}, got {:?}",
|
||||
actual.world_restore_absolute_counter_mirror_raw_u32
|
||||
));
|
||||
}
|
||||
}
|
||||
if let Some(slot) = self.world_restore_disable_cargo_economy_special_condition_slot {
|
||||
if actual.world_restore_disable_cargo_economy_special_condition_slot != Some(slot) {
|
||||
mismatches.push(format!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue