/// <summary> /// Make a new timeline event in the future /// </summary> /// <param name="sender"></param> /// <param name="e"></param> /// <param name="timebeforeevent">Deltas until event should fire</param> private void serviceNewTimelineEventInFuture(ruleItemBase sender, timelineEventArgs e, int timebeforeevent) { _timeline.addEventAtDelta(e, timebeforeevent); }
/// <summary> /// Make a new timeline event at the next delta /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void serviceNewTimelineEvent(ruleItemBase sender, timelineEventArgs e) { _timeline.addEventAtNextDelta(e); }
public void addEventAtNextDelta(timelineEventArgs eventArgs) { addEvent(new timelineEvent(delta + 1, eventArgs.newValue )); }
public void addEventAtDelta(timelineEventArgs eventArgs, int timebeforeevent) { addEvent(new timelineEvent(delta + timebeforeevent, eventArgs.newValue)); }
public void onRequestNewTimelineEventInFuture(timelineEventArgs e, int timeBeforeEvent) { if (newTimelineEventInFuture != null) { newTimelineEventInFuture.Invoke((ruleItemBase)this, e, timeBeforeEvent); } }
public void onRequestNewTimelineEvent(timelineEventArgs e) { if (newTimelineEvent != null) { newTimelineEvent.Invoke((ruleItemBase) this, e); } }