载入中...
搜索中...
未找到
eve::procgen::dtlutil 命名空间参考
函数 | |
| std::vector< std::vector< std::uint_fast8_t > > | makeMatrix (int width, int height, std::uint_fast8_t fill=0) |
| Make matrix. | |
| void | copyMatrixToGrid (const std::vector< std::vector< std::uint_fast8_t > > &matrix, Grid2D &grid, const std::function< uint32_t(std::uint_fast8_t)> &mapValue) |
| Copies matrix to grid. | |
| void | placeSpawnAndStairs (Grid2D &grid, uint32_t seed) |
| Place spawn + stairs on walkable cells (floor/corridor/grass/dirt/sand). | |
函数说明
◆ copyMatrixToGrid()
|
inline |
◆ makeMatrix()
|
inline |
◆ placeSpawnAndStairs()
|
inline |
Place spawn + stairs on walkable cells (floor/corridor/grass/dirt/sand).
在文件 DtlHelpers.h 第 47 行定义.
引用了 a, b, c, eve::procgen::Semantic::Corridor, eve::procgen::Semantic::Dirt, eve::procgen::Semantic::Floor, eve::procgen::Semantic::Grass, idx, eve::procgen::Semantic::Sand, seed, x , 以及 y.