test: rename Run to RunImpl in test mocks
This commit is contained in:
parent
e460c0e70f
commit
d9cd943c52
|
|
@ -251,7 +251,7 @@ public class CommandTests
|
||||||
_command = command;
|
_command = command;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Run(World world)
|
public void RunImpl(World world)
|
||||||
{
|
{
|
||||||
_world.Commands.Enqueue(_command);
|
_world.Commands.Enqueue(_command);
|
||||||
}
|
}
|
||||||
|
|
@ -261,7 +261,7 @@ public class CommandTests
|
||||||
{
|
{
|
||||||
public int SeenCount { get; private set; }
|
public int SeenCount { get; private set; }
|
||||||
|
|
||||||
public void Run(World world)
|
public void RunImpl(World world)
|
||||||
{
|
{
|
||||||
foreach (var it in world.Select<TestPosition>())
|
foreach (var it in world.Select<TestPosition>())
|
||||||
SeenCount++;
|
SeenCount++;
|
||||||
|
|
|
||||||
|
|
@ -159,9 +159,9 @@ public class SystemTests
|
||||||
|
|
||||||
private class MovementSystem : ITickedSystem
|
private class MovementSystem : ITickedSystem
|
||||||
{
|
{
|
||||||
public void Run(World world) => Run(world, Tick.Logical());
|
public void RunImpl(World world) => RunImpl(world, Tick.Logical());
|
||||||
|
|
||||||
public void Run(World world, Tick tick)
|
public void RunImpl(World world, Tick tick)
|
||||||
{
|
{
|
||||||
float dt = tick.DeltaTime;
|
float dt = tick.DeltaTime;
|
||||||
foreach (var it in world.Select<Position, Velocity>())
|
foreach (var it in world.Select<Position, Velocity>())
|
||||||
|
|
@ -211,9 +211,9 @@ public class SystemTests
|
||||||
public bool WasCalled { get; private set; }
|
public bool WasCalled { get; private set; }
|
||||||
public Tick ReceivedTick { get; private set; }
|
public Tick ReceivedTick { get; private set; }
|
||||||
|
|
||||||
public void Run(World world) { }
|
public void RunImpl(World world) { }
|
||||||
|
|
||||||
public void Run(World world, Tick tick)
|
public void RunImpl(World world, Tick tick)
|
||||||
{
|
{
|
||||||
WasCalled = true;
|
WasCalled = true;
|
||||||
ReceivedTick = tick;
|
ReceivedTick = tick;
|
||||||
|
|
|
||||||
|
|
@ -273,7 +273,7 @@ public class ReactivityTests
|
||||||
_world = world;
|
_world = world;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Run(World world)
|
public void RunImpl(World world)
|
||||||
{
|
{
|
||||||
_world.CreateEntity();
|
_world.CreateEntity();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -154,9 +154,9 @@ public class SingletonTests
|
||||||
_world = world;
|
_world = world;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Run(World world) => Run(world, Tick.Logical());
|
public void RunImpl(World world) => RunImpl(world, Tick.Logical());
|
||||||
|
|
||||||
public void Run(World world, Tick tick)
|
public void RunImpl(World world, Tick tick)
|
||||||
{
|
{
|
||||||
ref var time = ref _world.GetSingleton<TimeState>();
|
ref var time = ref _world.GetSingleton<TimeState>();
|
||||||
time.Elapsed += tick.DeltaTime;
|
time.Elapsed += tick.DeltaTime;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue