Handler<Element> AngelElementTarget::findElement() { Handler<World> const world = this->world(); if( unlikely(!world) ) { return Handler<Element>(); } return world->findElementById(id_); }
void AngelElementTarget::onAttatchedImpl() { Handler<World> const world = this->world(); if( unlikely(!world) ) { return; } Handler<Element> const element = world->findElementById(id_); if( unlikely(!element) ) { return; } element->showPoint( geom::ZERO ); }
Handler<ElementObject> WorldObject::findElementById(const std::string& id) { Handler<World> const world = this->world(); return world->findElementById(id)->donutObject(); }