Beispiel #1
0
        private void ConvertRbfToXml()
        {
            string inputFileName  = arguments[0];
            string outputFileName = inputFileName + ".rbf.xml";

            var rbf = new RbfFile().Load(inputFileName);

            new RbfXmlExporter().Export(rbf, outputFileName);
        }
Beispiel #2
0
        public static string GetXml(RbfFile rbf)
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendLine(XmlHeader);

            WriteNode(sb, 0, rbf.current);

            return(sb.ToString());
        }
Beispiel #3
0
        private void ConvertRbfToXml()
        {
            string inputFileName  = arguments[0];
            string outputFileName = inputFileName + ".rbf.xml";

            var rbf = new RbfFile();

            rbf.Load(inputFileName);

            var xml = RbfXml.GetXml(rbf);

            File.WriteAllText(outputFileName, xml);
        }
Beispiel #4
0
 public void LoadMeta(RbfFile rbf)
 {
     Xml      = RbfXml.GetXml(rbf);
     modified = false;
 }