summary refs log tree commit diff stats
path: root/tools/validator/structs.h
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2025-08-17 16:36:24 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2025-08-17 16:36:24 -0400
commit15b8794bbe80be0bcf1f482674455efe002cec2c (patch)
tree5b8a4d7fd39e3fa3feb49b4307700ffb95efc9bf /tools/validator/structs.h
parent299ba7c4f7938dd8cbb38e51c11987b2ebe286c5 (diff)
downloadlingo2-archipelago-15b8794bbe80be0bcf1f482674455efe002cec2c.tar.gz
lingo2-archipelago-15b8794bbe80be0bcf1f482674455efe002cec2c.tar.bz2
lingo2-archipelago-15b8794bbe80be0bcf1f482674455efe002cec2c.zip
Validate that node paths aren't used multiple times
Diffstat (limited to 'tools/validator/structs.h')
-rw-r--r--tools/validator/structs.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/validator/structs.h b/tools/validator/structs.h index c3427f4..1b61f77 100644 --- a/tools/validator/structs.h +++ b/tools/validator/structs.h
@@ -20,6 +20,14 @@ struct MalformedIdentifiers {
20 } 20 }
21}; 21};
22 22
23struct GameNodeInfo {
24 int uses = 0;
25};
26
27struct MapInfo {
28 std::map<std::string, GameNodeInfo> game_nodes;
29};
30
23struct RoomInfo { 31struct RoomInfo {
24 std::vector<HumanRoom> definitions; 32 std::vector<HumanRoom> definitions;
25 33
@@ -82,6 +90,7 @@ struct LetterInfo {
82}; 90};
83 91
84struct CollectedInfo { 92struct CollectedInfo {
93 std::map<std::string, MapInfo> maps;
85 std::map<RoomIdentifier, RoomInfo, RoomIdentifierLess> rooms; 94 std::map<RoomIdentifier, RoomInfo, RoomIdentifierLess> rooms;
86 std::map<DoorIdentifier, DoorInfo, DoorIdentifierLess> doors; 95 std::map<DoorIdentifier, DoorInfo, DoorIdentifierLess> doors;
87 std::map<PortIdentifier, PortInfo, PortIdentifierLess> ports; 96 std::map<PortIdentifier, PortInfo, PortIdentifierLess> ports;