Support engine targets to hotswap worlds

This commit is contained in:
DanLT 2021-06-23 21:13:17 -08:00
parent ba91e433c3
commit 63f5c240a4

View File

@ -14,7 +14,7 @@ public class EngineTarget
{
private final MultiBurst burster;
private final IrisDimension dimension;
private final World world;
private World world;
private final int height;
private final IrisDataManager data;
private final ParallaxWorld parallaxWorld;
@ -32,6 +32,11 @@ public class EngineTarget
this.burster = new MultiBurst(threads);
}
public void updateWorld(World world)
{
this.world = world;
}
public EngineTarget(World world, IrisDimension dimension, IrisDataManager data, int height, int threads)
{
this(world, dimension, data, height, false, threads);