载入中...
搜索中...
未找到
DtlHelpers.h 文件参考
#include "procgen/Grid2D.h"
#include "procgen/Params.h"
#include "procgen/Semantic.h"
#include <DTL/Base/RogueLike.hpp>
#include <DTL/Random/RandomEngine.hpp>
#include <DTL/Shape/CellularAutomatonIsland.hpp>
#include <DTL/Shape/MazeDig.hpp>
#include <DTL/Shape/PerlinIsland.hpp>
#include <DTL/Shape/SimpleRogueLike.hpp>
#include <cstdint>
#include <functional>
#include <utility>
#include <vector>

浏览源代码.

命名空间

namespace  eve
 
namespace  eve::procgen
 
namespace  eve::procgen::dtlutil
 

函数

void eve::procgen::dtlutil::seedEngine (uint32_t seed)
 
std::vector< std::vector< std::uint_fast8_t > > eve::procgen::dtlutil::makeMatrix (int width, int height, std::uint_fast8_t fill=0)
 
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)
 
void eve::procgen::dtlutil::placeSpawnAndStairs (Grid2D &grid, uint32_t seed)
 Place spawn + stairs on walkable cells (floor/corridor/grass/dirt/sand).