How to get just one of the already created entities? Example code;
void DrawSystem::update(entityx::EntityManager &es, entityx::EventManager &events, entityx::TimeDelta dt)
{
es.each<Draw>
(
[this](entityx::Entity entity, Draw &draw)
{
//draw test
}
);
}
but this will loop through all Draw
entities. How can I just get one Draw entity instead of the whole Draw
entities?