Skip to content

Commit

Permalink
Remove IVoxelMap.voxelExists
Browse files Browse the repository at this point in the history
  • Loading branch information
piellardj committed Mar 6, 2024
1 parent d703487 commit 239577a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions src/lib/terrain/i-voxel-map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,6 @@ interface IVoxelMap {
* @param to End of the subsection (exclusive)
*/
iterateOnVoxels(from: Uint3, to: Uint3): Generator<IVoxel>

/**
* @returns whether or not a voxel exists at these coordinates.
*/
voxelExists(x: number, y: number, z: number): boolean
}

export type { IVoxel, IVoxelMap, IVoxelMaterial };
Expand Down
2 changes: 1 addition & 1 deletion src/test/voxel-map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 239577a

Please sign in to comment.