private static void LoadTextures() { Map = new Dictionary <string, Texture>(); foreach (string textureFile in Directory.GetFiles(ResourceLocator.GetTexturesDirectory())) { Map.Add(Path.GetFileNameWithoutExtension(textureFile), new Texture(textureFile, 0, 0)); } }