public SpriteSymbolIdProvider(Scml.File scmlFile, string name)
 {
     ScmlFile        = scmlFile;
     Name            = name;
     TimelineIdMap   = new Dictionary <int, int>();
     TimelineTypeMap = new Dictionary <int, KParser.Conversion.ChildType>();
     TimelineNameMap = new Dictionary <int, string>();
     BuildTimelineIdMap();
 }
Пример #2
0
        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);
        }
 public TexturesToAtlasConverter(Textures.File texturesFile, Scml.File scmlFile)
 {
     TexturesFile = texturesFile;
     ScmlFile     = scmlFile;
 }
Пример #4
0
 public ScmlToKAnimConverter(Textures.File texturesFile, Scml.File scmlFile)
 {
     TexturesFile = texturesFile;
     ScmlFile     = scmlFile;
 }