Skip to content

Commit

Permalink
feat: expose relations_like
Browse files Browse the repository at this point in the history
  • Loading branch information
ten3roberts committed Oct 8, 2024
1 parent f561d7c commit bbe16b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/archetype/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ impl Archetype {
self.components.keys().filter(|v| v.is_relation()).copied()
}

pub(crate) fn relations_like(&self, relation: Entity) -> btree_map::Range<ComponentKey, usize> {
pub fn relations_like(&self, relation: Entity) -> btree_map::Range<ComponentKey, usize> {
self.components.range(
ComponentKey::new(relation, Some(Entity::MIN))
..=ComponentKey::new(relation, Some(Entity::MAX)),
Expand Down

0 comments on commit bbe16b3

Please sign in to comment.