载入中...
搜索中...
未找到
ProcgenScriptSupport.h
浏览该文件的文档.
29eve::Result<T> procgenBindingFailure(eve::DiagnosticCode code, std::string message, std::string path = {});
52ssq::Table makeOwnedNativeProxy(HSQUIRRELVM vm, eve::Result<Ref>&& reference, Resolve&& resolve, Release&& release);
55ssq::Table projectBorrowedResult(HSQUIRRELVM vm, eve::script::Borrowed<T> borrowed, const char* objectName);
57ssq::Table makeOwnedPointSetProxy(HSQUIRRELVM vm, eve::Result<ProcgenPointSetHandleRef>&& reference);
59ssq::Table makeOwnedSpatialProxy(HSQUIRRELVM vm, eve::Result<ProcgenSpatialDataHandleRef>&& reference);
68ssq::Table projectDecodedTerrainResult(HSQUIRRELVM vm, eve::Result<DecodedTerrainFile>&& decoded);
72eve::Result<eve::script::RuntimeHandleRef<Tag>> ownProcgenObject(eve::script::RuntimeObjectRegistry<T, Tag>& registry,
78eve::Result<T> procgenBindingFailure(eve::DiagnosticCode code, std::string message, std::string path) {
111ssq::Table makeOwnedNativeProxy(HSQUIRRELVM vm, eve::Result<Ref>&& reference, Resolve&& resolve, Release&& release) {
163 ref, [ref, release = std::forward<Release>(release)]() mutable { return std::invoke(release, ref); },
185ssq::Table projectBorrowedResult(HSQUIRRELVM vm, eve::script::Borrowed<T> borrowed, const char* objectName) {
207 std::invoke(std::forward<Release>(release), ref).ignore("rollback failed owned procgen allocation");
Capability-driven, transactional publication of generated artifacts.
std::vector< std::unique_ptr< ScriptClimbingEventSink > > retired
Definition ClimbingServices.cpp:188
Owning, backend-neutral products published by procedural generation.
const eve::script::BindingContractRegistry & registry
Definition ProjectIndexAutomatic.cpp:24
Move-only, checked operation results for the common layer.
The single Squirrel projection for common Result, Status and Value.
Explicit Value/Owned/Borrowed semantics at the Squirrel boundary.
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
static Status success(StatusCode code=StatusCode::Ok)
Construct a successful status with an explicit non-error outcome.
Definition Status.cpp:19
Non-owning observation of a registry-owned object.
Definition RuntimeBorrow.h:27
Slot/generation registry whose objects are exclusively unique-owned.
Definition RuntimeRegistry.h:292
Definition EvpackPointGraphLoader.h:12
ssq::Table makeOwnedPointSetProxy(HSQUIRRELVM vm, eve::Result< ProcgenPointSetHandleRef > &&reference)
Definition ProcgenScriptSupport.cpp:14
SQInteger releaseNativeProxy(SQUserPointer pointer, SQInteger)
Definition ProcgenScriptSupport.h:94
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
ssq::Table makeOwnedSpatialProxy(HSQUIRRELVM vm, eve::Result< ProcgenSpatialDataHandleRef > &&reference)
Definition ProcgenScriptSupport.cpp:40
ssq::Table makeOwnedGridProxy(HSQUIRRELVM vm, eve::Result< ProcgenGridHandleRef > &&reference)
Definition ProcgenScriptSupport.cpp:27
eve::Value artifactProjection(GeneratedArtifact &&artifact)
Definition ProcgenScriptSupport.cpp:65
eve::Result< T > procgenBindingFailure(eve::DiagnosticCode code, std::string message, std::string path={})
Definition ProcgenScriptSupport.h:78
ssq::Table makeOwnedNativeProxy(HSQUIRRELVM vm, eve::Result< Ref > &&reference, Resolve &&resolve, Release &&release)
Definition ProcgenScriptSupport.h:111
std::optional< Ref > nativeProxyReference(T *native)
Definition ProcgenScriptSupport.h:84
eve::Value boundsValue(const Bounds &bounds)
Definition ProcgenScriptSupport.cpp:53
eve::Result< eve::script::RuntimeHandleRef< Tag > > ownProcgenObject(eve::script::RuntimeObjectRegistry< T, Tag > ®istry, eve::script::Owned< T > object)
Definition ProcgenScriptSupport.h:221
ssq::Table projectRecipeDescriptorResult(HSQUIRRELVM vm, eve::Result< RecipeDescriptor > &&result)
Projects one native recipe schema through the canonical Result table.
Definition ProcgenScriptSupport.cpp:137
ssq::Table projectBorrowedResult(HSQUIRRELVM vm, eve::script::Borrowed< T > borrowed, const char *objectName)
Definition ProcgenScriptSupport.h:185
ssq::Table makeOwnedProxy(HSQUIRRELVM vm, eve::Result< Ref > &&reference, Release &&release)
Definition ProcgenScriptSupport.h:200
eve::Value publishReceiptProjection(ArtifactPublishReceipt &&receipt)
Definition ProcgenScriptSupport.cpp:87
void markResultHasValue(ssq::Table &result)
Declare that a projected table received a payload the caller attached itself.
Definition SquirrelBinding.cpp:538
ssq::Table projectStatusResult(HSQUIRRELVM vm, const Status &status)
Project a checked native status that carries no payload.
Definition SquirrelBinding.cpp:524
std::unique_ptr< T > Owned
C++ owning storage used by an object factory.
Definition RuntimeRegistry.h:33
@ Failed
@ StaleHandle
@ Applied
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
Complete immutable-once-published artifact record.
Definition GeneratedArtifact.h:183
HSQOBJECT instance
Definition ProcgenScriptSupport.h:39
std::any reference
Definition ProcgenScriptSupport.h:34
std::function< eve::Result< void >()> release
Definition ProcgenScriptSupport.h:35
static std::unordered_map< T *, Record > records
Definition ProcgenScriptSupport.h:42