get background (hit area) animations working

This commit is contained in:
msk
2023-09-29 22:37:40 -07:00
parent 5a9278e8aa
commit 72e789c099
7 changed files with 114 additions and 36 deletions
+7 -4
View File
@@ -18,7 +18,7 @@ namespace WacK.Data.Chart
public SortedList<float, List<NotePlay>> playNotes { get; private set; }
public SortedList<float, NoteEvent<(int, int)>> timeSigChgs { get; private set; }
public SortedList<float, NoteEvent<float>> tempoChgs { get; private set; }
public SortedList<float, NoteEvent<int>> events { get; private set; }
public SortedList<float, List<NoteEvent<int>>> events { get; private set; }
public Chart(string chartPath)
{
@@ -244,7 +244,6 @@ namespace WacK.Data.Chart
}
else
{
// only add notes that aren't part of the hold
if (!playNotes.ContainsKey(curTime))
{
playNotes[curTime] = new List<NotePlay>();
@@ -270,11 +269,15 @@ namespace WacK.Data.Chart
this.timeSigChgs[curTime] = neii;
}
// NoteEvent<int>
// NoteEvent<int> -- BG Change
var nei = curNote as NoteEvent<int>;
if (nei != null)
{
this.events[curTime] = nei;
if (!events.ContainsKey(curTime))
{
events[curTime] = new List<NoteEvent<int>>();
}
events[curTime].Add(nei);
}
// update previous states