Пример #1
0
        public TimedEvent Timerchange(int timeoutDelay, Dictionary <string, object> args)
        {
            TimedEvent timedEvent = new TimedEvent(timeoutDelay);

            timedEvent.Args    = args;
            timedEvent.OnFire += CallBack;
            return(timedEvent);
        }
Пример #2
0
 public void CallBack(TimedEvent e)
 {
     World.GetWorld().Time = FreezeTime;
     Logger.Log("Time changed to " + FreezeTime);
 }