mirror of https://github.com/axmolengine/axmol.git
19 lines
530 B
C++
19 lines
530 B
C++
#include "editor-support/cocosbuilder/CCBFileLoader.h"
|
|
|
|
using namespace cocos2d;
|
|
|
|
|
|
namespace cocosbuilder {
|
|
|
|
#define PROPERTY_CCBFILE "ccbFile"
|
|
|
|
void CCBFileLoader::onHandlePropTypeCCBFile(Node * pNode, Node * pParent, const char * pPropertyName, Node * pCCBFileNode, CCBReader * ccbReader) {
|
|
if(strcmp(pPropertyName, PROPERTY_CCBFILE) == 0) {
|
|
((CCBFile*)pNode)->setCCBFileNode(pCCBFileNode);
|
|
} else {
|
|
NodeLoader::onHandlePropTypeCCBFile(pNode, pParent, pPropertyName, pCCBFileNode, ccbReader);
|
|
}
|
|
}
|
|
|
|
}
|