18 auto description = episode->GetActorById(
_parent);
19 if (!description.has_value()) {
20 throw_exception(std::runtime_error(
"LaneInvasionEvent: parent already dead"));
22 return episode->MakeActor(*description);
const auto & GetEpisode() const
SharedPtr< client::Actor > GetActor() const
Get "self" actor. Actor that invaded another lane.
This file contains definitions of common data structures used in traffic manager.
std::shared_ptr< T > SharedPtr
void throw_exception(const ExceptionT &e)
Templated on the static type so the thrown object keeps its dynamic type: taking a const std::excepti...