amethyst / amethyst/legion

Variant of Query::get that takes an EntryRef

Aberta
#173 0 comentários 2 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Rust
Estrelas
1.7k
Forks
140
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

I propose adding a variant of the three `Query::get` functions, `Query::get_from_entry` or the like, that takes an `EntryRef`/`EntryMut` instead of a `World` and `Entity`. If you want to use several queries on the same entity, then it is presumably faster to get the entry once and reuse it? Depending on what you think is better, these new functions might either be added alongside the current `Query::get` functions, or the existing functions be modified to work this way instead.

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.