Deterministic Pcg SetTerrainGameObjects scan, collision and resource configuration. 更多...
#include <TerrainObjectPlacement.h>
Public 成员函数 | |
| Result< int > | addInstance (const TerrainObjectInstanceSettings &instance) |
| Append one validated copied resource entry and return the new resource count. | |
Public 属性 | |
| float | originX = 0 |
| float | originZ = 0 |
| float | width = 1 |
| float | depth = 1 |
| float | heightScale = 1 |
| float | spacing = 10 |
| float | spawnDensity = 1 |
| float | jitterPercent = 0.5F |
| float | startOffsetX = 0 |
| float | startOffsetZ = 0 |
| float | failureRate = 0 |
| float | minimumFitness = 0.5F |
| float | minimumInstanceFitness = 0.5F |
| float | minimumDirection = 0 |
| float | maximumDirection = 360 |
| float | boundsRadius = 1 |
| float | boundsCheckQuality = 100 |
| float | prototypeScale = 1 |
| bool | boundsCollisionCheck = false |
| float | seaLevel = 0 |
| std::int32_t | seed = 1 |
| std::uint64_t | namespaceId = 1 |
| int | maxPoints = 1000000 |
| std::string | prototype |
| std::vector< TerrainObjectInstanceSettings > | instances |
详细描述
Deterministic Pcg SetTerrainGameObjects scan, collision and resource configuration.
在文件 TerrainObjectPlacement.h 第 50 行定义.
成员函数说明
◆ addInstance()
| Result< int > eve::procgen::TerrainObjectPlacementSettings::addInstance | ( | const TerrainObjectInstanceSettings & | instance | ) |
Append one validated copied resource entry and return the new resource count.
在文件 TerrainObjectPlacement.cpp 第 86 行定义.
引用了 instances, eve::procgen::raster_detail::invalid() , 以及 eve::Result< T >::success().
类成员变量说明
◆ boundsCheckQuality
| float eve::procgen::TerrainObjectPlacementSettings::boundsCheckQuality = 100 |
在文件 TerrainObjectPlacement.h 第 56 行定义.
◆ boundsCollisionCheck
| bool eve::procgen::TerrainObjectPlacementSettings::boundsCollisionCheck = false |
在文件 TerrainObjectPlacement.h 第 57 行定义.
◆ boundsRadius
| float eve::procgen::TerrainObjectPlacementSettings::boundsRadius = 1 |
在文件 TerrainObjectPlacement.h 第 56 行定义.
◆ depth
| float eve::procgen::TerrainObjectPlacementSettings::depth = 1 |
在文件 TerrainObjectPlacement.h 第 51 行定义.
◆ failureRate
| float eve::procgen::TerrainObjectPlacementSettings::failureRate = 0 |
在文件 TerrainObjectPlacement.h 第 54 行定义.
◆ heightScale
| float eve::procgen::TerrainObjectPlacementSettings::heightScale = 1 |
在文件 TerrainObjectPlacement.h 第 51 行定义.
◆ instances
| std::vector<TerrainObjectInstanceSettings> eve::procgen::TerrainObjectPlacementSettings::instances |
在文件 TerrainObjectPlacement.h 第 63 行定义.
被这些函数引用 addInstance().
◆ jitterPercent
| float eve::procgen::TerrainObjectPlacementSettings::jitterPercent = 0.5F |
在文件 TerrainObjectPlacement.h 第 52 行定义.
◆ maximumDirection
| float eve::procgen::TerrainObjectPlacementSettings::maximumDirection = 360 |
在文件 TerrainObjectPlacement.h 第 55 行定义.
◆ maxPoints
| int eve::procgen::TerrainObjectPlacementSettings::maxPoints = 1000000 |
在文件 TerrainObjectPlacement.h 第 61 行定义.
◆ minimumDirection
| float eve::procgen::TerrainObjectPlacementSettings::minimumDirection = 0 |
在文件 TerrainObjectPlacement.h 第 55 行定义.
◆ minimumFitness
| float eve::procgen::TerrainObjectPlacementSettings::minimumFitness = 0.5F |
在文件 TerrainObjectPlacement.h 第 54 行定义.
◆ minimumInstanceFitness
| float eve::procgen::TerrainObjectPlacementSettings::minimumInstanceFitness = 0.5F |
在文件 TerrainObjectPlacement.h 第 54 行定义.
◆ namespaceId
| std::uint64_t eve::procgen::TerrainObjectPlacementSettings::namespaceId = 1 |
在文件 TerrainObjectPlacement.h 第 60 行定义.
◆ originX
| float eve::procgen::TerrainObjectPlacementSettings::originX = 0 |
在文件 TerrainObjectPlacement.h 第 51 行定义.
◆ originZ
| float eve::procgen::TerrainObjectPlacementSettings::originZ = 0 |
在文件 TerrainObjectPlacement.h 第 51 行定义.
◆ prototype
| std::string eve::procgen::TerrainObjectPlacementSettings::prototype |
在文件 TerrainObjectPlacement.h 第 62 行定义.
◆ prototypeScale
| float eve::procgen::TerrainObjectPlacementSettings::prototypeScale = 1 |
在文件 TerrainObjectPlacement.h 第 56 行定义.
◆ seaLevel
| float eve::procgen::TerrainObjectPlacementSettings::seaLevel = 0 |
在文件 TerrainObjectPlacement.h 第 58 行定义.
◆ seed
| std::int32_t eve::procgen::TerrainObjectPlacementSettings::seed = 1 |
在文件 TerrainObjectPlacement.h 第 59 行定义.
◆ spacing
| float eve::procgen::TerrainObjectPlacementSettings::spacing = 10 |
在文件 TerrainObjectPlacement.h 第 52 行定义.
◆ spawnDensity
| float eve::procgen::TerrainObjectPlacementSettings::spawnDensity = 1 |
在文件 TerrainObjectPlacement.h 第 52 行定义.
◆ startOffsetX
| float eve::procgen::TerrainObjectPlacementSettings::startOffsetX = 0 |
在文件 TerrainObjectPlacement.h 第 53 行定义.
◆ startOffsetZ
| float eve::procgen::TerrainObjectPlacementSettings::startOffsetZ = 0 |
在文件 TerrainObjectPlacement.h 第 53 行定义.
◆ width
| float eve::procgen::TerrainObjectPlacementSettings::width = 1 |
在文件 TerrainObjectPlacement.h 第 51 行定义.
该结构体的文档由以下文件生成:
- src/modules/procgen/heightmap/TerrainObjectPlacement.h
- src/modules/procgen/heightmap/TerrainObjectPlacement.cpp