Skip to content

Commit 4e68c78

Browse files
GravityEffectSprite
1 parent 3b3f32c commit 4e68c78

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

bindings/2.2074/GeometryDash.bro

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11625,13 +11625,29 @@ class GraphicsReloadLayer : cocos2d::CCLayer {
1162511625
[[link(android)]]
1162611626
class GravityEffectSprite : cocos2d::CCSprite {
1162711627
// virtual ~GravityEffectSprite();
11628+
GravityEffectSprite() {}
1162811629

11629-
static GravityEffectSprite* create();
11630+
static GravityEffectSprite* create() = win inline, m1 0x9d8c0, imac 0xacad0, ios 0x119108 {
11631+
auto ret = new GravityEffectSprite();
11632+
if (ret->init()) {
11633+
ret->autorelease();
11634+
return ret;
11635+
}
11636+
delete ret;
11637+
return nullptr;
11638+
}
1163011639

11631-
virtual bool init() = imac 0xbfa30, m1 0xae348, ios 0x126114;
11632-
virtual void draw() = m1 0xae56c, imac 0xbfc90, ios 0x126338;
11640+
virtual bool init() = win 0x3a4390, imac 0xbfa30, m1 0xae348, ios 0x126114;
11641+
virtual void draw() = m1 0xae56c, imac 0xbfc90, ios 0x126338 {}
1163311642

11634-
TodoReturn updateSpritesColor(cocos2d::ccColor3B);
11643+
void updateSpritesColor(cocos2d::ccColor3B color) = win inline, m1 0xa97a4, imac 0xba240, ios 0x121f34 {
11644+
if (auto gravityBatchNode = this->getChildByTag(1)) {
11645+
auto children = gravityBatchNode->getChildren();
11646+
for (int i = 0; i < children->count(); i++) {
11647+
static_cast<cocos2d::CCSprite*>(children->objectAtIndex(i))->setColor(color);
11648+
}
11649+
}
11650+
}
1163511651
}
1163611652

1163711653
[[link(android), depends(KeyframeObject)]]

0 commit comments

Comments
 (0)