MCPcopy Create free account
hub / github.com/defold/defold / NewTimerWorld

Function NewTimerWorld

engine/script/src/script_timer.cpp:163–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161 }
162
163 HTimerWorld NewTimerWorld()
164 {
165 TimerWorld* timer_world = new TimerWorld();
166 timer_world->m_Timers.SetCapacity(INITIAL_TIMER_CAPACITY);
167 timer_world->m_Instances.SetCapacity(INITIAL_TIMER_CAPACITY);
168
169 timer_world->m_Version = 0;
170 timer_world->m_InUpdate = 0;
171 timer_world->m_IsDirty = 0;
172 return timer_world;
173 }
174
175 void DeleteTimerWorld(HTimerWorld timer_world)
176 {

Callers 2

TimerNewScriptWorldFunction · 0.85
TEST_FFunction · 0.85

Calls 1

SetCapacityMethod · 0.45

Tested by 1

TEST_FFunction · 0.68