From 239577adadbcd5ba62272c90047eb10e97c3fa93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Piellard?= Date: Wed, 6 Mar 2024 18:51:25 +0100 Subject: [PATCH] Remove IVoxelMap.voxelExists --- src/lib/terrain/i-voxel-map.ts | 5 ----- src/test/voxel-map.ts | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/lib/terrain/i-voxel-map.ts b/src/lib/terrain/i-voxel-map.ts index 8127bc1..1fabc26 100644 --- a/src/lib/terrain/i-voxel-map.ts +++ b/src/lib/terrain/i-voxel-map.ts @@ -88,11 +88,6 @@ interface IVoxelMap { * @param to End of the subsection (exclusive) */ iterateOnVoxels(from: Uint3, to: Uint3): Generator - - /** - * @returns whether or not a voxel exists at these coordinates. - */ - voxelExists(x: number, y: number, z: number): boolean } export type { IVoxel, IVoxelMap, IVoxelMaterial }; diff --git a/src/test/voxel-map.ts b/src/test/voxel-map.ts index 52eec32..b5ba109 100644 --- a/src/test/voxel-map.ts +++ b/src/test/voxel-map.ts @@ -136,7 +136,7 @@ class VoxelMap implements AresRpgEngine.IVoxelMap { } } - public voxelExists(x: number, y: number, z: number): boolean { + private voxelExists(x: number, y: number, z: number): boolean { const voxel = this.getVoxel(x, z) return voxel?.y === y }