Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
24
Scripts/SubSystem/Event System/EventTimer.cs
Normal file
24
Scripts/SubSystem/Event System/EventTimer.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
|
||||
namespace Server.EventSystem
|
||||
{
|
||||
public class EventTimer : Timer
|
||||
{
|
||||
private BaseEvent m_Event;
|
||||
private int m_Ticks;
|
||||
|
||||
public EventTimer( BaseEvent e )
|
||||
: base( e.TimerFrequency, e.TimerFrequency )
|
||||
{
|
||||
m_Event = e;
|
||||
m_Ticks = 0;
|
||||
}
|
||||
|
||||
protected override void OnTick()
|
||||
{
|
||||
++m_Ticks;
|
||||
|
||||
m_Event.OnTick( m_Ticks );
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user