public void parse(Scanner scanner) { int n = scanner.nextInt(); float offset = (float) scanner.nextDouble(); points = new List<NotePoint>(); NotePoint[] ps = new NotePoint[n]; for (int i = 0; i < n; i++) { ps[i].step = offset + (float) scanner.nextDouble(); } for (int i = 0; i < n; i++) { ps[i].x = (float)scanner.nextDouble(); } for (int i = 0; i < n; i++) { ps[i].force = scanner.nextInt(); } points.AddRange(ps); }
public void parse(Scanner scanner) { bpm = (float) scanner.nextDouble(); sync = (float) scanner.nextDouble(); traces = new List<NoteTrace>(); while(scanner.hasNext()) { var trace = new NoteTrace(); trace.parse(scanner); traces.Add(trace); } }