Exemple #1
0
Handler<Element> AngelElementTarget::findElement()
{
	Handler<World> const world = this->world();
	if( unlikely(!world) ) {
		return Handler<Element>();
	}
	return world->findElementById(id_);
}
Exemple #2
0
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 );
}
Exemple #3
0
Handler<ElementObject> WorldObject::findElementById(const std::string& id)
{
	Handler<World> const world = this->world();
	return world->findElementById(id)->donutObject();
}