载入中...
搜索中...
未找到
CollapseBakeRecipeBindings.cpp
浏览该文件的文档.
24 recipe.addFunc("setSource", [vm](CollapseBakeRecipe* self, const std::string& name, const std::string& bytes) {
33 recipe.addFunc("setRandomStream", [vm](CollapseBakeRecipe* self, const std::string& name, int seed) {
40 return script::projectResult(vm, self->key(), [](const std::string& key) { return Value::string(key); });
The single Squirrel projection for common Result, Status and Value.
Bounded provenance builder for explicit-coordinate baked recordings. @ownership Owns names and conten...
Definition BakeRecipe.h:21
Result< void > setTiming(float stepSeconds, std::uint32_t sampleStride)
Set the actual finite positive simulation step in seconds and positive ticks per captured sample.
Definition BakeRecipe.cpp:80
Result< std::string > key() const
Compute the noncryptographic cache key of the complete canonical recipe. @cost Linear in bounded meta...
Definition BakeRecipe.cpp:181
Result< void > setParameters(std::string_view bytes)
Digest complete parameter bytes, including defaults resolved by the producer. @cost Linear in bytes; ...
Definition BakeRecipe.cpp:87
Result< void > setBackend(std::string_view revision)
Set the explicit backend and its revision; never infer it from the player platform.
Definition BakeRecipe.cpp:75
Result< void > setSource(std::string_view name, std::string_view bytes)
Insert or replace a named dependency digest; names are stable logical IDs, not absolute paths....
Definition BakeRecipe.cpp:91
Result< void > setRandomStream(std::string_view name, std::uint64_t seed)
Insert or replace one of at most 64 named RNG seeds. Empty stream sets explicitly mean no RNG.
Definition BakeRecipe.cpp:98
Result< void > setProducer(std::string_view revision)
Set an explicit algorithm/build revision token; invalid input leaves the builder unchanged.
Definition BakeRecipe.cpp:70
Diagnostic invalid(const char *message)
Definition CollapseAnimationInternal.h:9
EVENGINE_API_DOMAINS void exposeCollapseBakeRecipe(ssq::Table &table)
Register the owning recipe builder and checked script admission methods.
Definition CollapseBakeRecipeBindings.cpp:8
ssq::Table projectResult(HSQUIRRELVM vm, Result< void > &&result)
Consume and project a void native Result using the common schema.
Definition SquirrelBinding.cpp:540