[ci skip][AUTO]: Automated code generating update: cc0bbc31557c7fc65c9a4b4e3f96eb897e32467c (#12319) (#12329)

Co-authored-by: cocos-robot <cocos-robot@cocos.com>
This commit is contained in:
Cocos Robot
2022-08-04 19:23:03 +08:00
committed by GitHub
parent 1787c416a5
commit e16ff1154d
2 changed files with 22 additions and 0 deletions
@@ -325,6 +325,26 @@ static bool js_scene_Node_getParent(se::State& s) // NOLINT(readability-identifi
}
SE_BIND_FUNC(js_scene_Node_getParent)
static bool js_scene_Node_getPathInHierarchy(se::State& s) // NOLINT(readability-identifier-naming)
{
auto* cobj = SE_THIS_OBJECT<cc::Node>(s);
// SE_PRECONDITION2(cobj, false, "Invalid Native Object");
if (nullptr == cobj) return true;
const auto& args = s.args();
size_t argc = args.size();
CC_UNUSED bool ok = true;
if (argc == 0) {
std::string result = cobj->getPathInHierarchy();
ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/);
SE_PRECONDITION2(ok, false, "Error processing arguments");
SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval());
return true;
}
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0);
return false;
}
SE_BIND_FUNC(js_scene_Node_getPathInHierarchy)
static bool js_scene_Node_getScene(se::State& s) // NOLINT(readability-identifier-naming)
{
auto* cobj = SE_THIS_OBJECT<cc::Node>(s);
@@ -1724,6 +1744,7 @@ bool js_register_scene_Node(se::Object* obj) // NOLINT(readability-identifier-na
cls->defineFunction("getDirtyFlag", _SE(js_scene_Node_getDirtyFlag));
cls->defineFunction("getLayer", _SE(js_scene_Node_getLayer));
cls->defineFunction("getParent", _SE(js_scene_Node_getParent));
cls->defineFunction("getPathInHierarchy", _SE(js_scene_Node_getPathInHierarchy));
cls->defineFunction("getScene", _SE(js_scene_Node_getScene));
cls->defineFunction("getSiblingIndex", _SE(js_scene_Node_getSiblingIndex));
cls->defineFunction("insertChild", _SE(js_scene_Node_insertChild));
@@ -101,6 +101,7 @@ SE_DECLARE_FUNC(js_scene_Node_getChildByUuid);
SE_DECLARE_FUNC(js_scene_Node_getDirtyFlag);
SE_DECLARE_FUNC(js_scene_Node_getLayer);
SE_DECLARE_FUNC(js_scene_Node_getParent);
SE_DECLARE_FUNC(js_scene_Node_getPathInHierarchy);
SE_DECLARE_FUNC(js_scene_Node_getScene);
SE_DECLARE_FUNC(js_scene_Node_getSiblingIndex);
SE_DECLARE_FUNC(js_scene_Node_insertChild);