--- /dev/null
+<AnimationClips name='maintank' atlasXmlPath='etc/xmls/maintank.xml'>
+ <Clip name='default' frames='1' />
+</AnimationClips>
\ No newline at end of file
////////////////////////////////////////////////////////////////////////////////////
// private method
-@interface AnimationContainer()
+@interface AnimationContainer (Private)
-(void)parseContentXml:(NSString *)contentPath;
////////////////////////////////////////////////////////////////////////////////////
// XML parser callback for the following format:
//
-// <AnimationClips name='foo' xmlPath='dir/foo.xml'>
+// <AnimationClips name='foo' atlasXmlPath='dir/foo.xml'>
// <Clip name='do_bar' frames='15' />
// <Clip name='do_foo' frames='5' />
// </AnimationClips>
if ([elementName isEqualToString:@"AnimationClips"]) {
mAnimationLookup = [[NSMutableDictionary alloc] init];
self.mAnimationName = [attributeDict valueForKey:@"name"];
- self.mAtlasPath = [attributeDict valueForKey:@"xmlPath"];
+ self.mAtlasPath = [attributeDict valueForKey:@"atlasXmlPath"];
mAtlas = [[SPTextureAtlas alloc] initWithContentsOfFile:mAtlasPath];
}
else if ([elementName isEqualToString:@"Clip"]) {