コード例 #1
0
 public void Update(float secondsPassed)
 {
     m_totalSeconds += secondsPassed;
     this[TimerPriority.Always].Tick();
     for (int index = 1; index < m_buckets.Length; ++index)
     {
         TimerBucket bucket = m_buckets[index];
         while (bucket.m_LastUpdate + (double)bucket.Delay >= m_totalSeconds)
         {
             bucket.m_LastUpdate += bucket.m_LastUpdate + bucket.Delay - m_totalSeconds;
             bucket.Tick();
         }
     }
 }
コード例 #2
0
 private void AddBucket(TimerPriority prio, float delay)
 {
     m_buckets[(int)prio] = new TimerBucket(prio, delay);
 }
コード例 #3
0
ファイル: TimerRunner.cs プロジェクト: KroneckerX/WCell
		void AddBucket(TimerPriority prio, float delay)
		{
			m_buckets[(int)prio] = new TimerBucket(prio, delay);
		}