public ScmlFile GetScmlFile()
        {
            if (scmlConverted)
            {
                return(scmlFile);
            }

            var scmlData       = new XmlDocument();
            var root           = MakeRootNode(scmlData);
            var xmlDeclaration = scmlData.CreateXmlDeclaration("1.0", "UTF-8", null);

            scmlData.AppendChild(root);
            scmlData.InsertBefore(xmlDeclaration, root);
            scmlFile      = new ScmlFile(OutPath, scmlData);
            scmlConverted = true;
            return(scmlFile);
        }
Example #2
0
 public TexturesToAtlasConverter(TextureFile texturesFile, ScmlFile scmlFile)
 {
     TexturesFile = texturesFile;
     ScmlFile     = scmlFile;
 }
 public ScmlToKAnimConverter(TextureFile texturesFile, ScmlFile scmlFile)
 {
     TexturesFile = texturesFile;
     ScmlFile     = scmlFile;
 }