From: chsieh Date: Tue, 17 May 2011 04:59:09 +0000 (-0700) Subject: Adding test case. X-Git-Url: http://git.less.ly:3516/?a=commitdiff_plain;h=c50dec8f89c507e62831ac63306ab8fb4c7cebe9;p=tanks-ios.git Adding test case. --- diff --git a/etc/xmls/maintank.xml b/etc/xmls/maintank.xml new file mode 100644 index 0000000..71e84be --- /dev/null +++ b/etc/xmls/maintank.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/src/render/animation/AnimationContainer.mm b/src/render/animation/AnimationContainer.mm index 1bd37a5..f96504c 100644 --- a/src/render/animation/AnimationContainer.mm +++ b/src/render/animation/AnimationContainer.mm @@ -5,7 +5,7 @@ //////////////////////////////////////////////////////////////////////////////////// // private method -@interface AnimationContainer() +@interface AnimationContainer (Private) -(void)parseContentXml:(NSString *)contentPath; @@ -82,7 +82,7 @@ //////////////////////////////////////////////////////////////////////////////////// // XML parser callback for the following format: // -// +// // // // @@ -94,7 +94,7 @@ 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"]) {