mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-04 23:45:17 +01:00
Merge origin/staging into feat/simulation-snapshot
Brings in staging up to 6f566c075 (PR #468, the GL 4.6 / Vulkan renderers, the weather model,
the dual-mode traction commands and the motion of a vehicle off the track).
Conflicts:
- application/application.cpp: staging takes a -seed only when seed_given() reads one and marks it
with Global.random_seed_given; the branch remembered a seed from the command line so the snapshot's
seed doesn't replace it. Kept staging's parsing and set seedfromcommandline inside it; the seed taken
from the snapshot now also sets Global.random_seed_given, or init() would draw a random one over it
(it used to check only for a seed of 0) and the test mode would put its "test" seed over it.
- input/command.h, input/command.cpp: both added commands after genericset29. Staging's
tractionmode*/genset* first, then snapshotsave, in the same order in the enum, the descriptions
and the name map.
- simulation/simulationenvironment.h: the old opengl_renderer/opengl33_renderer forward declarations
are gone with #468, opengl46_renderer kept, <array> of the branch kept; wind_state() of the branch
and weather() of staging both kept.
- vehicle/DynObj.h: the snapshot methods of the branch in the public part, followed by staging's
off-track members and methods with their own private:/public: switch.
This commit is contained in:
@@ -408,6 +408,13 @@ commanddescription_sequence Commands_descriptions = {
|
||||
{"wiperswitchincrease", command_target::vehicle, command_mode::oneoff},
|
||||
{"wiperswitchdecrease", command_target::vehicle, command_mode::oneoff},
|
||||
{"lightsset", command_target::vehicle, command_mode::oneoff},
|
||||
{"fmradiotoggle", command_target::vehicle, command_mode::oneoff},
|
||||
{"fmradiovolumeincrease", command_target::vehicle, command_mode::oneoff},
|
||||
{"fmradiovolumedecrease", command_target::vehicle, command_mode::oneoff},
|
||||
{"fmradiovolumeset", command_target::vehicle, command_mode::oneoff},
|
||||
{"fmradiotuneincrease", command_target::vehicle, command_mode::oneoff},
|
||||
{"fmradiotunedecrease", command_target::vehicle, command_mode::oneoff},
|
||||
{"fmradiotuneset", command_target::vehicle, command_mode::oneoff},
|
||||
{"oilfuelpumptoggle", command_target::vehicle, command_mode::oneoff},
|
||||
{"linebreakertoggleb", command_target::vehicle, command_mode::oneoff},
|
||||
{"linebreakeropenb", command_target::vehicle, command_mode::oneoff},
|
||||
@@ -446,6 +453,12 @@ commanddescription_sequence Commands_descriptions = {
|
||||
{"genericset27", command_target::vehicle, command_mode::oneoff},
|
||||
{"genericset28", command_target::vehicle, command_mode::oneoff},
|
||||
{"genericset29", command_target::vehicle, command_mode::oneoff},
|
||||
{"tractionmodetoggle", command_target::vehicle, command_mode::oneoff},
|
||||
{"tractionmodecatenary", command_target::vehicle, command_mode::oneoff},
|
||||
{"tractionmodegenset", command_target::vehicle, command_mode::oneoff},
|
||||
{"gensettoggle", command_target::vehicle, command_mode::oneoff},
|
||||
{"gensetenable", command_target::vehicle, command_mode::oneoff},
|
||||
{"gensetdisable", command_target::vehicle, command_mode::oneoff},
|
||||
{"snapshotsave", command_target::simulation, command_mode::oneoff},
|
||||
};
|
||||
|
||||
@@ -834,6 +847,13 @@ std::unordered_map<std::string, user_command> const commandMap = {
|
||||
{"wiperswitchincrease", user_command::wiperswitchincrease},
|
||||
{"wiperswitchdecrease", user_command::wiperswitchdecrease},
|
||||
{"lightsset", user_command::lightsset},
|
||||
{"fmradiotoggle", user_command::fmradiotoggle},
|
||||
{"fmradiovolumeincrease", user_command::fmradiovolumeincrease},
|
||||
{"fmradiovolumedecrease", user_command::fmradiovolumedecrease},
|
||||
{"fmradiovolumeset", user_command::fmradiovolumeset},
|
||||
{"fmradiotuneincrease", user_command::fmradiotuneincrease},
|
||||
{"fmradiotunedecrease", user_command::fmradiotunedecrease},
|
||||
{"fmradiotuneset", user_command::fmradiotuneset},
|
||||
{"oilfuelpumptoggle", user_command::oilfuelpumptoggle},
|
||||
{"linebreakertoggleb", user_command::linebreakertoggleb},
|
||||
{"linebreakeropenb", user_command::linebreakeropenb},
|
||||
@@ -872,6 +892,12 @@ std::unordered_map<std::string, user_command> const commandMap = {
|
||||
{"genericset27", user_command::genericset27},
|
||||
{"genericset28", user_command::genericset28},
|
||||
{"genericset29", user_command::genericset29},
|
||||
{"tractionmodetoggle", user_command::tractionmodetoggle},
|
||||
{"tractionmodecatenary", user_command::tractionmodecatenary},
|
||||
{"tractionmodegenset", user_command::tractionmodegenset},
|
||||
{"gensettoggle", user_command::gensettoggle},
|
||||
{"gensetenable", user_command::gensetenable},
|
||||
{"gensetdisable", user_command::gensetdisable},
|
||||
{"snapshotsave", user_command::snapshotsave},
|
||||
{"none", user_command::none}};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user