diff options
Diffstat (limited to 'tools/datapacker')
| -rw-r--r-- | tools/datapacker/main.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
| diff --git a/tools/datapacker/main.cpp b/tools/datapacker/main.cpp index bda4ee4..8109bf5 100644 --- a/tools/datapacker/main.cpp +++ b/tools/datapacker/main.cpp | |||
| @@ -436,6 +436,10 @@ class DataPacker { | |||
| 436 | if (h_door.has_latch()) { | 436 | if (h_door.has_latch()) { |
| 437 | door.set_latch(h_door.latch()); | 437 | door.set_latch(h_door.latch()); |
| 438 | } | 438 | } |
| 439 | |||
| 440 | if (h_door.has_legacy_location()) { | ||
| 441 | door.set_legacy_location(h_door.legacy_location()); | ||
| 442 | } | ||
| 439 | } | 443 | } |
| 440 | 444 | ||
| 441 | void ProcessConnectionsFile(std::filesystem::path path, | 445 | void ProcessConnectionsFile(std::filesystem::path path, |
| @@ -679,6 +683,12 @@ class DataPacker { | |||
| 679 | .mutable_keyholders(keyholder_id) | 683 | .mutable_keyholders(keyholder_id) |
| 680 | ->set_ap_id(ap_id); | 684 | ->set_ap_id(ap_id); |
| 681 | } | 685 | } |
| 686 | |||
| 687 | for (const auto& [port_name, ap_id] : room.ports()) { | ||
| 688 | uint64_t port_id = container_.FindOrAddPort( | ||
| 689 | map_name, room_name, port_name, std::nullopt, std::nullopt); | ||
| 690 | container_.all_objects().mutable_ports(port_id)->set_ap_id(ap_id); | ||
| 691 | } | ||
| 682 | } | 692 | } |
| 683 | } | 693 | } |
| 684 | 694 | ||
