class

FLevelValidator

The nine validation passes of audit G4, run over a generated layout: 1 Embedded every room of the graph has a module on the grid 2 NoOverlap no grid cell holds two modules 3 SocketsMeet every linked doorway meets its partner face to face 4 SharedWalls touching rooms without a doorway get a shared wall 5 CapsPlaced every open doorway is capped (never a hole into void) 6 Reachable every room is reachable from the start through doorways 7 CarryClearance the critical path is wide enough for a two-person carry 8 ScanBudget total and per-room scan cost within budget 9 PathAndAcoustic critical path length in range, every room within the portal depth of the path (so it is heard from it)

Module
LevelGen
Header
#include "LevelGen/LevelValidator.h"
Namespace
Mowo

Public functions

ReturnsNameDescription
FLevelValidationReportValidate
std::vector<int32_t>CriticalPathRoom indices from the start room to the goal, through the graph.

Function details

Validate

C++
static FLevelValidationReport Validate(const FLevelGrammar& grammar, const FLevelLayout& layout)

CriticalPath

C++
static std::vector<int32_t> CriticalPath(const FLevelGrammar& grammar, const FLevelLayout& layout)

Room indices from the start room to the goal, through the graph.

Generated from LevelGen/LevelValidator.h via levelgen.json · Oct 26, 2026Version 1.0.0