Skip to content

Commit 16b5f85

Browse files
Full class initializer support (#1200)
* Full class initializer support * Add more initializers * Merged
1 parent 443ece5 commit 16b5f85

File tree

2 files changed

+66
-23
lines changed

2 files changed

+66
-23
lines changed

bindings/2.2074/GeometryDash.bro

Lines changed: 65 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,9 @@ class AchievementBar : cocos2d::CCNodeRGBA {
245245
[[link(android)]]
246246
class AchievementCell : TableViewCell {
247247
// virtual ~AchievementCell();
248-
AchievementCell(char const* identifier, float width, float height) = m1 0x1ec5d4, imac 0x23c8c0;
248+
AchievementCell(char const* identifier, float width, float height) = win inline, m1 0x1ec5d4, imac 0x23c8c0, ios inline : TableViewCell(identifier, width, height) {
249+
this->init();
250+
}
249251

250252
virtual bool init() = m1 0x1ec614, imac 0x23c930, ios 0x10ebb4 { return true; }
251253
virtual void draw() = win 0xad710, imac 0x23c940, m1 0x1ec61c, ios 0x10ebbc;
@@ -917,7 +919,9 @@ class AppDelegate : cocos2d::CCApplication, cocos2d::CCSceneDelegate {
917919
[[link(android)]]
918920
class ArtistCell : TableViewCell {
919921
// virtual ~ArtistCell();
920-
ArtistCell(char const* identifier, float width, float height) = m1 0x1f1afc, imac 0x242690;
922+
ArtistCell(char const* identifier, float width, float height) = win inline, m1 0x1f1afc, imac 0x242690, ios inline : TableViewCell(identifier, width, height) {
923+
this->init();
924+
}
921925

922926
virtual bool init() = win 0x3c7f0, m1 0x1f1b40, imac 0x242700, ios 0x113428;
923927
virtual void draw() = win 0xad710, imac 0x2428c0, m1 0x1f1d04, ios 0x1135cc;
@@ -3792,7 +3796,9 @@ class ColorSetupDelegate {
37923796

37933797
[[link(android)]]
37943798
class CommentCell : TableViewCell, LikeItemDelegate, FLAlertLayerProtocol {
3795-
CommentCell(char const* identifier, float width, float height) = win 0xb53c0, m1 0x1f1fcc, imac 0x242cc0;
3799+
CommentCell(char const* identifier, float width, float height) = win 0xb53c0, m1 0x1f1fcc, imac 0x242cc0, ios inline : TableViewCell(identifier, width, height) {
3800+
this->init();
3801+
}
37963802
~CommentCell() = win inline, m1 0x1f1db0, imac 0x242990, ios 0x113678 {
37973803
CC_SAFE_RELEASE(m_comment);
37983804
}
@@ -4631,7 +4637,9 @@ class CustomMusicCell : CustomSongCell {
46314637
[[link(android)]]
46324638
class CustomSFXCell : TableViewCell, CustomSFXDelegate {
46334639
// virtual ~CustomSFXCell();
4634-
CustomSFXCell(char const* identifier, float width, float height) = win 0xb4380, m1 0x1f1798, imac 0x242110;
4640+
CustomSFXCell(char const* identifier, float width, float height) = win 0xb4380, m1 0x1f1798, imac 0x242110, ios inline : TableViewCell(identifier, width, height) {
4641+
this->init();
4642+
}
46354643

46364644
virtual bool init() = win 0xb4410, imac 0x2421a0, m1 0x1f17e8, ios 0x11316c;
46374645
virtual void draw() = win 0xad710, imac 0x2422a0, m1 0x1f188c, ios 0x113210;
@@ -4729,7 +4737,9 @@ class CustomSFXWidget : cocos2d::CCNode, MusicDownloadDelegate, FLAlertLayerProt
47294737
[[link(android)]]
47304738
class CustomSongCell : TableViewCell, CustomSongDelegate {
47314739
// virtual ~CustomSongCell();
4732-
CustomSongCell(char const* identifier, float width, float height) = win 0xb3e80, m1 0x1f14e0, imac 0x241d20;
4740+
CustomSongCell(char const* identifier, float width, float height) = win 0xb3e80, m1 0x1f14e0, imac 0x241d20, ios inline : TableViewCell(identifier, width, height) {
4741+
this->init();
4742+
}
47334743

47344744
virtual bool init() = win 0xb3f00, m1 0x1f152c, imac 0x241da0, ios 0x112efc;
47354745
virtual void draw() = win 0xad710, imac 0x241fb0, m1 0x1f16b0, ios 0x113088;
@@ -8207,7 +8217,9 @@ class FriendsProfilePage : FLAlertLayer, FLAlertLayerProtocol, UploadActionDeleg
82078217
[[link(android)]]
82088218
class GameCell : TableViewCell {
82098219
// virtual ~GameCell();
8210-
GameCell(char const* identifier, float width, float height) = m1 0x291d14, imac 0x2f94a0;
8220+
GameCell(char const* identifier, float width, float height) = win inline, m1 0x291d14, imac 0x2f94a0, ios inline : TableViewCell(identifier, width, height) {
8221+
this->init();
8222+
}
82118223

82128224
virtual bool init() = win 0x3c7f0, m1 0x291d60, imac 0x2f9520, ios 0x1d1424;
82138225
virtual void draw() = win 0x3cbf0, imac 0x2f95e0, m1 0x291e34, ios 0x1d1468;
@@ -15661,7 +15673,9 @@ class GJLevelList : cocos2d::CCNode {
1566115673
[[link(android)]]
1566215674
class GJLevelScoreCell : TableViewCell {
1566315675
// virtual ~GJLevelScoreCell();
15664-
GJLevelScoreCell(char const* identifier, float width, float height) = m1 0x1f2de0, imac 0x243d70;
15676+
GJLevelScoreCell(char const* identifier, float width, float height) = win inline, m1 0x1f2de0, imac 0x243d70, ios inline : TableViewCell(identifier, width, height) {
15677+
this->init();
15678+
}
1566515679

1566615680
virtual bool init() = win 0x3c7f0, m1 0x1f2e24, imac 0x243de0, ios 0x11405c;
1566715681
virtual void draw() = win 0xad710, imac 0x243e30, m1 0x1f2e6c, ios 0x1140a4;
@@ -15690,7 +15704,9 @@ class GJListLayer : cocos2d::CCLayerColor {
1569015704
[[link(android)]]
1569115705
class GJLocalLevelScoreCell : TableViewCell {
1569215706
// virtual ~GJLocalLevelScoreCell();
15693-
GJLocalLevelScoreCell(char const* identifier, float width, float height) = m1 0x1f2ca8, imac 0x243b80;
15707+
GJLocalLevelScoreCell(char const* identifier, float width, float height) = win inline, m1 0x1f2ca8, imac 0x243b80, ios inline : TableViewCell(identifier, width, height) {
15708+
this->init();
15709+
}
1569415710

1569515711
virtual bool init() = win 0x3c7f0, m1 0x1f2cec, imac 0x243bf0, ios 0x113f6c;
1569615712
virtual void draw() = win 0xad710, imac 0x243c10, m1 0x1f2cf8, ios 0x113f78;
@@ -15824,7 +15840,9 @@ class GJMapPack : cocos2d::CCNode {
1582415840

1582515841
[[link(android)]]
1582615842
class GJMessageCell : TableViewCell, FLAlertLayerProtocol, UploadPopupDelegate, UploadActionDelegate {
15827-
GJMessageCell(char const* identifier, float width, float height) = m1 0x1f4e18, imac 0x246400;
15843+
GJMessageCell(char const* identifier, float width, float height) = win inline, m1 0x1f4e18, imac 0x246400, ios inline : TableViewCell(identifier, width, height) {
15844+
this->init();
15845+
}
1582815846
~GJMessageCell() = win inline, m1 0x1f4b94, imac 0x246020, ios 0x115238 {
1582915847
auto glm = GameLevelManager::sharedState();
1583015848
if (glm->m_uploadActionDelegate == this) glm->m_uploadActionDelegate = nullptr;
@@ -16352,7 +16370,9 @@ class GJPurchaseDelegate {
1635216370

1635316371
[[link(android)]]
1635416372
class GJRequestCell : TableViewCell, FLAlertLayerProtocol, UploadPopupDelegate, UploadActionDelegate {
16355-
GJRequestCell(char const* identifier, float width, float height) = m1 0x1f42e4, imac 0x245640;
16373+
GJRequestCell(char const* identifier, float width, float height) = win inline, m1 0x1f42e4, imac 0x245640, ios inline : TableViewCell(identifier, width, height) {
16374+
this->init();
16375+
}
1635616376
~GJRequestCell() = win inline, m1 0x1f4060, imac 0x245260, ios 0x114b5c {
1635716377
auto glm = GameLevelManager::sharedState();
1635816378
if (glm->m_uploadActionDelegate == this) glm->m_uploadActionDelegate = nullptr;
@@ -16814,7 +16834,9 @@ class GJScaleControlDelegate {
1681416834
[[link(android)]]
1681516835
class GJScoreCell : TableViewCell, FLAlertLayerProtocol {
1681616836
// virtual ~GJScoreCell();
16817-
GJScoreCell(char const* identifier, float width, float height) = m1 0x1f28c4, imac 0x2436d0;
16837+
GJScoreCell(char const* identifier, float width, float height) = win inline, m1 0x1f28c4, imac 0x2436d0, ios inline : TableViewCell(identifier, width, height) {
16838+
this->init();
16839+
}
1681816840

1681916841
virtual bool init() = win 0xb3f00, m1 0x1f2910, imac 0x243750, ios 0x113ce4;
1682016842
virtual void draw() = win 0xad710, imac 0x243a20, m1 0x1f2bc0, ios 0x113e88;
@@ -17784,7 +17806,9 @@ class GJUnlockableItem : cocos2d::CCObject {
1778417806

1778517807
[[link(android)]]
1778617808
class GJUserCell : TableViewCell, FLAlertLayerProtocol, UploadPopupDelegate, UploadActionDelegate {
17787-
GJUserCell(char const* identifier, float width, float height) = m1 0x1f3198, imac 0x244300;
17809+
GJUserCell(char const* identifier, float width, float height) = win inline, m1 0x1f3198, imac 0x244300, ios inline : TableViewCell(identifier, width, height) {
17810+
this->init();
17811+
}
1778817812
~GJUserCell() = win inline, m1 0x1f2f18, imac 0x243f00, ios 0x114150 {
1778917813
if (m_uploadPopup) m_uploadPopup->m_delegate = nullptr;
1779017814
CC_SAFE_RELEASE(m_userScore);
@@ -20101,12 +20125,16 @@ class LevelLeaderboard : FLAlertLayer, LeaderboardManagerDelegate, FLAlertLayerP
2010120125

2010220126
[[link(android)]]
2010320127
class LevelListCell : TableViewCell {
20104-
LevelListCell(char const* identifier, float width, float height) = win 0xbdf10, m1 0x1f5b78, imac 0x2473e0;
20128+
LevelListCell(char const* identifier, float width, float height) = win 0xbdf10, m1 0x1f5b78, imac 0x2473e0, ios inline : TableViewCell(identifier, width, height) {
20129+
m_levelList = nullptr;
20130+
m_addingLevel = false;
20131+
this->init();
20132+
}
2010520133
~LevelListCell() = win inline, m1 0x1f5908, imac 0x247070, ios 0x115a4c {
2010620134
CC_SAFE_RELEASE(m_levelList);
2010720135
}
2010820136

20109-
static LevelListCell* create(float width, float height) = win inline, m1 0x1f5adc, imac 0x247310 {
20137+
static LevelListCell* create(float width, float height) = win inline, m1 0x1f5adc, imac 0x247310, ios inline {
2011020138
auto ret = new LevelListCell(" ", width, height);
2011120139
if (ret->init()) {
2011220140
ret->autorelease();
@@ -20843,7 +20871,9 @@ class ListButtonPage : cocos2d::CCLayer {
2084320871
[[link(android)]]
2084420872
class ListCell : TableViewCell {
2084520873
// virtual ~ListCell();
20846-
ListCell(char const* identifier, float width, float height) = m1 0x291c50, imac 0x2f9380;
20874+
ListCell(char const* identifier, float width, float height) = win inline, m1 0x291c50, imac 0x2f9380, ios inline : TableViewCell(identifier, width, height) {
20875+
this->init();
20876+
}
2084720877

2084820878
virtual bool init() = m1 0x291c48, imac 0x2f9370, ios 0x1d139c { return true; }
2084920879
virtual void draw() = win 0x3c6f0, imac 0x2f9400, m1 0x291c94, ios 0x1d13a4;
@@ -21052,7 +21082,9 @@ class LocalLevelManager : GManager {
2105221082

2105321083
[[link(android)]]
2105421084
class MapPackCell : TableViewCell {
21055-
MapPackCell(char const* identifier, float width, float height) = m1 0x1efe1c, imac 0x240600, ios 0x111f28;
21085+
MapPackCell(char const* identifier, float width, float height) = win inline, m1 0x1efe1c, imac 0x240600, ios 0x111f28 : TableViewCell(identifier, width, height) {
21086+
this->init();
21087+
}
2105621088
~MapPackCell() = win inline, m1 0x1efc04, imac 0x2402f0, ios 0x111e88 {
2105721089
CC_SAFE_RELEASE(m_rewardLabels);
2105821090
CC_SAFE_RELEASE(m_rewardSprites);
@@ -22361,7 +22393,10 @@ class OpacityEffectAction {
2236122393
[[link(android)]]
2236222394
class OptionsCell : TableViewCell {
2236322395
// virtual ~OptionsCell();
22364-
OptionsCell(char const* identifier, float width, float height) = m1 0x1f19fc, imac 0x242510, ios 0x11332c;
22396+
OptionsCell(char const* identifier, float width, float height) = win inline, m1 0x1f19fc, imac 0x242510, ios 0x11332c : TableViewCell(identifier, width, height) {
22397+
m_optionsObject = nullptr;
22398+
this->init();
22399+
}
2236522400

2236622401
void loadFromObject(OptionsObject* object) = win 0xb49f0, m1 0x1e26f8, imac 0x232740, ios 0x1055fc;
2236722402
void onToggleOption(cocos2d::CCObject* sender) = win 0xb4d90, m1 0x1f1a68, imac 0x2425a0, ios 0x113398;
@@ -29645,7 +29680,9 @@ class SmartGameObject : GameObject {
2964529680
[[link(android)]]
2964629681
class SmartTemplateCell : TableViewCell {
2964729682
// virtual ~SmartTemplateCell();
29648-
SmartTemplateCell(char const* identifier, float width, float height) = m1 0x1f575c, imac 0x246e60;
29683+
SmartTemplateCell(char const* identifier, float width, float height) = win inline, m1 0x1f575c, imac 0x246e60, ios inline : TableViewCell(identifier, width, height) {
29684+
this->init();
29685+
}
2964929686

2965029687
virtual bool init() = win 0x3c7f0, m1 0x1f57a0, imac 0x246ed0, ios 0x1158f0;
2965129688
virtual void draw() = win 0xad710, imac 0x246fa0, m1 0x1f585c, ios 0x1159a0;
@@ -29660,7 +29697,9 @@ class SmartTemplateCell : TableViewCell {
2966029697
[[link(android)]]
2966129698
class SongCell : TableViewCell {
2966229699
// virtual ~SongCell();
29663-
SongCell(char const* identifier, float width, float height) = m1 0x1f1384, imac 0x241b10;
29700+
SongCell(char const* identifier, float width, float height) = win inline, m1 0x1f1384, imac 0x241b10, ios inline : TableViewCell(identifier, width, height) {
29701+
this->init();
29702+
}
2966429703

2966529704
virtual bool init() = win 0x3c7f0, m1 0x1f13c8, imac 0x241b80, ios 0x112de8;
2966629705
virtual void draw() = win 0xad710, imac 0x241bc0, m1 0x1f13f8, ios 0x112e18;
@@ -30291,7 +30330,9 @@ class StartPosObject : EffectGameObject {
3029130330
[[link(android)]]
3029230331
class StatsCell : TableViewCell {
3029330332
// virtual ~StatsCell();
30294-
StatsCell(char const* identifier, float width, float height) = m1 0x1f0598, imac 0x240dd0;
30333+
StatsCell(char const* identifier, float width, float height) = win inline, m1 0x1f0598, imac 0x240dd0, ios inline : TableViewCell(identifier, width, height) {
30334+
this->init();
30335+
}
3029530336

3029630337
virtual bool init() = m1 0x1f05d8, imac 0x240e40, ios 0x112528 { return true; }
3029730338
virtual void draw() = win 0xad710, imac 0x241930, m1 0x1f1224, ios 0x112c98;
@@ -30378,7 +30419,7 @@ class SupportLayer : GJDropDownLayer, FLAlertLayerProtocol, UploadActionDelegate
3037830419

3037930420
[[link(android), depends(CCIndexPath)]]
3038030421
class TableView : CCScrollLayerExt, CCScrollLayerExtDelegate {
30381-
inline TableView(cocos2d::CCRect rect) : CCScrollLayerExt(rect) {
30422+
TableView(cocos2d::CCRect rect) = win inline, m1 0x536d4c, imac 0x27b200, ios 0x2701c : CCScrollLayerExt(rect) {
3038230423
m_tableDelegate = nullptr;
3038330424
m_dataSource = nullptr;
3038430425
m_cellDelegate = nullptr;
@@ -31661,7 +31702,9 @@ class UploadPopupDelegate {
3166131702
[[link(android)]]
3166231703
class URLCell : TableViewCell {
3166331704
// virtual ~URLCell();
31664-
URLCell(char const* identifier, float width, float height) = m1 0x1f5d84, imac 0x247670;
31705+
URLCell(char const* identifier, float width, float height) = win inline, m1 0x1f5d84, imac 0x247670, ios inline : TableViewCell(identifier, width, height) {
31706+
this->init();
31707+
}
3166531708

3166631709
virtual bool init() = win 0x3c7f0, m1 0x1f5dc8, imac 0x2476e0, ios 0x115ca4;
3166731710
virtual void draw() = win 0xad710, imac 0x247750, m1 0x1f5e38, ios 0x115d00;

codegen/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ project(Codegen LANGUAGES C CXX)
44
include(../cmake/CPM.cmake)
55

66
CPMAddPackage("gh:fmtlib/fmt#11.0.2")
7-
CPMAddPackage("gh:geode-sdk/Broma#24d7b5c")
7+
CPMAddPackage("gh:geode-sdk/Broma#485c817")
88
CPMAddPackage("gh:geode-sdk/[email protected]")
99

1010
target_compile_definitions(fmt PUBLIC -DFMT_CONSTEVAL=)

0 commit comments

Comments
 (0)