public YAMLNode ExportYAML(IExportContainer container) { YAMLMappingNode node = new YAMLMappingNode(); node.AddSerializedVersion(GetSerializedVersion(container.Version)); node.Add("minMaxState", (ushort)MinMaxState); node.Add("scalar", GetExportScalar(container.Version)); node.Add("minScalar", GetExportMinScalar(container.Version)); node.Add("maxCurve", MaxCurve.ExportYAML(container)); node.Add("minCurve", MinCurve.ExportYAML(container)); return(node); }
public YAMLNode ExportYAML(IExportContainer container) { #warning TODO: values acording to read version (current 2017.3.0f3) YAMLMappingNode node = new YAMLMappingNode(); node.AddSerializedVersion(GetSerializedVersion(container.Version)); node.Add("minMaxState", (ushort)MinMaxState); node.Add("scalar", GetExportScalar(container.Version)); node.Add("minScalar", GetExportMinScalar(container.Version)); node.Add("maxCurve", MaxCurve.ExportYAML(container)); node.Add("minCurve", MinCurve.ExportYAML(container)); return(node); }
public YAMLNode ExportYAML(IExportContainer container) { YAMLMappingNode node = new YAMLMappingNode(); node.AddSerializedVersion(ToSerializedVersion(container.ExportVersion)); node.Add(MinMaxStateName, (ushort)MinMaxState); node.Add(ScalarName, GetExportScalar(container.Version)); node.Add(MinScalarName, GetExportMinScalar(container.Version)); node.Add(MaxCurveName, MaxCurve.ExportYAML(container)); node.Add(MinCurveName, MinCurve.ExportYAML(container)); return(node); }