mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-28 22:47:28 +01:00
First implementation of graph vehicles
This commit is contained in:
@@ -31,9 +31,14 @@ std::string const &block::text(block_setup const &Setup, std::size_t const Param
|
||||
return Setup.params[Param].text;
|
||||
}
|
||||
|
||||
std::vector<std::vector<double>> const &block::table(block_setup const &Setup, std::size_t const Param)
|
||||
{
|
||||
return Setup.params[Param].rows;
|
||||
}
|
||||
|
||||
int block::choice(block_setup const &Setup, std::size_t const Param)
|
||||
{
|
||||
auto const &choices{Setup.type.params[Param].choices};
|
||||
auto const &choices{Setup.param_defs[Param].choices};
|
||||
auto const &value{Setup.params[Param].text};
|
||||
for (std::size_t idx = 0; idx < choices.size(); ++idx)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user