Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            var folder = @"E:\git\terrible\assets\sprites\characters\";

            SpricerSpritesheetToJsonConverter.ConvertFolder(folder);

            Console.WriteLine("Hello World!");
        }
Ejemplo n.º 2
0
        public static void ConvertFolder(string folder)
        {
            var files = System.IO.Directory.GetFiles(folder, "*.txt");

            foreach (var file in files)
            {
                var fn     = System.IO.Path.GetFileNameWithoutExtension(file) + ".json";
                var result = SpricerSpritesheetToJsonConverter.Convert(file);
                System.IO.File.WriteAllText(folder + fn, result);
            }
        }