17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-17 16:49:21 +02:00

feat(editor): infrastructure bound to the paths follows their changes

This commit is contained in:
maj00r
2026-10-04 00:14:03 +02:00
parent 7371b18910
commit 8778353b22
15 changed files with 2083 additions and 1 deletions

View File

@@ -503,6 +503,30 @@ basic_cell::erase( TMemCell *Memorycell ) {
std::end( m_memorycells ) );
}
void
basic_cell::erase( TTraction *Traction ) {
m_traction.erase(
std::remove( std::begin( m_traction ), std::end( m_traction ), Traction ),
std::end( m_traction ) );
}
void
basic_cell::unregister_end( TTraction *Traction ) {
m_directories.traction.erase(
std::remove( std::begin( m_directories.traction ), std::end( m_directories.traction ), Traction ),
std::end( m_directories.traction ) );
}
void
basic_cell::erase( TEventLauncher *Launcher ) {
m_eventlaunchers.erase(
std::remove( std::begin( m_eventlaunchers ), std::end( m_eventlaunchers ), Launcher ),
std::end( m_eventlaunchers ) );
}
// registers provided path in the lookup directory of the cell
void
basic_cell::register_end( TTrack *Path ) {