예제 #1
0
        internal static void AddFreeTimer(Timer timer)
        {
            timer.Reset();

            if (freeRoot != null)
            {
                timer.next = freeRoot;
            }

            freeRoot = timer;
        }
 private void TimerCallback2(Timer timer)
 {
     callbacks.Add(TimerCallback2);
 }
 private void TimerCallback1(Timer timer)
 {
     callbacks.Add(TimerCallback1);
 }
예제 #4
0
 private void BlockedTimerCallback(Timer timer)
 {
     m_blocked = false;
 }
 private void StopDiscoveryCall(Timer call)
 {
     StopDiscovery(true);
 }
예제 #6
0
        internal static Timer NextFreeTimer()
        {
            Timer timer;
            if (freeRoot != null)
            {
                timer = freeRoot;
                freeRoot = timer.next;
                timer.prev = timer.next = null;
            }
            else
            {
                timer = new Timer();
            }

            return timer;
        }
 private void TrySchedulePoopsCallback(Timer timer)
 {
     TryPoops();
 }
 private void OnBlinkTimer(Timer timer)
 {
     carretVisible = !carretVisible;
 }
 private void OnSaveCvarsTimerCallback(Timer timer)
 {
     TryExecuteCommand("write default.cfg");
 }
예제 #10
0
 private void RoundEndCheckTimerCallback(Timer timer)
 {
     if (players.GetAlivePlayerCount() < 2)
     {
         EndRound();
     }
 }
예제 #11
0
 private void RoundEndTimerCallback(Timer timer)
 {
     GetGame().EndRound();
 }
        private void OnDiscoveryTimeout(Timer call)
        {
            Log.d("Discovery timeout");

            StopDiscovery();
            StartDiscovery();
        }
 private void SendServerPacketCallback(Timer timer)
 {
     SendServerPacket();
 }
예제 #14
0
 private void UpdateAnimationCallback(Timer timer)
 {
     UpdateAnimation();
 }
 private void TimerCallback3(Timer timer)
 {
     callbacks.Add(TimerCallback3);
 }
예제 #16
0
 private void Reset()
 {
     next = prev = null;
     manager = null;
     callback = null;
     numRepeats = numRepeated = 0;
     timeout = 0;
     fireTime = 0;
     scheduleTime = 0;
     cancelled = false;
     name = null;
     userData = null;
 }
 private void TimerCallback4(Timer timer)
 {
     callbacks.Add(TimerCallback4);
 }
 private void BlinkTimerCallback(Timer timer)
 {
     blink = !blink;
 }