Reset method purge() definition for some Reader.

This commit is contained in:
pipu 2015-03-31 14:56:24 +08:00
parent 91acd6aea9
commit bb110449be
13 changed files with 65 additions and 0 deletions

View File

@ -214,6 +214,10 @@ CSLoader::CSLoader()
CREATE_CLASS_NODE_READER_INFO(Particle3DReader);
}
void CSLoader::purge()
{
}
void CSLoader::destroyCocosStudio()
{
NodeReader::destroyInstance();

View File

@ -123,6 +123,12 @@ FlatBuffersSerialize* FlatBuffersSerialize::getInstance()
return _instanceFlatBuffersSerialize;
}
void FlatBuffersSerialize::purge()
{
CC_SAFE_DELETE(_instanceFlatBuffersSerialize);
}
void FlatBuffersSerialize::destroyInstance()
{

View File

@ -59,6 +59,11 @@ namespace cocostudio
return instanceButtonReader;
}
void ButtonReader::purge()
{
CC_SAFE_DELETE(instanceButtonReader);
}
void ButtonReader::destroyInstance()
{
CC_SAFE_DELETE(instanceButtonReader);

View File

@ -58,6 +58,11 @@ namespace cocostudio
return _instanceComAudioReader;
}
void ComAudioReader::purge()
{
CC_SAFE_DELETE(_instanceComAudioReader);
}
void ComAudioReader::destroyInstance()
{
CC_SAFE_DELETE(_instanceComAudioReader);

View File

@ -62,6 +62,11 @@ namespace cocostudio
return _instanceNode3DReader;
}
void Node3DReader::purge()
{
CC_SAFE_DELETE(_instanceNode3DReader);
}
void Node3DReader::destroyInstance()
{
CC_SAFE_DELETE(_instanceNode3DReader);

View File

@ -63,6 +63,11 @@ namespace cocostudio
return _instanceParticle3DReader;
}
void Particle3DReader::purge()
{
CC_SAFE_DELETE(_instanceParticle3DReader);
}
void Particle3DReader::destroyInstance()
{
CC_SAFE_DELETE(_instanceParticle3DReader);

View File

@ -59,6 +59,11 @@ namespace cocostudio
return _instanceParticleReader;
}
void ParticleReader::purge()
{
CC_SAFE_DELETE(_instanceParticleReader);
}
void ParticleReader::destroyInstance()
{
CC_SAFE_DELETE(_instanceParticleReader);

View File

@ -57,6 +57,11 @@ namespace cocostudio
return _instanceProjectNodeReader;
}
void ProjectNodeReader::purge()
{
CC_SAFE_DELETE(_instanceProjectNodeReader);
}
void ProjectNodeReader::destroyInstance()
{
CC_SAFE_DELETE(_instanceProjectNodeReader);

View File

@ -62,6 +62,11 @@ namespace cocostudio
return _instanceSingleNodeReader;
}
void SingleNodeReader::purge()
{
CC_SAFE_DELETE(_instanceSingleNodeReader);
}
void SingleNodeReader::destroyInstance()
{
CC_SAFE_DELETE(_instanceSingleNodeReader);

View File

@ -62,6 +62,11 @@ namespace cocostudio
return _instanceSprite3DReader;
}
void Sprite3DReader::purge()
{
CC_SAFE_DELETE(_instanceSprite3DReader);
}
void Sprite3DReader::destroyInstance()
{
CC_SAFE_DELETE(_instanceSprite3DReader);

View File

@ -60,6 +60,11 @@ namespace cocostudio
return _instanceSpriteReader;
}
void SpriteReader::purge()
{
CC_SAFE_DELETE(_instanceSpriteReader);
}
void SpriteReader::destroyInstance()
{
CC_SAFE_DELETE(_instanceSpriteReader);

View File

@ -61,6 +61,11 @@ namespace cocostudio
return _instanceUserCameraReader;
}
void UserCameraReader::purge()
{
CC_SAFE_DELETE(_instanceUserCameraReader);
}
void UserCameraReader::destroyInstance()
{
CC_SAFE_DELETE(_instanceUserCameraReader);

View File

@ -134,6 +134,11 @@ namespace cocostudio
return instanceWidgetReader;
}
void WidgetReader::purge()
{
CC_SAFE_DELETE(instanceWidgetReader);
}
void WidgetReader::destroyInstance()
{
CC_SAFE_DELETE(instanceWidgetReader);