예제 #1
0
 public StoryboardReader(string jsonDescPath, PreloadingStrategy preloadingStrategy = PreloadingStrategy.DoNotPreload)
 {
     _mapResource        = ResourceFactory.Create(jsonDescPath);
     _preloadingStrategy = preloadingStrategy;
     _bitmaps            = new Dictionary <string, SKBitmapHolder>();
     LoadTask            = LoadMap();
 }
예제 #2
0
 public StoryboardReader(string jsonDescPath, PreloadingStrategy preloadingStrategy = PreloadingStrategy.DoNotPreload, SKBitmapCache cache = null)
 {
     _mapResource        = ResourceFactory.Create(jsonDescPath);
     _preloadingStrategy = preloadingStrategy;
     _bitmapCache        = cache ?? new SKBitmapCache();
     _bitmaps            = new Dictionary <string, SKBitmapRefCounted>();
     LoadTask            = LoadMap();
 }