1
0
mirror of synced 2024-11-14 19:17:39 +01:00
Switch-Toolbox/File_Format_Library/YAML/YamlFmat.cs
KillzXGaming 7cf2e9c571 Cleanup
2019-07-16 17:45:10 -04:00

34 lines
816 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Bfres.Structs;
using SharpYaml;
using SharpYaml.Serialization;
using Syroot.NintenTools.NSW.Bfres;
namespace FirstPlugin
{
public class YamlFmat
{
public class RenderInfoConfig
{
public string Name { get; set; }
public RenderInfoType Type { get; set; }
public object Data { get; set; }
}
public static string ToYaml(string Name, FMAT material)
{
var serializerSettings = new SerializerSettings()
{
EmitTags = false
};
var serializer = new Serializer(serializerSettings);
return serializer.Serialize(material);
}
}
}