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

AI cruise control fix, minor refactoring

This commit is contained in:
tmj-fstate
2018-08-19 14:40:48 +02:00
parent 4aeb98ecbe
commit 24eda2d63f
7 changed files with 33 additions and 56 deletions

View File

@@ -27,16 +27,16 @@ public:
// methods
// requests creation of a new node group. returns: handle to the group
group_handle
begin();
create();
// indicates creation of current group ended. returns: handle to the parent group or null_handle if group stack is empty
group_handle
end();
close();
// returns current active group, or null_handle if group stack is empty
group_handle
handle() const;
// places provided node in specified group
void
register_node( scene::basic_node *Node, scene::group_handle const Group );
insert( scene::group_handle const Group, scene::basic_node *Node );
std::pair<node_sequence::iterator, node_sequence::iterator>
group( scene::group_handle const Group ) {
auto &group { m_groupmap[ Group ] };