载入中...
搜索中...
未找到
GeneratedArtifact.h
浏览该文件的文档.
211 ArtifactId id, ArtifactType type, eve::SchemaVersion schemaVersion, BuildKey buildKey, Bounds bounds,
212 std::vector<ArtifactId> dependencies, eve::Value::Object metadata, GeneratedArtifact::Payload payload);
216 std::string role, ArtifactId id, ArtifactType type, eve::SchemaVersion schemaVersion, BuildKey buildKey,
217 Bounds bounds, std::vector<ArtifactId> dependencies, eve::Value::Object metadata, ArtifactLeafPayload payload);
244 [[nodiscard]] eve::Result<std::vector<ArtifactId>> publishBatch(std::vector<GeneratedArtifact> artifacts);
325[[nodiscard]] EVENGINE_API_DOMAINS eve::Result<GeneratedArtifact> generateHexTerrainArtifact(const Params& params,
335[[nodiscard]] EVENGINE_API_DOMAINS eve::Result<GeneratedArtifact> generateCastleArtifact(const Params& params,
348[[nodiscard]] EVENGINE_API_DOMAINS eve::Result<GeneratedArtifact> generateRoadNetworkArtifact(const Params& params,
358[[nodiscard]] EVENGINE_API_DOMAINS eve::Result<GeneratedArtifact> generateMeshArtifact(std::string_view recipeId,
Low-level capability contracts for publishing backend-neutral artifacts.
Runtime replacement generation for stale-handle rejection.
Strong identity values shared by persistence, content and logical-name APIs.
Move-only, checked operation results for the common layer.
Persistent data-contract version identity.
Versioned, integrity-checked persistence envelopes.
Owning, renderer-independent dynamic values.
In-memory owner and publisher for generated artifacts.
Definition GeneratedArtifact.h:227
std::size_t size() const noexcept
Return the number of published top-level artifacts.
Definition GeneratedArtifact.h:304
Stable key for deterministic-equivalent generation inputs.
Definition GeneratedArtifact.h:46
friend bool operator==(const BuildKey &, const BuildKey &) noexcept=default
const std::string & format() const noexcept
Return canonical key text.
Definition GeneratedArtifact.h:69
Intermediate 2D generation result. cells store semantic ids (see Semantic.h), not tile GIDs — convert...
Definition Grid2D.h:36
CPU triangle mesh from procedural mesh recipes (e.g. marching cubes). Positions/normals are xyz-packe...
Definition MeshBuild.h:19
Result< int > publish(Heightmap &target, std::vector< float > candidate)
Publish.
Definition TerrainRasterInternal.h:62
Definition EvpackPointGraphLoader.h:12
ArtifactType artifactType(const GeneratedArtifact::Payload &payload) noexcept
Return the variant kind for a payload.
Definition GeneratedArtifact.cpp:1237
const char * artifactTypeName(ArtifactType type) noexcept
Return the stable textual spelling of an artifact kind.
Definition GeneratedArtifact.cpp:1251
eve::Result< ArtifactPart > makeArtifactPart(std::string role, ArtifactId id, ArtifactType type, eve::SchemaVersion schemaVersion, BuildKey buildKey, Bounds bounds, std::vector< ArtifactId > dependencies, eve::Value::Object metadata, ArtifactLeafPayload payload)
Validate and construct a leaf part for a composite artifact.
Definition GeneratedArtifact.cpp:1280
MeshBuild MeshData
Existing dense CPU mesh type under the artifact vocabulary.
Definition GeneratedArtifact.h:142
ArtifactType
Runtime payload kind; it is checked against the variant on publish.
Definition GeneratedArtifact.h:109
@ Composite
std::variant< Grid2D, PointSet, MeshData, ImageData, Collider > ArtifactLeafPayload
Leaf payloads used by a CompositeArtifact.
Definition GeneratedArtifact.h:145
eve::Result< GeneratedArtifact > makeArtifact(ArtifactId id, ArtifactType type, eve::SchemaVersion schemaVersion, BuildKey buildKey, Bounds bounds, std::vector< ArtifactId > dependencies, eve::Value::Object metadata, GeneratedArtifact::Payload payload)
Validate and construct one artifact record.
Definition GeneratedArtifact.cpp:1263
StrongUuid< detail::ArtifactIdTag > ArtifactId
Stable generated-artifact identity; content equivalence remains ContentId.
Definition Identity.h:282
Definition Container.h:602
One typed, role-named child product inside a composite artifact.
Definition GeneratedArtifact.h:148
std::vector< ArtifactId > dependencies
Definition GeneratedArtifact.h:154
Axis-aligned bounds in the artifact's declared world coordinate space.
Definition GeneratedArtifact.h:93
bool isValid() const noexcept
Return whether the box encloses at least one point.
Definition GeneratedArtifact.h:105
Backend-neutral collider product, normally a triangle mesh or hull.
Definition GeneratedArtifact.h:131
std::vector< std::uint32_t > indices
Definition GeneratedArtifact.h:133
A coherent set of products published from one deterministic build.
Definition GeneratedArtifact.h:161
bool has(std::string_view role) const noexcept
Return whether a role exists.
Definition GeneratedArtifact.h:177
std::vector< ArtifactPart > children
Definition GeneratedArtifact.h:162
Complete immutable-once-published artifact record.
Definition GeneratedArtifact.h:181
std::variant< Grid2D, PointSet, MeshData, ImageData, Collider, CompositeArtifact > Payload
Definition GeneratedArtifact.h:189
std::vector< ArtifactId > dependencies
Definition GeneratedArtifact.h:187
eve::Value::Object metadata
Definition GeneratedArtifact.h:188
Small owning image product; raw pixels stay out of JSON metadata.
Definition GeneratedArtifact.h:119
bool isValid() const noexcept
Return whether dimensions and pixel storage describe an image.
Definition GeneratedArtifact.cpp:1216