2012-06-13 02:59:49 +08:00
|
|
|
#include "CCBFileLoader.h"
|
2012-06-01 05:57:13 +08:00
|
|
|
|
2012-06-14 05:19:13 +08:00
|
|
|
USING_NS_CC;
|
2012-07-19 17:22:36 +08:00
|
|
|
|
|
|
|
NS_CC_EXT_BEGIN
|
2012-06-01 05:57:13 +08:00
|
|
|
|
|
|
|
#define PROPERTY_CCBFILE "ccbFile"
|
|
|
|
|
2012-06-14 15:01:01 +08:00
|
|
|
void CCBFileLoader::onHandlePropTypeCCBFile(CCNode * pNode, CCNode * pParent, CCString * pPropertyName, CCNode * pCCBFileNode, CCBReader * pCCBReader) {
|
|
|
|
if(pPropertyName->compare(PROPERTY_CCBFILE) == 0) {
|
2012-06-01 05:57:13 +08:00
|
|
|
pNode->addChild(pCCBFileNode);
|
|
|
|
} else {
|
|
|
|
CCNodeLoader::onHandlePropTypeCCBFile(pNode, pParent, pPropertyName, pCCBFileNode, pCCBReader);
|
|
|
|
}
|
|
|
|
}
|
2012-07-19 17:22:36 +08:00
|
|
|
|
|
|
|
NS_CC_EXT_END
|