Skip to content

Commit 2d446e0

Browse files
authored
Merge branch 'geode-sdk:main' into main
2 parents 46dd333 + e39fb66 commit 2d446e0

File tree

6 files changed

+343
-155
lines changed

6 files changed

+343
-155
lines changed

bindings/1.920/Cocos2d.bro

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,11 @@ class cocos2d::CCNode {
394394
virtual void updateTweenAction(float, char const*);
395395
}
396396

397+
[[link(win, android)]]
398+
class cocos2d::CCScene {
399+
int getHighestChildZ();
400+
}
401+
397402
[[link(win, android)]]
398403
class cocos2d::CCScheduler {
399404
virtual void update(float dt);
@@ -503,6 +508,12 @@ class cocos2d::CCMouseDispatcher {
503508
void removeDelegate(cocos2d::CCMouseDelegate*);
504509
}
505510

511+
[[link(win, android)]]
512+
class cocos2d::ZipUtils {
513+
static gd::string decompressString(gd::string, bool);
514+
static gd::string decompressString2(unsigned char* data, bool decrypt, int size);
515+
}
516+
506517
[[link(win, android)]]
507518
class DS_Dictionary {
508519
bool getBoolForKey(const char*);

bindings/1.920/GeometryDash.bro

Lines changed: 51 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -811,22 +811,28 @@ class CCIndexPath : cocos2d::CCObject {
811811
}
812812

813813
[[link(android)]]
814-
class CCLightFlash {
814+
class CCLightFlash : cocos2d::CCNode {
815815
// virtual ~CCLightFlash();
816816

817817
static CCLightFlash* create();
818818

819-
TodoReturn cleanupFlash();
820-
TodoReturn fadeAndRemove();
821-
TodoReturn getFlashP();
822-
TodoReturn getFlashZ();
823-
TodoReturn playEffect(cocos2d::CCPoint, cocos2d::ccColor3B, float, float, float, float, float, float, float, float, float, float, float, float, float, float, int, bool, bool, float);
824-
TodoReturn removeLights();
825-
TodoReturn showFlash();
819+
void cleanupFlash();
820+
void fadeAndRemove();
821+
void playEffect(cocos2d::CCPoint, cocos2d::ccColor3B, float, float, float, float, float, float, float, float, float, float, float, float, float, float, int, bool, bool, float);
822+
void removeLights();
823+
void showFlash();
826824

827825
virtual bool init();
826+
virtual cocos2d::CCNode* getFlashP() const;
828827
virtual void setFlashP(cocos2d::CCNode*);
828+
virtual int getFlashZ() const;
829829
virtual void setFlashZ(int);
830+
831+
cocos2d::CCArray* m_lightStripArray;
832+
cocos2d::CCLayerColor* m_layerColor;
833+
bool m_dontFadeOut;
834+
cocos2d::CCNode* m_mainLayer; // m_flashP
835+
int m_layerColorZOrder; // m_flashZ
830836
}
831837

832838
[[link(android)]]
@@ -1634,7 +1640,7 @@ class CustomSongWidget : cocos2d::CCNode, MusicDownloadDelegate, FLAlertLayerPro
16341640
}
16351641

16361642
[[link(android)]]
1637-
class DrawGridLayer {
1643+
class DrawGridLayer : cocos2d::CCLayer {
16381644
// virtual ~DrawGridLayer();
16391645

16401646
static DrawGridLayer* create(cocos2d::CCNode*, LevelEditorLayer*) = win 0x92db0;
@@ -1645,22 +1651,43 @@ class DrawGridLayer {
16451651
TodoReturn addToGuides(GameObject*);
16461652
TodoReturn addToSpeedObjects(GameObject*);
16471653
TodoReturn clearPlayerPoints();
1648-
TodoReturn getActiveGridNodeSize();
16491654
TodoReturn getPortalMinMax(GameObject*);
1650-
TodoReturn getTimeNeedsUpdate();
16511655
bool init(cocos2d::CCNode*, LevelEditorLayer*) = win 0x92e60;
16521656
TodoReturn loadTimeMarkers(gd::string);
16531657
TodoReturn removeFromEffects(GameObject*);
16541658
TodoReturn removeFromGuides(GameObject*);
16551659
TodoReturn removeFromSpeedObjects(GameObject*);
16561660
TodoReturn sortSpeedObjects();
1657-
float timeForXPos(float);
1661+
float timeForXPos(float) = win 0x934f0;
16581662
TodoReturn updateTimeMarkers();
16591663
float xPosForTime(float);
16601664

16611665
virtual void update(float);
16621666
virtual void draw() = win 0x93710;
1667+
virtual bool getTimeNeedsUpdate() const;
1668+
virtual float getActiveGridNodeSize() const;
16631669
virtual void setActiveGridNodeSize(float);
1670+
1671+
float m_songOffset1;
1672+
float m_songOffset2;
1673+
float m_lastMusicXPosition;
1674+
LevelEditorLayer* m_levelEditorLayer;
1675+
gd::string m_guidelineString;
1676+
cocos2d::CCNode* m_gameLayer;
1677+
cocos2d::CCArray* m_timeMarkers;
1678+
cocos2d::CCArray* m_effectObjects;
1679+
cocos2d::CCArray* m_guideObjects;
1680+
cocos2d::CCArray* m_speedObjects;
1681+
cocos2d::CCArray* m_playerNodePoints;
1682+
cocos2d::CCArray* m_player2NodePoints;
1683+
double m_dUnused1;
1684+
float m_guidelineSpacing;
1685+
float m_slowGuidelineSpacing;
1686+
float m_normalGuidelineSpacing;
1687+
float m_fastGuidelineSpacing;
1688+
float m_fasterGuidelineSpacing;
1689+
bool m_timeNeedsUpdate;
1690+
float m_activeGridNodeSize;
16641691
}
16651692

16661693
[[link(android)]]
@@ -1756,6 +1783,12 @@ class EditorPauseLayer : CCBlockLayer, FLAlertLayerProtocol {
17561783
virtual void keyDown(cocos2d::enumKeyCodes) = win 0x3f570;
17571784
virtual void customSetup() = win 0x3e3d0;
17581785
virtual void FLAlert_Clicked(FLAlertLayer*, bool);
1786+
1787+
bool m_exiting;
1788+
CCMenuItemSpriteExtra* m_audioOnBtn;
1789+
CCMenuItemSpriteExtra* m_audioOffBtn;
1790+
LevelEditorLayer* m_levelEditorLayer;
1791+
PAD = android32 0x20; // this chunk appears completely unused, but does exist
17591792
}
17601793

17611794
[[link(android)]]
@@ -5785,7 +5818,7 @@ class PlayerObject : GameObject {
57855818
TodoReturn removePendingCheckpoint();
57865819
TodoReturn resetAllParticles() = win 0xda110;
57875820
void resetCollisionLog();
5788-
TodoReturn resetPlayerIcon();
5821+
void resetPlayerIcon() = win 0xdf1b0;
57895822
TodoReturn resetStreak();
57905823
TodoReturn ringJump();
57915824
TodoReturn runBallRotation(float);
@@ -5807,12 +5840,12 @@ class PlayerObject : GameObject {
58075840
TodoReturn stopRotation(bool);
58085841
TodoReturn storeCollision(bool, int);
58095842
TodoReturn switchedToMode(GameObjectType);
5810-
TodoReturn toggleBirdMode(bool) = win 0xdec10;
5811-
TodoReturn toggleDartMode(bool) = win 0xdee80;
5812-
TodoReturn toggleFlyMode(bool) = win 0xdea20;
5843+
void toggleBirdMode(bool) = win 0xdec10;
5844+
void toggleDartMode(bool) = win 0xdee80;
5845+
void toggleFlyMode(bool) = win 0xdea20;
58135846
TodoReturn toggleGhostEffect(GhostType) = win 0xe06b0;
58145847
TodoReturn togglePlayerScale(bool) = win 0xe12e0;
5815-
TodoReturn toggleRollMode(bool) = win 0xdf490;
5848+
void toggleRollMode(bool) = win 0xdf490;
58165849
TodoReturn touchedObject(GameObject*);
58175850
TodoReturn tryPlaceCheckpoint();
58185851
void updateCheckpointTest();
@@ -6987,7 +7020,7 @@ class SongsLayer {
69877020
class SpeedObject : cocos2d::CCNode {
69887021
// virtual ~SpeedObject();
69897022

6990-
static SpeedObject* create(int, float);
7023+
static SpeedObject* create(int, float) = win 0xf43f0;
69917024

69927025
bool init(int, float);
69937026

bindings/2.2074/Cocos2d.bro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3065,7 +3065,7 @@ class cocos2d::CCSpriteFrameCache : cocos2d::CCObject {
30653065
void addSpriteFramesWithFile(char const*, char const*);
30663066
void addSpriteFramesWithFile(char const*) = imac 0x308940, m1 0x29f998;
30673067
void addSpriteFramesWithFile(char const*, cocos2d::CCTexture2D*);
3068-
void removeSpriteFrameByName(char const*);
3068+
void removeSpriteFrameByName(char const*) = m1 0x2a0020, imac 0x308e80;
30693069
void removeSpriteFrames();
30703070
void removeSpriteFramesFromDictionary(cocos2d::CCDictionary*);
30713071
void removeSpriteFramesFromFile(char const*);

bindings/2.2074/Extras.bro

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,19 @@ class ChanceObject {
3838
int m_groupID;
3939
int m_oldGroupID;
4040
int m_chance;
41-
int m_unk010;
41+
int m_unk00c;
42+
}
43+
44+
class SmartPrefabResult {
45+
GJSmartPrefab* m_smartPrefab;
46+
gd::string m_binaryKey;
47+
gd::string m_prefabKey;
48+
int m_prefabCount;
49+
bool m_unrequired;
50+
int m_rotation;
51+
bool m_flipX;
52+
bool m_flipY;
53+
bool m_ignoreCorners;
4254
}
4355

4456
class GameObjectPhysics {

0 commit comments

Comments
 (0)