16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 23:19:19 +02:00

cross switch detection for map manual control

This commit is contained in:
milek7
2020-10-20 02:17:21 +02:00
parent f96575ac79
commit 78305e3b28
10 changed files with 185 additions and 11 deletions

View File

@@ -10,6 +10,7 @@ http://mozilla.org/MPL/2.0/.
#pragma once
#include "scenenode.h"
#include "widgets/map_objects.h"
namespace scene {
@@ -63,6 +64,8 @@ private:
// creates handle for a new group
group_handle
create_handle();
bool
assign_cross_switch(map::track_switch&sw, TTrack *track, const std::string &id, size_t idx);
// members
group_map m_groupmap; // map of established node groups
std::stack<scene::group_handle> m_activegroup; // helper, group to be assigned to newly created nodes