controllogic: add Graph.StateVars declarations (persisted via store JSON)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Martino Ferrari
2026-06-24 14:46:01 +02:00
parent e76865d132
commit 3ddffc14d7
2 changed files with 37 additions and 0 deletions
+4
View File
@@ -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 {