-
Notifications
You must be signed in to change notification settings - Fork 0
/
Song.cs
42 lines (39 loc) · 1.64 KB
/
Song.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System.Collections.Generic;
namespace chartMerger {
class Song {
public string name;
public List<Event> sync = new List<Event>();
public List<Event> events = new List<Event>();
public long start, end;
public List<Event>[] single = new List<Event>[4];
public List<Event>[] doubleGuitar = new List<Event>[4];
public List<Event>[] doubleBass = new List<Event>[4];
public List<Event>[] enhancedGuitar = new List<Event>[4];
public List<Event>[] coopLead = new List<Event>[4];
public List<Event>[] coopBass = new List<Event>[4];
public List<Event>[] tenKeyGuitar = new List<Event>[4];
public List<Event>[] drums = new List<Event>[4];
public List<Event>[] doubleDrums = new List<Event>[4];
public List<Event>[] vocals = new List<Event>[4];
public List<Event>[] keyboard = new List<Event>[4];
public Song() {
single = Initialize(single);
doubleGuitar = Initialize(doubleGuitar);
doubleBass = Initialize(doubleBass);
enhancedGuitar = Initialize(enhancedGuitar);
coopLead = Initialize(coopLead);
coopBass = Initialize(coopBass);
tenKeyGuitar = Initialize(tenKeyGuitar);
drums = Initialize(drums);
doubleDrums = Initialize(doubleDrums);
vocals = Initialize(vocals);
keyboard = Initialize(keyboard);
}
private List<Event>[] Initialize(List<Event>[] array) {
for (int i = 0; i < 4; i++) {
array[i] = new List<Event>();
}
return array;
}
}
}