diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2015-09-25 20:45:00 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2015-09-25 20:45:00 +0200 |
commit | 4abc7f57403bdc2e29b0c6a6627a556440b2b9b9 (patch) | |
tree | 26810cad8aea24cbe648331ef59622d7dba4c18c /scene | |
parent | c69ea708fabd04f0bf4aafc590e63bb165b88ee0 (diff) |
Update documentation for TileSet and Timer
Diffstat (limited to 'scene')
-rw-r--r-- | scene/main/timer.cpp | 5 |
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() { |