From c130f9ea62c034cf108fed5c6e8c1ad17d68a32a Mon Sep 17 00:00:00 2001 From: Lars Date: Tue, 23 Jul 2024 00:29:19 +0200 Subject: [PATCH] Added enumerator to `Signature`. --- src/Arch/Core/Query.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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. ///