From fe62665b1d62d36ee0839e6bf24e3841ea667da9 Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 21 Mar 2025 20:05:53 +0100 Subject: refactor(ecs): replace query options with fieldless terms --- ecs/src/component/storage/graph.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'ecs/src/component/storage') diff --git a/ecs/src/component/storage/graph.rs b/ecs/src/component/storage/graph.rs index feac16c..e1f48f7 100644 --- a/ecs/src/component/storage/graph.rs +++ b/ecs/src/component/storage/graph.rs @@ -381,14 +381,21 @@ impl<'graph> StreamingIterator for ArchetypeAddEdgeDfsIter<'graph> .into_iter(), )); - Some(ArchetypeAddEdgeDfsIterResult::AddEdge(add_edge)) + Some(ArchetypeAddEdgeDfsIterResult::AddEdge { + add_edge_archetype_id: add_edge, + add_edge_component_id: component_id, + }) } } #[derive(Debug)] pub enum ArchetypeAddEdgeDfsIterResult<'graph, 'iter> { - AddEdge(ArchetypeId), + AddEdge + { + add_edge_archetype_id: ArchetypeId, + add_edge_component_id: Uid, + }, NoEdgesLeftForArchetype, NoAddEdge, AddEdgeAlreadyVisited, -- cgit v1.2.3-18-g5258