载入中...
搜索中...
未找到
ProcgenScriptSupport.cpp
浏览该文件的文档.
14ssq::Table makeOwnedPointSetProxy(HSQUIRRELVM vm, eve::Result<ProcgenPointSetHandleRef>&& reference) {
17 vm, std::move(reference), [module](ProcgenPointSetHandleRef ref) { return module->resolvePointSet(ref); },
40ssq::Table makeOwnedSpatialProxy(HSQUIRRELVM vm, eve::Result<ProcgenSpatialDataHandleRef>&& reference) {
43 vm, std::move(reference), [module](ProcgenSpatialDataHandleRef ref) { return module->resolveSpatialData(ref); },
68 for (const ArtifactId& dependency : artifact.dependencies) dependencies.emplace_back(dependency.format());
73 result.emplace("schemaVersion", eve::Value(static_cast<std::int64_t>(artifact.schemaVersion.value())));
80 result.emplace("partCount", eve::Value(static_cast<std::int64_t>(composite ? composite->children.size() : 0)));
104ssq::Table projectDecodedTerrainResult(HSQUIRRELVM vm, eve::Result<DecodedTerrainFile>&& decoded) {
137ssq::Table projectRecipeDescriptorResult(HSQUIRRELVM vm, eve::Result<RecipeDescriptor>&& result) {
Owning, backend-neutral products published by procedural generation.
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.cpp:21
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:196
Definition EvpackPointGraphLoader.h:12
ssq::Table makeOwnedPointSetProxy(HSQUIRRELVM vm, eve::Result< ProcgenPointSetHandleRef > &&reference)
Definition ProcgenScriptSupport.cpp:14
ssq::Table projectDecodedTerrainResult(HSQUIRRELVM vm, eve::Result< DecodedTerrainFile > &&decoded)
Projects a decoded terrain file as an owned heightmap proxy plus metadata.
Definition ProcgenScriptSupport.cpp:104
const char * artifactTypeName(ArtifactType type) noexcept
Return the stable textual spelling of an artifact kind.
Definition GeneratedArtifact.cpp:973
ssq::Table makeOwnedSpatialProxy(HSQUIRRELVM vm, eve::Result< ProcgenSpatialDataHandleRef > &&reference)
Definition ProcgenScriptSupport.cpp:40
Procgen * liveProcgen() noexcept
Returns the currently live Procgen module instance, or nullptr.
Definition ProcgenLive.cpp:14
ssq::Table makeOwnedGridProxy(HSQUIRRELVM vm, eve::Result< ProcgenGridHandleRef > &&reference)
Definition ProcgenScriptSupport.cpp:27
eve::Value artifactProjection(GeneratedArtifact &&artifact)
Definition ProcgenScriptSupport.cpp:65
eve::Value boundsValue(const Bounds &bounds)
Definition ProcgenScriptSupport.cpp:53
@ Composite
ssq::Table projectRecipeDescriptorResult(HSQUIRRELVM vm, eve::Result< RecipeDescriptor > &&result)
Projects one native recipe schema through the canonical Result table.
Definition ProcgenScriptSupport.cpp:137
eve::Value publishReceiptProjection(ArtifactPublishReceipt &&receipt)
Definition ProcgenScriptSupport.cpp:87
ssq::Table projectStatusResult(HSQUIRRELVM vm, const Status &status)
Project a checked native status that carries no payload.
Definition SquirrelBinding.cpp:524
@ StaleHandle
Compatibility receipt retaining procgen ArtifactId at this boundary.
Definition ArtifactPublish.h:27
Axis-aligned bounds in the artifact's declared world coordinate space.
Definition GeneratedArtifact.h:95
Height field decoded from a persisted terrain file.
Definition TerrainFile.h:38
Complete immutable-once-published artifact record.
Definition GeneratedArtifact.h:183
Handle plus owner-lifetime epoch for a non-ECS registry object.
Definition RuntimeBorrow.h:72