Add wiper animation

This commit is contained in:
2025-03-06 22:51:24 +01:00
parent 13e6dc0f87
commit f8d6bf5d0c
10 changed files with 330 additions and 6 deletions

View File

@@ -375,6 +375,8 @@ commanddescription_sequence Commands_descriptions = {
{ "spawntrainset", command_target::simulation, command_mode::oneoff },
{ "destroytrainset", command_target::simulation, command_mode::oneoff },
{ "quitsimulation", command_target::simulation, command_mode::oneoff },
{"wiperswitchincrease", command_target::vehicle, command_mode::oneoff},
{"wiperswitchdecrease", command_target::vehicle, command_mode::oneoff},
};
// Maps of command and coresponding strings
@@ -729,6 +731,8 @@ std::unordered_map<std::string, user_command> commandMap = {
{"spawntrainset", user_command::spawntrainset},
{"destroytrainset", user_command::destroytrainset},
{"quitsimulation", user_command::quitsimulation},
{"wiperswitchincrease", user_command::wiperswitchincrease},
{"wiperswitchdecrease", user_command::wiperswitchdecrease},
{"none", user_command::none}};
} // simulation