Ejemplo n.º 1
0
        public void DelayedUpdate(uint diff)
        {
            i_delayTimer.Update((int)diff);
            if (!i_delayTimer.Passed())
            {
                return;
            }

            foreach (var map in i_maps.Values.ToList())
            {
                map.DelayedUpdate((uint)i_timer.GetCurrent());
            }

            i_delayTimer.SetCurrent(0);
        }
Ejemplo n.º 2
0
        public void Update(uint diff)
        {
            i_timer.Update((int)diff);
            if (!i_timer.Passed())
            {
                return;
            }

            foreach (var map in i_maps.Values.ToList())
            {
                map.Update((uint)i_timer.GetCurrent());
            }

            DelayedUpdate(diff);

            //sObjectAccessor->Update(uint32(i_timer.GetCurrent()));
            //for (TransportSet::iterator itr = m_Transports.begin(); itr != m_Transports.end(); ++itr)
            //(*itr)->Update(uint32(i_timer.GetCurrent()));

            i_timer.SetCurrent(0);
        }