a performance disaster, part 2

This commit is contained in:
Anuken
2020-05-01 14:49:58 -04:00
parent 64bacea3c7
commit 3101fc8056
3 changed files with 125 additions and 99 deletions

View File

@@ -20,11 +20,6 @@ class AllDefs{
}
@GroupDef(value = Collisionc.class)
class gcollision{
}
@GroupDef(value = Unitc.class, spatial = true, mapping = true)
class gunit{

View File

@@ -57,6 +57,10 @@ public class EntityGroup<T extends Entityc> implements Iterable<T>{
each(Entityc::update);
}
public void copy(Array arr){
arr.addAll(array);
}
public void each(Cons<T> cons){
for(index = 0; index < array.size; index++){
cons.get(array.items[index]);