class
FLevelGenerator
- Module
- LevelGen
- Header
#include "LevelGen/LevelGenerator.h"- Namespace
Mowo
Public functions
| Returns | Name | Description |
|---|---|---|
FLevelLayout | Generate | |
bool | Rewrite | Rewrite the start chain with the grammar (no embedding). |
uint64_t | HashLayout | FNV-1a over the graph and every placement, in node order: the value the G9 runner pins per seed. |
int32_t | MaxDegreeOf | |
FLevelWorldSocket | WorldSocket | Grid geometry shared by the embedder, the validator and the spawner. |
void | RotateCell | |
ELevelSide | RotateSide | |
ELevelSide | Opposite | |
void | Step | |
int64_t | CellKey |
Function details
Generate
C++
static FLevelLayout Generate(const FLevelGrammar& grammar, uint64_t seed)Rewrite
C++
static bool Rewrite(const FLevelGrammar& grammar, FLevelRandom& random, FLevelGraph& outGraph, std::string& outFailure)Rewrite the start chain with the grammar (no embedding). Exposed for tests and the designer preview; false when a type limit was missed.
HashLayout
C++
static uint64_t HashLayout(const FLevelLayout& layout)FNV-1a over the graph and every placement, in node order: the value the G9 runner pins per seed.
MaxDegreeOf
C++
static int32_t MaxDegreeOf(const FLevelGrammar& grammar, const std::string& type)WorldSocket
C++
static FLevelWorldSocket WorldSocket(const FLevelModuleDef& module, const FLevelPlacement& placement, size_t socketIndex)Grid geometry shared by the embedder, the validator and the spawner.
RotateCell
C++
static void RotateCell(int32_t x, int32_t y, int32_t width, int32_t height, int32_t rotation, int32_t& outX, int32_t& outY)RotateSide
C++
static ELevelSide RotateSide(ELevelSide side, int32_t rotation)Opposite
C++
static ELevelSide Opposite(ELevelSide side)Step
C++
static void Step(ELevelSide side, int32_t& x, int32_t& y)CellKey
C++
static int64_t CellKey(int32_t x, int32_t y)Generated from LevelGen/LevelGenerator.h via levelgen.json · Oct 26, 2026Version 1.0.0