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

Add vehicle graph core: .vhg loader, logic and cab blocks, -graph-run and -graph-catalog

This commit is contained in:
2026-10-13 10:55:53 +02:00
parent c26041f2e7
commit 70abf879b3
42 changed files with 4693 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
/*
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
#include <string>
namespace vgraph
{
// -graph-catalog [<file.json>]: writes the description of all block types, for the external editor.
// returns: 0 on success, 1 otherwise
int graph_catalog_standalone(std::string const &Output);
// -graph-run <file.vhg> [options]: checks the graph and runs it without the simulator, driven by a script of events.
// returns: 0 on success, 1 otherwise
int graph_run_standalone(int Argc, char *Argv[]);
} // namespace vgraph