Re-added preloading of ground enemy path / Core unit casing FX

This commit is contained in:
Anuken
2020-11-19 12:31:27 -05:00
parent 7612a22480
commit 97c3d36bae
5 changed files with 15 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ import arc.*;
import arc.func.*;
import arc.math.geom.*;
import arc.struct.*;
import arc.util.*;
import mindustry.gen.*;
import java.util.*;
@@ -93,6 +94,7 @@ public class EntityGroup<T extends Entityc> implements Iterable<T>{
return map != null;
}
@Nullable
public T getByID(int id){
if(map == null) throw new RuntimeException("Mapping is not enabled for group " + id + "!");
return map.get(id);
@@ -188,10 +190,16 @@ public class EntityGroup<T extends Entityc> implements Iterable<T>{
clearing = false;
}
@Nullable
public T find(Boolf<T> pred){
return array.find(pred);
}
@Nullable
public T first(){
return array.first();
}
@Override
public Iterator<T> iterator(){
return array.iterator();