File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 151
151
*
152
152
* @param child Particle System.
153
153
* @param z Z Order.
154
- * @param aTag Tag .
154
+ * @param name name tag .
155
155
*/
156
- -(void ) addChild : (CCParticleSystemBase*)child z : (NSInteger )z tag : ( NSInteger ) aTag ;
156
+ -(void ) addChild : (CCParticleSystemBase*)child z : (NSInteger )z name : ( NSString *) name ;
157
157
158
158
/* *
159
159
* Inserts a particle system to the batch node.
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ -(void) updateAllAtlasIndexes;
60
60
-(void ) increaseAtlasCapacityTo : (NSUInteger ) quantity ;
61
61
-(NSUInteger ) searchNewPositionInChildrenForZ : (NSInteger )z ;
62
62
-(void ) getCurrentIndex : (NSUInteger *)oldIndex newIndex : (NSUInteger *)newIndex forChild : (CCNode*)child z : (NSInteger )z ;
63
- -(NSUInteger ) addChildHelper : (CCNode*) child z : (NSInteger )z tag : ( NSInteger ) aTag ;
63
+ -(NSUInteger ) addChildHelper : (CCNode*)child z : (NSInteger )z name : ( NSString *) name ;
64
64
@end
65
65
66
66
@implementation CCParticleBatchNode
@@ -156,7 +156,7 @@ -(void) visit
156
156
}
157
157
158
158
// override addChild:
159
- -(void ) addChild : (CCParticleSystemBase*)child z : (NSInteger )z tag : ( NSInteger ) aTag
159
+ -(void ) addChild : (CCParticleSystemBase*)child z : (NSInteger )z name : ( NSString *) name
160
160
{
161
161
NSAssert ( child != nil , @" Argument must be non-nil" );
162
162
NSAssert ( [child isKindOfClass: [CCParticleSystemBase class ]], @" CCParticleBatchNode only supports CCQuadParticleSystems as children" );
@@ -169,7 +169,7 @@ -(void) addChild:(CCParticleSystemBase*)child z:(NSInteger)z tag:(NSInteger) aTa
169
169
NSAssert ( _blendFunc.src == child.blendFunc.src && _blendFunc.dst == child.blendFunc.dst, @" Can't add a PaticleSystem that uses a differnt blending function" );
170
170
171
171
// no lazy sorting, so don't call super addChild, call helper instead
172
- NSUInteger pos = [self addChildHelper: child z: z tag: aTag ];
172
+ NSUInteger pos = [self addChildHelper: child z: z name: name ];
173
173
174
174
// get new atlasIndex
175
175
NSUInteger atlasIndex;
You can’t perform that action at this time.
0 commit comments