载入中...
搜索中...
未找到
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()

void eve::procgen::dtlutil::copyMatrixToGrid ( const std::vector< std::vector< std::uint_fast8_t > > &  matrix,
Grid2D grid,
const std::function< uint32_t(std::uint_fast8_t)> &  mapValue 
)
inline

在文件 DtlHelpers.h35 行定义.

引用了 h, eve::procgen::Grid2D::resize(), eve::procgen::Grid2D::setCell(), w, x , 以及 y.

◆ makeMatrix()

std::vector< std::vector< std::uint_fast8_t > > eve::procgen::dtlutil::makeMatrix ( int  width,
int  height,
std::uint_fast8_t  fill = 0 
)
inline

在文件 DtlHelpers.h29 行定义.

引用了 height , 以及 width.

◆ placeSpawnAndStairs()

void eve::procgen::dtlutil::placeSpawnAndStairs ( Grid2D grid,
uint32_t  seed 
)
inline

◆ seedEngine()

void eve::procgen::dtlutil::seedEngine ( uint32_t  seed)
inline

在文件 DtlHelpers.h24 行定义.

引用了 seed.