Appearance
sdk.cave_action_graph
Deterministic checkpoint action graph. Documents contain data only: custom behavior is resolved by registered callback name, never by executing strings.
lua
local M = require("sdk.cave_action_graph")Constants
Lua 5.4 has no enums — these are integer (or string) fields on the module.
| Name | Value | Summary |
|---|---|---|
Graph | Graph | Cave-action graph class. |
from_plan
function · from_plan(plan)
Build a cave-action graph definition from a hunt plan.
from_checkpoints
function · from_checkpoints(checkpoints)
Build a graph from an ordered checkpoint list.
validate
function · validate(definition, opts)
Validate a graph definition and return a compiled form.
compile
function · compile(definition, opts) return M.validate(definition, opts)
Alias of validate.
register
function · register(name, fn)
Register a named cave-action callback.
unregister
function · unregister(name)
Remove a named cave-action callback.
new
function · new(definition, opts)
Construct a runnable graph from a definition.