struct
LevelGenerationComponent
Drop one in a scene to generate the level at play: the grammar (the built-in AJAX facility when empty), the seed, and where the grid starts (the entity's position). The runtime half reports what came out.
- Module
- LevelGen
- Header
#include "LevelGen/LevelGenerationComponent.h"- Namespace
Mowo- Reflection
- Reflected by MowoHeaderTool
Properties
| Type | Name | Description |
|---|---|---|
bool | enabled | Default true. |
std::string | grammar | |
int32_t | seed | Default 1. |
bool | randomSeed | A new seed each play (logged, so a run can be reproduced). Default false. |
bool | generateOnPlay | Default true. |
bool | requireValid | Refuse to spawn a layout that fails any of the nine validation passes. Default true. |
bool | replicateSeed | In a session the host decides the seed (its own, or a random one) and sends it; clients build nothing until it arrives, then build the same level. Off, every machine uses its own Seed / Random Seed. Default true. |
bool | generated | Default false. |
bool | waitingForSeed | Default false. |
int32_t | levelModules | Default 0. |
bool | valid | Default false. |
int32_t | usedSeed | Default 0. |
int32_t | rooms | Default 0. |
int32_t | spawnedPrefabs | Default 0. |
uint64_t | layoutHash | Default 0. |
Constructors
| Signature | Name | Description |
|---|---|---|
LevelGenerationComponent() = default | LevelGenerationComponent |
Function details
LevelGenerationComponent
C++
LevelGenerationComponent() = defaultGenerated from LevelGen/LevelGenerationComponent.h via levelgen.json · Oct 26, 2026Version 1.0.0