mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-21 20:14:59 +01:00
First implementation of graph vehicles
This commit is contained in:
15
tools/vehicle_graph/tests/consist-short.vhg
Normal file
15
tools/vehicle_graph/tests/consist-short.vhg
Normal file
@@ -0,0 +1,15 @@
|
||||
// expect: ok
|
||||
// vehicle of the consist test (consist.vhg) with the direction and door lines only: the lines "nastawnik" and "suma"
|
||||
// end at it
|
||||
{
|
||||
"format": "maszyna-vehicle-graph",
|
||||
"version": 2,
|
||||
"vehicle": { "name": "train line test, short" },
|
||||
"body": { "mass": 40000, "length": 20 },
|
||||
"nodes": [
|
||||
{ "id": "l_dir", "type": "if.line", "params": { "name": "kierunek", "combine": "maxabs", "reverse": true } },
|
||||
{ "id": "l_door_l", "type": "if.line", "params": { "name": "drzwi_lewe", "pair": "drzwi_prawe", "combine": "or" } },
|
||||
{ "id": "l_door_r", "type": "if.line", "params": { "name": "drzwi_prawe", "pair": "drzwi_lewe", "combine": "or" } }
|
||||
],
|
||||
"connections": []
|
||||
}
|
||||
Reference in New Issue
Block a user