Remove callback parameters on states.
This commit is contained in:
@@ -56,7 +56,7 @@ namespace Cryville.Crtr.Event {
|
||||
}
|
||||
}
|
||||
|
||||
public override void ForwardOnceToTime(double toTime, Action<ChartEvent> callback) {
|
||||
public override void ForwardOnceToTime(double toTime) {
|
||||
double toBeat = Math.Round(beat + (toTime - Time) * tempo / 60f, 6);
|
||||
if (EventId >= events.Count)
|
||||
goto return_ahead;
|
||||
@@ -84,7 +84,6 @@ namespace Cryville.Crtr.Event {
|
||||
}
|
||||
stampedEvents.Add(sev);
|
||||
if (ev.Priority >= 0) {
|
||||
if (callback != null) callback(ev);
|
||||
flag = true;
|
||||
}
|
||||
if (ev is Chart.Signature) {
|
||||
@@ -93,12 +92,10 @@ namespace Cryville.Crtr.Event {
|
||||
}
|
||||
EventId++;
|
||||
}
|
||||
if (callback != null && !flag) callback(batch.First());
|
||||
return;
|
||||
return_ahead:
|
||||
Time = toTime;
|
||||
beat = toBeat;
|
||||
if (callback != null) callback(null);
|
||||
}
|
||||
|
||||
IOrderedEnumerable<ChartEvent> GetEventBatch() {
|
||||
|
Reference in New Issue
Block a user