public override YAMLNode ExportYAML(IExportContainer container) { YAMLMappingNode node = (YAMLMappingNode)base.ExportYAML(container); node.Add(MultiplierName, Multiplier); if (IsReadInfluenceFilter(container.Version)) { node.Add(InfluenceFilterName, InfluenceFilter); node.Add(InfluenceMaskName, InfluenceMask.ExportYAML(container)); node.Add(InfluenceListName, InfluenceList.ExportYAML(container)); } return(node); }
public override YAMLNode ExportYAML(IExportContainer container) { YAMLMappingNode node = (YAMLMappingNode)base.ExportYAML(container); node.AddSerializedVersion(ToSerializedVersion(container.ExportVersion)); if (HasMultiplierCurve(container.ExportVersion)) { node.Add(MultiplierCurveName, MultiplierCurve.ExportYAML(container)); } else { node.Add(MultiplierName, Multiplier); } if (HasInfluenceFilter(container.Version)) { node.Add(InfluenceFilterName, InfluenceFilter); node.Add(InfluenceMaskName, InfluenceMask.ExportYAML(container)); node.Add(InfluenceListName, InfluenceList.ExportYAML(container)); } return(node); }