a performance disaster, part 2
This commit is contained in:
@@ -20,11 +20,6 @@ class AllDefs{
|
||||
|
||||
}
|
||||
|
||||
@GroupDef(value = Collisionc.class)
|
||||
class gcollision{
|
||||
|
||||
}
|
||||
|
||||
@GroupDef(value = Unitc.class, spatial = true, mapping = true)
|
||||
class gunit{
|
||||
|
||||
|
||||
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user