use area instead of floor during map construction

This commit is contained in:
Martin Michelsen
2025-11-30 23:12:55 -08:00
parent 800c70c401
commit c482324a97
14 changed files with 250 additions and 193 deletions
+8
View File
@@ -116,6 +116,14 @@ struct QuestMetadata {
void apply_json_overrides(const phosg::JSON& json);
void assign_default_floors();
inline std::array<uint8_t, 0x12> get_floor_to_area() const {
std::array<uint8_t, 0x12> ret;
for (size_t z = 0; z < 0x12; z++) {
ret[z] = this->floor_assignments[z].area;
}
return ret;
}
void assert_compatible(const QuestMetadata& other) const;
phosg::JSON json() const;
std::string areas_str() const;