rrt/fixtures/runtime/packed-event-world-scalar-condition-parity-save-slice-fixture.json

91 lines
2.5 KiB
JSON

{
"format_version": 1,
"fixture_id": "packed-event-world-scalar-condition-parity-save-slice-fixture",
"source": {
"kind": "captured-runtime",
"description": "Fixture proving the three aggregate cargo-class conditions execute through the world-scalar runtime path."
},
"state_save_slice_path": "packed-event-world-scalar-condition-parity-save-slice.json",
"commands": [
{
"kind": "service_trigger_kind",
"trigger_kind": 6
},
{
"kind": "service_trigger_kind",
"trigger_kind": 7
}
],
"expected_summary": {
"packed_event_collection_present": true,
"packed_event_record_count": 2,
"packed_event_decoded_record_count": 2,
"packed_event_imported_runtime_record_count": 2,
"packed_event_parity_only_record_count": 0,
"packed_event_blocked_unmapped_world_condition_count": 0,
"cargo_catalog_count": 11,
"event_runtime_record_count": 2,
"cargo_production_override_count": 3,
"world_flag_count": 12,
"total_event_record_service_count": 2,
"total_trigger_dispatch_count": 2
},
"expected_state_fragment": {
"world_flags": {
"world.aggregate_cargo_conditions_passed": true
},
"cargo_catalog": [
{
"slot_id": 1,
"label": "Cargo Production Slot 1",
"cargo_class": "factory"
}
],
"cargo_production_overrides": {
"1": 125,
"5": 75,
"9": 30
},
"packed_event_collection": {
"records": [
{
"import_outcome": "imported"
},
{
"import_outcome": "imported",
"standalone_condition_rows": [
{
"raw_condition_id": 2419,
"recovered_cargo_class": "factory"
},
{
"raw_condition_id": 2420,
"recovered_cargo_class": "farm_mine"
},
{
"raw_condition_id": 2421,
"recovered_cargo_class": "other"
}
],
"decoded_conditions": [
{
"kind": "factory_production_total_threshold",
"comparator": "eq",
"value": 125
},
{
"kind": "farm_mine_production_total_threshold",
"comparator": "eq",
"value": 75
},
{
"kind": "other_cargo_production_total_threshold",
"comparator": "eq",
"value": 30
}
]
}
]
}
}
}