载入中...
搜索中...
未找到
PixelWorldGeneration.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4
6
7#include <cstdint>
8#include <vector>
9
10namespace eve::pixelworld {
11
13enum class PixelBiome : std::uint8_t { Forest, Desert, Fungal, Volcanic };
14
17 int originX = 0;
18 int originY = 0;
19 int width = 0;
20 int height = 0;
21 std::vector<PixelCell> cells;
22};
23
26 static constexpr std::uint32_t kSchemaVersion = 1;
28 std::uint64_t seed = 1;
30 int surfaceY = 0;
32 int waterLevel = 36;
34 std::uint32_t caveThreshold = 3600;
35 std::vector<PixelMaterialStamp> stamps;
36};
37
40 int x = 0;
41 int y = 0;
43 std::uint32_t solidCells = 0;
44 std::uint32_t caveCells = 0;
45 std::uint32_t stampedCells = 0;
46
49 const PixelGeneratedChunkSummary&) = default;
50};
51
55 std::vector<PixelGeneratedChunkSummary> chunks;
56 std::uint64_t contentHash = 0;
57};
58
72 const PixelWorldGenerationRequest& request, const MaterialCatalog& catalog, std::uint64_t sourceRevision,
73 eve::SimulationTick sourceTick = eve::SimulationTick::zero(), std::uint64_t sourceLastEditSequence = 0);
74
75} // namespace eve::pixelworld
#define EVENGINE_API_FOUNDATION
每个链接组(link group)各自的导出宏。
Definition Export.h:106
const GltfImportRequest & request
Move-only operation result carrying either a value or Status.
Definition Result.h:155
static constexpr StrongUint64 zero() noexcept
Returns the zero value for this strong type.
Owning immutable material and reaction table used by one PixelWorld.
eve::Result< PixelWorldGenerationOutput > generatePixelWorld(const PixelWorldGenerationRequest &request, const MaterialCatalog &catalog, std::uint64_t sourceRevision, eve::SimulationTick sourceTick, std::uint64_t sourceLastEditSequence)
Generate a seamless canonical Chunk batch without mutating a PixelWorld.
PixelBiome
Stable coarse biome selected from deterministic world coordinates.
Owning authoritative Chunk correction with source world metadata.
Definition PixelWorld.h:89
Inclusive finite rectangle expressed in Chunk coordinates.
Definition PixelWorld.h:104
Deterministic diagnostics for one generated Chunk.
friend bool operator==(const PixelGeneratedChunkSummary &, const PixelGeneratedChunkSummary &)=default
Operator ==.
Owning row-major material stamp applied after terrain and cave generation.
Owning generated correction plus reproducibility evidence.
std::vector< PixelGeneratedChunkSummary > chunks
Versioned bounded request for deterministic biome and cave generation.
std::uint32_t caveThreshold
Cave admission threshold in [0, 10000]; larger values carve more cells.