Example #1
0
 public MiniChartInfo(ChartInfo info)
 {
     ID          = info.ID;
     Rating      = info.Rating;
     Difficulty  = info.Difficulty;
     Style       = info.Style;
     Description = info.Description;
 }
Example #2
0
        public static List <ChartInfo> LoadCharts(byte[] data)
        {
            string[]         strings = UTF8Encoding.UTF8.GetString(data).Split('\n');
            List <ChartInfo> charts  = new List <ChartInfo>();

            for (int i = 0; i < strings.Length; i++)
            {
                if (strings[i++].Contains("#NOTES"))
                {
                    ChartInfo chart = new ChartInfo();
                    i = chart.LoadFromData(strings, i);
                    charts.Add(chart);
                }
            }

            return(charts);
        }