public override void Export(string FileName) { string ext = Utils.GetExtension(FileName); if (ext == ".bfscn") { if (SceneAnim != null) { SceneAnim.Export(FileName, ((BFRESGroupNode)Parent).GetResFile()); } else { SceneAnimU.Export(FileName, ((BFRESGroupNode)Parent).GetResFileU()); } } else if (ext == ".yaml") { if (SceneAnim != null) { System.IO.File.WriteAllText(FileName, YamlFscn.ToYaml(FileName, SceneAnim)); } } else if (ext == ".json") { if (SceneAnim != null) { System.IO.File.WriteAllText(FileName, YamlFscn.ToJson(FileName, SceneAnim)); } } }