2014-12-01 21:50:05 +08:00
|
|
|
#ifndef __cocos2d_libs__CustomRootNodeReader__
|
|
|
|
#define __cocos2d_libs__CustomRootNodeReader__
|
|
|
|
|
|
|
|
#include "cocos2d.h"
|
2016-03-21 21:04:06 +08:00
|
|
|
#include "editor-support/cocostudio/CocosStudioExport.h"
|
|
|
|
#include "editor-support/cocostudio/WidgetReader/NodeReader/NodeReader.h"
|
2014-12-01 21:50:05 +08:00
|
|
|
|
|
|
|
|
|
|
|
class CustomRootNodeReader : public cocostudio::NodeReader
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CustomRootNodeReader() {};
|
|
|
|
~CustomRootNodeReader() {};
|
|
|
|
|
|
|
|
static CustomRootNodeReader* getInstance();
|
|
|
|
static void purge();
|
|
|
|
|
|
|
|
cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* nodeOptions);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* defined(__cocos2d_libs__CustomRootNodeReader__) */
|