Esempio n. 1
0
        public Timer AddFarmeRepeatTimer(int delayFrame, int repeatFrame, Action <object[]> callback, params object[] args)
        {
            Timer timer = new FrameRepeatTimer(delayFrame, repeatFrame, callback, args);

            _timers.Add(timer);
            return(timer);
        }
Esempio n. 2
0
        public Timer AddFarmeRepeatTimer(int delayFrame, int repeatFrame, Action callback)
        {
            Timer timer = new FrameRepeatTimer(delayFrame, repeatFrame, (objs) => callback(), null);

            _timers.Add(timer);
            return(timer);
        }