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