2021-05-15 19:44:19 -04:00
|
|
|
#include "removecontrollersmodificator.h"
|
|
|
|
#include "location.h"
|
|
|
|
|
|
|
|
RemoveControllersModificator::RemoveControllersModificator()
|
|
|
|
{}
|
|
|
|
|
|
|
|
RemoveControllersModificator::~RemoveControllersModificator()
|
|
|
|
{}
|
|
|
|
|
|
|
|
void RemoveControllersModificator::run() const
|
|
|
|
{
|
|
|
|
_location->removeControllers(_controllers_to_remove);
|
|
|
|
}
|
|
|
|
|
|
|
|
void RemoveControllersModificator::setDependentObjects(const std::shared_ptr<Location>& location,
|
2021-05-16 11:20:57 -04:00
|
|
|
const std::list<std::shared_ptr<Controller>>& controllers)
|
2021-05-15 19:44:19 -04:00
|
|
|
{
|
|
|
|
_location = location;
|
|
|
|
_controllers_to_remove = controllers;
|
|
|
|
}
|