diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-09-21 12:44:50 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-09-21 12:44:50 -0400 |
commit | b53018acc54a7b8812a0b9830562879071d05fa6 (patch) | |
tree | 263795fb5358292263916a1621bacabc73873645 /tools/validator | |
parent | e896b5e91c04723484c25bf1e2b00a248ea18614 (diff) | |
download | lingo2-archipelago-b53018acc54a7b8812a0b9830562879071d05fa6.tar.gz lingo2-archipelago-b53018acc54a7b8812a0b9830562879071d05fa6.tar.bz2 lingo2-archipelago-b53018acc54a7b8812a0b9830562879071d05fa6.zip |
[Data] Annotate shuffleable ports
Diffstat (limited to 'tools/validator')
-rw-r--r-- | tools/validator/validator.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/validator/validator.cpp b/tools/validator/validator.cpp index dd41f5c..93efdc6 100644 --- a/tools/validator/validator.cpp +++ b/tools/validator/validator.cpp | |||
@@ -273,6 +273,21 @@ class Validator { | |||
273 | } | 273 | } |
274 | } | 274 | } |
275 | } | 275 | } |
276 | |||
277 | for (const HumanPort& port : port_info.definitions) { | ||
278 | if (!port.no_shuffle()) { | ||
279 | if (!port.has_destination()) { | ||
280 | std::cout << "Port " << port_identifier.ShortDebugString() | ||
281 | << " is shuffleable and missing a destination." | ||
282 | << std::endl; | ||
283 | } | ||
284 | if (!port.has_rotation()) { | ||
285 | std::cout << "Port " << port_identifier.ShortDebugString() | ||
286 | << " is shuffleable and missing a rotation." | ||
287 | << std::endl; | ||
288 | } | ||
289 | } | ||
290 | } | ||
276 | } | 291 | } |
277 | 292 | ||
278 | void ValidatePainting(const PaintingIdentifier& painting_identifier, | 293 | void ValidatePainting(const PaintingIdentifier& painting_identifier, |