예제 #1
0
        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));
            }
        }