载入中...
搜索中...
未找到
HexMapGenerator.cpp 文件参考

Deterministic port of the reference hex-map project's procedural generator. 更多...

#include "hexmap/HexMapGenerator.h"
#include "common/Diagnostic.h"
#include "hexmap/HexSearch.h"
#include <algorithm>
#include <cmath>
#include <cstddef>
#include <cstdint>
#include <limits>
#include <string>
#include <utility>
#include <vector>

浏览源代码.

命名空间

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

函数

Result< void > eve::hexmap::generateHexMap (HexMap &map, const HexMapGeneratorSettings &settings)
 Replaces the grid's contents with a procedurally generated map.
 

详细描述

Deterministic port of the reference hex-map project's procedural generator.

在文件 HexMapGenerator.cpp 中定义.

变量说明

◆ chunkSizeMax

std::int32_t chunkSizeMax = 100

在文件 HexMapGenerator.cpp 第 174 行定义.

◆ chunkSizeMin

std::int32_t chunkSizeMin = 30

在文件 HexMapGenerator.cpp 第 173 行定义.

◆ climate

std::vector<ClimateData> climate

Current moisture and cloud state per cell.

在文件 HexMapGenerator.cpp 第 397 行定义.

被这些函数引用 eve::procgen::Procgen::analyzeTerrainScaled() , 以及 eve::procgen::TerrainAsset::bake().

◆ clouds

float clouds = 0.f

在文件 HexMapGenerator.cpp 第 366 行定义.

被这些函数引用 eve::demo::Demo::newPlanetTexture().

◆ elevationMaximum

std::int32_t elevationMaximum = 8

在文件 HexMapGenerator.cpp 第 178 行定义.

◆ elevationMinimum

std::int32_t elevationMinimum = -2

在文件 HexMapGenerator.cpp 第 177 行定义.

◆ erodible

std::vector<std::int32_t> erodible

Cells still eligible for erosion.

在文件 HexMapGenerator.cpp 第 389 行定义.

◆ erodibleFlag

std::vector<std::uint8_t> erodibleFlag

Membership flags parallel to the erodible list.

在文件 HexMapGenerator.cpp 第 391 行定义.

◆ erosionPercentage

std::int32_t erosionPercentage = 50

在文件 HexMapGenerator.cpp 第 183 行定义.

◆ evaporationFactor

float evaporationFactor = 0.5f

在文件 HexMapGenerator.cpp 第 185 行定义.

◆ extraLakeProbability

float extraLakeProbability = 0.25f

在文件 HexMapGenerator.cpp 第 192 行定义.

◆ flowDirections

std::vector<HexDirection> flowDirections

Candidate directions considered by one river step.

在文件 HexMapGenerator.cpp 第 393 行定义.

◆ highRiseProbability

float highRiseProbability = 0.25f

在文件 HexMapGenerator.cpp 第 170 行定义.

◆ highTemperature

float highTemperature = 1.f

在文件 HexMapGenerator.cpp 第 194 行定义.

◆ jitterProbability

float jitterProbability = 0.25f

在文件 HexMapGenerator.cpp 第 172 行定义.

◆ landCells

std::int32_t landCells = 0

Number of cells that count as land, driving the river budget.

在文件 HexMapGenerator.cpp 第 401 行定义.

◆ landPercentage

std::int32_t landPercentage = 50

在文件 HexMapGenerator.cpp 第 175 行定义.

◆ lowTemperature

float lowTemperature = 0.f

在文件 HexMapGenerator.cpp 第 193 行定义.

◆ mapBorderX

std::int32_t mapBorderX = 5

在文件 HexMapGenerator.cpp 第 179 行定义.

◆ mapBorderZ

std::int32_t mapBorderZ = 5

在文件 HexMapGenerator.cpp 第 180 行定义.

◆ moisture

float moisture = 0.f

在文件 HexMapGenerator.cpp 第 367 行定义.

被这些函数引用 eve::hexmap::generateSphereMap().

◆ nextClimate

std::vector<ClimateData> nextClimate

Per-cell accumulation target of the next climate cycle.

在文件 HexMapGenerator.cpp 第 399 行定义.

◆ plant

std::int32_t plant = 0

在文件 HexMapGenerator.cpp 第 373 行定义.

◆ precipitationFactor

float precipitationFactor = 0.25f

在文件 HexMapGenerator.cpp 第 186 行定义.

◆ regionBorder

std::int32_t regionBorder = 5

在文件 HexMapGenerator.cpp 第 181 行定义.

◆ regionCount

std::int32_t regionCount = 1

在文件 HexMapGenerator.cpp 第 182 行定义.

◆ riverOrigins

std::vector<std::int32_t> riverOrigins

Weighted river-origin candidates.

在文件 HexMapGenerator.cpp 第 395 行定义.

◆ riverPercentage

std::int32_t riverPercentage = 10

在文件 HexMapGenerator.cpp 第 191 行定义.

◆ runoffFactor

float runoffFactor = 0.25f

在文件 HexMapGenerator.cpp 第 187 行定义.

◆ search

HexSearchContext search

Frontier reused by the land-growth and erosion searches.

在文件 HexMapGenerator.cpp 第 387 行定义.

◆ seepageFactor

float seepageFactor = 0.25f

在文件 HexMapGenerator.cpp 第 188 行定义.

◆ sinkProbability

float sinkProbability = 0.2f

在文件 HexMapGenerator.cpp 第 171 行定义.

◆ startingMoisture

float startingMoisture = 0.1f

在文件 HexMapGenerator.cpp 第 184 行定义.

◆ temperatureJitter

float temperatureJitter = 0.1f

在文件 HexMapGenerator.cpp 第 195 行定义.

◆ terrain

std::int32_t terrain = 0

在文件 HexMapGenerator.cpp 第 372 行定义.

◆ waterLevel

◆ windDirection

HexDirection windDirection = HexDirection::NW

在文件 HexMapGenerator.cpp 第 189 行定义.

◆ windStrength

float windStrength = 4.f

在文件 HexMapGenerator.cpp 第 190 行定义.

被这些函数引用 eve::graphics::advanceVegetationWindAudio().

◆ xMax

std::int32_t xMax = 0

在文件 HexMapGenerator.cpp 第 245 行定义.

被这些函数引用 eve::map::Fov::Impl::buildOpaqueRects().

◆ xMin

std::int32_t xMin = 0

在文件 HexMapGenerator.cpp 第 244 行定义.

被这些函数引用 eve::map::Fov::Impl::buildOpaqueRects().

◆ zMax

std::int32_t zMax = 0

在文件 HexMapGenerator.cpp 第 247 行定义.

被这些函数引用 eve::graphics::buildClusteredLighting().

◆ zMin

std::int32_t zMin = 0

在文件 HexMapGenerator.cpp 第 246 行定义.

被这些函数引用 eve::graphics::buildClusteredLighting().