public ImageSet GetImageSet(string resourcePath) { if (!ImageSets.ContainsKey(resourcePath)) { ImageSets[resourcePath] = ImageSet.LoadFromStream(mpqProvider.GetStream(resourcePath)); } return(ImageSets[resourcePath]); }
public ImageSet GetImageSet(string resourcePath) // => cache.AddOrGetExisting($"ImageSet::{resourcePath}", () => ImageSet.LoadFromStream(mpqProvider.GetStream(resourcePath))); => ImageSet.LoadFromStream(mpqProvider.GetStream(resourcePath));