mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-17 06:11:06 +00:00
Support engine targets to hotswap worlds
This commit is contained in:
@@ -14,7 +14,7 @@ public class EngineTarget
|
|||||||
{
|
{
|
||||||
private final MultiBurst burster;
|
private final MultiBurst burster;
|
||||||
private final IrisDimension dimension;
|
private final IrisDimension dimension;
|
||||||
private final World world;
|
private World world;
|
||||||
private final int height;
|
private final int height;
|
||||||
private final IrisDataManager data;
|
private final IrisDataManager data;
|
||||||
private final ParallaxWorld parallaxWorld;
|
private final ParallaxWorld parallaxWorld;
|
||||||
@@ -32,6 +32,11 @@ public class EngineTarget
|
|||||||
this.burster = new MultiBurst(threads);
|
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)
|
public EngineTarget(World world, IrisDimension dimension, IrisDataManager data, int height, int threads)
|
||||||
{
|
{
|
||||||
this(world, dimension, data, height, false, threads);
|
this(world, dimension, data, height, false, threads);
|
||||||
|
|||||||
Reference in New Issue
Block a user