Refactoring
This commit is contained in:
@@ -137,11 +137,11 @@ public abstract class ClientLauncher extends ApplicationCore implements Platform
|
||||
app.post(() -> app.post(() -> app.post(() -> app.post(() -> super.resize(graphics.getWidth(), graphics.getHeight())))));
|
||||
}
|
||||
}else{
|
||||
asyncLogic.begin();
|
||||
asyncCore.begin();
|
||||
|
||||
super.update();
|
||||
|
||||
asyncLogic.end();
|
||||
asyncCore.end();
|
||||
}
|
||||
|
||||
int targetfps = Core.settings.getInt("fpscap", 120);
|
||||
|
||||
@@ -172,7 +172,7 @@ public class Vars implements Loadable{
|
||||
public static Mods mods;
|
||||
public static Schematics schematics;
|
||||
public static BeControl becontrol;
|
||||
public static AsyncLogic asyncLogic;
|
||||
public static AsyncCore asyncCore;
|
||||
public static TeamIndexProcess teamIndex;
|
||||
|
||||
public static Universe universe;
|
||||
@@ -241,7 +241,7 @@ public class Vars implements Loadable{
|
||||
world = new World();
|
||||
universe = new Universe();
|
||||
becontrol = new BeControl();
|
||||
asyncLogic = new AsyncLogic();
|
||||
asyncCore = new AsyncCore();
|
||||
|
||||
maps = new Maps();
|
||||
spawner = new WaveSpawner();
|
||||
|
||||
@@ -9,7 +9,7 @@ import java.util.concurrent.*;
|
||||
|
||||
import static mindustry.Vars.state;
|
||||
|
||||
public class AsyncLogic{
|
||||
public class AsyncCore{
|
||||
//all processes to be executed each frame
|
||||
private final Array<AsyncProcess> processes = Array.with(
|
||||
new PhysicsProcess(),
|
||||
@@ -26,7 +26,7 @@ public class AsyncLogic{
|
||||
return thread;
|
||||
});
|
||||
|
||||
public AsyncLogic(){
|
||||
public AsyncCore(){
|
||||
Events.on(WorldLoadEvent.class, e -> {
|
||||
complete();
|
||||
for(AsyncProcess p : processes){
|
||||
Reference in New Issue
Block a user