Skip to content

Commit 3fffa5b

Browse files
committed
CCActionManager bindings
1 parent b932b77 commit 3fffa5b

File tree

1 file changed

+50
-1
lines changed

1 file changed

+50
-1
lines changed

bindings/2.2074/Cocos2d.bro

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3770,10 +3770,59 @@ class cocos2d::CCLabelTTF : cocos2d::CCSprite, cocos2d::CCLabelProtocol {
37703770

37713771
[[link(win, android)]]
37723772
class cocos2d::CCActionManager : cocos2d::CCObject {
3773+
CCActionManager() = m1 0x1d472c, imac 0x2217c0, ios 0x2f3ec8;
3774+
virtual ~CCActionManager() = m1 0x1d4754, imac 0x2217f0, ios 0x2f3ef0;
3775+
3776+
virtual void update(float) = m1 0x1d59d8, imac 0x2228a0, ios 0x2f4cdc;
3777+
37733778
void addAction(cocos2d::CCAction*, cocos2d::CCNode*, bool) = m1 0x1d4dfc, imac 0x221dd0, ios 0x2f4378;
3779+
void removeAllActions() = m1 0x1d47a0, imac 0x221840, ios inline {
3780+
struct tHashElement {
3781+
ccArray* actions;
3782+
CCObject* target;
3783+
unsigned int actionIndex;
3784+
CCAction* currentAction;
3785+
bool currentActionSalvaged;
3786+
bool paused;
3787+
UT_hash_handle hh;
3788+
};
3789+
3790+
for (auto element = reinterpret_cast<tHashElement*>(m_pTargets); element != nullptr; element = static_cast<tHashElement*>(element->hh.next)) {
3791+
this->removeAllActionsFromTarget(element->target);
3792+
}
3793+
}
3794+
void removeAllActionsFromTarget(cocos2d::CCObject*) = m1 0x1d5274, imac 0x222210, ios 0x2f47b8;
37743795
void removeAction(cocos2d::CCAction*) = m1 0x1d53f8, imac 0x222370, ios 0x2f493c;
3796+
void removeActionByTag(unsigned int, cocos2d::CCObject*) = m1 0x1d55ac, imac 0x2224f0, ios 0x2f4a70;
3797+
cocos2d::CCAction* getActionByTag(unsigned int, cocos2d::CCObject*) = m1 0x1d5798, imac 0x222690, ios 0x2f4bb0;
37753798
void pauseTarget(cocos2d::CCObject*) = imac 0x221b10, m1 0x1d4aec, ios 0x2f4184;
37763799
void resumeTarget(cocos2d::CCObject*) = m1 0x1d4be8, imac 0x221bf0, ios 0x2f4280;
3800+
cocos2d::CCSet* pauseAllRunningActions() = m1 0x1d4ce0, imac 0x221cd0, ios inline {
3801+
struct tHashElement {
3802+
ccArray* actions;
3803+
CCObject* target;
3804+
unsigned int actionIndex;
3805+
CCAction* currentAction;
3806+
bool currentActionSalvaged;
3807+
bool paused;
3808+
UT_hash_handle hh;
3809+
};
3810+
3811+
auto targets = new CCSet();
3812+
targets->autorelease();
3813+
for (auto element = reinterpret_cast<tHashElement*>(m_pTargets); element != nullptr; element = static_cast<tHashElement*>(element->hh.next)) {
3814+
if (!element->paused) {
3815+
element->paused = true;
3816+
targets->addObject(element->target);
3817+
}
3818+
}
3819+
return targets;
3820+
}
3821+
void resumeTargets(cocos2d::CCSet*) = m1 0x1d4d68, imac 0x221d40, ios inline {
3822+
for (auto it = p0->begin(); it != p0->end(); ++it) {
3823+
this->resumeTarget(*it);
3824+
}
3825+
}
37773826
unsigned int numberOfRunningActionsInTarget(cocos2d::CCObject* target) = m1 0x1d58cc, imac 0x2227b0, ios inline {
37783827
struct tHashElement {
37793828
ccArray* actions;
@@ -6140,7 +6189,7 @@ class cocos2d::CCJumpTo : cocos2d::CCActionInterval {
61406189
}
61416190

61426191
[[link(win, android)]]
6143-
class cocos2d::CCBMFontConfiguration {
6192+
class cocos2d::CCBMFontConfiguration : cocos2d::CCObject {
61446193
static cocos2d::CCBMFontConfiguration* create(char const*) = ios 0x2f8bf8, m1 0x4f2174, imac 0x5bc6a0;
61456194

61466195
bool initWithFNTfile(char const*) = m1 0x4f228c, imac 0x5bc7c0, ios inline {

0 commit comments

Comments
 (0)