mirror of https://github.com/axmolengine/axmol.git
Add destroyCocosStudio()
This commit is contained in:
parent
d437ce3e59
commit
6f20da4444
|
@ -218,6 +218,36 @@ void CSLoader::purge()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CSLoader::destroyCocosStudio()
|
||||||
|
{
|
||||||
|
NodeReader::destroyInstance();
|
||||||
|
SingleNodeReader::destroyInstance();
|
||||||
|
SpriteReader::destroyInstance();
|
||||||
|
ParticleReader::destroyInstance();
|
||||||
|
|
||||||
|
ButtonReader::destroyInstance();
|
||||||
|
CheckBoxReader::destroyInstance();
|
||||||
|
ImageViewReader::destroyInstance();
|
||||||
|
TextBMFontReader::destroyInstance();
|
||||||
|
TextReader::destroyInstance();
|
||||||
|
TextFieldReader::destroyInstance();
|
||||||
|
TextAtlasReader::destroyInstance();
|
||||||
|
LoadingBarReader::destroyInstance();
|
||||||
|
SliderReader::destroyInstance();
|
||||||
|
LayoutReader::destroyInstance();
|
||||||
|
ScrollViewReader::destroyInstance();
|
||||||
|
PageViewReader::destroyInstance();
|
||||||
|
ListViewReader::destroyInstance();
|
||||||
|
|
||||||
|
ArmatureNodeReader::destroyInstance();
|
||||||
|
Node3DReader::destroyInstance();
|
||||||
|
Sprite3DReader::destroyInstance();
|
||||||
|
UserCameraReader::destroyInstance();
|
||||||
|
Particle3DReader::destroyInstance();
|
||||||
|
|
||||||
|
destroyInstance();
|
||||||
|
}
|
||||||
|
|
||||||
void CSLoader::init()
|
void CSLoader::init()
|
||||||
{
|
{
|
||||||
using namespace std::placeholders;
|
using namespace std::placeholders;
|
||||||
|
|
|
@ -74,6 +74,8 @@ public:
|
||||||
CSLoader();
|
CSLoader();
|
||||||
void purge();
|
void purge();
|
||||||
|
|
||||||
|
static void destroyCocosStudio();
|
||||||
|
|
||||||
void init();
|
void init();
|
||||||
|
|
||||||
static cocos2d::Node* createNode(const std::string& filename);
|
static cocos2d::Node* createNode(const std::string& filename);
|
||||||
|
|
|
@ -111,7 +111,7 @@ FlatBuffersSerialize::FlatBuffersSerialize()
|
||||||
|
|
||||||
FlatBuffersSerialize::~FlatBuffersSerialize()
|
FlatBuffersSerialize::~FlatBuffersSerialize()
|
||||||
{
|
{
|
||||||
purge();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
FlatBuffersSerialize* FlatBuffersSerialize::getInstance()
|
FlatBuffersSerialize* FlatBuffersSerialize::getInstance()
|
||||||
|
@ -124,7 +124,7 @@ FlatBuffersSerialize* FlatBuffersSerialize::getInstance()
|
||||||
return _instanceFlatBuffersSerialize;
|
return _instanceFlatBuffersSerialize;
|
||||||
}
|
}
|
||||||
|
|
||||||
void FlatBuffersSerialize::purge()
|
void FlatBuffersSerialize::destroyInstance()
|
||||||
{
|
{
|
||||||
CC_SAFE_DELETE(_instanceFlatBuffersSerialize);
|
CC_SAFE_DELETE(_instanceFlatBuffersSerialize);
|
||||||
|
|
||||||
|
|
|
@ -91,7 +91,7 @@ class CC_STUDIO_DLL FlatBuffersSerialize
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static FlatBuffersSerialize* getInstance();
|
static FlatBuffersSerialize* getInstance();
|
||||||
static void purge();
|
static void destroyInstance();
|
||||||
|
|
||||||
FlatBuffersSerialize();
|
FlatBuffersSerialize();
|
||||||
~FlatBuffersSerialize();
|
~FlatBuffersSerialize();
|
||||||
|
|
|
@ -34,6 +34,11 @@ ArmatureNodeReader* ArmatureNodeReader::getInstance()
|
||||||
return _instanceArmatureNodeReader;
|
return _instanceArmatureNodeReader;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ArmatureNodeReader::destroyInstance()
|
||||||
|
{
|
||||||
|
CC_SAFE_DELETE(_instanceArmatureNodeReader);
|
||||||
|
}
|
||||||
|
|
||||||
Offset<Table> ArmatureNodeReader::createOptionsWithFlatBuffers(const tinyxml2::XMLElement *objectData,
|
Offset<Table> ArmatureNodeReader::createOptionsWithFlatBuffers(const tinyxml2::XMLElement *objectData,
|
||||||
flatbuffers::FlatBufferBuilder *builder)
|
flatbuffers::FlatBufferBuilder *builder)
|
||||||
{
|
{
|
||||||
|
|
|
@ -50,7 +50,7 @@ public:
|
||||||
~ArmatureNodeReader();
|
~ArmatureNodeReader();
|
||||||
|
|
||||||
static ArmatureNodeReader* getInstance();
|
static ArmatureNodeReader* getInstance();
|
||||||
static void purge();
|
static void destroyInstance();
|
||||||
|
|
||||||
flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData,
|
flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData,
|
||||||
flatbuffers::FlatBufferBuilder* builder) override;
|
flatbuffers::FlatBufferBuilder* builder) override;
|
||||||
|
|
|
@ -59,7 +59,7 @@ namespace cocostudio
|
||||||
return instanceButtonReader;
|
return instanceButtonReader;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ButtonReader::purge()
|
void ButtonReader::destroyInstance()
|
||||||
{
|
{
|
||||||
CC_SAFE_DELETE(instanceButtonReader);
|
CC_SAFE_DELETE(instanceButtonReader);
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,7 @@ namespace cocostudio
|
||||||
virtual ~ButtonReader();
|
virtual ~ButtonReader();
|
||||||
|
|
||||||
static ButtonReader* getInstance();
|
static ButtonReader* getInstance();
|
||||||
static void purge();
|
static void destroyInstance();
|
||||||
|
|
||||||
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget,
|
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget,
|
||||||
const rapidjson::Value& options);
|
const rapidjson::Value& options);
|
||||||
|
|
|
@ -45,6 +45,11 @@ namespace cocostudio
|
||||||
return instanceCheckBoxReader;
|
return instanceCheckBoxReader;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CheckBoxReader::destroyInstance()
|
||||||
|
{
|
||||||
|
CC_SAFE_DELETE(instanceCheckBoxReader);
|
||||||
|
}
|
||||||
|
|
||||||
void CheckBoxReader::setPropsFromBinary(cocos2d::ui::Widget *widget, CocoLoader *cocoLoader, stExpCocoNode *cocoNode)
|
void CheckBoxReader::setPropsFromBinary(cocos2d::ui::Widget *widget, CocoLoader *cocoLoader, stExpCocoNode *cocoNode)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ namespace cocostudio
|
||||||
virtual ~CheckBoxReader();
|
virtual ~CheckBoxReader();
|
||||||
|
|
||||||
static CheckBoxReader* getInstance();
|
static CheckBoxReader* getInstance();
|
||||||
static void purge();
|
static void destroyInstance();
|
||||||
|
|
||||||
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options);
|
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options);
|
||||||
virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode);
|
virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode);
|
||||||
|
|
|
@ -58,7 +58,7 @@ namespace cocostudio
|
||||||
return _instanceComAudioReader;
|
return _instanceComAudioReader;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ComAudioReader::purge()
|
void ComAudioReader::destroyInstance()
|
||||||
{
|
{
|
||||||
CC_SAFE_DELETE(_instanceComAudioReader);
|
CC_SAFE_DELETE(_instanceComAudioReader);
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,7 +40,7 @@ namespace cocostudio
|
||||||
~ComAudioReader();
|
~ComAudioReader();
|
||||||
|
|
||||||
static ComAudioReader* getInstance();
|
static ComAudioReader* getInstance();
|
||||||
static void purge();
|
static void destroyInstance();
|
||||||
|
|
||||||
flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData,
|
flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData,
|
||||||
flatbuffers::FlatBufferBuilder* builder);
|
flatbuffers::FlatBufferBuilder* builder);
|
||||||
|
|
|
@ -49,6 +49,11 @@ namespace cocostudio
|
||||||
return instanceImageViewReader;
|
return instanceImageViewReader;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ImageViewReader::destroyInstance()
|
||||||
|
{
|
||||||
|
CC_SAFE_DELETE(instanceImageViewReader);
|
||||||
|
}
|
||||||
|
|
||||||
void ImageViewReader::setPropsFromBinary(cocos2d::ui::Widget *widget, CocoLoader *cocoLoader, stExpCocoNode *cocoNode)
|
void ImageViewReader::setPropsFromBinary(cocos2d::ui::Widget *widget, CocoLoader *cocoLoader, stExpCocoNode *cocoNode)
|
||||||
{
|
{
|
||||||
WidgetReader::setPropsFromBinary(widget, cocoLoader, cocoNode);
|
WidgetReader::setPropsFromBinary(widget, cocoLoader, cocoNode);
|
||||||
|
|
|
@ -41,7 +41,7 @@ namespace cocostudio
|
||||||
virtual ~ImageViewReader();
|
virtual ~ImageViewReader();
|
||||||
|
|
||||||
static ImageViewReader* getInstance();
|
static ImageViewReader* getInstance();
|
||||||
static void purge();
|
static void destroyInstance();
|
||||||
|
|
||||||
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options);
|
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options);
|
||||||
virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode);
|
virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode);
|
||||||
|
|
|
@ -64,6 +64,11 @@ namespace cocostudio
|
||||||
return instanceLayoutReader;
|
return instanceLayoutReader;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void LayoutReader::destroyInstance()
|
||||||
|
{
|
||||||
|
CC_SAFE_DELETE(instanceLayoutReader);
|
||||||
|
}
|
||||||
|
|
||||||
void LayoutReader::setPropsFromBinary(cocos2d::ui::Widget *widget, CocoLoader *cocoLoader, stExpCocoNode *cocoNode)
|
void LayoutReader::setPropsFromBinary(cocos2d::ui::Widget *widget, CocoLoader *cocoLoader, stExpCocoNode *cocoNode)
|
||||||
{
|
{
|
||||||
WidgetReader::setPropsFromBinary(widget, cocoLoader, cocoNode);
|
WidgetReader::setPropsFromBinary(widget, cocoLoader, cocoNode);
|
||||||
|
|
|
@ -40,7 +40,7 @@ namespace cocostudio
|
||||||
virtual ~LayoutReader();
|
virtual ~LayoutReader();
|
||||||
|
|
||||||
static LayoutReader* getInstance();
|
static LayoutReader* getInstance();
|
||||||
static void purge();
|
static void destroyInstance();
|
||||||
|
|
||||||
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options);
|
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options);
|
||||||
virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode) ;
|
virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode) ;
|
||||||
|
|
|
@ -42,6 +42,11 @@ namespace cocostudio
|
||||||
return instanceListViewReader;
|
return instanceListViewReader;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ListViewReader::destroyInstance()
|
||||||
|
{
|
||||||
|
CC_SAFE_DELETE(instanceListViewReader);
|
||||||
|
}
|
||||||
|
|
||||||
void ListViewReader::setPropsFromBinary(cocos2d::ui::Widget *widget, CocoLoader *cocoLoader, stExpCocoNode* cocoNode)
|
void ListViewReader::setPropsFromBinary(cocos2d::ui::Widget *widget, CocoLoader *cocoLoader, stExpCocoNode* cocoNode)
|
||||||
{
|
{
|
||||||
ScrollViewReader::setPropsFromBinary(widget, cocoLoader, cocoNode);
|
ScrollViewReader::setPropsFromBinary(widget, cocoLoader, cocoNode);
|
||||||
|
|
|
@ -39,7 +39,7 @@ namespace cocostudio
|
||||||
virtual ~ListViewReader();
|
virtual ~ListViewReader();
|
||||||
|
|
||||||
static ListViewReader* getInstance();
|
static ListViewReader* getInstance();
|
||||||
static void purge();
|
static void destroyInstance();
|
||||||
|
|
||||||
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options);
|
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options);
|
||||||
virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode) ;
|
virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode) ;
|
||||||
|
|
|
@ -48,6 +48,11 @@ namespace cocostudio
|
||||||
return instanceLoadingBar;
|
return instanceLoadingBar;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void LoadingBarReader::destroyInstance()
|
||||||
|
{
|
||||||
|
CC_SAFE_DELETE(instanceLoadingBar);
|
||||||
|
}
|
||||||
|
|
||||||
void LoadingBarReader::setPropsFromBinary(cocos2d::ui::Widget *widget, CocoLoader *cocoLoader, stExpCocoNode *cocoNode)
|
void LoadingBarReader::setPropsFromBinary(cocos2d::ui::Widget *widget, CocoLoader *cocoLoader, stExpCocoNode *cocoNode)
|
||||||
{
|
{
|
||||||
WidgetReader::setPropsFromBinary(widget, cocoLoader, cocoNode);
|
WidgetReader::setPropsFromBinary(widget, cocoLoader, cocoNode);
|
||||||
|
|
|
@ -39,7 +39,7 @@ namespace cocostudio
|
||||||
virtual ~LoadingBarReader();
|
virtual ~LoadingBarReader();
|
||||||
|
|
||||||
static LoadingBarReader* getInstance();
|
static LoadingBarReader* getInstance();
|
||||||
static void purge();
|
static void destroyInstance();
|
||||||
|
|
||||||
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options);
|
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options);
|
||||||
virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode) ;
|
virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode) ;
|
||||||
|
|
|
@ -62,7 +62,7 @@ namespace cocostudio
|
||||||
return _instanceNode3DReader;
|
return _instanceNode3DReader;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Node3DReader::purge()
|
void Node3DReader::destroyInstance()
|
||||||
{
|
{
|
||||||
CC_SAFE_DELETE(_instanceNode3DReader);
|
CC_SAFE_DELETE(_instanceNode3DReader);
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,7 +46,7 @@ namespace cocostudio
|
||||||
~Node3DReader();
|
~Node3DReader();
|
||||||
|
|
||||||
static Node3DReader* getInstance();
|
static Node3DReader* getInstance();
|
||||||
static void purge();
|
static void destroyInstance();
|
||||||
|
|
||||||
flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData,
|
flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData,
|
||||||
flatbuffers::FlatBufferBuilder* builder);
|
flatbuffers::FlatBufferBuilder* builder);
|
||||||
|
|
|
@ -79,7 +79,7 @@ namespace cocostudio
|
||||||
return _instanceNodeReader;
|
return _instanceNodeReader;
|
||||||
}
|
}
|
||||||
|
|
||||||
void NodeReader::purge()
|
void NodeReader::destroyInstance()
|
||||||
{
|
{
|
||||||
CC_SAFE_DELETE(_instanceNodeReader);
|
CC_SAFE_DELETE(_instanceNodeReader);
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,7 @@ namespace cocostudio
|
||||||
~NodeReader();
|
~NodeReader();
|
||||||
|
|
||||||
static NodeReader* getInstance();
|
static NodeReader* getInstance();
|
||||||
static void purge();
|
static void destroyInstance();
|
||||||
|
|
||||||
flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData,
|
flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData,
|
||||||
flatbuffers::FlatBufferBuilder* builder);
|
flatbuffers::FlatBufferBuilder* builder);
|
||||||
|
|
|
@ -40,6 +40,11 @@ namespace cocostudio
|
||||||
return instancePageViewReader;
|
return instancePageViewReader;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void PageViewReader::destroyInstance()
|
||||||
|
{
|
||||||
|
CC_SAFE_DELETE(instancePageViewReader);
|
||||||
|
}
|
||||||
|
|
||||||
void PageViewReader::setPropsFromBinary(cocos2d::ui::Widget *widget, CocoLoader *cocoLoader, stExpCocoNode *cocoNode)
|
void PageViewReader::setPropsFromBinary(cocos2d::ui::Widget *widget, CocoLoader *cocoLoader, stExpCocoNode *cocoNode)
|
||||||
{
|
{
|
||||||
LayoutReader::setPropsFromBinary(widget, cocoLoader, cocoNode);
|
LayoutReader::setPropsFromBinary(widget, cocoLoader, cocoNode);
|
||||||
|
|
|
@ -39,7 +39,7 @@ namespace cocostudio
|
||||||
virtual ~PageViewReader();
|
virtual ~PageViewReader();
|
||||||
|
|
||||||
static PageViewReader* getInstance();
|
static PageViewReader* getInstance();
|
||||||
static void purge();
|
static void destroyInstance();
|
||||||
|
|
||||||
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options);
|
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options);
|
||||||
virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* cocoNode) ;
|
virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* cocoNode) ;
|
||||||
|
|
|
@ -63,7 +63,7 @@ namespace cocostudio
|
||||||
return _instanceParticle3DReader;
|
return _instanceParticle3DReader;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Particle3DReader::purge()
|
void Particle3DReader::destroyInstance()
|
||||||
{
|
{
|
||||||
CC_SAFE_DELETE(_instanceParticle3DReader);
|
CC_SAFE_DELETE(_instanceParticle3DReader);
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,7 @@ namespace cocostudio
|
||||||
~Particle3DReader();
|
~Particle3DReader();
|
||||||
|
|
||||||
static Particle3DReader* getInstance();
|
static Particle3DReader* getInstance();
|
||||||
static void purge();
|
static void destroyInstance();
|
||||||
|
|
||||||
flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData,
|
flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData,
|
||||||
flatbuffers::FlatBufferBuilder* builder);
|
flatbuffers::FlatBufferBuilder* builder);
|
||||||
|
|
|
@ -59,7 +59,7 @@ namespace cocostudio
|
||||||
return _instanceParticleReader;
|
return _instanceParticleReader;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ParticleReader::purge()
|
void ParticleReader::destroyInstance()
|
||||||
{
|
{
|
||||||
CC_SAFE_DELETE(_instanceParticleReader);
|
CC_SAFE_DELETE(_instanceParticleReader);
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,7 @@ namespace cocostudio
|
||||||
~ParticleReader();
|
~ParticleReader();
|
||||||
|
|
||||||
static ParticleReader* getInstance();
|
static ParticleReader* getInstance();
|
||||||
static void purge();
|
static void destroyInstance();
|
||||||
|
|
||||||
flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData,
|
flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData,
|
||||||
flatbuffers::FlatBufferBuilder* builder);
|
flatbuffers::FlatBufferBuilder* builder);
|
||||||
|
|
|
@ -57,7 +57,7 @@ namespace cocostudio
|
||||||
return _instanceProjectNodeReader;
|
return _instanceProjectNodeReader;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ProjectNodeReader::purge()
|
void ProjectNodeReader::destroyInstance()
|
||||||
{
|
{
|
||||||
CC_SAFE_DELETE(_instanceProjectNodeReader);
|
CC_SAFE_DELETE(_instanceProjectNodeReader);
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,7 +40,7 @@ namespace cocostudio
|
||||||
~ProjectNodeReader();
|
~ProjectNodeReader();
|
||||||
|
|
||||||
static ProjectNodeReader* getInstance();
|
static ProjectNodeReader* getInstance();
|
||||||
static void purge();
|
static void destroyInstance();
|
||||||
|
|
||||||
flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData,
|
flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData,
|
||||||
flatbuffers::FlatBufferBuilder* builder);
|
flatbuffers::FlatBufferBuilder* builder);
|
||||||
|
|
|
@ -44,6 +44,11 @@ namespace cocostudio
|
||||||
return instanceScrollViewReader;
|
return instanceScrollViewReader;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ScrollViewReader::destroyInstance()
|
||||||
|
{
|
||||||
|
CC_SAFE_DELETE(instanceScrollViewReader);
|
||||||
|
}
|
||||||
|
|
||||||
void ScrollViewReader::setPropsFromBinary(cocos2d::ui::Widget *widget, CocoLoader *cocoLoader, stExpCocoNode* cocoNode)
|
void ScrollViewReader::setPropsFromBinary(cocos2d::ui::Widget *widget, CocoLoader *cocoLoader, stExpCocoNode* cocoNode)
|
||||||
{
|
{
|
||||||
//TODO: need to refactor...
|
//TODO: need to refactor...
|
||||||
|
|
|
@ -39,7 +39,7 @@ namespace cocostudio
|
||||||
virtual ~ScrollViewReader();
|
virtual ~ScrollViewReader();
|
||||||
|
|
||||||
static ScrollViewReader* getInstance();
|
static ScrollViewReader* getInstance();
|
||||||
static void purge();
|
static void destroyInstance();
|
||||||
|
|
||||||
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options);
|
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options);
|
||||||
virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode) ;
|
virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode) ;
|
||||||
|
|
|
@ -62,7 +62,7 @@ namespace cocostudio
|
||||||
return _instanceSingleNodeReader;
|
return _instanceSingleNodeReader;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SingleNodeReader::purge()
|
void SingleNodeReader::destroyInstance()
|
||||||
{
|
{
|
||||||
CC_SAFE_DELETE(_instanceSingleNodeReader);
|
CC_SAFE_DELETE(_instanceSingleNodeReader);
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,7 @@ namespace cocostudio
|
||||||
~SingleNodeReader();
|
~SingleNodeReader();
|
||||||
|
|
||||||
static SingleNodeReader* getInstance();
|
static SingleNodeReader* getInstance();
|
||||||
static void purge();
|
static void destroyInstance();
|
||||||
|
|
||||||
flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData,
|
flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData,
|
||||||
flatbuffers::FlatBufferBuilder* builder);
|
flatbuffers::FlatBufferBuilder* builder);
|
||||||
|
|
|
@ -48,6 +48,11 @@ namespace cocostudio
|
||||||
return instanceSliderReader;
|
return instanceSliderReader;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SliderReader::destroyInstance()
|
||||||
|
{
|
||||||
|
CC_SAFE_DELETE(instanceSliderReader);
|
||||||
|
}
|
||||||
|
|
||||||
void SliderReader::setPropsFromBinary(cocos2d::ui::Widget *widget, CocoLoader *cocoLoader, stExpCocoNode* cocoNode)
|
void SliderReader::setPropsFromBinary(cocos2d::ui::Widget *widget, CocoLoader *cocoLoader, stExpCocoNode* cocoNode)
|
||||||
{
|
{
|
||||||
this->beginSetBasicProperties(widget);
|
this->beginSetBasicProperties(widget);
|
||||||
|
|
|
@ -39,7 +39,7 @@ namespace cocostudio
|
||||||
virtual ~SliderReader();
|
virtual ~SliderReader();
|
||||||
|
|
||||||
static SliderReader* getInstance();
|
static SliderReader* getInstance();
|
||||||
static void purge();
|
static void destroyInstance();
|
||||||
|
|
||||||
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options);
|
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options);
|
||||||
virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode) ;
|
virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode) ;
|
||||||
|
|
|
@ -62,7 +62,7 @@ namespace cocostudio
|
||||||
return _instanceSprite3DReader;
|
return _instanceSprite3DReader;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Sprite3DReader::purge()
|
void Sprite3DReader::destroyInstance()
|
||||||
{
|
{
|
||||||
CC_SAFE_DELETE(_instanceSprite3DReader);
|
CC_SAFE_DELETE(_instanceSprite3DReader);
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,7 +46,7 @@ namespace cocostudio
|
||||||
~Sprite3DReader();
|
~Sprite3DReader();
|
||||||
|
|
||||||
static Sprite3DReader* getInstance();
|
static Sprite3DReader* getInstance();
|
||||||
static void purge();
|
static void destroyInstance();
|
||||||
|
|
||||||
flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData,
|
flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData,
|
||||||
flatbuffers::FlatBufferBuilder* builder);
|
flatbuffers::FlatBufferBuilder* builder);
|
||||||
|
|
|
@ -60,7 +60,7 @@ namespace cocostudio
|
||||||
return _instanceSpriteReader;
|
return _instanceSpriteReader;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SpriteReader::purge()
|
void SpriteReader::destroyInstance()
|
||||||
{
|
{
|
||||||
CC_SAFE_DELETE(_instanceSpriteReader);
|
CC_SAFE_DELETE(_instanceSpriteReader);
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,7 @@ namespace cocostudio
|
||||||
~SpriteReader();
|
~SpriteReader();
|
||||||
|
|
||||||
static SpriteReader* getInstance();
|
static SpriteReader* getInstance();
|
||||||
static void purge();
|
static void destroyInstance();
|
||||||
|
|
||||||
flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData,
|
flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData,
|
||||||
flatbuffers::FlatBufferBuilder* builder);
|
flatbuffers::FlatBufferBuilder* builder);
|
||||||
|
|
|
@ -45,6 +45,11 @@ namespace cocostudio
|
||||||
return instanceTextAtalsReader;
|
return instanceTextAtalsReader;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TextAtlasReader::destroyInstance()
|
||||||
|
{
|
||||||
|
CC_SAFE_DELETE(instanceTextAtalsReader);
|
||||||
|
}
|
||||||
|
|
||||||
void TextAtlasReader::setPropsFromBinary(cocos2d::ui::Widget *widget, CocoLoader *cocoLoader, stExpCocoNode *cocoNode)
|
void TextAtlasReader::setPropsFromBinary(cocos2d::ui::Widget *widget, CocoLoader *cocoLoader, stExpCocoNode *cocoNode)
|
||||||
{
|
{
|
||||||
this->beginSetBasicProperties(widget);
|
this->beginSetBasicProperties(widget);
|
||||||
|
|
|
@ -39,6 +39,7 @@ namespace cocostudio
|
||||||
virtual ~TextAtlasReader();
|
virtual ~TextAtlasReader();
|
||||||
|
|
||||||
static TextAtlasReader* getInstance();
|
static TextAtlasReader* getInstance();
|
||||||
|
static void destroyInstance();
|
||||||
|
|
||||||
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options);
|
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options);
|
||||||
virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode) ;
|
virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode) ;
|
||||||
|
|
|
@ -42,6 +42,11 @@ namespace cocostudio
|
||||||
return instanceTextBMFontReader;
|
return instanceTextBMFontReader;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TextBMFontReader::destroyInstance()
|
||||||
|
{
|
||||||
|
CC_SAFE_DELETE(instanceTextBMFontReader);
|
||||||
|
}
|
||||||
|
|
||||||
void TextBMFontReader::setPropsFromBinary(cocos2d::ui::Widget *widget, CocoLoader *cocoLoader, stExpCocoNode *cocoNode)
|
void TextBMFontReader::setPropsFromBinary(cocos2d::ui::Widget *widget, CocoLoader *cocoLoader, stExpCocoNode *cocoNode)
|
||||||
{
|
{
|
||||||
this->beginSetBasicProperties(widget);
|
this->beginSetBasicProperties(widget);
|
||||||
|
|
|
@ -39,7 +39,7 @@ namespace cocostudio
|
||||||
virtual ~TextBMFontReader();
|
virtual ~TextBMFontReader();
|
||||||
|
|
||||||
static TextBMFontReader* getInstance();
|
static TextBMFontReader* getInstance();
|
||||||
static void purge();
|
static void destroyInstance();
|
||||||
|
|
||||||
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options);
|
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options);
|
||||||
virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode) ;
|
virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode) ;
|
||||||
|
|
|
@ -49,6 +49,11 @@ namespace cocostudio
|
||||||
return instanceTextFieldReader;
|
return instanceTextFieldReader;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TextFieldReader::destroyInstance()
|
||||||
|
{
|
||||||
|
CC_SAFE_DELETE(instanceTextFieldReader);
|
||||||
|
}
|
||||||
|
|
||||||
void TextFieldReader::setPropsFromBinary(cocos2d::ui::Widget *widget, CocoLoader *cocoLoader, stExpCocoNode* cocoNode)
|
void TextFieldReader::setPropsFromBinary(cocos2d::ui::Widget *widget, CocoLoader *cocoLoader, stExpCocoNode* cocoNode)
|
||||||
{
|
{
|
||||||
this->beginSetBasicProperties(widget);
|
this->beginSetBasicProperties(widget);
|
||||||
|
|
|
@ -39,7 +39,7 @@ namespace cocostudio
|
||||||
virtual ~TextFieldReader();
|
virtual ~TextFieldReader();
|
||||||
|
|
||||||
static TextFieldReader* getInstance();
|
static TextFieldReader* getInstance();
|
||||||
static void purge();
|
static void destroyInstance();
|
||||||
|
|
||||||
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options);
|
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options);
|
||||||
virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode) ;
|
virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode) ;
|
||||||
|
|
|
@ -47,6 +47,11 @@ namespace cocostudio
|
||||||
return instanceTextReader;
|
return instanceTextReader;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TextReader::destroyInstance()
|
||||||
|
{
|
||||||
|
CC_SAFE_DELETE(instanceTextReader);
|
||||||
|
}
|
||||||
|
|
||||||
void TextReader::setPropsFromBinary(cocos2d::ui::Widget *widget, CocoLoader *cocoLoader, stExpCocoNode *cocoNode)
|
void TextReader::setPropsFromBinary(cocos2d::ui::Widget *widget, CocoLoader *cocoLoader, stExpCocoNode *cocoNode)
|
||||||
{
|
{
|
||||||
this->beginSetBasicProperties(widget);
|
this->beginSetBasicProperties(widget);
|
||||||
|
|
|
@ -39,7 +39,7 @@ namespace cocostudio
|
||||||
virtual ~TextReader();
|
virtual ~TextReader();
|
||||||
|
|
||||||
static TextReader* getInstance();
|
static TextReader* getInstance();
|
||||||
static void purge();
|
static void destroyInstance();
|
||||||
|
|
||||||
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options);
|
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options);
|
||||||
virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode);
|
virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode);
|
||||||
|
|
|
@ -61,7 +61,7 @@ namespace cocostudio
|
||||||
return _instanceUserCameraReader;
|
return _instanceUserCameraReader;
|
||||||
}
|
}
|
||||||
|
|
||||||
void UserCameraReader::purge()
|
void UserCameraReader::destroyInstance()
|
||||||
{
|
{
|
||||||
CC_SAFE_DELETE(_instanceUserCameraReader);
|
CC_SAFE_DELETE(_instanceUserCameraReader);
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,7 +46,7 @@ namespace cocostudio
|
||||||
~UserCameraReader();
|
~UserCameraReader();
|
||||||
|
|
||||||
static UserCameraReader* getInstance();
|
static UserCameraReader* getInstance();
|
||||||
static void purge();
|
static void destroyInstance();
|
||||||
|
|
||||||
flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData,
|
flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData,
|
||||||
flatbuffers::FlatBufferBuilder* builder);
|
flatbuffers::FlatBufferBuilder* builder);
|
||||||
|
|
|
@ -134,7 +134,7 @@ namespace cocostudio
|
||||||
return instanceWidgetReader;
|
return instanceWidgetReader;
|
||||||
}
|
}
|
||||||
|
|
||||||
void WidgetReader::purge()
|
void WidgetReader::destroyInstance()
|
||||||
{
|
{
|
||||||
CC_SAFE_DELETE(instanceWidgetReader);
|
CC_SAFE_DELETE(instanceWidgetReader);
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,7 +46,7 @@ namespace cocostudio
|
||||||
virtual ~WidgetReader();
|
virtual ~WidgetReader();
|
||||||
|
|
||||||
static WidgetReader* getInstance();
|
static WidgetReader* getInstance();
|
||||||
static void purge();
|
static void destroyInstance();
|
||||||
|
|
||||||
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget,
|
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget,
|
||||||
const rapidjson::Value& options);
|
const rapidjson::Value& options);
|
||||||
|
|
Loading…
Reference in New Issue