Esempio n. 1
0
        public TimedEvent RadTimer(int timeoutDelay, Dictionary <string, object> args)
        {
            TimedEvent timedEvent = new TimedEvent(timeoutDelay);

            timedEvent.Args    = args;
            timedEvent.OnFire += CallBackRad;
            return(timedEvent);
        }
Esempio n. 2
0
 public void CallBackRad(TimedEvent e)
 {
     e.Kill();
     foreach (Fougerite.Player pl in Server.GetServer().Players)
     {
         try
         {
             TryGiveRad(pl);
         }
         catch (Exception ex)
         {
             Debug.Log(Name + " Error A:" + ex.ToString());
         }
     }
     RadTimer(TimeRad * 1000, null).Start();
 }