ChunkCache.cs 586 B

123456789101112131415161718192021222324
  1. using System.Collections.Generic;
  2. using System.Linq;
  3. using ChunkyImageLib;
  4. using ChunkyImageLib.DataHolders;
  5. using PixiEditor.DrawingApi.Core.Numerics;
  6. namespace PixiEditor.AvaloniaUI.ViewModels.Document;
  7. public class ChunkCache : Dictionary<ChunkResolution, ChunkSet>
  8. {
  9. public ChunkCache()
  10. {
  11. this[ChunkResolution.Full] = new ChunkSet();
  12. this[ChunkResolution.Half] = new ChunkSet();
  13. this[ChunkResolution.Quarter] = new ChunkSet();
  14. this[ChunkResolution.Eighth] = new ChunkSet();
  15. }
  16. }
  17. public class ChunkSet : Dictionary<VecI, Chunk>
  18. {
  19. }