17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-05 05:14:27 +01:00

First implementation of graph vehicles

This commit is contained in:
2026-10-14 12:20:49 +02:00
parent 70abf879b3
commit 1ef465264c
121 changed files with 12292 additions and 729 deletions

View File

@@ -0,0 +1,22 @@
/*
This Source Code Form is subject to the
terms of the Mozilla Public License, v.
2.0. If a copy of the MPL was not
distributed with this file, You can
obtain one at
http://mozilla.org/MPL/2.0/.
*/
#pragma once
// live preview of the vehicle graphs for the external editor: a TCP server on the local machine, speaking json lines
// (protocol 1, see tools/vehicle_graph/README.md). off unless enabled with -graph-preview [port] or with
// "vehiclegraph_preview yes [port]" in eu07.ini. everything runs on the simulation thread: the connections are served
// by polling, once per frame
namespace vgraph
{
// serves the preview connections; does nothing when the preview is disabled
void preview_update();
} // namespace vgraph