///////////////////////////////////////////////////////////////////// Remove all timers.
| 100 | ////////////////////////////////////////////////////////////////////////// |
| 101 | // Remove all timers. |
| 102 | void CScriptTimerMgr::Reset() |
| 103 | { |
| 104 | m_nLastTimerID = 1; |
| 105 | ScriptTimerMapItor itor; |
| 106 | itor = m_mapTimers.begin(); |
| 107 | while (itor != m_mapTimers.end()) |
| 108 | { |
| 109 | if (itor->second) |
| 110 | { |
| 111 | DeleteTimer(itor->second); |
| 112 | } |
| 113 | ++itor; |
| 114 | } |
| 115 | m_mapTimers.clear(); |
| 116 | |
| 117 | itor = m_mapTempTimers.begin(); |
| 118 | while (itor != m_mapTempTimers.end()) |
| 119 | { |
| 120 | if (itor->second) |
| 121 | { |
| 122 | DeleteTimer(itor->second); |
| 123 | } |
| 124 | ++itor; |
| 125 | } |
| 126 | m_mapTempTimers.clear(); |
| 127 | |
| 128 | } |
| 129 | |
| 130 | ////////////////////////////////////////////////////////////////////////// |
| 131 | // Update all managed timers. |
no test coverage detected