mirror of https://github.com/axmolengine/axmol.git
e6d2c4ec73
* Timer is an abstract class now. * Adds three new timers ( `TimerTargetSelector`, `TimerTargetCallback`, `TimerScriptHandler`) which are inherited from Timer. * Adds new API 'scheduleCallback` / `unscheduleCallbackForKey', and callback's target could be any classes since we're using `void*` to identify target. * `Scheduler::scheduleCallback` use `std::function`, therefore, it supports passing `lambda`, `member_function` and `global_function`. * The old selector API is still kept since it's very useful when schedule callback is a member function, it doesn't need a `key` to identify the callback function. (+1 squashed commit) * Adds relevant test cases. |
||
---|---|---|
.. | ||
Classes | ||
Resources | ||
proj.android | ||
proj.ios | ||
proj.linux | ||
proj.mac | ||
proj.win32 | ||
Android.mk | ||
CMakeLists.txt |