@@ -16,14 +16,14 @@ public partial class MovementSystem : BaseSystem<World, GameTime>
16
16
private readonly Rectangle _viewport ;
17
17
public MovementSystem ( World world , Rectangle viewport ) : base ( world ) { _viewport = viewport ; }
18
18
19
- [ Update ]
19
+ [ Query ]
20
20
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
21
21
public void Move ( [ Data ] GameTime time , ref Position pos , ref Velocity vel )
22
22
{
23
23
pos . Vector2 += time . ElapsedGameTime . Milliseconds * vel . Vector2 ;
24
24
}
25
25
26
- [ Update ]
26
+ [ Query ]
27
27
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
28
28
public void Bounce ( ref Position pos , ref Velocity vel )
29
29
{
@@ -48,7 +48,7 @@ public partial class ColorSystem : BaseSystem<World, GameTime>
48
48
{
49
49
public ColorSystem ( World world ) : base ( world ) { }
50
50
51
- [ Update ]
51
+ [ Query ]
52
52
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
53
53
public void ChangeColor ( [ Data ] GameTime time , ref Sprite sprite )
54
54
{
@@ -72,7 +72,7 @@ public override void BeforeUpdate(in GameTime t)
72
72
_batch . Begin ( ) ;
73
73
}
74
74
75
- [ Update ]
75
+ [ Query ]
76
76
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
77
77
public void Draw ( ref Position position , ref Sprite sprite )
78
78
{
@@ -100,7 +100,7 @@ public override void Update(in GameTime t)
100
100
PrintEntitiesWithoutVelocityQuery ( World ) ; // Call source generated query, which calls the PrintEntitiesWithoutVelocity method
101
101
}
102
102
103
- [ Update ]
103
+ [ Query ]
104
104
[ All < Position , Sprite > , None < Velocity > ]
105
105
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
106
106
public void PrintEntitiesWithoutVelocity ( in Entity entity )
0 commit comments