Seq.
This commit is contained in:
@@ -120,8 +120,8 @@ public class Fx{
|
||||
}),
|
||||
|
||||
lightning = new Effect(10f, 500f, e -> {
|
||||
if(!(e.data instanceof Array)) return;
|
||||
Array<Vec2> lines = e.data();
|
||||
if(!(e.data instanceof Seq)) return;
|
||||
Seq<Vec2> lines = e.data();
|
||||
|
||||
stroke(3f * e.fout());
|
||||
color(e.color, Color.white, e.fin());
|
||||
|
||||
@@ -4,7 +4,7 @@ import mindustry.ctype.*;
|
||||
import mindustry.game.Objectives.*;
|
||||
import mindustry.type.*;
|
||||
|
||||
import static arc.struct.Array.with;
|
||||
import static arc.struct.Seq.with;
|
||||
import static mindustry.content.Items.*;
|
||||
import static mindustry.content.Planets.starter;
|
||||
import static mindustry.type.ItemStack.list;
|
||||
|
||||
@@ -11,13 +11,13 @@ import mindustry.world.*;
|
||||
import static mindustry.content.Blocks.*;
|
||||
|
||||
public class TechTree implements ContentList{
|
||||
public static Array<TechNode> all;
|
||||
public static Seq<TechNode> all;
|
||||
public static TechNode root;
|
||||
|
||||
@Override
|
||||
public void load(){
|
||||
TechNode.context = null;
|
||||
all = new Array<>();
|
||||
all = new Seq<>();
|
||||
|
||||
root = node(coreShard, () -> {
|
||||
|
||||
@@ -328,7 +328,7 @@ public class TechTree implements ContentList{
|
||||
/** Research turns required to research this content. */
|
||||
public int turns = 3; //TODO keep track of turns that have been used so far
|
||||
/** Nodes that depend on this node. */
|
||||
public final Array<TechNode> children = new Array<>();
|
||||
public final Seq<TechNode> children = new Seq<>();
|
||||
|
||||
TechNode(TechNode ccontext, UnlockableContent content, ItemStack[] requirements, Runnable children){
|
||||
if(ccontext != null){
|
||||
|
||||
Reference in New Issue
Block a user