about summary refs log tree commit diff stats
path: root/tools/datapacker/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/datapacker/main.cpp')
-rw-r--r--tools/datapacker/main.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/datapacker/main.cpp b/tools/datapacker/main.cpp index 6bbb461..596259b 100644 --- a/tools/datapacker/main.cpp +++ b/tools/datapacker/main.cpp
@@ -345,6 +345,9 @@ class DataPacker {
345 std::copy( 345 std::copy(
346 h_door.receivers().begin(), h_door.receivers().end(), 346 h_door.receivers().begin(), h_door.receivers().end(),
347 google::protobuf::RepeatedFieldBackInserter(door.mutable_receivers())); 347 google::protobuf::RepeatedFieldBackInserter(door.mutable_receivers()));
348 std::copy(
349 h_door.senders().begin(), h_door.senders().end(),
350 google::protobuf::RepeatedFieldBackInserter(door.mutable_senders()));
348 351
349 for (const PaintingIdentifier& pi : h_door.move_paintings()) { 352 for (const PaintingIdentifier& pi : h_door.move_paintings()) {
350 std::optional<std::string> map_name = 353 std::optional<std::string> map_name =
@@ -470,6 +473,16 @@ class DataPacker {
470 r_connection.set_roof_access(human_connection.roof_access()); 473 r_connection.set_roof_access(human_connection.roof_access());
471 } 474 }
472 475
476 if (human_connection.has_purple_ending()) {
477 f_connection.set_purple_ending(human_connection.purple_ending());
478 r_connection.set_purple_ending(human_connection.purple_ending());
479 }
480
481 if (human_connection.has_cyan_ending()) {
482 f_connection.set_cyan_ending(human_connection.cyan_ending());
483 r_connection.set_cyan_ending(human_connection.cyan_ending());
484 }
485
473 container_.AddConnection(f_connection); 486 container_.AddConnection(f_connection);
474 if (!human_connection.oneway()) { 487 if (!human_connection.oneway()) {
475 container_.AddConnection(r_connection); 488 container_.AddConnection(r_connection);