载入中...
搜索中...
未找到
UnityVegetationPreset.cpp
浏览该文件的文档.
11 while (!value.empty() && std::isspace(static_cast<unsigned char>(value.front()))) value.remove_prefix(1);
12 while (!value.empty() && std::isspace(static_cast<unsigned char>(value.back()))) value.remove_suffix(1);
85 auto remainder = split == std::string_view::npos ? std::string_view{} : trim(line.substr(split));
106Result<PreparedAssetImport> prepareUnityVegetationPreset(const UnityProjectImportRequest& request,
110 if (bytes.empty() || bytes.size() > request.limits.maximumSourceBytes || !isValidUtf8(raw, Utf8NullPolicy::Reject))
134 const auto id = request.package.packageId.child("unity:" + source.guid).child("vegetation-preset:default");
159 output.findings.push_back({source.path, "TVE.preset.conditionTypo", ImportDisposition::Translated,
std::unordered_map< const Graphics *, std::shared_ptr< Lifetime > > tokens
Definition GraphicsLifetime.cpp:13
Direct Unity text-serialization adapter for TerrainData and Prefab assets.
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={}, DiagnosticDetails details={}, std::string source={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.h:125
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:175
Id128 child(std::string_view role) const noexcept
Derives a deterministic child UUID for a hierarchical identity.
Definition Identity.h:192
Result< asset::EvaManifest > baseManifest(const ImportPackageIdentity &package, std::string_view importer)
Base manifest.
Definition ImportCommon.h:31
Definition AssetImporter.h:14
EVENGINE_API_PLATFORM Result< PreparedAssetImport > prepareUnityVegetationPreset(const UnityProjectImportRequest &request, const UnitySourceAsset &source)
Parse one TVE conversion preset into a bounded versioned command tree.
Definition UnityVegetationPreset.cpp:106
@ Translated
@ InvalidArgument
@ ParseError
detail::StrongUint64< detail::SchemaVersionTag > SchemaVersion
Persistent data-format version; not a runtime replacement generation.
Definition SchemaVersion.h:13
bool isValidUtf8(std::string_view text, Utf8NullPolicy nullPolicy) noexcept
Validate shortest-form UTF-8, Unicode scalar range and optional NUL exclusion.
Definition Utf8Validation.cpp:5
@ Reject
std::uint64_t maximumSourceBytes
Definition AssetImporter.h:18
std::uint32_t maximumStringBytes
Definition AssetImporter.h:23
ImportPackageIdentity package
Definition AssetImporter.h:55
PersistentId packageId
Definition AssetImporter.h:34
Owning, validated source archive candidate not yet published to disk/database.
Definition AssetImporter.h:90
asset::EvaManifest manifest
Definition AssetImporter.h:91
In-memory Unity project slice; keys are normalized project-relative paths.
Definition UnityImporter.h:15
Immutable-by-convention owning source index entry; no borrowed source addresses.
Definition UnitySource.h:38