@@ -9,52 +9,52 @@ namespace Friflo.Engine.ECS;
99/// <summary>
1010/// Provide the state of an <paramref name="entity"/> within <see cref="ArchetypeQuery{T1,T2}.ForEachEntity"/>.
1111/// </summary>
12- public delegate void ForEachEntity < T1 , T2 > ( ref T1 component1 , ref T2 component2 , Entity entity )
13- where T1 : struct
14- where T2 : struct ;
12+ public delegate void ForEachEntity < T1 , T2 > ( ref T1 component1 , ref T2 component2 , Entity entity )
13+ where T1 : struct
14+ where T2 : struct ;
1515
1616
1717/// <summary>
1818/// A query instance use to retrieve the given component types.
1919/// See <a href="https://friflo.gitbook.io/friflo.engine.ecs/documentation/query">Example.</a>
2020/// </summary>
21- public sealed class ArchetypeQuery < T1 , T2 > : ArchetypeQuery // : IEnumerable <> // <- not implemented to avoid boxing
22- where T1 : struct
23- where T2 : struct
21+ public sealed class ArchetypeQuery < T1 , T2 > : ArchetypeQuery // : IEnumerable <> // <- not implemented to avoid boxing
22+ where T1 : struct
23+ where T2 : struct
2424{
2525 /// <inheritdoc cref="ArchetypeQuery.AllTags"/>
26- public new ArchetypeQuery < T1 , T2 > AllTags ( in Tags tags ) { SetHasAllTags ( tags ) ; return this ; }
26+ public new ArchetypeQuery < T1 , T2 > AllTags ( in Tags tags ) { SetHasAllTags ( tags ) ; return this ; }
2727 /// <inheritdoc cref="ArchetypeQuery.AnyTags"/>
28- public new ArchetypeQuery < T1 , T2 > AnyTags ( in Tags tags ) { SetHasAnyTags ( tags ) ; return this ; }
28+ public new ArchetypeQuery < T1 , T2 > AnyTags ( in Tags tags ) { SetHasAnyTags ( tags ) ; return this ; }
2929 /// <inheritdoc cref="ArchetypeQuery.WithDisabled"/>
30- public new ArchetypeQuery < T1 , T2 > WithDisabled ( ) { SetWithDisabled ( ) ; return this ; }
30+ public new ArchetypeQuery < T1 , T2 > WithDisabled ( ) { SetWithDisabled ( ) ; return this ; }
3131 /// <inheritdoc cref="ArchetypeQuery.WithoutAllTags"/>
32- public new ArchetypeQuery < T1 , T2 > WithoutAllTags ( in Tags tags ) { SetWithoutAllTags ( tags ) ; return this ; }
32+ public new ArchetypeQuery < T1 , T2 > WithoutAllTags ( in Tags tags ) { SetWithoutAllTags ( tags ) ; return this ; }
3333 /// <inheritdoc cref="ArchetypeQuery.WithoutAnyTags"/>
34- public new ArchetypeQuery < T1 , T2 > WithoutAnyTags ( in Tags tags ) { SetWithoutAnyTags ( tags ) ; return this ; }
34+ public new ArchetypeQuery < T1 , T2 > WithoutAnyTags ( in Tags tags ) { SetWithoutAnyTags ( tags ) ; return this ; }
3535
3636 /// <inheritdoc cref="ArchetypeQuery.AllComponents"/>
37- public new ArchetypeQuery < T1 , T2 > AllComponents ( in ComponentTypes componentTypes ) { SetHasAllComponents ( componentTypes ) ; return this ; }
37+ public new ArchetypeQuery < T1 , T2 > AllComponents ( in ComponentTypes componentTypes ) { SetHasAllComponents ( componentTypes ) ; return this ; }
3838 /// <inheritdoc cref="ArchetypeQuery.AnyComponents"/>
39- public new ArchetypeQuery < T1 , T2 > AnyComponents ( in ComponentTypes componentTypes ) { SetHasAnyComponents ( componentTypes ) ; return this ; }
39+ public new ArchetypeQuery < T1 , T2 > AnyComponents ( in ComponentTypes componentTypes ) { SetHasAnyComponents ( componentTypes ) ; return this ; }
4040 /// <inheritdoc cref="ArchetypeQuery.WithoutAllComponents"/>
41- public new ArchetypeQuery < T1 , T2 > WithoutAllComponents ( in ComponentTypes componentTypes ) { SetWithoutAllComponents ( componentTypes ) ; return this ; }
41+ public new ArchetypeQuery < T1 , T2 > WithoutAllComponents ( in ComponentTypes componentTypes ) { SetWithoutAllComponents ( componentTypes ) ; return this ; }
4242 /// <inheritdoc cref="ArchetypeQuery.WithoutAnyComponents"/>
43- public new ArchetypeQuery < T1 , T2 > WithoutAnyComponents ( in ComponentTypes componentTypes ) { SetWithoutAnyComponents ( componentTypes ) ; return this ; }
43+ public new ArchetypeQuery < T1 , T2 > WithoutAnyComponents ( in ComponentTypes componentTypes ) { SetWithoutAnyComponents ( componentTypes ) ; return this ; }
4444
4545 /// <inheritdoc cref="QueryFilter.HasValue{TComponent,TValue}"/>
46- public new ArchetypeQuery < T1 , T2 > HasValue < TComponent , TValue > ( TValue value ) where TComponent : struct , IIndexedComponent < TValue >
46+ public new ArchetypeQuery < T1 , T2 > HasValue < TComponent , TValue > ( TValue value ) where TComponent : struct , IIndexedComponent < TValue >
4747 { base . HasValue < TComponent , TValue > ( value ) ; return this ; }
4848
4949 /// <inheritdoc cref="QueryFilter.ValueInRange{TComponent,TValue}"/>
50- public new ArchetypeQuery < T1 , T2 > ValueInRange < TComponent , TValue > ( TValue min , TValue max ) where TComponent : struct , IIndexedComponent < TValue > where TValue : IComparable < TValue >
50+ public new ArchetypeQuery < T1 , T2 > ValueInRange < TComponent , TValue > ( TValue min , TValue max ) where TComponent : struct , IIndexedComponent < TValue > where TValue : IComparable < TValue >
5151 { base . ValueInRange < TComponent , TValue > ( min , max ) ; return this ; }
5252
5353
5454 /// <inheritdoc cref="ArchetypeQuery.FreezeFilter"/>
55- public new ArchetypeQuery < T1 , T2 > FreezeFilter ( ) { SetFreezeFilter ( ) ; return this ; }
55+ public new ArchetypeQuery < T1 , T2 > FreezeFilter ( ) { SetFreezeFilter ( ) ; return this ; }
5656
57- internal ArchetypeQuery ( EntityStoreBase store , in Signature < T1 , T2 > signature , QueryFilter filter )
57+ internal ArchetypeQuery ( EntityStoreBase store , in Signature < T1 , T2 > signature , QueryFilter filter )
5858 : base ( store , signature . signatureIndexes , filter , null ) {
5959 }
6060
@@ -67,12 +67,12 @@ internal ArchetypeQuery(EntityStoreBase store, in Signature<T1, T2> signature, Q
6767 /// <summary>
6868 /// Returns a <see cref="QueryJob"/> that enables <see cref="JobExecution.Parallel"/> query execution.
6969 /// </summary>
70- public QueryJob < T1 , T2 > ForEach ( Action < Chunk < T1 > , Chunk < T2 > , ChunkEntities > action ) => new ( this , action ) ;
70+ public QueryJob < T1 , T2 > ForEach ( Action < Chunk < T1 > , Chunk < T2 > , ChunkEntities > action ) => new ( this , action ) ;
7171
7272 /// <summary>
7373 /// Executes the given <paramref name="lambda"/> for each entity in the query result.
7474 /// </summary>
75- public void ForEachEntity ( ForEachEntity < T1 , T2 > lambda )
75+ public void ForEachEntity ( ForEachEntity < T1 , T2 > lambda )
7676 {
7777 var localStore = Store ;
7878 var nodes = localStore . nodes ;
0 commit comments