public override void Export(string FileName) { string ext = Utils.GetExtension(FileName); if (ext == ".bfshu") { ShaderParamAnim.Export(FileName, GetResFile(), ShaderParamAnimType.ShaderParameter); } else if (ext == ".bfcsh") { ShaderParamAnim.Export(FileName, GetResFile(), ShaderParamAnimType.Color); } else if (ext == ".bftsh") { ShaderParamAnim.Export(FileName, GetResFile(), ShaderParamAnimType.TextureSRT); } else if (ext == ".bfmaa") { var fmaa = BfresPlatformConverter.FSHUConvertWiiUToSwitch(ShaderParamAnim); fmaa.Export(FileName, new Syroot.NintenTools.NSW.Bfres.ResFile()); } else if (ext == ".yaml") { var yaml = YamlFmaa.ToYaml(FileName, BfresPlatformConverter.FSHUConvertWiiUToSwitch(ShaderParamAnim), this.AnimType); System.IO.File.WriteAllText(FileName, yaml); } else if (ext == ".clr0") { } }
public override void Export(string FileName) { string ext = Utils.GetExtension(FileName); if (ext == ".bfmaa") { MaterialAnim.Export(FileName, GetResFile()); } else if (ext == ".yaml") { System.IO.File.WriteAllText(FileName, YamlFmaa.ToYaml(FileName, MaterialAnim, AnimType)); } }
public override void Export(string FileName) { string ext = Utils.GetExtension(FileName); if (ext == ".bftxp") { TexPatternAnim.Export(FileName, GetResFile()); } else if (ext == ".bfmaa") { var fmaa = BfresPlatformConverter.FTXPConvertWiiUToSwitch(TexPatternAnim); fmaa.Export(FileName, new Syroot.NintenTools.NSW.Bfres.ResFile()); } else if (ext == ".yaml") { var yaml = YamlFmaa.ToYaml(FileName, BfresPlatformConverter.FTXPConvertWiiUToSwitch(TexPatternAnim), AnimationType.TexturePattern); System.IO.File.WriteAllText(FileName, yaml); } }