mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-02 22:06:21 +01:00
First implementation of graph vehicles
This commit is contained in:
@@ -911,6 +911,19 @@ bool global_settings::ConfigParseNetwork(cParser& Parser, const std::string& tok
|
||||
return true;
|
||||
}
|
||||
|
||||
if (token == "vehiclegraph_preview")
|
||||
{
|
||||
// live preview server of the vehicle graph editor
|
||||
ParseOne(Parser, vehiclegraph_preview);
|
||||
return true;
|
||||
}
|
||||
|
||||
if (token == "vehiclegraph_preview_port")
|
||||
{
|
||||
ParseOne(Parser, vehiclegraph_preview_port);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -356,6 +356,9 @@ struct global_settings {
|
||||
|
||||
std::vector<std::pair<std::string, std::string>> network_servers;
|
||||
std::optional<std::pair<std::string, std::string>> network_client;
|
||||
// live preview server of the vehicle graph editor (vehicle/graph/graph_preview.h)
|
||||
bool vehiclegraph_preview{false};
|
||||
int vehiclegraph_preview_port{7420};
|
||||
float desync = 0.0f;
|
||||
|
||||
std::unordered_map<int, std::string> trainset_overrides;
|
||||
|
||||
Reference in New Issue
Block a user