载入中...
搜索中...
未找到
BuildingAssemblyBindings.cpp
浏览该文件的文档.
10 return Result<Value>::failure(Diagnostic::error(DiagnosticCode::InvalidArgument, "World is required"));
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
建筑放置模块入口:定义 / 放置世界 / 鬼影 / 变更事件的脚本绑定点。 设计文档:docs/dev/建筑放置系统设计.md
Definition Building.cpp:10
void exposeHouseBindings(ssq::Table &table)
Definition BuildingAssemblyBindings.cpp:5
Result< Value > executeHouseRequest(PlacementWorld &w, const Value &request)
Execute the version-1 house authoring protocol used by scripts and tools. @ownership Synchronously bo...
Definition BuildingAssemblyProtocol.cpp:29
Result< void > pushValue(HSQUIRRELVM vm, const Value &value, const SquirrelValueOptions &options)
Push a canonical Value into the active Squirrel VM.
Definition SquirrelBinding.cpp:439
ssq::Table projectResult(HSQUIRRELVM vm, Result< void > &&result)
Consume and project a void native Result using the common schema.
Definition SquirrelBinding.cpp:540
Result< Value > valueFromSquirrel(HSQUIRRELVM vm, SQInteger index, const SquirrelValueOptions &options)
Convert one Squirrel value into the canonical owning Value tree.
Definition SquirrelBinding.cpp:412
@ InvalidArgument