Example #1
0
        public MagmaTE CreateTimer(string name, int timeoutDelay)
        {
            MagmaTE timedEvent = GetTimer(name);

            if (timedEvent == null)
            {
                timedEvent         = new MagmaTE(name, (double)timeoutDelay);
                timedEvent.OnFire += new MagmaTE.TimedEventFireDelegate(Plugin.OnTimerCB2);
                Timers.Add(name, timedEvent);
            }
            return(timedEvent);
        }