public TextureFile GetTexturesFile()
        {
            if (texturesConverted)
            {
                return(texturesFile);
            }

            var atlasToTexturesConverter = new AtlasToTexturesConverter(AtlasFile, BuildFile, OutDir);

            texturesFile      = atlasToTexturesConverter.GetTexturesFile();
            texturesConverted = true;
            return(texturesFile);
        }
        private void ConvertFile()
        {
            AtlasToTexturesConverter atlasToTexturesConverter = new AtlasToTexturesConverter(AtlasFile, BuildFile);

            texturesFile = atlasToTexturesConverter.GetTexturesFile();

            XmlDocument    scml           = new XmlDocument();
            XmlElement     root           = MakeRootNode(scml);
            XmlDeclaration xmlDeclaration = scml.CreateXmlDeclaration("1.0", "UTF-8", null);

            scml.AppendChild(root);
            scml.InsertBefore(xmlDeclaration, root);
            scmlFile = new Scml.File(scml);
        }