Exemple #1
0
 private List <TimingLine> GetTimingLines(string[] aLines)
 {
     // find the [TimingPoints] section and parse each timing line
     return(ParserStatic.ParseSection(aLines, "TimingPoints", aLine =>
     {
         string[] args = aLine.Split(',');
         return TimingLine.IsUninherited(args) ? new UninheritedLine(args) : (TimingLine) new InheritedLine(args);
     }).ToList());
 }
Exemple #2
0
 private List <HitObject> GetHitobjects(string[] aLines)
 {
     // find the [Hitobjects] section and parse each hitobject until empty line or end of file
     return(ParserStatic.ParseSection(aLines, "HitObjects", aLine =>
     {
         string[] args = aLine.Split(',');
         return
         HitObject.HasType(args, HitObject.Type.Circle)        ? new Circle(args, this) :
         HitObject.HasType(args, HitObject.Type.Slider)        ? new Slider(args, this) :
         HitObject.HasType(args, HitObject.Type.ManiaHoldNote) ? new HoldNote(args, this) :
         (HitObject) new Spinner(args, this);
     }).ToList());
 }