载入中...
搜索中...
未找到
HexTerrainAbsent.cpp
浏览该文件的文档.
25 DiagnosticCode::NotFound, std::string(name) + " requires the hexmap module", "algorithm", {}, "procgen"));
32Result<Value> generateHexTerrain(const Params&) { return missingAlgorithm("generateHexTerrain"); }
38 return eve::script::projectResult(vm, missingAlgorithm(name), [](Value value) { return value; });
40 cls.addFunc("generateHexTerrain", [vm = cls.getHandle(), missing](Procgen*, ScriptProcgenParams*) -> ssq::Table {
43 cls.addFunc("generateHexSphere", [vm = cls.getHandle(), missing](Procgen*, ScriptProcgenParams*) -> ssq::Table {
Stable, structured diagnostics shared by engine modules.
Optional hexmap terrain bake bindings for Procgen.
Move-only, checked operation results for the common layer.
The single Squirrel projection for common Result, Status and Value.
Owning, renderer-independent dynamic values.
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={}, DiagnosticDetails details={}, std::string source={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.h:125
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:175
Definition EvpackPointGraphLoader.h:12
void registerHexTerrainAlgorithms(GeneratorRegistry ®istry)
Register hex.terrain / hex.sphere schemas when hexmap is present.
Definition HexMapTerrain.cpp:100
Result< Value > generateHexTerrain(const Params ¶ms)
Bake a planar hex map into the script Value hexmap applies.
Definition HexMapTerrain.cpp:146
Result< Value > generateHexSphere(const Params ¶ms)
Bake a spherical hex map into the script Value hexmap applies.
Definition HexMapTerrain.cpp:155
void exposeHexTerrain(ssq::Class &cls)
Expose generateHexTerrain / generateHexSphere on the Procgen class.
Definition HexMapTerrain.cpp:166
ssq::Table projectResult(HSQUIRRELVM vm, Result< void > &&result)
Consume and project a void native Result using the common schema.
Definition SquirrelBinding.cpp:470
@ NotFound