fix CCNode::removeChildByID not being exported properly

This commit is contained in:
mat 2023-09-17 14:23:13 -03:00 committed by GitHub
parent f39c6f711a
commit 23cd456860
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -700,12 +700,6 @@ public:
* @param cleanup true if all running actions and callbacks on the child node will be cleanup, false otherwise. * @param cleanup true if all running actions and callbacks on the child node will be cleanup, false otherwise.
*/ */
virtual void removeChildByTag(int tag, bool cleanup); virtual void removeChildByTag(int tag, bool cleanup);
/**
* Removes a child from the container by its ID.
* @param id The ID of the node
* @note Geode addition
*/
void removeChildByID(std::string const& id);
/** /**
* Removes all children from the container with a cleanup. * Removes all children from the container with a cleanup.
* *
@ -890,6 +884,13 @@ public:
*/ */
GEODE_DLL CCNode* getChildByIDRecursive(std::string const& id); GEODE_DLL CCNode* getChildByIDRecursive(std::string const& id);
/**
* Removes a child from the container by its ID.
* @param id The ID of the node
* @note Geode addition
*/
GEODE_DLL void removeChildByID(std::string const& id);
/** /**
* Add a child before a specified existing child * Add a child before a specified existing child
* @param child The node to add. The node may not be a child of another * @param child The node to add. The node may not be a child of another