载入中...
搜索中...
未找到
HexTerrainBake.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4
7#include "common/Result.h"
8#include "common/Value.h"
9#include "hexmap/HexCell.h"
10#include "hexmap/HexMap.h"
11#include "hexmap/HexSphereMap.h"
12
13#include <cstdint>
14#include <vector>
15
16namespace eve::hexmap {
17
30 enum class Kind : std::uint8_t { Planar = 0, Sphere = 1 };
31
33 std::int32_t cellCountX = 0;
34 std::int32_t cellCountZ = 0;
35 std::int32_t cellCount = 0;
36 std::int32_t subdivision = 0;
37 float radius = 0.f;
38 std::uint32_t seed = 0;
39 std::vector<HexCellData> cells;
40};
41
48
55
62
69
83
97
98} // namespace eve::hexmap
double value
#define EVENGINE_API_WORLD
Definition Export.h:109
Packed per-cell state records of the hex map.
Editable hex cell grid: topology, queries, picking and authoring.
Editable spherical hex map over an icosahedral hex topology.
Move-only, checked operation results for the common layer.
Owning, renderer-independent dynamic values.
Move-only operation result carrying either a value or Status.
Definition Result.h:155
The canonical owning dynamic value used by data-facing protocols.
Definition Value.h:31
An editable, chunked, pointy-top hex map.
Definition HexMap.h:72
An editable hex map wrapped onto a sphere.
HexTerrainBake snapshotHexSphereTerrain(const HexSphereMap &map)
Snapshot every cell of a spherical map into a bake.
Result< void > applyHexTerrain(HexMap &map, const HexTerrainBake &bake)
Replace a planar map's cells with a bake.
Result< HexTerrainBake > hexTerrainBakeFromValue(const Value &value)
Parse a script bake payload produced by hexTerrainBakeToValue.
HexTerrainBake snapshotHexTerrain(const HexMap &map)
Snapshot every cell of a planar map into a bake.
Result< void > applyHexSphereTerrain(HexSphereMap &map, const HexTerrainBake &bake)
Replace a spherical map's cells with a bake.
Value hexTerrainBakeToValue(const HexTerrainBake &bake)
Project a bake into the script Result payload.
Packed terrain produced by a generator and applied onto a hex map.
std::vector< HexCellData > cells
Kind
Which live map the bake is allowed to land on.