This commit is contained in:
Anuken
2020-06-08 17:19:47 -04:00
parent 87ab895253
commit 8ea28e1ced
147 changed files with 438 additions and 437 deletions

View File

@@ -26,14 +26,14 @@ public class BlockRenderer implements Disposable{
public final FloorRenderer floor = new FloorRenderer();
private Array<Tile> requests = new Array<>(false, initialRequests, Tile.class);
private Seq<Tile> requests = new Seq<>(false, initialRequests, Tile.class);
private int lastCamX, lastCamY, lastRangeX, lastRangeY;
private float brokenFade = 0f;
private FrameBuffer shadows = new FrameBuffer();
private FrameBuffer fog = new FrameBuffer();
private Array<Tilec> outArray2 = new Array<>();
private Array<Tile> shadowEvents = new Array<>();
private Seq<Tilec> outArray2 = new Seq<>();
private Seq<Tile> shadowEvents = new Seq<>();
private boolean displayStatus = false;
public BlockRenderer(){

View File

@@ -24,7 +24,7 @@ public class FloorRenderer implements Disposable{
private MultiCacheBatch cbatch;
private IntSet drawnLayerSet = new IntSet();
private IntSet recacheSet = new IntSet();
private IntArray drawnLayers = new IntArray();
private IntSeq drawnLayers = new IntSeq();
private ObjectSet<CacheLayer> used = new ObjectSet<>();
public FloorRenderer(){

View File

@@ -18,7 +18,7 @@ public class LightRenderer{
private float[] vertices = new float[24];
private FrameBuffer buffer = new FrameBuffer();
private Array<Runnable> lights = new Array<>();
private Seq<Runnable> lights = new Seq<>();
public void add(Runnable run){
if(!enabled()) return;

View File

@@ -26,7 +26,7 @@ public class LoadRenderer implements Disposable{
private static final Color colorRed = Pal.breakInvalid.cpy().lerp(Color.black, 0.3f);
private static final String red = "[#" + colorRed + "]";
private static final String orange = "[#" + color + "]";
private static final FloatArray floats = new FloatArray();
private static final FloatSeq floats = new FloatSeq();
private static final boolean preview = false;
private float testprogress = 0f;

View File

@@ -42,7 +42,7 @@ public class MenuRenderer implements Disposable{
private void generate(){
world.beginMapLoad();
Tiles tiles = world.resize(width, height);
Array<Block> ores = content.blocks().select(b -> b instanceof OreBlock);
Seq<Block> ores = content.blocks().select(b -> b instanceof OreBlock);
shadows = new FrameBuffer(width, height);
int offset = Mathf.random(100000);
Simplex s1 = new Simplex(offset);

View File

@@ -22,7 +22,7 @@ import static mindustry.Vars.*;
public class MinimapRenderer implements Disposable{
private static final float baseSize = 16f;
private final Array<Unitc> units = new Array<>();
private final Seq<Unitc> units = new Seq<>();
private Pixmap pixmap;
private Texture texture;
private TextureRegion region;

View File

@@ -9,7 +9,7 @@ import arc.util.pooling.*;
public class Trail{
private static final int length = 20;
private Array<Vec3> points = new Array<>();
private Seq<Vec3> points = new Seq<>();
private float lastX = -1, lastY = -1;
public void draw(Color color, float width){

View File

@@ -22,7 +22,7 @@ public class PlanetRenderer implements Disposable{
borderColor = Pal.accent.cpy().a(0.3f),
shadowColor = new Color(0, 0, 0, 0.7f);
private static final Array<Vec3> points = new Array<>();
private static final Seq<Vec3> points = new Seq<>();
private static final PlanetInterfaceRenderer emptyRenderer = new PlanetInterfaceRenderer(){
@Override public void renderSectors(Planet planet){}
@Override public void renderProjections(){}