(x: number, y: number, z: number, type: number)
| 58 | } |
| 59 | |
| 60 | function setBlock(x: number, y: number, z: number, type: number): void { |
| 61 | if (x < 0 || x >= worldSizeX || y < 0 || y >= WORLD_HEIGHT || z < 0 || z >= worldSizeZ) return; |
| 62 | blocks[blockIndex(x, y, z)] = type; |
| 63 | } |
| 64 | |
| 65 | // Simple terrain generation using sine waves |
| 66 | function generateTerrain(): void { |
no test coverage detected