2012-06-13 02:59:49 +08:00
|
|
|
#include "CCBFileLoader.h"
|
2012-06-01 05:57:13 +08:00
|
|
|
|
|
|
|
using namespace cocos2d;
|
|
|
|
using namespace cocos2d::extension;
|
|
|
|
|
|
|
|
#define PROPERTY_CCBFILE "ccbFile"
|
|
|
|
|
|
|
|
CCNode * CCBFileLoader::createCCNode(CCNode * pParent, CCBReader * pCCBReader) {
|
|
|
|
return CCNode::node();
|
|
|
|
}
|
|
|
|
|
2012-06-05 08:45:25 +08:00
|
|
|
void CCBFileLoader::onHandlePropTypeCCBFile(CCNode * pNode, CCNode * pParent, const char * pPropertyName, CCNode * pCCBFileNode, CCBReader * pCCBReader) {
|
|
|
|
if(strcmp(pPropertyName, PROPERTY_CCBFILE) == 0) {
|
2012-06-01 05:57:13 +08:00
|
|
|
pNode->addChild(pCCBFileNode);
|
|
|
|
} else {
|
|
|
|
CCNodeLoader::onHandlePropTypeCCBFile(pNode, pParent, pPropertyName, pCCBFileNode, pCCBReader);
|
|
|
|
}
|
|
|
|
}
|