Exemplo n.º 1
0
        private static void LoadTextures(TextureProvider provider, IEnumerable <TextureItem> items)
        {
            var all = items.Where(x => !TextureHelper.Exists(x.Name.ToLowerInvariant())).ToList();

            if (!all.Any())
            {
                return;
            }
            provider.LoadTextures(all);
        }
Exemplo n.º 2
0
 private static void LoadTextures(TextureProvider provider, IEnumerable<TextureItem> items)
 {
     var all = items.Where(x => !TextureHelper.Exists(x.Name.ToLowerInvariant())).ToList();
     if (!all.Any()) return;
     provider.LoadTextures(all);
 }