@@ -1969,18 +1969,17 @@ class cocos2d::CCNode : cocos2d::CCObject {
19691969 char const * description () = imac 0x260e70 , m1 0x20cc04 ;
19701970 void detachChild (cocos2d::CCNode* , bool );
19711971 void insertChild (cocos2d::CCNode* , int );
1972- unsigned int numberOfRunningActions ();
1972+ unsigned int numberOfRunningActions () = m1 0x20dd8c , imac 0x262010 , ios inline {
1973+ return m_pActionManager-> numberOfRunningActionsInTarget (this);
1974+ }
19731975 void pauseSchedulerAndActions () = m1 0x20dc28 , imac 0x261e70 , ios 0x23c0c4 ;
19741976 void qsortAllChildrenWithIndex ();
19751977 void resumeSchedulerAndActions () = imac 0x261c50 , m1 0x20da08 , ios 0x23bed0 ;
19761978 cocos2d::CCAction* runAction (cocos2d::CCAction* ) = imac 0x261f80 , m1 0x20dd34 , ios 0x23c1d0 ;
19771979 void schedule (cocos2d::SEL_SCHEDULE) = imac 0x2621b0 , m1 0x20dee8 , ios 0x23c2fc ;
19781980 void schedule (cocos2d::SEL_SCHEDULE, float) = imac 0x262210 , m1 0x20df28 , ios 0x23c320 ;
19791981 void schedule (cocos2d::SEL_SCHEDULE selector, float interval , unsigned int repeat, float delay) = imac 0x2621e0 , m1 0x20df0c , ios inline {
1980- CCAssert ( selector, " Argument must be non-nil" );
1981- CCAssert ( interval >= 0 , " Argument must be positive" );
1982-
1983- m_pScheduler-> scheduleSelector (selector, this, interval , repeat, delay, !m_bRunning);
1982+ m_pScheduler-> scheduleSelector (selector, this, interval , repeat, delay, !m_bRunning);
19841983 }
19851984 void scheduleOnce (cocos2d::SEL_SCHEDULE selector, float delay) = imac 0x262240 , m1 0x20df48 , ios inline {
19861985 this-> schedule (selector, 0.0 f, 0 , delay);
@@ -3122,6 +3121,21 @@ class cocos2d::CCActionManager : cocos2d::CCObject {
31223121 void removeAction (cocos2d::CCAction* ) = ios 0x2f493c ;
31233122 void pauseTarget (cocos2d::CCObject* ) = imac 0x221b10 , m1 0x1d4aec ;
31243123 void resumeTarget (cocos2d::CCObject* ) = m1 0x1d4be8 ;
3124+ unsigned int numberOfRunningActionsInTarget (cocos2d::CCObject* target) = m1 0x1d58cc , imac 0x2227b0 , ios inline {
3125+ struct tHashElement {
3126+ ccArray* actions;
3127+ CCObject* target;
3128+ unsigned int actionIndex;
3129+ CCAction* currentAction;
3130+ bool currentActionSalvaged;
3131+ bool paused;
3132+ UT_hash_handle hh;
3133+ };
3134+
3135+ tHashElement* element = nullptr;
3136+ HASH_FIND_INT (reinterpret_cast< tHashElement*> (m_pTargets), & target, element);
3137+ return element && element-> actions ? element-> actions-> num : 0 ;
3138+ }
31253139}
31263140
31273141[[link (win, android)]]
0 commit comments