コード例 #1
0
        public CDefaultAppImp()
        {
            m_timerManager       = CreateTimerManager();
            m_notificationCenter = CreateNotificationCenter();
            m_processor          = CreateCommandProcessor();

            m_updatables = new CUpdatableList(2);
            m_updatables.Add(m_timerManager);
        }
コード例 #2
0
        //////////////////////////////////////////////////////////////////////////////

        #region Lifecycle

        public virtual void Start()
        {
            ResolveCommands();

            CTimerManager.ScheduleTimerOnce(delegate()
            {
                ExecStartupConfigs();
                RegisterCommandNotifications();
            });
        }
コード例 #3
0
 private void Reset()
 {
     next         = prev = null;
     helpListNext = null;
     manager      = null;
     callback1    = null;
     callback2    = null;
     numRepeats   = numRepeated = 0;
     timeout      = 0;
     fireTime     = 0;
     scheduleTime = 0;
     cancelled    = false;
     name         = null;
     userData     = null;
 }
コード例 #4
0
        private void Save(bool immediately)
        {
            if (m_path == null)
            {
                return;
            }

            if (immediately)
            {
                CTimerManager.CancelTimer(SaveDelayed);
                Save();
            }
            else
            {
                CTimerManager.ScheduleTimerOnce(SaveDelayed);
            }
        }
コード例 #5
0
        //////////////////////////////////////////////////////////////////////////////

        #region Shared instance

        static CTimerManager()
        {
            s_sharedInstance = new CTimerManager();
        }
コード例 #6
0
 public CObjectsPoolEntry AutoRecycle()
 {
     CTimerManager.ScheduleTimer(Recycle);
     return(this);
 }
コード例 #7
0
 public CNotificationCenter(CTimerManager timerManager)
 {
     m_timerManager      = timerManager;
     m_registerMap       = new Dictionary <string, CNotificationDelegateList>();
     m_notificatoinsPool = new CObjectsPool <CNotification>();
 }