[...]/CCBReader/CCBReader.mm:1072:17: Cannot initialize a variable of type 'CCNode *' with an rvalue of type 'void *'
CCNode* node = [pointerValue pointerValue];
- (void *)pointerValue;
+ (CCNode*) nodeGraphFromData:(NSData*) data owner:(id)owner parentSize:(CGSize)parentSize { CCBReader* reader = [[[CCBReader alloc] initWithData: data owner:owner] autorelease]; reader.actionManager.rootContainerSize = parentSize; NSMutableDictionary* animationManagers = [NSMutableDictionary dictionary]; CCNode* nodeGraph = [reader readFileWithCleanUp:YES actionManagers:animationManagers]; if (nodeGraph && reader.actionManager.autoPlaySequenceId != -1) { // Auto play animations [reader.actionManager runAnimationsForSequenceId:reader.actionManager.autoPlaySequenceId tweenDuration:0]; } // Assign actionManagers to userObject for (NSValue* pointerValue in animationManagers) { CCNode* node = [pointerValue pointerValue]; // <<== This is where I get the error. CCBAnimationManager* manager = [animationManagers objectForKey:pointerValue]; node.userObject = manager; } // Call didLoadFromCCB [CCBReader callDidLoadFromCCBForNodeGraph:nodeGraph]; return nodeGraph; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)