summaryrefslogtreecommitdiff
path: root/scene/main/timer.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-09-25 15:56:26 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-09-25 15:56:26 -0300
commit875eb7fe514058d010be258d61e1ce6faa1b4ffd (patch)
tree26810cad8aea24cbe648331ef59622d7dba4c18c /scene/main/timer.cpp
parent52eebdc00185e18ec6fca4d9c96966e0ab0fb495 (diff)
parent4abc7f57403bdc2e29b0c6a6627a556440b2b9b9 (diff)
Merge pull request #2532 from akien-mga/documentation-update
Documentation update: TileSet and Timer
Diffstat (limited to 'scene/main/timer.cpp')
-rw-r--r--scene/main/timer.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/scene/main/timer.cpp b/scene/main/timer.cpp
index 3a80382a40..1bd22a9db1 100644
--- a/scene/main/timer.cpp
+++ b/scene/main/timer.cpp
@@ -182,11 +182,14 @@ void Timer::_bind_methods() {
ADD_SIGNAL( MethodInfo("timeout") );
- ADD_PROPERTY(PropertyInfo(Variant::INT, "process_mode", PROPERTY_HINT_ENUM, "Fixed,Idle"), _SCS("set_timer_process_mode"), _SCS("get_timer_process_mode"));
+ ADD_PROPERTY( PropertyInfo(Variant::INT, "process_mode", PROPERTY_HINT_ENUM, "Fixed,Idle"), _SCS("set_timer_process_mode"), _SCS("get_timer_process_mode") );
ADD_PROPERTY( PropertyInfo(Variant::REAL, "wait_time", PROPERTY_HINT_EXP_RANGE, "0.01,4096,0.01" ), _SCS("set_wait_time"), _SCS("get_wait_time") );
ADD_PROPERTY( PropertyInfo(Variant::BOOL, "one_shot" ), _SCS("set_one_shot"), _SCS("is_one_shot") );
ADD_PROPERTY( PropertyInfo(Variant::BOOL, "autostart" ), _SCS("set_autostart"), _SCS("has_autostart") );
+ BIND_CONSTANT( TIMER_PROCESS_FIXED );
+ BIND_CONSTANT( TIMER_PROCESS_IDLE );
+
}
Timer::Timer() {