Пример #1
0
        public override void FireEvent()
        {
            m_clock.time = m_clock.time.AddMinutes(1);

            // Temp massive update, when I could change speed time client based,
            // we just have to sync it with save char.
            System.Collections.IDictionaryEnumerator EnumClients;
            EnumClients = WorldServer.GetClientsEnum();
            while (EnumClients.MoveNext())
            {
                if (((WorldClient)(EnumClients.Value)).Player.InWorld)
                {
                    ((WorldClient)(EnumClients.Value)).Player.updateTime();
                }
            }
            eventTime = DateTime.Now.AddSeconds(60 / m_clock.SpeedRatio);
            EventManager.AddEvent(this);
        }