Example #1
0
 static public DecimalTimerManager GetInstance()
 {
     if (msInstance == null)
     {
         msInstance = new DecimalTimerManager();
     }
     return(msInstance);
 }
Example #2
0
        public DecimalTimer(decimal time, bool loop)
        {
            mDead             = false;
            mId               = msIdCount++;
            mTime             = time;
            mLastCallbackTime = 0;
            mTimeRemain       = time;
            mLoop             = loop;
            mDetalTime        = 0;
            mDetalCallback    = null;
            mDetalCallbackEx  = null;

            DecimalTimerManager.GetInstance().RegisterTimer(this);
        }
Example #3
0
        public DecimalTimer(decimal time, bool loop, decimal detalTime, DetalCallbackEx callback, System.Object userData)
        {
            mDead             = false;
            mId               = msIdCount++;
            mTime             = time;
            mLastCallbackTime = 0;
            mTimeRemain       = time;
            mLoop             = loop;
            mDetalTime        = detalTime;
            mDetalCallback    = null;
            mDetalCallbackEx  = callback;
            mUserData         = userData;

            DecimalTimerManager.GetInstance().RegisterTimer(this);
        }