2016-03-20 21:53:44 +08:00
|
|
|
#include "editor-support/cocosbuilder/CCBFileLoader.h"
|
2012-06-01 05:57:13 +08:00
|
|
|
|
2013-10-15 18:00:03 +08:00
|
|
|
using namespace cocos2d;
|
2012-09-24 11:47:33 +08:00
|
|
|
|
2012-07-19 17:22:36 +08:00
|
|
|
|
2013-10-15 18:00:03 +08:00
|
|
|
namespace cocosbuilder {
|
2012-06-01 05:57:13 +08:00
|
|
|
|
|
|
|
#define PROPERTY_CCBFILE "ccbFile"
|
|
|
|
|
2013-07-27 21:44:49 +08:00
|
|
|
void CCBFileLoader::onHandlePropTypeCCBFile(Node * pNode, Node * pParent, const char * pPropertyName, Node * pCCBFileNode, CCBReader * ccbReader) {
|
2012-11-26 21:51:05 +08:00
|
|
|
if(strcmp(pPropertyName, PROPERTY_CCBFILE) == 0) {
|
2012-09-17 14:27:17 +08:00
|
|
|
((CCBFile*)pNode)->setCCBFileNode(pCCBFileNode);
|
2012-06-01 05:57:13 +08:00
|
|
|
} else {
|
2013-07-27 21:44:49 +08:00
|
|
|
NodeLoader::onHandlePropTypeCCBFile(pNode, pParent, pPropertyName, pCCBFileNode, ccbReader);
|
2012-06-01 05:57:13 +08:00
|
|
|
}
|
|
|
|
}
|
2012-07-19 17:22:36 +08:00
|
|
|
|
2013-10-15 18:00:03 +08:00
|
|
|
}
|