Skip to content

Commit b79dff5

Browse files
committed
CCComponentContainer bindings
1 parent ce57c96 commit b79dff5

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.github/workflows/verify.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ jobs:
146146
with:
147147
repository: geode-sdk/geode
148148
# TODO: this is temporary
149-
ref: main
149+
ref: nightly
150150
path: geode
151151

152152
- name: Set up codegen binary cache

bindings/2.2081/Cocos2d.bro

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -712,8 +712,8 @@ class cocos2d::CCComponent : cocos2d::CCObject {
712712

713713
[[link(win, android)]]
714714
class cocos2d::CCComponentContainer {
715-
protected CCComponentContainer(cocos2d::CCNode*) = win inline;
716-
virtual ~CCComponentContainer();
715+
protected CCComponentContainer(cocos2d::CCNode*) = win inline, m1 0x261294, imac 0x2c4f90, ios 0x164c78;
716+
virtual ~CCComponentContainer() = m1 0x2612a8, imac 0x2c4fb0, ios 0x164c8c;
717717

718718
virtual cocos2d::CCComponent* get(char const*) const = imac 0x2c5050, m1 0x26135c, ios 0x164ce0;
719719
virtual bool add(cocos2d::CCComponent*) = imac 0x2c5170, m1 0x26148c, ios 0x164d80;
@@ -722,8 +722,8 @@ class cocos2d::CCComponentContainer {
722722
virtual void removeAll() = imac 0x2c5800, m1 0x261b00, ios 0x1652e4;
723723
virtual void visit(float) = imac 0x2c59f0, m1 0x261ca0, ios 0x165454;
724724

725-
void alloc();
726-
bool isEmpty() const;
725+
void alloc() = m1 0x261c7c, imac 0x2c59d0, ios inline;
726+
bool isEmpty() const = m1 0x261cf4, imac 0x2c5a40, ios 0x1654a8;
727727
}
728728

729729
[[link(win, android)]]

bindings/2.2081/inline/CCComponentContainer.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,9 @@ cocos2d::CCComponentContainer::CCComponentContainer(cocos2d::CCNode* p0) {
1212
#endif
1313

1414
#if defined(GEODE_IS_IOS)
15+
void cocos2d::CCComponentContainer::alloc() {
16+
m_pComponents = CCDictionary::create();
17+
m_pComponents->retain();
18+
}
1519
#endif
1620

0 commit comments

Comments
 (0)