类 | |
| class | HeightmapTargetModule |
| Script-facing composition module for live heightmap editing targets. 更多... | |
| struct | TerrainDocumentData |
| Owning editable terrain state restored from one document snapshot. 更多... | |
| struct | TerrainDocumentLimits |
| Allocation limits checked before an editor terrain document is materialized. 更多... | |
函数 | |
| Module_IMPL (HeightmapTargetModule, new HeightmapTargetModule()) | |
| editor::Result< editor::EditorValue > | encodeTerrainDocument (const procgen::Heightmap &heightmap, float spacingX, float spacingZ, const TerrainDocumentLimits &limits={}) |
Encode the current authoritative heightmap as eve.terrain-editor-document/1. | |
| editor::Result< TerrainDocumentData > | decodeTerrainDocument (const editor::EditorValue &value, const TerrainDocumentLimits &limits={}) |
| Validate and atomically decode one terrain editor snapshot. | |
函数说明
◆ decodeTerrainDocument()
| EVENGINE_API_EDITORS editor::Result< TerrainDocumentData > eve::heightmap_target::decodeTerrainDocument | ( | const editor::EditorValue & | value, |
| const TerrainDocumentLimits & | limits = {} |
||
| ) |
Validate and atomically decode one terrain editor snapshot.
- 返回
- Owning data; unknown fields, versions, non-finite values and oversized grids are rejected. @thread Worker-safe for an immutable input value; does not retain input references.
在文件 TerrainDocumentCodec.cpp 第 73 行定义.
引用了 eve::procgen::Heightmap::data(), height, eve::heightmap_target::TerrainDocumentData::heightmap, index, limits, name, object, eve::procgen::Heightmap::resize(), spacingX, eve::heightmap_target::TerrainDocumentData::spacingX, spacingZ, eve::heightmap_target::TerrainDocumentData::spacingZ, value , 以及 width.
被这些函数引用 eve::heightmap_target::HeightmapTargetModule::decodeDocument().
◆ encodeTerrainDocument()
| EVENGINE_API_EDITORS editor::Result< editor::EditorValue > eve::heightmap_target::encodeTerrainDocument | ( | const procgen::Heightmap & | heightmap, |
| float | spacingX, | ||
| float | spacingZ, | ||
| const TerrainDocumentLimits & | limits = {} |
||
| ) |
Encode the current authoritative heightmap as eve.terrain-editor-document/1.
- 返回
- An owning deterministic value snapshot suitable for DocumentService. @thread Owner/editor thread; does not retain references or invoke callbacks.
在文件 TerrainDocumentCodec.cpp 第 43 行定义.
引用了 eve::procgen::Heightmap::data(), eve::procgen::Heightmap::getHeight(), eve::procgen::Heightmap::getWidth(), height, limits, spacingX, spacingZ, value , 以及 width.
被这些函数引用 eve::heightmap_target::HeightmapTargetModule::encodeDocument().
◆ Module_IMPL()
| eve::heightmap_target::Module_IMPL | ( | HeightmapTargetModule | , |
| new | HeightmapTargetModule() | ||
| ) |