载入中...
搜索中...
未找到
ModuleAssemblyScript.cpp
浏览该文件的文档.
10 "ProcgenModuleAssemblyPlan", std::function<ModuleAssemblyPlan*()>([] { return new ModuleAssemblyPlan(); }),
13 "configure", [vm](ModuleAssemblyPlan* value, float cellSize, float floorHeight, int minCellX, int maxCellX,
15 return eve::script::projectResult(vm, value->configure(cellSize, floorHeight, minCellX, maxCellX, minCellZ,
19 "setAllowedQuarterTurns", [vm](ModuleAssemblyPlan* value, bool turn0, bool turn90, bool turn180, bool turn270) {
20 return eve::script::projectResult(vm, value->setAllowedQuarterTurns(turn0, turn90, turn180, turn270));
32 assembly.addFunc("registerVolumeModule", [vm](ModuleAssemblyPlan* value, const std::string& id, int widthCells,
37 assembly.addFunc("addConnector", [vm](ModuleAssemblyPlan* value, const std::string& id, int cellX, int cellZ,
39 return eve::script::projectResult(vm, value->addConnector(id, cellX, cellZ, facing, tag, accepts));
47 assembly.addFunc("place", [vm](ModuleAssemblyPlan* value, const std::string& id, int cellX, int cellZ, int level,
51 assembly.addFunc("getPlacementCount", [](ModuleAssemblyPlan* value) { return value->getPlacementCount(); });
54 assembly.addFunc("getPlacementX", [](ModuleAssemblyPlan* value, int index) { return value->getPlacementX(index); });
55 assembly.addFunc("getPlacementY", [](ModuleAssemblyPlan* value, int index) { return value->getPlacementY(index); });
56 assembly.addFunc("getPlacementZ", [](ModuleAssemblyPlan* value, int index) { return value->getPlacementZ(index); });
The single Squirrel projection for common Result, Status and Value.
Deterministic owner of a validated modular assembly plan.
Definition ModuleAssembly.h:69
Definition EvpackPointGraphLoader.h:12
void exposeModuleAssembly(ssq::Table &table)
Bind the VM-owned assembly planner synchronously on the VM owner thread.
Definition ModuleAssemblyScript.cpp:7
ssq::Table projectResult(HSQUIRRELVM vm, Result< void > &&result)
Consume and project a void native Result using the common schema.
Definition SquirrelBinding.cpp:470