diff --git a/native/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_auto_api.js b/native/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_auto_api.js index 09c3cbeba3..b0191d115b 100644 --- a/native/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_auto_api.js +++ b/native/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_auto_api.js @@ -2443,6 +2443,16 @@ pause : function ( { }, +/** + * @method isPurgeDirectorInNextLoop + * @return {bool} + */ +isPurgeDirectorInNextLoop : function ( +) +{ + return false; +}, + /** * @method setEventDispatcher * @param {cc.EventDispatcher} arg0 @@ -20409,150 +20419,6 @@ ParallaxNode : function ( }; -/** - * @class TMXObject - */ -cc.TMXObject = { - -/** - * @method setObjectName - * @param {String} arg0 - */ -setObjectName : function ( -str -) -{ -}, - -/** - * @method getObjectSize - * @return {size_object} - */ -getObjectSize : function ( -) -{ - return cc.Size; -}, - -/** - * @method getProperty - * @param {String} arg0 - * @return {cc.Value} - */ -getProperty : function ( -str -) -{ - return cc.Value; -}, - -/** - * @method getObjectVisible - * @return {bool} - */ -getObjectVisible : function ( -) -{ - return false; -}, - -/** - * @method getGid - * @return {unsigned int} - */ -getGid : function ( -) -{ - return 0; -}, - -/** - * @method getId - * @return {int} - */ -getId : function ( -) -{ - return 0; -}, - -/** - * @method getObjectRotation - * @return {float} - */ -getObjectRotation : function ( -) -{ - return 0; -}, - -/** - * @method getProperties - * @return {map_object} - */ -getProperties : function ( -) -{ - return map_object; -}, - -/** - * @method getOffset - * @return {vec2_object} - */ -getOffset : function ( -) -{ - return cc.Vec2; -}, - -/** - * @method setProperties - * @param {map_object} arg0 - */ -setProperties : function ( -map -) -{ -}, - -/** - * @method getObjectName - * @return {String} - */ -getObjectName : function ( -) -{ - return ; -}, - -/** - * @method TMXObject - * @constructor - * @param {map_object} arg0 - */ -TMXObject : function ( -map -) -{ -}, - -}; - -/** - * @class TMXObjectImage - */ -cc.TMXObjectImage = { - -}; - -/** - * @class TMXObjectShape - */ -cc.TMXObjectShape = { - -}; - /** * @class TMXObjectGroup */ @@ -20593,20 +20459,20 @@ getPositionOffset : function ( /** * @method getObject * @param {String} arg0 - * @return {cc.TMXObject} + * @return {map_object} */ getObject : function ( str ) { - return cc.TMXObject; + return map_object; }, /** * @method getObjects - * @return {Array} - */ -getObjects : function ( +* @return {Array|Array} +*/ +getObjects : function( ) { return new Array(); @@ -20652,15 +20518,21 @@ map { }, +/** + * @method setObjects + * @param {Array} arg0 + */ +setObjects : function ( +array +) +{ +}, + /** * @method TMXObjectGroup * @constructor - * @param {cc.TMXObjectGroupInfo} arg0 - * @param {cc.TMXMapInfo} arg1 */ TMXObjectGroup : function ( -tmxobjectgroupinfo, -map ) { }, @@ -20703,42 +20575,6 @@ TMXLayerInfo : function ( }; -/** - * @class TMXObjectGroupInfo - */ -cc.TMXObjectGroupInfo = { - -/** - * @method setProperties - * @param {map_object} arg0 - */ -setProperties : function ( -map -) -{ -}, - -/** - * @method getProperties - * @return {map_object} - */ -getProperties : function ( -) -{ - return map_object; -}, - -/** - * @method TMXObjectGroupInfo - * @constructor - */ -TMXObjectGroupInfo : function ( -) -{ -}, - -}; - /** * @class TMXTilesetInfo */ @@ -20773,13 +20609,13 @@ TMXTilesetInfo : function ( cc.TMXMapInfo = { /** - * @method getAllChildren -* @return {Array|Array} -*/ -getAllChildren : function( + * @method setCurrentString + * @param {String} arg0 + */ +setCurrentString : function ( +str ) { - return new Array(); }, /** @@ -20992,16 +20828,6 @@ getTileSize : function ( return cc.Size; }, -/** - * @method setAllChildren - * @param {Array} arg0 - */ -setAllChildren : function ( -array -) -{ -}, - /** * @method getTileProperties * @return {map_object} @@ -21062,16 +20888,6 @@ int { }, -/** - * @method setCurrentString - * @param {String} arg0 - */ -setCurrentString : function ( -str -) -{ -}, - /** * @method setProperties * @param {map_object} arg0 @@ -21502,6 +21318,16 @@ TMXLayer : function ( */ cc.TMXTiledMap = { +/** + * @method setObjectGroups + * @param {Array} arg0 + */ +setObjectGroups : function ( +array +) +{ +}, + /** * @method getProperty * @param {String} arg0 @@ -21548,9 +21374,9 @@ str /** * @method getObjectGroups - * @return {Array} - */ -getObjectGroups : function ( +* @return {Array|Array} +*/ +getObjectGroups : function( ) { return new Array(); diff --git a/native/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_extension_auto_api.js b/native/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_extension_auto_api.js index 11e3dee037..8adcd3db1e 100644 --- a/native/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_extension_auto_api.js +++ b/native/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_extension_auto_api.js @@ -297,20 +297,6 @@ str */ cc.EventListenerAssetsManager = { -/** - * @method init - * @param {cc.AssetsManagerEx} arg0 - * @param {function} arg1 - * @return {bool} - */ -init : function ( -assetsmanagerex, -func -) -{ - return false; -}, - /** * @method EventListenerAssetsManagerEx * @constructor diff --git a/native/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.cpp b/native/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.cpp index add67a06e5..416d17e4dd 100644 --- a/native/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.cpp +++ b/native/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.cpp @@ -34613,10 +34613,24 @@ bool js_cocos2dx_LabelTTF_constructor(JSContext *cx, uint32_t argc, jsval *vp) ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(jsobj), "_ctor", args); return true; } +static bool js_cocos2dx_LabelTTF_ctor(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + cocos2d::LabelTTF *nobj = new (std::nothrow) cocos2d::LabelTTF(); + auto newproxy = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::LabelTTF"); + bool isFound = false; + if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) + ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); + args.rval().setUndefined(); + return true; +} extern JSObject *jsb_cocos2d_Node_prototype; + void js_register_cocos2dx_LabelTTF(JSContext *cx, JS::HandleObject global) { jsb_cocos2d_LabelTTF_class = (JSClass *)calloc(1, sizeof(JSClass)); jsb_cocos2d_LabelTTF_class->name = "LabelTTF"; @@ -34635,6 +34649,7 @@ void js_register_cocos2dx_LabelTTF(JSContext *cx, JS::HandleObject global) { static JSFunctionSpec funcs[] = { JS_FN("getRenderLabel", js_cocos2dx_LabelTTF_getRenderLabel, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("ctor", js_cocos2dx_LabelTTF_ctor, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), JS_FS_END }; @@ -34658,6 +34673,7 @@ void js_register_cocos2dx_LabelTTF(JSContext *cx, JS::HandleObject global) { JS_SetProperty(cx, proto, "__is_ref", JS::TrueHandleValue); // add the proto and JSClass to the type->js info hash table jsb_register_class(cx, jsb_cocos2d_LabelTTF_class, proto, parent_proto); + anonEvaluate(cx, global, "(function () { cc.LabelTTF.extend = cc.Class.extend; })()"); } JSClass *jsb_cocos2d_Layer_class;