载入中...
搜索中...
未找到
#include "procgen/algorithms/RoguelikeGenerator.h"#include "procgen/GeneratorRegistry.h"#include "procgen/Grid2D.h"#include "procgen/Params.h"#include "procgen/Semantic.h"#include <algorithm>#include <cmath>#include <cstdint>#include <random>#include <string>#include <vector>命名空间 | |
| namespace | eve |
| namespace | eve::procgen |
函数 | |
| void | eve::procgen::registerRoguelikeGenerator (GeneratorRegistry ®istry) |
| Register the "level.roguelike" algorithm (idempotent). | |
| bool | eve::procgen::autotileGridInPlace (Grid2D &grid) |
Post-process any generated Grid2D: fill each wall cell's detail with an 8-bit neighbour mask describing which adjacent cells are walkable. Useful to add direction-aware wall tiles to levels from other generators. Returns false if the grid has no wall cells (still clears detail). | |
| uint32_t | eve::procgen::randomSeedValue () |
| Produce a fresh seed suitable for regenerating a level (never 0). | |
变量说明
◆ h
| int h = 0 |
在文件 RoguelikeGenerator.cpp 第 56 行定义.
◆ w
| int w = 0 |
在文件 RoguelikeGenerator.cpp 第 55 行定义.
◆ x
| int x = 0 |
在文件 RoguelikeGenerator.cpp 第 53 行定义.
◆ y
| int y = 0 |
在文件 RoguelikeGenerator.cpp 第 54 行定义.