mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 05:09:20 +02:00
feat(scenery): models laid along curves (sweep nodes), bent to follow the paths or repeated along them, loaded and saved with the scenery; trainsets put on a path while the simulation runs; trainset turned around by reversed after its header: the first vehicle stays at the offset and leads towards point 1, the rest stands behind it; launcher keeps reversed trainsets and can turn one around; memory cells saved with the new name of the path they name; events tell their targets and the events of a multiple event; renderer tells whether the cursor is over a surface; vehicle placed in the editor entered when the driving goes on
This commit is contained in:
@@ -1243,6 +1243,26 @@ multi_event::init() {
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<basic_event *> multi_event::children() const {
|
||||
std::vector<basic_event *> result;
|
||||
for (auto const &childevent : m_children) {
|
||||
if (std::get<basic_event *>(childevent) != nullptr) {
|
||||
result.push_back(std::get<basic_event *>(childevent));
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
std::vector<scene::basic_node *> basic_event::target_nodes() const {
|
||||
std::vector<scene::basic_node *> result;
|
||||
for (auto const &target : m_targets) {
|
||||
if (std::get<scene::basic_node *>(target) != nullptr) {
|
||||
result.push_back(std::get<scene::basic_node *>(target));
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
std::vector<std::string> multi_event::dump_children_names() const {
|
||||
std::vector<std::string> result;
|
||||
for (auto const &childevent : m_children) {
|
||||
|
||||
Reference in New Issue
Block a user