Ejemplo n.º 1
0
        public virtual string ToOsbString(ExportSettings exportSettings)
        {
            var startTimeString  = ((int)StartTime).ToString(exportSettings.NumberFormat);
            var endTimeString    = ((int)EndTime).ToString(exportSettings.NumberFormat);
            var startValueString = StartValue.ToOsbString(exportSettings);
            var endValueString   = EndValue.ToOsbString(exportSettings);

            if (startTimeString == endTimeString)
            {
                endTimeString = string.Empty;
            }

            string[] parameters =
            {
                Identifier,      ((int)Easing).ToString(exportSettings.NumberFormat),
                startTimeString, endTimeString, startValueString
            };

            var result = string.Join(",", parameters);

            if (startValueString != endValueString)
            {
                result += "," + endValueString;
            }

            return(result);
        }