Added a macro to easily call functions on a timer.
This commit is contained in:
@@ -34,8 +34,10 @@
|
||||
/**
|
||||
* Deferred function helpers
|
||||
*/
|
||||
#define CALL_ON_TIMEOUT(T,C) \
|
||||
this->get_tree()->create_timer(T)->connect("timeout", C)
|
||||
#define CALL_NEXT_FRAME(C) \
|
||||
this->get_tree()->create_timer(SMALL_NUMBER)->connect("timeout", C)
|
||||
CALL_ON_TIMEOUT(SMALL_NUMBER,C)
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user