controllogic: add Graph.StateVars declarations (persisted via store JSON)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -72,6 +72,10 @@ type Graph struct {
|
||||
Nodes []Node `json:"nodes"`
|
||||
Wires []Wire `json:"wires"`
|
||||
Groups []NodeGroup `json:"groups,omitempty"`
|
||||
// StateVars declares graph-local variables (scalar or array). Live values are
|
||||
// instantiated in memory per generation from these declarations; only the
|
||||
// declarations persist. Mirrors the panel-logic statevars feature.
|
||||
StateVars []StateVar `json:"statevars,omitempty"`
|
||||
}
|
||||
|
||||
func (n Node) param(key string) string {
|
||||
|
||||
Reference in New Issue
Block a user