/// <summary> /// autoRecycled /// </summary> public void AddTimer(int expire, TimerPassedDelegate callBack) { ITimer timer = Pop(); timer.Init(expire, callBack, false, true); AddDict(timer); }
public ITimer AddTimer(int expire, TimerPassedDelegate callBack, bool loop) { ITimer tmp = CoreModules.timerMDL.AddTimer(expire, callBack, loop); dict.AddOrReplace(tmp.ID, tmp); return(tmp); }
public ITimer AddTimer(int expire, TimerPassedDelegate callBack, bool loop) { ITimer timer = Pop(); timer.Init(expire, callBack, loop, false); AddDict(timer); return(timer); }
public void Init(int expire, TimerPassedDelegate callBack, bool loop, bool autorecycled) { AutoRecycled = autorecycled; current = 0; m_expire = expire; m_callBack = callBack; m_loop = loop; Enable = expire > 0; }
public void Clear() { current = 0; m_expire = 0; m_callBack = null; m_loop = false; Enable = false; AutoRecycled = false; }
public void AddTimer(int expire, TimerPassedDelegate callBack) { CoreModules.timerMDL.AddTimer(expire, callBack); }