mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-27 01:45:35 -05:00
add modify to CCParticleSystem, fix removed field
This commit is contained in:
parent
2ea4b97bd4
commit
fd3a587aa9
2 changed files with 13 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -174,6 +174,7 @@ 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
|
||||
|
|
Loading…
Reference in a new issue