Skip to content

Commit 1e07732

Browse files
committed
Fixed more templates.
1 parent 9bb0390 commit 1e07732

10 files changed

+30
-14
lines changed

src/Arch/Arch.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -485,11 +485,6 @@ Merged arrays in EntityInfo for increased performance when creating and destroyi
485485
<DesignTime>True</DesignTime>
486486
<DependentUpon>Archetype.SetRange.tt</DependentUpon>
487487
</Compile>
488-
<Compile Update="Templates\World.EntityQuery.cs">
489-
<AutoGen>True</AutoGen>
490-
<DesignTime>True</DesignTime>
491-
<DependentUpon>World.EntityQuery.tt</DependentUpon>
492-
</Compile>
493488
<Compile Update="Templates\World.ParallelQuery.cs">
494489
<AutoGen>True</AutoGen>
495490
<DesignTime>True</DesignTime>
@@ -600,6 +595,11 @@ Merged arrays in EntityInfo for increased performance when creating and destroyi
600595
<DesignTime>True</DesignTime>
601596
<DependentUpon>World.Query.tt</DependentUpon>
602597
</Compile>
598+
<Compile Update="Templates\World.EntityQuery.cs">
599+
<AutoGen>True</AutoGen>
600+
<DesignTime>True</DesignTime>
601+
<DependentUpon>World.EntityQuery.tt</DependentUpon>
602+
</Compile>
603603
</ItemGroup>
604604

605605
</Project>

src/Arch/Templates/World.EntityQuery.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Arch.Core;
1212
public partial class World
1313
{
1414
<#
15-
for (var index = 2; index <= Amount; index++)
15+
for (var index = 1; index <= Amount; index++)
1616
{
1717
var generics = AppendGenerics(index);
1818
var getFirstElement = AppendGetFirstComponentFrom(index);

src/Arch/Templates/World.InlineEntityQuery.tt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
<#@ import namespace="System.Collections.Generic" #>
44
<#@ include file="Helpers.ttinclude" #>
55

6+
// TODO: Move query with T0 into world.cs?
7+
68
namespace Arch.Core;
79
public partial class World
810
{
911
<#
10-
for (var index = 2; index <= Amount; index++)
12+
for (var index = 1; index <= Amount; index++)
1113
{
1214
var generics = AppendGenerics(index);
1315
var getFirstElement = AppendGetFirstComponentFrom(index);

src/Arch/Templates/World.InlineEntityQueryWithRef.tt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
<#@ import namespace="System.Collections.Generic" #>
44
<#@ include file="Helpers.ttinclude" #>
55

6+
// TODO: Move query with T0 into world.cs?
7+
68
namespace Arch.Core;
79
public partial class World
810
{
911
<#
10-
for (var index = 2; index <= Amount; index++)
12+
for (var index = 1; index <= Amount; index++)
1113
{
1214
var generics = AppendGenerics(index);
1315
var getFirstElement = AppendGetFirstComponentFrom(index);

src/Arch/Templates/World.InlineParallelEntityQuery.tt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
<#@ import namespace="System.Collections.Generic" #>
44
<#@ include file="Helpers.ttinclude" #>
55

6+
// TODO: Move query with T0 into world.cs?
7+
68
namespace Arch.Core;
79
public partial class World
810
{
911
<#
10-
for (var index = 2; index <= Amount; index++)
12+
for (var index = 1; index <= Amount; index++)
1113
{
1214
var generics = AppendGenerics(index);
1315
#>

src/Arch/Templates/World.InlineParallelQuery.tt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
<#@ import namespace="System.Collections.Generic" #>
44
<#@ include file="Helpers.ttinclude" #>
55

6+
// TODO: Move query with T0 into world.cs?
7+
68
namespace Arch.Core;
79
public partial class World
810
{
911
<#
10-
for (var index = 2; index < Amount; index++)
12+
for (var index = 1; index < Amount; index++)
1113
{
1214
var generics = AppendGenerics(index);
1315
#>

src/Arch/Templates/World.InlineQuery.tt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
<#@ import namespace="System.Collections.Generic" #>
44
<#@ include file="Helpers.ttinclude" #>
55

6+
// TODO: Move query with T0 into world.cs?
7+
68
namespace Arch.Core;
79
public partial class World
810
{
911
<#
10-
for (var index = 2; index <= Amount; index++)
12+
for (var index = 1; index <= Amount; index++)
1113
{
1214
var generics = AppendGenerics(index);
1315
var getFirstElement = AppendGetFirstComponentFrom(index);

src/Arch/Templates/World.InlineQueryWithRef.tt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
<#@ import namespace="System.Collections.Generic" #>
44
<#@ include file="Helpers.ttinclude" #>
55

6+
// TODO: Move query with T0 into world.cs?
7+
68
namespace Arch.Core;
79
public partial class World
810
{
911
<#
10-
for (var index = 2; index <= Amount; index++)
12+
for (var index = 1; index <= Amount; index++)
1113
{
1214
var generics = AppendGenerics(index);
1315
var getFirstElement = AppendGetFirstComponentFrom(index);

src/Arch/Templates/World.ParallelQuery.tt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
<#@ import namespace="System.Collections.Generic" #>
44
<#@ include file="Helpers.ttinclude" #>
55

6+
// TODO: Move query with T0 into world.cs?
7+
68
namespace Arch.Core;
79
public partial class World
810
{
911
<#
10-
for (var index = 2; index <= Amount; index++)
12+
for (var index = 1; index <= Amount; index++)
1113
{
1214
var generics = AppendGenerics(index);
1315
#>

src/Arch/Templates/World.ParallelQueryWithEntity.tt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
<#@ import namespace="System.Collections.Generic" #>
44
<#@ include file="Helpers.ttinclude" #>
55

6+
// TODO: Move query with T0 into world.cs?
7+
68
namespace Arch.Core;
79
public partial class World
810
{
911
<#
10-
for (var index = 2; index <= Amount; index++)
12+
for (var index = 1; index <= Amount; index++)
1113
{
1214
var generics = AppendGenerics(index);
1315
#>

0 commit comments

Comments
 (0)