about summary refs log tree commit diff stats
path: root/tools/util
diff options
context:
space:
mode:
Diffstat (limited to 'tools/util')
-rw-r--r--tools/util/ids_yaml_format.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/util/ids_yaml_format.cpp b/tools/util/ids_yaml_format.cpp index 5b9113b..c23c66b 100644 --- a/tools/util/ids_yaml_format.cpp +++ b/tools/util/ids_yaml_format.cpp
@@ -80,6 +80,10 @@ IdMappings ReadIdsFromYaml(const std::string& filename) {
80 door_it.second.as<uint64_t>(); 80 door_it.second.as<uint64_t>();
81 } 81 }
82 } 82 }
83
84 if (map_it.second["rte"]) {
85 map_ids.set_rte(map_it.second["rte"].as<uint64_t>());
86 }
83 } 87 }
84 } 88 }
85 89
@@ -168,6 +172,10 @@ void WriteIdsAsYaml(const IdMappings& ids, const std::string& filename) {
168 map_node["doors"][door_name] = door_id; 172 map_node["doors"][door_name] = door_id;
169 }); 173 });
170 174
175 if (map_ids.has_rte()) {
176 map_node["rte"] = map_ids.rte();
177 }
178
171 result["maps"][map_name] = std::move(map_node); 179 result["maps"][map_name] = std::move(map_node);
172 }); 180 });
173 181