diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2026-02-06 13:24:35 -0500 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2026-02-06 13:24:35 -0500 |
| commit | 225a6dba793386f36e72b432c8374e1978cee72a (patch) | |
| tree | 3931f0e4862a66d78963ec4b413aeb5553e70be3 | |
| parent | 3b415b3f5f182238da9ed83e0b2b07fb07044e04 (diff) | |
| download | lingo2-archipelago-225a6dba793386f36e72b432c8374e1978cee72a.tar.gz lingo2-archipelago-225a6dba793386f36e72b432c8374e1978cee72a.tar.bz2 lingo2-archipelago-225a6dba793386f36e72b432c8374e1978cee72a.zip | |
Add RTE AP ID to compiled datafile
| -rw-r--r-- | proto/data.proto | 4 | ||||
| -rw-r--r-- | tools/datapacker/main.cpp | 5 |
2 files changed, 8 insertions, 1 deletions
| diff --git a/proto/data.proto b/proto/data.proto index 6c846a3..3330666 100644 --- a/proto/data.proto +++ b/proto/data.proto | |||
| @@ -287,8 +287,10 @@ message Map { | |||
| 287 | optional string display_name = 3; | 287 | optional string display_name = 3; |
| 288 | optional DaedalusOnlyMode daedalus_only_mode = 6; | 288 | optional DaedalusOnlyMode daedalus_only_mode = 6; |
| 289 | optional uint64 worldport_entrance = 4; | 289 | optional uint64 worldport_entrance = 4; |
| 290 | optional uint64 rte_room = 7; | ||
| 291 | optional MapType type = 5; | 290 | optional MapType type = 5; |
| 291 | |||
| 292 | optional uint64 rte_room = 7; | ||
| 293 | optional uint64 rte_ap_id = 8; | ||
| 292 | } | 294 | } |
| 293 | 295 | ||
| 294 | message Progressive { | 296 | message Progressive { |
| diff --git a/tools/datapacker/main.cpp b/tools/datapacker/main.cpp index 4b74217..f1ef10e 100644 --- a/tools/datapacker/main.cpp +++ b/tools/datapacker/main.cpp | |||
| @@ -716,6 +716,11 @@ class DataPacker { | |||
| 716 | container_.all_objects().mutable_ports(port_id)->set_ap_id(ap_id); | 716 | container_.all_objects().mutable_ports(port_id)->set_ap_id(ap_id); |
| 717 | } | 717 | } |
| 718 | } | 718 | } |
| 719 | |||
| 720 | if (map.has_rte()) { | ||
| 721 | uint64_t map_id = container_.FindOrAddMap(map_name); | ||
| 722 | container_.all_objects().mutable_maps(map_id)->set_rte_ap_id(map.rte()); | ||
| 723 | } | ||
| 719 | } | 724 | } |
| 720 | 725 | ||
| 721 | auto& specials = *container_.all_objects().mutable_special_ids(); | 726 | auto& specials = *container_.all_objects().mutable_special_ids(); |
