mirror of https://github.com/axmolengine/axmol.git
Reset method purge() definition for some Reader.
This commit is contained in:
parent
91acd6aea9
commit
bb110449be
|
@ -214,6 +214,10 @@ CSLoader::CSLoader()
|
|||
CREATE_CLASS_NODE_READER_INFO(Particle3DReader);
|
||||
}
|
||||
|
||||
void CSLoader::purge()
|
||||
{
|
||||
}
|
||||
|
||||
void CSLoader::destroyCocosStudio()
|
||||
{
|
||||
NodeReader::destroyInstance();
|
||||
|
|
|
@ -123,6 +123,12 @@ FlatBuffersSerialize* FlatBuffersSerialize::getInstance()
|
|||
|
||||
return _instanceFlatBuffersSerialize;
|
||||
}
|
||||
|
||||
void FlatBuffersSerialize::purge()
|
||||
{
|
||||
CC_SAFE_DELETE(_instanceFlatBuffersSerialize);
|
||||
|
||||
}
|
||||
|
||||
void FlatBuffersSerialize::destroyInstance()
|
||||
{
|
||||
|
|
|
@ -59,6 +59,11 @@ namespace cocostudio
|
|||
return instanceButtonReader;
|
||||
}
|
||||
|
||||
void ButtonReader::purge()
|
||||
{
|
||||
CC_SAFE_DELETE(instanceButtonReader);
|
||||
}
|
||||
|
||||
void ButtonReader::destroyInstance()
|
||||
{
|
||||
CC_SAFE_DELETE(instanceButtonReader);
|
||||
|
|
|
@ -58,6 +58,11 @@ namespace cocostudio
|
|||
return _instanceComAudioReader;
|
||||
}
|
||||
|
||||
void ComAudioReader::purge()
|
||||
{
|
||||
CC_SAFE_DELETE(_instanceComAudioReader);
|
||||
}
|
||||
|
||||
void ComAudioReader::destroyInstance()
|
||||
{
|
||||
CC_SAFE_DELETE(_instanceComAudioReader);
|
||||
|
|
|
@ -62,6 +62,11 @@ namespace cocostudio
|
|||
return _instanceNode3DReader;
|
||||
}
|
||||
|
||||
void Node3DReader::purge()
|
||||
{
|
||||
CC_SAFE_DELETE(_instanceNode3DReader);
|
||||
}
|
||||
|
||||
void Node3DReader::destroyInstance()
|
||||
{
|
||||
CC_SAFE_DELETE(_instanceNode3DReader);
|
||||
|
|
|
@ -63,6 +63,11 @@ namespace cocostudio
|
|||
return _instanceParticle3DReader;
|
||||
}
|
||||
|
||||
void Particle3DReader::purge()
|
||||
{
|
||||
CC_SAFE_DELETE(_instanceParticle3DReader);
|
||||
}
|
||||
|
||||
void Particle3DReader::destroyInstance()
|
||||
{
|
||||
CC_SAFE_DELETE(_instanceParticle3DReader);
|
||||
|
|
|
@ -59,6 +59,11 @@ namespace cocostudio
|
|||
return _instanceParticleReader;
|
||||
}
|
||||
|
||||
void ParticleReader::purge()
|
||||
{
|
||||
CC_SAFE_DELETE(_instanceParticleReader);
|
||||
}
|
||||
|
||||
void ParticleReader::destroyInstance()
|
||||
{
|
||||
CC_SAFE_DELETE(_instanceParticleReader);
|
||||
|
|
|
@ -57,6 +57,11 @@ namespace cocostudio
|
|||
return _instanceProjectNodeReader;
|
||||
}
|
||||
|
||||
void ProjectNodeReader::purge()
|
||||
{
|
||||
CC_SAFE_DELETE(_instanceProjectNodeReader);
|
||||
}
|
||||
|
||||
void ProjectNodeReader::destroyInstance()
|
||||
{
|
||||
CC_SAFE_DELETE(_instanceProjectNodeReader);
|
||||
|
|
|
@ -62,6 +62,11 @@ namespace cocostudio
|
|||
return _instanceSingleNodeReader;
|
||||
}
|
||||
|
||||
void SingleNodeReader::purge()
|
||||
{
|
||||
CC_SAFE_DELETE(_instanceSingleNodeReader);
|
||||
}
|
||||
|
||||
void SingleNodeReader::destroyInstance()
|
||||
{
|
||||
CC_SAFE_DELETE(_instanceSingleNodeReader);
|
||||
|
|
|
@ -62,6 +62,11 @@ namespace cocostudio
|
|||
return _instanceSprite3DReader;
|
||||
}
|
||||
|
||||
void Sprite3DReader::purge()
|
||||
{
|
||||
CC_SAFE_DELETE(_instanceSprite3DReader);
|
||||
}
|
||||
|
||||
void Sprite3DReader::destroyInstance()
|
||||
{
|
||||
CC_SAFE_DELETE(_instanceSprite3DReader);
|
||||
|
|
|
@ -60,6 +60,11 @@ namespace cocostudio
|
|||
return _instanceSpriteReader;
|
||||
}
|
||||
|
||||
void SpriteReader::purge()
|
||||
{
|
||||
CC_SAFE_DELETE(_instanceSpriteReader);
|
||||
}
|
||||
|
||||
void SpriteReader::destroyInstance()
|
||||
{
|
||||
CC_SAFE_DELETE(_instanceSpriteReader);
|
||||
|
|
|
@ -61,6 +61,11 @@ namespace cocostudio
|
|||
return _instanceUserCameraReader;
|
||||
}
|
||||
|
||||
void UserCameraReader::purge()
|
||||
{
|
||||
CC_SAFE_DELETE(_instanceUserCameraReader);
|
||||
}
|
||||
|
||||
void UserCameraReader::destroyInstance()
|
||||
{
|
||||
CC_SAFE_DELETE(_instanceUserCameraReader);
|
||||
|
|
|
@ -134,6 +134,11 @@ namespace cocostudio
|
|||
return instanceWidgetReader;
|
||||
}
|
||||
|
||||
void WidgetReader::purge()
|
||||
{
|
||||
CC_SAFE_DELETE(instanceWidgetReader);
|
||||
}
|
||||
|
||||
void WidgetReader::destroyInstance()
|
||||
{
|
||||
CC_SAFE_DELETE(instanceWidgetReader);
|
||||
|
|
Loading…
Reference in New Issue