Seq.
This commit is contained in:
@@ -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(){
|
||||
|
||||
@@ -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(){
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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){
|
||||
|
||||
@@ -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(){}
|
||||
|
||||
Reference in New Issue
Block a user