Exemplo n.º 1
0
 public void CallBack(TimedEvent e)
 {
     e.Kill();
     Server.GetServer().BroadcastFrom(Name, green + "All the SHOPS have been filled, next fill will be in " + white + MinutesToRefillShop + "mins.");
     Timer1(MinutesToRefillShop * 60000, null).Start();
     ReFillShops();
 }
Exemplo n.º 2
0
        public TimedEvent Timer1(int timeoutDelay, Dictionary <string, object> args)
        {
            TimedEvent timedEvent = new TimedEvent(timeoutDelay);

            timedEvent.Args    = args;
            timedEvent.OnFire += CallBack;
            return(timedEvent);
        }