예제 #1
0
 public WraithFormTimer(Mobile owner, TimeSpan interval, int duration, int damage, Spell spell) :
     base(TimeSpan.FromSeconds(duration))
 {
     m_Owner            = owner;
     Priority           = TimerPriority.OneSecond;
     m_Damage           = damage;
     m_Spell            = spell;
     m_SubtimerDuration = interval;
     m_Subtimer         = new Subtimer(interval, this, owner, damage, m_Spell);
     m_Subtimer.Start();
 }
예제 #2
0
 public void SubtimerCallback()
 {
     m_Subtimer.Stop();
     m_Subtimer = new Subtimer(m_SubtimerDuration, this, m_Owner, m_Damage, m_Spell);
     m_Subtimer.Start();
 }