From 852d7b21978ec68e34b4692e7863b8540c81d7a6 Mon Sep 17 00:00:00 2001 From: altalk23 Date: Fri, 3 Jun 2022 14:32:54 +0300 Subject: [PATCH] include api macro --- bindings/Cocos2d.bro | 1 + bindings/GeometryDash.bro | 14 +++++++------- include/Geode.hpp | 1 + 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/bindings/Cocos2d.bro b/bindings/Cocos2d.bro index 34b7f504..1cdd75b9 100644 --- a/bindings/Cocos2d.bro +++ b/bindings/Cocos2d.bro @@ -132,6 +132,7 @@ class cocos2d::CCDirector { } class cocos2d::CCDrawNode { + CCDrawNode() = mac 0x378b40; auto clear() = mac 0x379e80; static cocos2d::CCDrawNode* create() = mac 0x378d00; auto drawPolygon(cocos2d::CCPoint*, unsigned int, cocos2d::_ccColor4F const&, float, cocos2d::_ccColor4F const&) = mac 0x3797f0; diff --git a/bindings/GeometryDash.bro b/bindings/GeometryDash.bro index b224d948..72e07cff 100644 --- a/bindings/GeometryDash.bro +++ b/bindings/GeometryDash.bro @@ -2842,10 +2842,10 @@ class GameObject : CCSpritePlus { virtual void triggerObject(GJBaseGameLayer*) = mac 0x2fa8f0, win 0x0, ios 0x0; virtual void activateObject() = mac 0x2faf60, win 0xEF0E0, ios 0x0; virtual void deactivateObject(bool) = mac 0x2fb8f0, win 0xd19b0, ios 0x0; - virtual cocos2d::CCRect* getObjectRect() = mac 0x3352b0, win 0xe4a40, ios 0x0; - virtual cocos2d::CCRect* getObjectRect(float, float) = mac 0x3352d0, win 0xe4a70, ios 0x0; - virtual cocos2d::CCRect* getObjectRect2(float, float) = mac 0x3354e0, win 0xe4b90, ios 0x0; - virtual cocos2d::CCRect* getObjectTextureRect() = mac 0x3355b0, win 0xe4c40, ios 0x0; + virtual cocos2d::CCRect const& getObjectRect() = mac 0x3352b0, win 0xe4a40, ios 0x0; + virtual cocos2d::CCRect getObjectRect(float, float) = mac 0x3352d0, win 0xe4a70, ios 0x0; + virtual cocos2d::CCRect getObjectRect2(float, float) = mac 0x3354e0, win 0xe4b90, ios 0x0; + virtual cocos2d::CCRect const& getObjectTextureRect() = mac 0x3355b0, win 0xe4c40, ios 0x0; virtual cocos2d::CCPoint getRealPosition() = mac 0x335750, win 0xe4d90, ios 0x0; virtual void setStartPos(cocos2d::CCPoint) = mac 0x2fa520, win 0xd1390, ios 0x0; virtual void updateStartValues() = mac 0x2fa800, win 0xd1610, ios 0x0; @@ -4208,9 +4208,9 @@ class PlayerObject : GameObject, AnimatedSpriteDelegate { void bumpPlayer(float, int) = mac 0x22d890, win 0x0, ios 0x0; void buttonDown(PlayerButton) = mac 0x22b7e0, win 0x0, ios 0x0; void checkSnapJumpToObject(GameObject*) = mac 0x2217f0, win 0x0, ios 0x0; - void collidedWithObject(float, GameObject*) = mac 0x21d880, win 0x0, ios 0x0; - void collidedWithObject(float, GameObject*, cocos2d::CCRect) = mac 0x21f0b0, win 0x0, ios 0x0; - void collidedWithSlope(float, GameObject*, bool) = mac 0x21d8d0, win 0x0, ios 0x0; + bool collidedWithObject(float, GameObject*) = mac 0x21d880, win 0x0, ios 0x0; + bool collidedWithObject(float, GameObject*, cocos2d::CCRect) = mac 0x21f0b0, win 0x0, ios 0x0; + bool collidedWithSlope(float, GameObject*, bool) = mac 0x21d8d0, win 0x0, ios 0x0; void convertToClosestRotation(float) = mac 0x21c860, win 0x0, ios 0x0; void copyAttributes(PlayerObject*) = mac 0x22dc70, win 0x0, ios 0x0; static PlayerObject* create(int, int, cocos2d::CCLayer*) = mac 0x217260, win 0x0, ios 0x0; diff --git a/include/Geode.hpp b/include/Geode.hpp index d11fd317..d871a5ef 100644 --- a/include/Geode.hpp +++ b/include/Geode.hpp @@ -6,5 +6,6 @@ #include "syntax/InternalMacros.hpp" #include "loader/GeodeLoader.hpp" #include "loader/Dispatcher.hpp" +#include "loader/API.hpp" using namespace geode::modifier;