Skip to content

Commit 1b7cfad

Browse files
committed
Fix members and add new classes
1 parent 3b7920e commit 1b7cfad

File tree

4 files changed

+80
-6
lines changed

4 files changed

+80
-6
lines changed

bindings/2.2081/Extras.bro

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,3 +363,15 @@ class tk_spline {
363363
double m_rightValue;
364364
bool m_madeMonotonic;
365365
}
366+
367+
class RecordCheckpoint {
368+
int m_index;
369+
int m_step;
370+
uint64_t m_seed;
371+
int m_attempts;
372+
int m_unk014;
373+
uint64_t m_time;
374+
int m_unk020;
375+
int m_points;
376+
gd::string m_inputs;
377+
}

bindings/2.2081/GeometryDash.bro

Lines changed: 51 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5702,7 +5702,7 @@ class GameLevelManager : cocos2d::CCNode {
57025702
GJChallengeDelegate* m_GJChallengeDelegate;
57035703
GJDailyLevelDelegate* m_GJDailyLevelDelegate;
57045704
OnlineListDelegate* m_onlineListDelegate;
5705-
void* m_levelRateInfoDelegate;
5705+
LevelRateInfoDelegate* m_levelRateInfoDelegate;
57065706
SearchType m_searchType;
57075707
int m_mapPack;
57085708
gd::string m_tempSave;
@@ -7310,7 +7310,7 @@ class GJAssetDownloadAction {
73107310
int m_status;
73117311
}
73127312

7313-
[[link(android), depends(GJGameState), depends(PlayerButtonCommand)]]
7313+
[[link(android), depends(GJGameState), depends(PlayerButtonCommand), depends(RecordCheckpoint)]]
73147314
class GJBaseGameLayer : cocos2d::CCLayer, TriggerEffectDelegate {
73157315
GJBaseGameLayer() = win 0x2cfef0, m1 0xac9f4, imac 0xc01e0;
73167316
~GJBaseGameLayer() = win 0x2057a0, m1 0xea680, imac 0x10ea70;
@@ -8073,10 +8073,10 @@ class GJBaseGameLayer : cocos2d::CCLayer, TriggerEffectDelegate {
80738073
int m_currentStep;
80748074
gd::vector<PlayerButtonCommand> m_queuedButtons;
80758075
gd::vector<PlayerButtonCommand> m_queuedRecordedButtons;
8076-
gd::unordered_map<int, int> m_unk3330;
8076+
gd::unordered_map<int, RecordCheckpoint> m_unk3330;
80778077
int m_unk3370;
80788078
gd::vector<PlayerButtonCommand> m_queuedReplayButtons;
8079-
gd::unordered_map<int, int> m_unk3390;
8079+
gd::unordered_map<int, RecordCheckpoint> m_unk3390;
80808080
gd::vector<void*> m_unk3340;
80818081
gd::vector<void*> m_unk3358;
80828082
int m_queuedRecordedButtonsSize;
@@ -9742,6 +9742,46 @@ class GJPurchaseDelegate {
97429742
virtual void didPurchaseItem(GJStoreItem* item) = inline;
97439743
}
97449744

9745+
[[link(android)]]
9746+
class GJRateLevelLayer : SetupTriggerPopup, UploadPopupDelegate, UploadActionDelegate, LevelRateInfoDelegate, FLAlertLayerProtocol {
9747+
GJRateLevelLayer() = inline;
9748+
~GJRateLevelLayer() = win inline;
9749+
9750+
virtual void keyBackClicked();
9751+
virtual void onClose(cocos2d::CCObject* sender);
9752+
virtual void onCustomButton(cocos2d::CCObject* sender);
9753+
virtual void uploadActionFinished(int id, int response);
9754+
virtual void uploadActionFailed(int id, int response);
9755+
virtual void onClosePopup(UploadActionPopup* popup);
9756+
virtual void rateInfoFinished(int id, gd::string info);
9757+
virtual void rateInfoFailed(int id, int response);
9758+
virtual void FLAlert_Clicked(FLAlertLayer* layer, bool btn2);
9759+
9760+
static GJRateLevelLayer* create(GJGameLevel* level);
9761+
9762+
void createStatPillar(int, int, int, cocos2d::ccColor3B, cocos2d::ccColor3B, cocos2d::CCPoint, gd::string);
9763+
CCMenuItemSpriteExtra* getStarsButton(int stars, cocos2d::SEL_MenuHandler selector, cocos2d::CCMenu* menu, float scale);
9764+
bool init(GJGameLevel* level);
9765+
void onFeature(cocos2d::CCObject* sender);
9766+
void onRate(cocos2d::CCObject* sender);
9767+
void onToggleCoins(cocos2d::CCObject* sender);
9768+
void selectRating(cocos2d::CCObject* sender);
9769+
void setupRateInfo(gd::string info);
9770+
9771+
GJGameLevel* m_level;
9772+
bool m_uploadFinished;
9773+
CCMenuItemSpriteExtra* m_submitButton;
9774+
cocos2d::CCArray* m_starButtons;
9775+
int m_stars;
9776+
bool m_coinsToggled;
9777+
cocos2d::CCSprite* m_coinSprite;
9778+
UploadActionPopup* m_uploadPopup;
9779+
GJDifficultySprite* m_difficultySprite;
9780+
GJFeatureState m_featureState;
9781+
LoadingCircle* m_loadingCircle;
9782+
cocos2d::CCPoint m_center;
9783+
}
9784+
97459785
[[link(android)]]
97469786
class GJRequestCell : TableViewCell, FLAlertLayerProtocol, UploadPopupDelegate, UploadActionDelegate {
97479787
GJRequestCell(char const* identifier, float width, float height) = win inline, ios inline, m1 0x1fcebc, imac 0x257670;
@@ -12392,6 +12432,12 @@ class LevelPage : cocos2d::CCLayer, DialogDelegate {
1239212432
cocos2d::CCSprite* m_secretDoor;
1239312433
}
1239412434

12435+
[[link(android)]]
12436+
class LevelRateInfoDelegate {
12437+
virtual void rateInfoFinished(int id, gd::string info) = inline;
12438+
virtual void rateInfoFailed(int id, int response) = inline;
12439+
}
12440+
1239512441
[[link(android)]]
1239612442
class LevelSearchLayer : cocos2d::CCLayer, TextInputDelegate, FLAlertLayerProtocol, DemonFilterDelegate {
1239712443
LevelSearchLayer() = inline;
@@ -12632,7 +12678,7 @@ class LevelSettingsObject : cocos2d::CCNode {
1263212678
// property kA44
1263312679
int m_propertykA44;
1263412680
// property kA47
12635-
int m_propertykA47;
12681+
int m_nextFreeID;
1263612682
// property kA35
1263712683
bool m_resetCamera;
1263812684
// property kA36
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#include <Geode/Geode.hpp>
2+
3+
void LevelRateInfoDelegate::rateInfoFinished(int id, gd::string info) {}
4+
5+
void LevelRateInfoDelegate::rateInfoFailed(int id, int response) {}
6+
7+
#if defined(GEODE_IS_WINDOWS) || defined(GEODE_IS_IOS)
8+
#endif
9+
10+
#if defined(GEODE_IS_WINDOWS)
11+
#endif
12+
13+
#if defined(GEODE_IS_IOS)
14+
#endif
15+

bindings/include/Geode/Enums.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,8 @@ enum class GJHttpType {
10191019
DeleteServerLevelList = 0x3E,
10201020
GetNews = 0x3F,
10211021
GetGJSecretReward = 0x40,
1022-
GetLevelRateInfo = 0x41
1022+
GetLevelRateInfo = 0x41,
1023+
RateLevelAdmin = 0x42
10231024
};
10241025

10251026
enum class DialogChatPlacement {

0 commit comments

Comments
 (0)