private void ConvertRbfToXml() { string inputFileName = arguments[0]; string outputFileName = inputFileName + ".rbf.xml"; var rbf = new RbfFile().Load(inputFileName); new RbfXmlExporter().Export(rbf, outputFileName); }
public static string GetXml(RbfFile rbf) { StringBuilder sb = new StringBuilder(); sb.AppendLine(XmlHeader); WriteNode(sb, 0, rbf.current); return(sb.ToString()); }
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); }
public void LoadMeta(RbfFile rbf) { Xml = RbfXml.GetXml(rbf); modified = false; }