diff --git a/bindings/Cocos2d.bro b/bindings/Cocos2d.bro index ed092928..ad289997 100644 --- a/bindings/Cocos2d.bro +++ b/bindings/Cocos2d.bro @@ -683,6 +683,10 @@ class cocos2d::CCObject { } class cocos2d::CCParticleSystem { + CCParticleSystem() = mac 0x0; + virtual ~CCParticleSystem() = mac 0x0; + virtual auto update(float) = mac 0x0; + auto initParticle(cocos2d::tCCParticle*) = mac 0x0; auto resetSystem() = mac 0x46bd50; auto resumeSystem() = mac 0x46bd40; auto stopSystem() = mac 0x46bd10; diff --git a/loader/include/Geode/cocos/particle_nodes/CCParticleSystem.h b/loader/include/Geode/cocos/particle_nodes/CCParticleSystem.h index 61ba1d79..c2ebe754 100644 --- a/loader/include/Geode/cocos/particle_nodes/CCParticleSystem.h +++ b/loader/include/Geode/cocos/particle_nodes/CCParticleSystem.h @@ -173,7 +173,8 @@ emitter.startSpin = 0; */ class CC_DLL CCParticleSystem : public CCNode, public CCTextureProtocol -{ +{ + GEODE_FRIEND_MODIFY protected: gd::string m_sPlistFile; //! time elapsed since the start of the system (in seconds) @@ -235,8 +236,12 @@ protected: /** weak reference to the CCSpriteBatchNode that renders the CCSprite */ CC_PROPERTY(CCParticleBatchNode*, m_pBatchNode, BatchNode); - // RobTop removed this - ///CC_SYNTHESIZE(unsigned int, m_uAtlasIndex, AtlasIndex); + RT_REMOVE( + CC_SYNTHESIZE(unsigned int, m_uAtlasIndex, AtlasIndex); + ) + RT_ADD( + CC_SYNTHESIZE_NV(unsigned int, m_uAtlasIndex, AtlasIndex); + ) //true if scaled or rotated bool m_bTransformSystemDirty; @@ -373,6 +378,7 @@ public: * @js ctor */ CCParticleSystem(); + GEODE_CUSTOM_CONSTRUCTOR_COCOS(CCParticleSystem, CCNode) /** * @js NA * @lua NA