Initial reconstructor impl

This commit is contained in:
Anuken
2020-05-23 18:49:28 -04:00
parent d8ee862125
commit 46bc2207ff
69 changed files with 1000 additions and 968 deletions

View File

@@ -13,8 +13,6 @@ import mindustry.gen.*;
import mindustry.type.*;
import mindustry.world.blocks.environment.*;
import java.io.*;
import static mindustry.Vars.content;
@Component

View File

@@ -223,7 +223,7 @@ abstract class TileComp implements Posc, Teamc, Healthc, Tilec, Timerc, QuadTree
}
public float rotdeg(){
return tile.rotation() * 90;
return tile.rotdeg();
}
public int rotation(){
@@ -704,7 +704,7 @@ abstract class TileComp implements Posc, Teamc, Healthc, Tilec, Timerc, QuadTree
}
public void draw(){
Draw.rect(block.region, x, y, block.rotate ? rotation() * 90 : 0);
Draw.rect(block.region, x, y, block.rotate ? rotdeg() : 0);
}
public void drawLight(){