Example #1
0
        public ChunkColumn()
        {
            for (int i = 0; i < 16; i++)
            {
                _chunks[i] = PaletteChunk.CreateObject();
            }

            isDirty = false;
        }
Example #2
0
 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;