mirror of https://github.com/axmolengine/axmol.git
Don’t hide parent’s addChild method in TMXLayer class.
This commit is contained in:
parent
b08995ae67
commit
5f17984826
|
@ -185,6 +185,7 @@ public:
|
||||||
/** TMXLayer doesn't support adding a Sprite manually.
|
/** TMXLayer doesn't support adding a Sprite manually.
|
||||||
@warning addchild(z, tag); is not supported on TMXLayer. Instead of setTileGID.
|
@warning addchild(z, tag); is not supported on TMXLayer. Instead of setTileGID.
|
||||||
*/
|
*/
|
||||||
|
using SpriteBatchNode::addChild;
|
||||||
virtual void addChild(Node * child, int zOrder, int tag) override;
|
virtual void addChild(Node * child, int zOrder, int tag) override;
|
||||||
// super method
|
// super method
|
||||||
void removeChild(Node* child, bool cleanup) override;
|
void removeChild(Node* child, bool cleanup) override;
|
||||||
|
|
Loading…
Reference in New Issue