载入中...
搜索中...
未找到
HexFeatures.h 文件参考

Deterministic feature placement for hex decorations and walls. 更多...

#include "common/Export.h"
#include "hexmap/HexMap.h"
#include "hexmap/HexMeshData.h"
#include "hexmap/HexMetrics.h"
#include <cstdint>

浏览源代码.

类

struct  eve::hexmap::HexHash
 Five-component pseudo-random value used to pick and orient one feature. 更多...
 
class  eve::hexmap::HexHashGrid
 Deterministic replacement for the reference project's hash grid. 更多...
 

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::hexmap
 

函数

float eve::hexmap::featureThreshold (std::int32_t level, std::int32_t index) noexcept
 Feature-placement thresholds of the reference project.
 
void eve::hexmap::buildWallMesh (const HexMap &map, std::int32_t chunkIndex, HexMeshData &out)
 Builds the wall and bridge geometry of one chunk.
 
void eve::hexmap::buildFeatureMesh (const HexMap &map, std::int32_t chunkIndex, HexMeshData &out)
 Builds the urban, farm, plant and special decorations of one chunk.
 

变量

constexpr std::int32_t eve::hexmap::kFeatureThresholdCount = 3
 Number of threshold entries per feature level.
 
constexpr float eve::hexmap::kWallTowerThreshold = 0.5f
 Height of a city/farm wall, matching HexMetrics::kWallHeight.
 
constexpr float eve::hexmap::kBridgeDesignLength = 7.f
 Edge length the reference bridge model is designed for.
 

详细描述

Deterministic feature placement for hex decorations and walls.

在文件 HexFeatures.h 中定义.