mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-09 10:42:31 -08:00
Testing tests
This commit is contained in:
parent
8b8d990852
commit
7b1c60c24f
2 changed files with 4 additions and 4 deletions
|
|
@ -50,21 +50,21 @@ public class PowerTestFixture{
|
|||
}
|
||||
|
||||
protected static PowerGenerator createFakeProducerBlock(float producedPower){
|
||||
return new PowerGenerator("fakegen"){{
|
||||
return new PowerGenerator("fakegen" + System.nanoTime()){{
|
||||
buildType = () -> new GeneratorBuild();
|
||||
powerProduction = producedPower;
|
||||
}};
|
||||
}
|
||||
|
||||
protected static Battery createFakeBattery(float capacity){
|
||||
return new Battery("fakebattery"){{
|
||||
return new Battery("fakebattery" + System.nanoTime()){{
|
||||
buildType = () -> new BatteryBuild();
|
||||
consumes.powerBuffered(capacity);
|
||||
}};
|
||||
}
|
||||
|
||||
protected static Block createFakeDirectConsumer(float powerPerTick){
|
||||
return new PowerBlock("fakedirectconsumer"){{
|
||||
return new PowerBlock("fakedirectconsumer" + System.nanoTime()){{
|
||||
buildType = Building::create;
|
||||
consumes.power(powerPerTick);
|
||||
}};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue