2014-03-04 16:51:35 +08:00
|
|
|
|
|
|
|
|
|
|
|
#ifndef __TestCpp__CustomReader__
|
|
|
|
#define __TestCpp__CustomReader__
|
|
|
|
|
2014-03-05 21:18:51 +08:00
|
|
|
#include "extensions/cocos-ext.h"
|
2014-03-04 16:51:35 +08:00
|
|
|
#include "cocostudio/DictionaryHelper.h"
|
2014-03-11 17:13:54 +08:00
|
|
|
#include "ui/CocosGUI.h"
|
2014-03-04 16:51:35 +08:00
|
|
|
|
|
|
|
|
2015-04-09 08:37:30 +08:00
|
|
|
class CustomReader : public cocos2d::Ref
|
2014-03-04 16:51:35 +08:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
CustomReader();
|
|
|
|
~CustomReader();
|
|
|
|
|
|
|
|
static CustomReader* getInstance();
|
|
|
|
static void purge();
|
|
|
|
|
2015-04-09 08:37:30 +08:00
|
|
|
virtual void setProperties(const std::string& classType, cocos2d::ui::Widget* widget, const rapidjson::Value& customOptions);
|
2014-03-04 16:51:35 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* defined(__TestCpp__CustomReader__) */
|