/// <summary> /// Raises the <see cref="Idle"/> event. /// </summary> /// <param name="eventArgs"> /// The <see cref="GameTimerEventArgs"/> instance containing the event data. /// </param> protected void OnIdle(GameTimerEventArgs eventArgs) { var handler = Idle; if (handler != null) { handler(this, eventArgs); } }
/// <summary> /// Raises the <see cref="TimeChanged"/> event. /// </summary> /// <param name="eventArgs"> /// The <see cref="GameTimerEventArgs"/> instance containing the event data. /// </param> protected void OnTimeChanged(GameTimerEventArgs eventArgs) { var handler = TimeChanged; if (handler != null) { handler(this, eventArgs); } }