载入中...
搜索中...
未找到
RPGBalanceBindings.cpp
浏览该文件的文档.
7 "RPGBalanceSuite", std::function<RPGBalanceSuite*()>([] { return new RPGBalanceSuite(); }), true);
20 cls.addFunc("measure", [vm](RPGBalanceSuite* self, ssq::Table parameters, ssq::Array seeds, float dt, int rounds) {
33 return script::projectResult(vm, Result<Value>::failure(checked.status()), [](Value v) { return v; });
The single Squirrel projection for common Result, Status and Value.
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:196
Result< ForceVector > checked(ForceVector value)
Definition ForceMath.h:21
Definition RPGBalance.cpp:25
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