mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-28 16:54:04 +00:00
Purpose seeds follow one rule; unknown noise styles fail
PackWorld.seed(purpose) is a default method, WorldRandom.purposeSeed of the world seed, for every host and purpose: the exception that let a host answer its own built-ins with older seeds is gone. An unknown style name or a missing expression now fails like a missing image map, instead of sampling flat or falling back to the base style.
This commit is contained in:
1 parent
264f754297
commit
e8fca6d8c6
9 files changed
+17
-32
No files matched your search
@@ -4,7 +4,6 @@ import com.volmit.ModuleLog;
|
||||
import com.volmit.config.PackSettings;
|
||||
import com.volmit.placement.Placements;
|
||||
import com.volmit.resource.PackResources;
|
||||
import com.volmit.resource.ResourceId;
|
||||
import com.volmit.world.PackWorld;
|
||||
import com.volmit.world.RunningWorld;
|
||||
import java.util.Objects;
|
||||
@@ -37,11 +36,6 @@ final class ModuleWorld implements PackWorld {
|
||||
return world.seed();
|
||||
}
|
||||
|
||||
@Override
|
||||
public long seed(ResourceId purpose) {
|
||||
return world.seed(purpose);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PackResources resources() {
|
||||
return world.resources();
|
||||
|
||||
@@ -11,9 +11,7 @@ import com.volmit.generation.GenerationContext;
|
||||
import com.volmit.hunk.Hunk;
|
||||
import com.volmit.mantle.Mantle;
|
||||
import com.volmit.placement.Placements;
|
||||
import com.volmit.random.WorldRandom;
|
||||
import com.volmit.resource.PackResources;
|
||||
import com.volmit.resource.ResourceId;
|
||||
import com.volmit.stage.Pipeline;
|
||||
import com.volmit.stage.Stage;
|
||||
import com.volmit.support.TestContexts;
|
||||
@@ -84,7 +82,6 @@ class ExtensionsTest {
|
||||
}
|
||||
|
||||
public long seed() { return TestContexts.SEED; }
|
||||
public long seed(ResourceId purpose) { return WorldRandom.purposeSeed(seed(), purpose); }
|
||||
public PackResources resources() { throw new AssertionError("Unused resources"); }
|
||||
public PackSettings settings() { throw new AssertionError("Unused settings"); }
|
||||
public int minWorldY() { return 0; }
|
||||
|
||||
@@ -6,10 +6,8 @@ import com.volmit.config.PackSettings;
|
||||
import com.volmit.config.SettingsStack;
|
||||
import com.volmit.host.ModuleLogs;
|
||||
import com.volmit.host.WorldStates;
|
||||
import com.volmit.random.WorldRandom;
|
||||
import com.volmit.placement.Placements;
|
||||
import com.volmit.resource.PackResources;
|
||||
import com.volmit.resource.ResourceId;
|
||||
import com.volmit.world.PackWorld;
|
||||
import com.volmit.world.RunningWorld;
|
||||
import java.util.Optional;
|
||||
@@ -34,11 +32,6 @@ public final class TestWorld implements PackWorld, AutoCloseable {
|
||||
return TestContexts.SEED;
|
||||
}
|
||||
|
||||
@Override
|
||||
public long seed(ResourceId purpose) {
|
||||
return WorldRandom.purposeSeed(seed(), purpose);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PackResources resources() {
|
||||
throw new AssertionError("Unused resources");
|
||||
|
||||
Reference in new issue
Block a user