载入中...
搜索中...
未找到
TerrainDocumentCodec.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4
10
11#include <cstdint>
12
13namespace eve::heightmap_target {
14
17 std::uint32_t maximumDimension = 8192;
18 std::uint64_t maximumSamples = 67'108'864;
19};
20
27
34 const procgen::Heightmap& heightmap, float spacingX, float spacingZ, const TerrainDocumentLimits& limits = {});
35
42 const editor::EditorValue& value, const TerrainDocumentLimits& limits = {});
43
44} // namespace eve::heightmap_target
double value
#define EVENGINE_API_EDITORS
Definition Export.h:112
double spacingZ
double spacingX
const AssetImportLimits & limits
Move-only operation result carrying either a value or Status.
Definition Result.h:155
Deterministic owning value tree shared by authoring hosts.
In-memory terrain heightmap: a dense float grid (row-major, index = y * width + x) materialized from ...
Definition Heightmap.h:21
editor::Result< TerrainDocumentData > decodeTerrainDocument(const editor::EditorValue &value, const TerrainDocumentLimits &limits)
Validate and atomically decode one terrain editor snapshot.
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.
Owning editable terrain state restored from one document snapshot.
Allocation limits checked before an editor terrain document is materialized.