yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
dungeon_validator.h
Go to the documentation of this file.
1#ifndef YAZE_APP_ZELDA3_DUNGEON_DUNGEON_VALIDATOR_H
2#define YAZE_APP_ZELDA3_DUNGEON_DUNGEON_VALIDATOR_H
3
4#include <string>
5#include <vector>
6
8
9namespace yaze {
10namespace zelda3 {
11
13 bool is_valid = true;
14 std::vector<std::string> warnings;
15 std::vector<std::string> errors;
16};
17
19 public:
21
22 private:
23 // Limits from ALTTP hardware and engine
24 static constexpr int kMaxSprites = 16; // Active sprites limit (hardware/engine constraint)
25 static constexpr int kMaxTotalSprites = 64; // Total sprites in room list (arbitrary safety limit)
26 static constexpr int kMaxChests = 6; // Limit for item collection flags (per room)
27 static constexpr int kMaxDoors = 16; // Practical limit for door objects
28 static constexpr int kMaxObjects = 400; // Limit before processing lag might occur
29};
30
31} // namespace zelda3
32} // namespace yaze
33
34#endif // YAZE_APP_ZELDA3_DUNGEON_DUNGEON_VALIDATOR_H
ValidationResult ValidateRoom(const Room &room)
static constexpr int kMaxTotalSprites
std::vector< std::string > errors
std::vector< std::string > warnings