MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / removeFromGameLayer

Method removeFromGameLayer

Source/GameObject.cpp:787–815  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

785}
786
787void GameObject::removeFromGameLayer()
788{
789 setActive(false);
790
791 for (auto sprite : _childSprites)
792 {
793 if (sprite->getBlendFunc() != getBlendFunc())
794 {
795 AX_SAFE_RETAIN(sprite);
796 sprite->removeFromParentAndCleanup(true);
797 /*addChild(sprite);
798 AX_SAFE_RELEASE(sprite);*/
799 }
800 }
801
802 AX_SAFE_RETAIN(this);
803 if (_particle)
804 {
805 AX_SAFE_RETAIN(_particle);
806 _particle->removeFromParentAndCleanup(true);
807 }
808 if (_glowSprite)
809 {
810 AX_SAFE_RETAIN(_glowSprite);
811 _glowSprite->removeFromParentAndCleanup(true);
812 }
813
814 removeFromParentAndCleanup(true);
815}
816
817void GameObject::updateTweenAction(float value, std::string_view key)
818{

Callers 2

triggerActivatedMethod · 0.80
updateVisibilityMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected