载入中...
搜索中...
未找到
ScriptGeneratorHost.cpp
浏览该文件的文档.
53eve::Result<eve::Value> runGenerator(HSQUIRRELVM vm, Procgen& procgen, const ssq::Table& generator,
97 Procgen::release(contextRef).ignore("release script generator context after proxy creation failure");
116 return hostFailure<eve::Value>(eve::DiagnosticCode::Failed, std::move(error), "generator.generate");
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
void ignore(std::string_view reason={}) const noexcept
Explicitly discard this result after documenting the reason.
Definition Result.h:571
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 eve::script::Borrowed< Params > resolve(ProcgenParamsHandleRef reference) noexcept
Resolves parameters as a non-owning observation.
Definition ProcgenHandles.cpp:39
static eve::Result< ProcgenContextHandleRef > beginSystemHandle(const std::string &name, uint32_t seed)
Starts a module-owned rebuild context and returns its handle.
Definition Procgen.cpp:414
static eve::Result< void > release(ProcgenParamsHandleRef reference)
Releases module-owned parameters.
Definition ProcgenHandles.cpp:45
Result< Grid2D > generate(std::string_view operation, const GenerateSettings &settings)
Generate.
Definition GridGraphAlgorithms.cpp:164
Definition EvpackPointGraphLoader.h:12
void exposeScriptGeneratorHost(ssq::Class &cls)
Add the synchronous script-generator host API to the Procgen facade.
Definition ScriptGeneratorHost.cpp:145
eve::script::RuntimeHandleRef< ProcgenContextHandleTag > ProcgenContextHandleRef
Definition Procgen.h:120
void clearLastScriptError(HSQUIRRELVM vm)
Drops any recorded error for a VM.
Definition ScriptError.cpp:237
ssq::Table projectStatusResult(HSQUIRRELVM vm, const Status &status)
Project a checked native status that carries no payload.
Definition SquirrelBinding.cpp:524
std::string formatLastScriptError(HSQUIRRELVM vm)
Formats the last captured error for a VM without consuming it.
Definition ScriptError.cpp:242
@ InvalidArgument
@ Failed
@ StaleHandle
@ Conflict
Definition Container.h:602