diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2026-02-06 13:45:01 -0500 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2026-02-06 13:45:01 -0500 |
| commit | 27a1d63608cc370cdf491ae08c70c74f76956367 (patch) | |
| tree | 3e1dbbfedc130e17eb8b0da575671e8f99c98a1e /tools/util/ids_yaml_format.cpp | |
| parent | bde801d654ce6ddc41f703e55adfcc33b3f3104e (diff) | |
| parent | 2a3916c1c58e033b06042d5d5413ea85cd94babf (diff) | |
| download | lingo2-archipelago-27a1d63608cc370cdf491ae08c70c74f76956367.tar.gz lingo2-archipelago-27a1d63608cc370cdf491ae08c70c74f76956367.tar.bz2 lingo2-archipelago-27a1d63608cc370cdf491ae08c70c74f76956367.zip | |
Merge branch 'main' of fourisland.com:/srv/git/lingo2-archipelago
Diffstat (limited to 'tools/util/ids_yaml_format.cpp')
| -rw-r--r-- | tools/util/ids_yaml_format.cpp | 8 |
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 | ||
