This commit is contained in:
Anuken
2020-06-08 17:19:47 -04:00
parent 87ab895253
commit 8ea28e1ced
147 changed files with 438 additions and 437 deletions

View File

@@ -11,13 +11,13 @@ import static mindustry.Vars.state;
public class AsyncCore{
//all processes to be executed each frame
private final Array<AsyncProcess> processes = Array.with(
private final Seq<AsyncProcess> processes = Seq.with(
new PhysicsProcess(),
Vars.teamIndex = new TeamIndexProcess()
);
//futures to be awaited
private final Array<Future<?>> futures = new Array<>();
private final Seq<Future<?>> futures = new Seq<>();
private final ExecutorService executor = Executors.newFixedThreadPool(processes.size, r -> {
Thread thread = new Thread(r, "AsyncLogic-Thread");

View File

@@ -10,7 +10,7 @@ import mindustry.gen.*;
public class PhysicsProcess implements AsyncProcess{
private Physics physics;
private Array<PhysicRef> refs = new Array<>(false);
private Seq<PhysicRef> refs = new Seq<>(false);
private BodyDef def;
private EntityGroup<? extends Physicsc> group;