mirror of https://github.com/axmolengine/axmol.git
19 lines
580 B
C++
19 lines
580 B
C++
#include "CCBFileLoader.h"
|
|
|
|
USING_NS_CC;
|
|
USING_NS_CC_EXT;
|
|
|
|
#define PROPERTY_CCBFILE "ccbFile"
|
|
|
|
CCNode * CCBFileLoader::createCCNode(CCNode * pParent, CCBReader * pCCBReader) {
|
|
return CCNode::node();
|
|
}
|
|
|
|
void CCBFileLoader::onHandlePropTypeCCBFile(CCNode * pNode, CCNode * pParent, const char * pPropertyName, CCNode * pCCBFileNode, CCBReader * pCCBReader) {
|
|
if(strcmp(pPropertyName, PROPERTY_CCBFILE) == 0) {
|
|
pNode->addChild(pCCBFileNode);
|
|
} else {
|
|
CCNodeLoader::onHandlePropTypeCCBFile(pNode, pParent, pPropertyName, pCCBFileNode, pCCBReader);
|
|
}
|
|
}
|