Example #1
0
 /// <summary>
 /// Starts the timer
 /// </summary>
 /// <param name="maxTicks">Number of ticks before the timer stops.</param>
 /// <param name="interval">Time between individual ticks.</param>
 /// <param name="smoke">Whether to show smoke spell effect on each tick or not.</param>
 /// <param name="e">The event to send when timer is stopped.</param>
 public void Start(int maxTicks, int interval, bool smoke, DjinnEvent e)
 {
     m_maxTicks = maxTicks;
     Interval   = interval;
     m_smoke    = smoke;
     m_event    = e;
     m_ticks    = 0;
     Start(100);
     IsRunning = true;
 }
Example #2
0
 /// <summary>
 /// Starts the timer
 /// </summary>
 /// <param name="maxTicks">Number of ticks before the timer stops.</param>
 /// <param name="interval">Time between individual ticks.</param>
 /// <param name="smoke">Whether to show smoke spell effect on each tick or not.</param>
 /// <param name="e">The event to send when timer is stopped.</param>
 public void Start(int maxTicks, int interval, bool smoke, DjinnEvent e)
 {
     m_maxTicks = maxTicks;
     Interval = interval;
     m_smoke = smoke;
     m_event = e;
     m_ticks = 0;
     this.Start(100);
     IsRunning = true;
 }