Skip to content

Commit 3da4f2e

Browse files
committed
Bindings for @Zilko
1 parent 9014f83 commit 3da4f2e

File tree

2 files changed

+22
-8
lines changed

2 files changed

+22
-8
lines changed

bindings/2.2074/Cocos2d.bro

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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.0f, 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)]]

bindings/2.2074/GeometryDash.bro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10125,7 +10125,7 @@ class GJDifficultySprite : cocos2d::CCSprite {
1012510125
bool init(int, GJDifficultyName) = imac 0x2a3610, m1 0x24a3cc;
1012610126
void updateDifficultyFrame(int, GJDifficultyName) = ios 0x2e5534, win 0x29da90, imac 0x2a37c0, m1 0x24a5b0;
1012710127
void updateFeatureState(GJFeatureState) = ios 0x2e56ac, win 0x29dbb0, imac 0x2a3940, m1 0x24a728;
10128-
void updateFeatureStateFromLevel(GJGameLevel* level) = win inline, ios 0x2e5674, m1 0x24a6f0 {
10128+
void updateFeatureStateFromLevel(GJGameLevel* level) = win inline, ios 0x2e5674, m1 0x24a6f0, imac 0x2a38f0 {
1012910129
if (!level) return;
1013010130

1013110131
GJFeatureState featureState;
@@ -19316,7 +19316,6 @@ class SetGroupIDLayer : FLAlertLayer, TextInputDelegate {
1931619316

1931719317
[[link(android)]]
1931819318
class SetIDPopup : FLAlertLayer, TextInputDelegate {
19319-
// virtual ~SetIDPopup();
1932019319
SetIDPopup() = win 0x286480 {
1932119320
m_inputNode = nullptr;
1932219321
m_value = 0;
@@ -19327,6 +19326,7 @@ class SetIDPopup : FLAlertLayer, TextInputDelegate {
1932719326
m_default = 0;
1932819327
m_delegate = nullptr;
1932919328
}
19329+
~SetIDPopup() = win 0x293b10, m1 0x23fd6c, imac 0x297e20, ios 0x2dd760;
1933019330

1933119331
static SetIDPopup* create(int current, int begin, int end, gd::string title, gd::string button, bool, int, float, bool, bool) = win 0x293bb0, m1 0x23ff3c, imac 0x2980c0, ios 0x2dd808;
1933219332

@@ -19338,7 +19338,7 @@ class SetIDPopup : FLAlertLayer, TextInputDelegate {
1933819338

1933919339
bool init(int current, int begin, int end, gd::string title, gd::string button, bool, int, float, bool, bool) = win 0x293ce0, imac 0x298360, m1 0x240198, ios 0x2dd9fc;
1934019340
void onCancel(cocos2d::CCObject* sender) = win 0x294950, imac 0x298cf0, m1 0x240b14;
19341-
void onClose(cocos2d::CCObject* sender) = win 0x2949f0;
19341+
void onClose(cocos2d::CCObject* sender) = win 0x2949f0, m1 0x240a14, imac 0x298bf0, ios 0x2de248;
1934219342
void onItemIDArrow(cocos2d::CCObject* sender) = win 0x2946a0, m1 0x240ab8, imac 0x298ca0, ios 0x2de2ec;
1934319343
void onResetValue(cocos2d::CCObject* sender) = win 0x2946f0, imac 0x298c80;
1934419344
void updateTextInputLabel() = win 0x294810, imac 0x298d90, m1 0x240bb4, ios 0x2de354;

0 commit comments

Comments
 (0)