MCPcopy Create free account
hub / github.com/MergHQ/CRYENGINE / Reset

Method Reset

Code/CryEngine/CryScriptSystem/ScriptTimerMgr.cpp:102–128  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////////// Remove all timers.

Source from the content-addressed store, hash-verified

100//////////////////////////////////////////////////////////////////////////
101// Remove all timers.
102void 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.

Callers 1

ResetTimersMethod · 0.45

Calls 3

beginMethod · 0.45
endMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected