Skip to content

Commit

Permalink
for the love of god dont be added to the pr please
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioMastr committed Aug 10, 2024
2 parents 38a3953 + 2f53753 commit f9c3654
Show file tree
Hide file tree
Showing 8 changed files with 671 additions and 399 deletions.
51 changes: 41 additions & 10 deletions bindings/2.206/Cocos2d.bro
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ class cocos2d::CCParticleSystemQuad {
static cocos2d::CCParticleSystemQuad* createWithTotalParticles(unsigned int, bool);

void initIndices();
void initTexCoordsWithRect(cocos2d::CCRect const&);
void initTexCoordsWithRect(cocos2d::CCRect const&) = imac 0x60dea0, m1 0x5331b4;

unsigned char getOpacity();

Expand All @@ -531,19 +531,22 @@ class cocos2d::CCParticleSystemQuad {
// CCParticleSystemQuad(cocos2d::CCParticleSystemQuad const&);
// CCParticleSystemQuad();
~CCParticleSystemQuad() = imac 0x60dc00, m1 0x532f54;
bool allocMemory();
bool allocMemory() = imac 0x60d5a0, m1 0x532bd4;
void listenBackToForeground(cocos2d::CCObject*);
[[missing(mac, ios)]]
void setupVBO();
[[missing(win, android)]]
void setupVBOandVAO() = imac 0x60d990, m1 0x532d28;
void updateTexCoords();

virtual void draw();
virtual void setBatchNode(cocos2d::CCParticleBatchNode*);
virtual void setTotalParticles(unsigned int);
virtual bool initWithTotalParticles(unsigned int, bool);
virtual void updateQuadWithParticle(cocos2d::sCCParticle*, cocos2d::CCPoint const&);
virtual void postStep();
virtual void draw() = imac 0x60e640, m1 0x53393c;
virtual void setBatchNode(cocos2d::CCParticleBatchNode*) = imac 0x60ec20, m1 0x533c10;
virtual void setTotalParticles(unsigned int) = imac 0x60e700, m1 0x533a00;
virtual bool initWithTotalParticles(unsigned int, bool) = imac 0x60d260, m1 0x532af0;
virtual void updateQuadWithParticle(cocos2d::sCCParticle*, cocos2d::CCPoint const&) = imac 0x60e2a0, m1 0x533618;
virtual void postStep() = imac 0x60e5f0, m1 0x5338f0;

virtual void setTexture(cocos2d::CCTexture2D*);
virtual void setTexture(cocos2d::CCTexture2D*) = imac 0x60e0f0, m1 0x533430;
}

[[link(win, android)]]
Expand Down Expand Up @@ -1697,7 +1700,7 @@ class cocos2d::CCLabelBMFont {
CC_SAFE_DELETE(pRet);
return nullptr;
}
static cocos2d::CCLabelBMFont* createBatched(char const*, char const*, cocos2d::CCArray*, int);
static cocos2d::CCLabelBMFont* createBatched(char const*, char const*, cocos2d::CCArray*, int) = m1 0x50b780, imac 0x5e1320;
static void purgeCachedData();

bool initWithString(char const*, char const*, float, cocos2d::CCTextAlignment, cocos2d::CCPoint) = ios 0x30b864, imac 0x5e1050, m1 0x50b4cc;
Expand Down Expand Up @@ -2488,6 +2491,34 @@ class cocos2d::CCMenuItemSprite {
virtual void updateImagesVisibility() = imac 0x3c3880, m1 0x346c7c, ios 0x537c4;
}

[[link(win, android)]]
class cocos2d::CCMenuItemImage {
static cocos2d::CCMenuItemImage* create(const char *normalImage, const char *selectedImage) = m1 0x3470dc;
static cocos2d::CCMenuItemImage* create(const char *normalImage, const char *selectedImage, const char *disabledImage) = m1 0x3472fc;
static cocos2d::CCMenuItemImage* create(const char *normalImage, const char *selectedImage, CCObject* target, SEL_MenuHandler selector) = m1 0x347244;
static cocos2d::CCMenuItemImage* create(const char *normalImage, const char *selectedImage, const char *disabledImage, CCObject* target, SEL_MenuHandler selector) = m1 0x347180;

bool init() = m1 0x346ea4;
bool initWithNormalImage(const char *normalImage, const char *selectedImage, const char *disabledImage, CCObject* target, SEL_MenuHandler selector) = m1 0x346f8c;
void setNormalSpriteFrame(CCSpriteFrame* frame);
void setSelectedSpriteFrame(CCSpriteFrame* frame);
void setDisabledSpriteFrame(CCSpriteFrame* frame);

static cocos2d::CCMenuItemImage* create() = m1 inline {
cocos2d::CCMenuItemImage* pRet = new CCMenuItemImage();
if (pRet && pRet->init())
{
pRet->autorelease();
}
else
{
CC_SAFE_DELETE(pRet);
}
return pRet;
}
}


[[link(win, android)]]
class cocos2d::CCMenu {
// static cocos2d::CCMenu* create(cocos2d::CCMenuItem*, ...) = ios 0x1e1964, m1 0x6a6d58, imac 0x79e7b0;
Expand Down
976 changes: 592 additions & 384 deletions bindings/2.206/GeometryDash.bro

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions test/members/Android32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,16 @@ GEODE_MEMBER_CHECK(GJBaseGameLayer, m_player2, 0x898);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_groupDict, 0x95c);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_unknownE38, 0x98c);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_massiveFloatArray, 0xa48);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_portalParticlesDict, 0x2a04);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_customParticles, 0x2a08);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_unclaimedParticles, 0x2a0c);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_customParticlesDictArray, 0x2a2c);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_temporaryParticles, 0x2a30);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_attempts, 0x29d4);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_unk2a50, 0x2a50);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_startPosObject, 0x2a60);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_unk2a84, 0x2aa4);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_audioEffectsLayer, 0x2b04);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_queuedButtons, 0x2b5c);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_uiLayer, 0x2c10);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_sections, 0x2c34);
Expand Down
5 changes: 5 additions & 0 deletions test/members/Android64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ GEODE_MEMBER_CHECK(GJBaseGameLayer, m_objectLayer, 0xff0);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_groundLayer, 0x1018);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_groundLayer2, 0x1020);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_massiveFloatArray, 0x10e4);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_portalParticlesDict, 0x30f0);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_customParticles, 0x30f8);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_unclaimedParticles, 0x3100);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_customParticlesDictArray, 0x3140);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_temporaryParticles, 0x3148);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_attempts, 0x30b4);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_shaderLayer, 0x3198);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_startPosObject, 0x31a8);
Expand Down
9 changes: 8 additions & 1 deletion test/members/MacOSArm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,20 @@ GEODE_SIZE_CHECK(GJBaseGameLayer, 0x34c0);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_groupDict, 0xde0);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_massiveFloatArray, 0xf6c);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_attempts, 0x2f14);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_isPlatformer, 0x2f2e);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_portalParticlesDict, 0x2f50);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_customParticles, 0x2f58);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_unclaimedParticles, 0x2f60);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_customParticlesDictArray, 0x2f90);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_temporaryParticles, 0x2f98);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_shaderLayer, 0x2fd8);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_startPosObject, 0x2fe8);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_isPracticeMode, 0x3050);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_queuedButtons, 0x3158);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_unk3458, 0x3288);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_uiLayer, 0x3298);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_sections, 0x32f8);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_sections, 0x32e0);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_sectionSizes, 0x3388);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_audioVisualizerBG, 0x3420);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_loadingLayer, 0x3498);

Expand Down
8 changes: 7 additions & 1 deletion test/members/MacOSIntel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,20 @@ GEODE_MEMBER_CHECK(GJBaseGameLayer, m_groupDict, 0xde0);
// GEODE_MEMBER_CHECK(GJBaseGameLayer, m_linkedGroupDict, 0xe80);
// GEODE_MEMBER_CHECK(GJBaseGameLayer, m_objectLayer, 0xea8);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_massiveFloatArray, 0xf6c);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_portalParticlesDict, 0x2f50);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_customParticles, 0x2f58);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_unclaimedParticles, 0x2f60);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_customParticlesDictArray, 0x2f90);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_temporaryParticles, 0x2f98);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_shaderLayer, 0x2fd8);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_startPosObject, 0x2fe8);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_isPracticeMode, 0x3050);
// GEODE_MEMBER_CHECK(GJBaseGameLayer, m_isDead, 0x30a2);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_queuedButtons, 0x3158);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_unk3458, 0x3288);
// GEODE_MEMBER_CHECK(GJBaseGameLayer, m_uiLayer, 0x3290);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_sections, 0x32f8);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_sections, 0x32e0);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_sectionSizes, 0x3388);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_loadingLayer, 0x3498);

// GEODE_MEMBER_CHECK(PlayLayer, m_circleWaveArray, 0x35a0);
Expand Down
12 changes: 10 additions & 2 deletions test/members/Windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ GEODE_MEMBER_CHECK(GJBaseGameLayer, m_gameState, 0x1a8);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_level, 0x870);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_player1, 0xd98);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_player2, 0xda0);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_groupDict, 0xef8);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_isPlatformer, 0x3096);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_unk2a50, 0x3160);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_unk2a84, 0x31f0);
Expand All @@ -17,9 +18,16 @@ GEODE_MEMBER_CHECK(GJBaseGameLayer, m_isPracticeMode, 0x31e8);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_endPortal, 0x3220);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_uiLayer, 0x3468);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_queuedButtons, 0x32f8);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_portalParticlesDict, 0x30b8);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_customParticles, 0x30c0);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_unclaimedParticles, 0x30c8);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_customParticlesDictArray, 0x3110);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_temporaryParticles, 0x3118);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_timePlayed, 0x3488);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_sections, 0x34b8);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_sectionSizes, 0x3560);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_stickyGroups, 0x35d0);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_audioVisualizerBG, 0x3610);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_loadingLayer, 0x3688);

GEODE_SIZE_CHECK(PlayLayer, 0x3998);
Expand Down Expand Up @@ -208,14 +216,14 @@ GEODE_MEMBER_CHECK(GameObject, m_outerSectionIndex, 0x278);
GEODE_MEMBER_CHECK(GameObject, m_positionXOffset, 0x2a0);
GEODE_MEMBER_CHECK(GameObject, m_scaleXOffset, 0x2b8);
GEODE_MEMBER_CHECK(GameObject, m_glowSprite, 0x2f0);
GEODE_MEMBER_CHECK(GameObject, m_someSprite, 0x308);
GEODE_MEMBER_CHECK(GameObject, m_particle, 0x308);
GEODE_MEMBER_CHECK(GameObject, m_particleString, 0x310);
GEODE_MEMBER_CHECK(GameObject, m_colorSprite, 0x380);
GEODE_MEMBER_CHECK(GameObject, m_uniqueID, 0x39c);
GEODE_MEMBER_CHECK(GameObject, m_startPosition, 0x3c8);
GEODE_MEMBER_CHECK(GameObject, m_startRotationX, 0x3d4);
GEODE_MEMBER_CHECK(GameObject, m_startFlipX, 0x3ec);
GEODE_MEMBER_CHECK(GameObject, m_unk3ef, 0x3ef);
GEODE_MEMBER_CHECK(GameObject, m_isInvisible, 0x3ef);
GEODE_MEMBER_CHECK(GameObject, m_groups, 0x490);
GEODE_MEMBER_CHECK(GameObject, m_lastPosition, 0x4d0);

Expand Down
3 changes: 2 additions & 1 deletion test/members/iOS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ GEODE_MEMBER_CHECK(GJBaseGameLayer, m_isPracticeMode, 0x3050);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_queuedButtons, 0x3158);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_unk3458, 0x3288);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_uiLayer, 0x3298);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_sections, 0x32f8);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_sections, 0x32e0);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_sectionSizes, 0x3388);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_audioVisualizerBG, 0x3420);
GEODE_MEMBER_CHECK(GJBaseGameLayer, m_loadingLayer, 0x3498);

Expand Down

0 comments on commit f9c3654

Please sign in to comment.