Pull down chart field from StateBase.

This commit is contained in:
2023-01-15 11:52:28 +08:00
parent c39f258a19
commit 898fb7d557
3 changed files with 5 additions and 7 deletions

View File

@@ -9,7 +9,7 @@ namespace Cryville.Crtr.Event {
get;
private set;
}
ContainerState RootState;
readonly Chart chart;
readonly Dictionary<ChartEvent, ContainerState> containerMap
= new Dictionary<ChartEvent, ContainerState>();
readonly Dictionary<EventContainer, ContainerState> stateMap
@@ -25,7 +25,8 @@ namespace Cryville.Crtr.Event {
double beat;
float tempo;
public EventBatcher(Chart c) : base(c, new List<ChartEvent>()) {
public EventBatcher(Chart c) : base(new List<ChartEvent>()) {
chart = c;
beat = chart.BeatPosition;
tempo = (float)c.sigs[0].tempo;
events.Add(c);