public YAMLNode ExportYAML(IAssetsExporter exporter) { YAMLMappingNode node = new YAMLMappingNode(); //node.AddSerializedVersion(GetSerializedVersion(exporter.Version)); node.Add("nameHash", NameHash); node.Add("values", Values.ExportYAML()); node.Add("transitionTypes", TransitionTypes.ExportYAML(true)); node.Add("transitionIndices", TransitionIndices.ExportYAML(true)); return(node); }
public YAMLNode ExportYAML(IExportContainer container) { YAMLMappingNode node = new YAMLMappingNode(); //node.AddSerializedVersion(GetSerializedVersion(container.Version)); node.Add(NameHashName, NameHash); node.Add(ValuesName, Values.ExportYAML()); node.Add(TransitionTypesName, TransitionTypes.ExportYAML(true)); node.Add(TransitionIndicesName, TransitionIndices.ExportYAML(true)); return(node); }