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

Method start

scene/main/timer.cpp:145–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145void Timer::start(double p_time) {
146 ERR_FAIL_COND_MSG(!is_inside_tree(), "Unable to start the timer because it's not inside the scene tree. Either add it or set autostart to true.");
147
148 if (p_time > 0) {
149 set_wait_time(p_time);
150 }
151 time_left = wait_time;
152 _set_process(true);
153}
154
155void Timer::stop() {
156 time_left = -1;

Callers 15

path_changedMethod · 0.45
request_rawMethod · 0.45
_mouse_over_updateMethod · 0.45
_close_pressedMethod · 0.45
_range_click_timeoutMethod · 0.45
gui_inputMethod · 0.45
_range_click_timeoutMethod · 0.45
propagate_mouse_eventMethod · 0.45
shortcut_inputMethod · 0.45
gui_inputMethod · 0.45
_notificationMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected