Release Healer Man 0.1.21

This commit is contained in:
phenom committed 2026-09-08 10:40:26 -04:00
1 parent 699fc858c9
commit f6f2375145
210 files changed
+976039 -6247

No files matched your search

+15
View File
@@ -6,6 +6,7 @@ import * as recastPolicy from "../../scripts/dungeon-pipeline/recast-policy.mjs"
const {
nextTiledNavMeshSize,
planNavigationBuild,
shouldRetryFailedTiledBuildWithMonotone,
shouldUseMonotonePartition,
validateTiledBuild,
} = recastPolicy;
@@ -36,6 +37,14 @@ describe("dungeon Recast build policy", () => {
});
});
it("can explicitly tile compact but contour-complex source geometry", () => {
expect(planNavigationBuild([[0, 0, 0], [40, 10, 40]], 0.2, {
tileSize: 64,
maxSoloAxis: 0,
maxSoloCells: 0,
})).toMatchObject({ mode: "tiled", tileSize: 64, tileColumns: 4, tileRows: 4 });
});
it("accepts only confirmed empty-tile packing failures", () => {
const intermediates = {
buildContext: {
@@ -156,4 +165,10 @@ describe("dungeon Recast build policy", () => {
],
})).toBe(false);
});
it("retries watershed contour triangulation failures with monotone partition only", () => {
expect(shouldRetryFailedTiledBuildWithMonotone("Failed to triangulate contours", "watershed")).toBe(true);
expect(shouldRetryFailedTiledBuildWithMonotone("Failed to triangulate contours", "monotone")).toBe(false);
expect(shouldRetryFailedTiledBuildWithMonotone("Out of memory", "watershed")).toBe(false);
});
});