diff --git a/src/Arch/Core/Query.cs b/src/Arch/Core/Query.cs index aedeef0..e0407ab 100644 --- a/src/Arch/Core/Query.cs +++ b/src/Arch/Core/Query.cs @@ -5,7 +5,7 @@ using CommunityToolkit.HighPerformance; namespace Arch.Core; - +using Arch.Core; /// /// The struct @@ -115,6 +115,16 @@ public override int GetHashCode() } } + /// + /// Creates an which iterates over all in this . + /// + /// An . + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public Enumerator GetEnumerator() + { + return new Enumerator(Components); + } + /// /// Checks for indifference, if the internal arrays have equal elements true is returned. Otherwise false. ///