载入中...
搜索中...
未找到
ProcgenHandles.cpp
浏览该文件的文档.
49 eve::DiagnosticCode::StaleHandle, "Procgen module is no longer loaded", "params", {}, "procgen.squirrel"));
64eve::script::Borrowed<OutputSpec> Procgen::resolveOutput(ProcgenOutputHandleRef reference) noexcept {
73 eve::DiagnosticCode::StaleHandle, "Procgen module is no longer loaded", "output", {}, "procgen.squirrel"));
84 eve::Diagnostic::error(eve::DiagnosticCode::InvalidArgument, "procedural grid dimensions must be positive",
102 eve::DiagnosticCode::StaleHandle, "Procgen module is no longer loaded", "grid", {}, "procgen.squirrel"));
The single Squirrel projection for common Result, Status and Value.
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
Procedural generation module. Phase A: runtime maps (semantic Grid2D → TileLayer)....
Definition Procgen.h:159
static bool isStale(ProcgenParamsHandleRef reference) noexcept
Reports whether a parameter reference is stale.
Definition ProcgenHandles.cpp:53
static eve::script::Borrowed< Params > resolve(ProcgenParamsHandleRef reference) noexcept
Resolves parameters as a non-owning observation.
Definition ProcgenHandles.cpp:39
eve::Result< void > releaseOutput(ProcgenOutputHandleRef reference)
Releases an output specification.
Definition ProcgenHandles.cpp:69
eve::Result< ProcgenOutputHandleRef > newOutputHandle()
Allocates an owning output specification.
Definition ProcgenHandles.cpp:59
eve::script::Borrowed< PointSet > resolvePointSet(ProcgenPointSetHandleRef reference) noexcept
Resolves a point set as a borrowed view.
Definition ProcgenHandles.cpp:116
bool isPointSetStale(ProcgenPointSetHandleRef reference) const noexcept
Reports whether a point-set handle is stale.
Definition ProcgenHandles.cpp:124
eve::Result< void > releasePointSet(ProcgenPointSetHandleRef reference)
Releases a point-set intermediate.
Definition ProcgenHandles.cpp:120
eve::Result< ProcgenPointSetHandleRef > newPointSetHandle()
Allocates a point-set intermediate and returns its owner handle.
Definition ProcgenHandles.cpp:112
static eve::Result< ProcgenParamsHandleRef > newParamsHandle()
Allocates module-owned generation parameters.
Definition ProcgenHandles.cpp:34
static eve::Result< void > release(ProcgenParamsHandleRef reference)
Releases module-owned parameters.
Definition ProcgenHandles.cpp:45
eve::script::Borrowed< OutputSpec > resolveOutput(ProcgenOutputHandleRef reference) noexcept
Resolves an output specification as a borrowed view.
Definition ProcgenHandles.cpp:64
bool isOutputStale(ProcgenOutputHandleRef reference) const noexcept
Reports whether an output specification reference is stale.
Definition ProcgenHandles.cpp:77
static eve::Result< ProcgenGridHandleRef > newGridHandle(int width, int height)
Allocates module-owned grid storage and returns its handle.
Definition ProcgenHandles.cpp:81
Non-owning observation of a registry-owned object.
Definition RuntimeBorrow.h:27
Definition EvpackPointGraphLoader.h:12
eve::Result< eve::script::RuntimeHandleRef< Tag > > ownProcgenObject(eve::script::RuntimeObjectRegistry< T, Tag > ®istry, eve::script::Owned< T > object)
Definition ProcgenScriptSupport.h:221
@ InvalidArgument
@ StaleHandle