amethyst / amethyst/legion

Query with ordering / sorting?

Ouverte
#293 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Rust
Étoiles
1.7k
Forks
140
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

Is there a way to query entities with a given component, sorted by a value in the component?
I'm thinking of the case where entities represent 'Renderable' objects, which are sorted spatially. You'd want to visit them back->front for example.
I can't see such a thing in the docs, and I get that you could build a cache of the ordering by sorting entity ids yourself....

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.