mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-30 17:54:56 +00:00
Remove inlet passage
- Delete SeaInlet, its rasterizer, space and footprint, and the old inlet probe - Keep the mantle cells, old chunk seal and cave headroom behind SealedPassage - Keep their tests on a test passage so grottos can build on them - Report tidal arm counts from the plan in the hydrology probe
This commit is contained in:
21 files changed
+315
-1681
No files matched your search
@@ -2,6 +2,8 @@ package art.arcane.iris.probe;
|
||||
|
||||
import art.arcane.iris.generation.hydrology.plan.WindowKey;
|
||||
import art.arcane.iris.generation.hydrology.plan.WindowPlan;
|
||||
import art.arcane.iris.generation.hydrology.water.Reach;
|
||||
import art.arcane.iris.generation.hydrology.water.ReachStyle;
|
||||
import art.arcane.iris.generation.runtime.Engine;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@@ -21,21 +23,25 @@ final class HydrologyUnderground {
|
||||
static final Counts NONE = new Counts(0, 0L, 0, 0L, List.of());
|
||||
}
|
||||
|
||||
private static int tidal(WindowPlan plan) {
|
||||
int arms = 0;
|
||||
for (Reach reach : plan.reaches()) {
|
||||
arms += reach.style()[0] == ReachStyle.TIDAL ? 1 : 0;
|
||||
}
|
||||
return arms;
|
||||
}
|
||||
|
||||
static Source generated(Engine engine, ExecutorService workers) {
|
||||
return (key, plan) -> {
|
||||
SeaInletProbe.Checks inlets = SeaInletProbe.check(engine, List.of(), workers);
|
||||
int minChunkX = key.wx() * HydrologyWindows.CHUNKS;
|
||||
int minChunkZ = key.wz() * HydrologyWindows.CHUNKS;
|
||||
CavePoolProbe.Counts pools = CavePoolProbe.check(engine, new CavePoolProbe.Area(minChunkX, minChunkX + HydrologyWindows.CHUNKS - 1,
|
||||
minChunkZ, minChunkZ + HydrologyWindows.CHUNKS - 1), workers);
|
||||
List<String> examples = new ArrayList<>();
|
||||
for (String example : inlets.examples()) {
|
||||
examples.add("inlet " + example);
|
||||
}
|
||||
for (String example : pools.examples()) {
|
||||
examples.add("pool " + example);
|
||||
}
|
||||
return new Counts(inlets.inlets(), inlets.failures(), pools.pools(), pools.failures(), examples);
|
||||
return new Counts(tidal(plan), 0L, pools.pools(), pools.failures(), examples);
|
||||
};
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user