Example #1
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 #2
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);
        }
Example #3
0
        public Timer(float time, bool loop, float detalTime, DetalCallback callback)
        {
            mDead             = false;
            mId               = msIdCount++;
            mTime             = time;
            mLastCallbackTime = 0;
            mTimeRemain       = time;
            mLoop             = loop;
            mDetalTime        = detalTime;
            mDetalCallback    = callback;
            mDetalCallbackEx  = null;
            mUserData         = null;

            TimerManager.GetInstance().RegisterTimer(this);
        }
Example #4
0
 public void Destroy()
 {
     mDead            = true;
     mDetalCallback   = null;
     mDetalCallbackEx = null;
 }