mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-03 09:40:22 +01:00
Add vehicle graph core: .vhg loader, logic and cab blocks, -graph-run and -graph-catalog
This commit is contained in:
12
tools/vehicle_graph/tests/loop.vhg
Normal file
12
tools/vehicle_graph/tests/loop.vhg
Normal file
@@ -0,0 +1,12 @@
|
||||
// expect: error loop without a deferred block
|
||||
{ "format": "maszyna-vehicle-graph", "version": 2, "nodes": [
|
||||
{ "id": "start", "type": "cab.switch" },
|
||||
{ "id": "hold", "type": "logic.or" },
|
||||
{ "id": "coil", "type": "logic.and" },
|
||||
{ "id": "stop", "type": "logic.const", "params": { "value": 1 } }
|
||||
], "connections": [
|
||||
{ "from": "start.pos", "to": "hold.a" },
|
||||
{ "from": "coil.q", "to": "hold.b" },
|
||||
{ "from": "hold.q", "to": "coil.a" },
|
||||
{ "from": "stop.q", "to": "coil.b" }
|
||||
] }
|
||||
Reference in New Issue
Block a user