Add support for particleWithFile for both Quad & Point Particle Systems

This commit is contained in:
ciaranj 2011-09-27 23:15:54 +01:00
parent 7b423eb708
commit d1f031d2de
2 changed files with 9 additions and 1 deletions

View File

@ -1 +1 @@
08a6fb8c95775f5f4aeb25def379a741f6ea56f0
445474251b15e1ea13cdde8cd5a9fc2776f16a77

View File

@ -52,6 +52,14 @@ class CCParticleSystem : public CCNode, public CCTextureProtocol {
void setBlendFunc(ccBlendFunc var);
};
class CCParticleSystemQuad : public CCParticleSystem {
static CCParticleSystemQuad * particleWithFile(const char *plistFile);
};
class CCParticleSystemPoint : public CCParticleSystem {
static CCParticleSystemPoint * particleWithFile(const char *plistFile);
};
// Inheritance is funky here in the examples.... in reality its a pragma-def .. not sure how to map that?
class CCParticleFire : public CCParticleSystem {