ModernUO/Scripts/Engines/CannedEvil/RestartTimer.cs
2018-09-14 08:41:38 -07:00

20 lines
No EOL
363 B
C#

using System;
namespace Server.Engines.CannedEvil
{
public class RestartTimer : Timer
{
private ChampionSpawn m_Spawn;
public RestartTimer( ChampionSpawn spawn, TimeSpan delay ) : base( delay )
{
m_Spawn = spawn;
Priority = TimerPriority.FiveSeconds;
}
protected override void OnTick()
{
m_Spawn.EndRestart();
}
}
}