public ChunkColumn() { for (int i = 0; i < 16; i++) { _chunks[i] = PaletteChunk.CreateObject(); } isDirty = false; }
public ChunkBase this[int chunkIndex] { get { ChunkBase chunk = _chunks[chunkIndex]; if (chunk == null) { chunk = PaletteChunk.CreateObject(); _chunks[chunkIndex] = chunk; } return(chunk); } set => _chunks[chunkIndex] = value;