summary refs log tree commit diff stats
path: root/tools
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2025-08-07 16:05:15 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2025-08-07 16:05:15 -0400
commitc9da387ede51f207825b63d9f13036a7b661d4b3 (patch)
tree08425dbc57c92ac72fef43c32ecbd5805f18f1f8 /tools
parent3c26cedd030c464e3b8a5576a98c19eb45134658 (diff)
downloadlingo2-archipelago-c9da387ede51f207825b63d9f13036a7b661d4b3.tar.gz
lingo2-archipelago-c9da387ede51f207825b63d9f13036a7b661d4b3.tar.bz2
lingo2-archipelago-c9da387ede51f207825b63d9f13036a7b661d4b3.zip
Started apworld
vcpkg's libprotobuf is older than what PIP has, but neither are
completely up to date either. Ugh.

Doors have a room now because that's where the location will go.
Diffstat (limited to 'tools')
-rw-r--r--tools/datapacker/main.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/datapacker/main.cpp b/tools/datapacker/main.cpp index e63f940..1dcd109 100644 --- a/tools/datapacker/main.cpp +++ b/tools/datapacker/main.cpp
@@ -215,6 +215,14 @@ class DataPacker {
215 container_.FindOrAddDoor(current_map_name, h_door.name(), std::nullopt); 215 container_.FindOrAddDoor(current_map_name, h_door.name(), std::nullopt);
216 Door& door = *container_.all_objects().mutable_doors(door_id); 216 Door& door = *container_.all_objects().mutable_doors(door_id);
217 217
218 if (h_door.has_location_room()) {
219 door.set_room_id(container_.FindOrAddRoom(
220 current_map_name, h_door.location_room(), std::nullopt));
221
222 Room& room = *container_.all_objects().mutable_rooms(door.room_id());
223 room.add_doors(door_id);
224 }
225
218 std::copy( 226 std::copy(
219 h_door.receivers().begin(), h_door.receivers().end(), 227 h_door.receivers().begin(), h_door.receivers().end(),
220 google::protobuf::RepeatedFieldBackInserter(door.mutable_receivers())); 228 google::protobuf::RepeatedFieldBackInserter(door.mutable_receivers()));