Packed terrain produced by a generator and applied onto a hex map. 更多...
#include <HexTerrainBake.h>
Public 类型 | |
| enum class | Kind : std::uint8_t { Planar = 0 , Sphere = 1 } |
| Which live map the bake is allowed to land on. 更多... | |
Public 属性 | |
| Kind | kind = Kind::Planar |
| std::int32_t | cellCountX = 0 |
| std::int32_t | cellCountZ = 0 |
| std::int32_t | cellCount = 0 |
| std::int32_t | subdivision = 0 |
| float | radius = 0.f |
| std::uint32_t | seed = 0 |
| std::vector< HexCellData > | cells |
详细描述
Packed terrain produced by a generator and applied onto a hex map.
This is the consumer-owned contract: hexmap asks for cells, not for a generator algorithm. Planar bakes fill a rectangular offset grid; sphere bakes fill a Goldberg topology that must already exist on the live map.
- 注解
- The packed
cellsstring in the script Value uses little-endianHexValuesthenHexFlags(eight bytes per cell).
在文件 HexTerrainBake.h 第 28 行定义.
成员枚举类型说明
◆ Kind
|
strong |
类成员变量说明
◆ cellCount
| std::int32_t eve::hexmap::HexTerrainBake::cellCount = 0 |
◆ cellCountX
| std::int32_t eve::hexmap::HexTerrainBake::cellCountX = 0 |
◆ cellCountZ
| std::int32_t eve::hexmap::HexTerrainBake::cellCountZ = 0 |
◆ cells
| std::vector<HexCellData> eve::hexmap::HexTerrainBake::cells |
◆ kind
| Kind eve::hexmap::HexTerrainBake::kind = Kind::Planar |
在文件 HexTerrainBake.h 第 32 行定义.
被这些函数引用 eve::hexmap::applyHexSphereTerrain(), eve::hexmap::applyHexTerrain(), eve::hexmap::HexMapModule::applySphereTerrain(), eve::hexmap::HexMapModule::applyTerrain(), eve::hexmap::hexTerrainBakeFromValue(), eve::hexmap::hexTerrainBakeToValue(), eve::hexmap::snapshotHexSphereTerrain() , 以及 eve::hexmap::snapshotHexTerrain().
◆ radius
| float eve::hexmap::HexTerrainBake::radius = 0.f |
◆ seed
| std::uint32_t eve::hexmap::HexTerrainBake::seed = 0 |
◆ subdivision
| std::int32_t eve::hexmap::HexTerrainBake::subdivision = 0 |
该结构体的文档由以下文件生成:
- src/modules/hexmap/HexTerrainBake.h