MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / set_timer_process_callback

Method set_timer_process_callback

scene/main/timer.cpp:190–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190void Timer::set_timer_process_callback(TimerProcessCallback p_callback) {
191 if (timer_process_callback == p_callback) {
192 return;
193 }
194
195 switch (p_callback) {
196 case TIMER_PROCESS_PHYSICS:
197 if (is_processing_internal()) {
198 set_process_internal(false);
199 set_physics_process_internal(true);
200 }
201 break;
202 case TIMER_PROCESS_IDLE:
203 if (is_physics_processing_internal()) {
204 set_physics_process_internal(false);
205 set_process_internal(true);
206 }
207 break;
208 }
209 timer_process_callback = p_callback;
210}
211
212Timer::TimerProcessCallback Timer::get_timer_process_callback() const {
213 return timer_process_callback;

Callers 1

test_timer.hFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected