use chunkid typealias for clarity in concurrent worldgen

This commit is contained in:
a dinosaur 2024-09-02 18:28:36 +10:00
parent 65af0b321d
commit 2e4a7a10df

View File

@ -63,7 +63,7 @@ public class World {
self._generator.reset(seed: seed)
let orig = SIMD3(width, height, depth) / 2
let localChunks = ConcurrentDictionary<SIMD3<Int>, Chunk>()
let localChunks = ConcurrentDictionary<ChunkID, Chunk>()
let queue = OperationQueue()
queue.qualityOfService = .userInitiated
for z in 0..<depth {