class

FLevelGeneration

One LevelGenerationComponent's play-time generation, as the scene system runs it: the grammar, the seed by role (the host decides and sends it, a client waits for it, offline uses its own), the layout, the nine passes, then prefabs and level-module Level Instances into the scene.

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

Public functions

ReturnsNameDescription
boolRunFalse while a client still waits for the host's seed; true once the component generated (or refused an invalid layout).
FLevelGrammarLoadGrammarThe grammar a component names, the built-in facility when it names none or the file does not load.
uint64_tHashGrammarFNV-1a over the grammar's text: equal grammars, equal hashes.
std::stringGeneratorKeyThe replication key of a generator: its entity id, which the level file gives every machine alike.

Function details

Run

C++
static bool Run(Scene& scene, EntityID entity)

False while a client still waits for the host's seed; true once the component generated (or refused an invalid layout).

LoadGrammar

C++
static FLevelGrammar LoadGrammar(const std::string& path)

The grammar a component names, the built-in facility when it names none or the file does not load.

HashGrammar

C++
static uint64_t HashGrammar(const FLevelGrammar& grammar)

FNV-1a over the grammar's text: equal grammars, equal hashes.

GeneratorKey

C++
static std::string GeneratorKey(EntityID entity)

The replication key of a generator: its entity id, which the level file gives every machine alike.

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