Skip to content

Commit 1d0b2c6

Browse files
committed
2.2082 bindings
1 parent 26acb5d commit 1d0b2c6

4 files changed

Lines changed: 30 additions & 4 deletions

File tree

bindings/2.2081/GeometryDash.bro

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7336,6 +7336,8 @@ class GJBaseGameLayer : cocos2d::CCLayer, TriggerEffectDelegate {
73367336
virtual void objectsCollided(int blockAID, int blockBID) = win 0x219170, imac 0x12b920, m1 0x1038ec, ios 0x1eb480;
73377337
virtual void updateColor(cocos2d::ccColor3B& color, float fadeTime, int colorID, bool blending, float opacity, cocos2d::ccHSVValue& copyHSV, int colorIDToCopy, bool copyOpacity, EffectGameObject* callerObject, int unk1, int unk2) = win 0x223970, imac 0x13c880, m1 0x111634, ios 0x1f1ebc;
73387338
virtual void toggleGroupTriggered(int group, bool activate, gd::vector<int> const& remapKeys, int triggerID, int controlID) = win 0x223b50, imac 0x13ca20, m1 0x11179c, ios 0x1f2024;
7339+
[[missing(win, mac)]]
7340+
virtual bool checkSpawnAbuse() = ios 0x1ec0d4;
73397341
virtual void spawnGroup(int group, bool ordered, double delay, gd::vector<int> const& remapKeys, int triggerID, int controlID) = win 0x21ab80, imac 0x12caa0, m1 0x104924, ios 0x1ec120;
73407342
virtual void spawnObject(GameObject* object, double delay, gd::vector<int> const& remapKeys) = win 0x21b030, imac 0x12cf20, m1 0x104da8, ios 0x1ec3f8;
73417343
virtual void activateEndTrigger(int targetID, bool reverse, bool lockPlayerY) = inline;
@@ -7521,7 +7523,8 @@ class GJBaseGameLayer : cocos2d::CCLayer, TriggerEffectDelegate {
75217523
bool hasItem(int id) = win inline, imac 0x129410, m1 0x101668, ios 0x1e9b80;
75227524
bool hasUniqueCoin(EffectGameObject* object) = win 0x216700, imac 0x128a10, m1 0x100d0c, ios 0x1e9558;
75237525
void increaseBatchNodeCapacity() = win 0x20cc20, imac 0x115410, m1 0xf013c, ios 0x1dea1c;
7524-
bool isButtonAllowed(bool down, int button, bool isPlayer1);
7526+
[[missing(win, mac)]]
7527+
bool isButtonAllowed(bool down, int button, bool isPlayer1) = ios inline;
75257528
bool isFlipping() = win inline, imac 0x156440, m1 0x12683c, ios 0x201130;
75267529
bool isPlayer2Button(int button) = win inline, imac 0x1568c0, m1 0x126c20, ios inline;
75277530
void lightningFlash(cocos2d::CCPoint to, cocos2d::ccColor3B color) = win inline, imac 0x163660, m1 0x1311b4, ios 0x207fb8;
@@ -9574,7 +9577,8 @@ class GJOptionsLayer : SetupTriggerPopup {
95749577
void addToggle(char const* title, int id, bool initial, char const* description) = win inline, imac 0x29cbb0, m1 0x23c490, ios 0x2d3910;
95759578
void addToggleInternal(char const* title, int id, bool initial, char const* description) = win 0x28fee0, imac 0x29c6b0, m1 0x23c000, ios 0x2d3594;
95769579
int countForPage(int page) = win 0x290420, imac 0x29d4f0, m1 0x23cddc, ios 0x2d3eb0;
9577-
CCMenuItemToggler* getToggleButton(int id);
9580+
[[missing(win, mac)]]
9581+
CCMenuItemToggler* getToggleButton(int id) = ios inline;
95789582
void goToPage(int page) = win 0x290940, imac 0x29c0d0, m1 0x23ba88, ios 0x2d3248;
95799583
void incrementCountForPage(int page) = win 0x2904f0, imac 0x29d000, m1 0x23c8e4, ios 0x2d3c0c;
95809584
const char* infoKey(int index) = win inline, imac 0x29d300, m1 0x23cbd8, ios inline;
@@ -12488,7 +12492,8 @@ class LevelSearchLayer : cocos2d::CCLayer, TextInputDelegate, FLAlertLayerProtoc
1248812492
void onMostDownloaded(cocos2d::CCObject* sender) = win 0x310fb0, imac 0x62a9a0, m1 0x54dc88, ios 0x5385c;
1248912493
void onMostLikes(cocos2d::CCObject* sender) = win 0x311070, imac 0x62aa10, m1 0x54dcf4, ios 0x53900;
1249012494
void onMostRecent(cocos2d::CCObject* sender) = win 0x311370, imac 0x62ab60, m1 0x54de38, ios 0x53aec;
12491-
void onPasteClipboard(cocos2d::CCObject* sender);
12495+
[[missing(win, mac)]]
12496+
void onPasteClipboard(cocos2d::CCObject* sender) = ios 0x531a4;
1249212497
void onSearch(cocos2d::CCObject* sender) = win 0x311730, imac 0x62a5f0, m1 0x54d87c, ios 0x534a8;
1249312498
void onSearchMode(cocos2d::CCObject* sender) = win 0x30e520, imac 0x62a220, m1 0x54d504, ios 0x53160;
1249412499
void onSearchUser(cocos2d::CCObject* sender) = win 0x311970, imac 0x62a760, m1 0x54da04, ios 0x535ec;
@@ -14078,7 +14083,8 @@ class PlatformToolbox {
1407814083
static bool doesFileExist(gd::string path) = win inline, imac 0x4c4240, m1 0x423ad4, ios 0x16bbb0;
1407914084
static void downloadAndSavePromoImage(gd::string url, gd::string path) = win inline, imac 0x4c4330, m1 0x423b8c, ios inline;
1408014085
static void gameDidSave() = win inline, imac 0x4c4ac0, m1 0x424248, ios 0x16bc68;
14081-
static gd::string getClipboardString();
14086+
[[missing(win, mac)]]
14087+
static gd::string getClipboardString() = ios 0x16bd50;
1408214088
static float getDeviceRefreshRate() = inline;
1408314089
static cocos2d::CCSize getDisplaySize() = win 0x78700, imac 0x4c4c10, m1 0x424314, ios 0x16bc74;
1408414090
static gd::string getRawPath(char const* path) = win inline, imac 0x4c4910, m1 0x4240dc;
@@ -20071,6 +20077,8 @@ class TriggerEffectDelegate {
2007120077
virtual void toggleGroupTriggered(int group, bool activate, gd::vector<int> const& remapKeys, int triggerID, int controlID) = inline;
2007220078
virtual void spawnGroup(int group, bool ordered, double delay, gd::vector<int> const& remapKeys, int triggerID, int controlID) = inline;
2007320079
virtual void spawnObject(GameObject* object, double delay, gd::vector<int> const& remapKeys) = inline;
20080+
[[missing(win, mac)]]
20081+
virtual bool checkSpawnAbuse() = inline;
2007420082
}
2007520083

2007620084
[[link(android)]]

bindings/2.2081/inline/GJBaseGameLayer.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1760,6 +1760,13 @@ float GJBaseGameLayer::getGroundHeightForMode(int type) {
17601760
}
17611761
return 270.f;
17621762
}
1763+
1764+
bool GJBaseGameLayer::isButtonAllowed(bool down, int button, bool isPlayer1) {
1765+
auto id = (int)down + button * 1000 + (int)isPlayer1 * 10;
1766+
if (m_allowedButtons.contains(id)) return false;
1767+
m_allowedButtons.insert(id);
1768+
return true;
1769+
}
17631770
#endif
17641771

17651772
#if defined(GEODE_IS_IOS) || defined(GEODE_IS_MACOS) || defined(GEODE_IS_ANDROID)

bindings/2.2081/inline/GJOptionsLayer.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ cocos2d::CCPoint GJOptionsLayer::nextPosition(int page) {
6363
}
6464
#endif
6565

66+
#if defined(GEODE_IS_IOS)
67+
CCMenuItemToggler* GJOptionsLayer::getToggleButton(int id) {
68+
auto it = m_toggleButtons.find(id);
69+
return it != m_toggleButtons.end() ? it->second : nullptr;
70+
}
71+
#endif
72+
6673
#if defined(GEODE_IS_IOS) || defined(GEODE_IS_MACOS) || defined(GEODE_IS_ANDROID)
6774
void GJOptionsLayer::didToggleGV(gd::string variable) {}
6875
#endif

bindings/2.2081/inline/TriggerEffectDelegate.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ void TriggerEffectDelegate::spawnGroup(int group, bool ordered, double delay, gd
66

77
void TriggerEffectDelegate::spawnObject(GameObject* object, double delay, gd::vector<int> const& remapKeys) {}
88

9+
#if defined(GEODE_IS_ANDROID) || defined(GEODE_IS_IOS)
10+
bool TriggerEffectDelegate::checkSpawnAbuse() { return false; }
11+
#endif
12+
913
#if defined(GEODE_IS_WINDOWS) || defined(GEODE_IS_IOS)
1014
#endif
1115

0 commit comments

Comments
 (0)