Exemplo n.º 1
0
        public static Chart Deserialize(List <string> parameters)
        {
            var notes = new Chart();

            notes.chartType         = parameters[1];
            notes.description       = parameters[2];
            notes.difficulty        = parameters[3];
            notes.meter             = int.Parse(parameters[4]);
            notes.grooveRadarValues = GetGrooveRadarValues(parameters[5]);
            notes.noteData          = NoteData.Deserialize(parameters[6]);

            return(notes);
        }
Exemplo n.º 2
0
        public static NoteData Deserialize(string parameter)
        {
            var data = new NoteData();

            var measureValues = parameter.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);

            foreach (var measureValue in measureValues)
            {
                data.measures.Add(Measure.Deserialize(measureValue));
            }

            return(data);
        }