diff --git a/native/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_3d_auto_api.js b/native/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_3d_auto_api.js deleted file mode 100644 index 0ea1785146..0000000000 --- a/native/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_3d_auto_api.js +++ /dev/null @@ -1,1739 +0,0 @@ -/** - * @module cocos2dx_3d - */ -var jsb = jsb || {}; - -/** - * @class Animation3D - */ -jsb.Animation3D = { - -/** - * @method initWithFile - * @param {String} arg0 - * @param {String} arg1 - * @return {bool} - */ -initWithFile : function ( -str, -str -) -{ - return false; -}, - -/** - * @method init - * @param {cc.Animation3DData} arg0 - * @return {bool} - */ -init : function ( -animation3ddata -) -{ - return false; -}, - -/** - * @method getBoneCurveByName - * @param {String} arg0 - * @return {cc.Animation3D::Curve} - */ -getBoneCurveByName : function ( -str -) -{ - return cc.Animation3D::Curve; -}, - -/** - * @method getDuration - * @return {float} - */ -getDuration : function ( -) -{ - return 0; -}, - -/** - * @method create - * @param {String} arg0 - * @param {String} arg1 - * @return {cc.Animation3D} - */ -create : function ( -str, -str -) -{ - return cc.Animation3D; -}, - -/** - * @method Animation3D - * @constructor - */ -Animation3D : function ( -) -{ -}, - -}; - -/** - * @class Animate3D - */ -jsb.Animate3D = { - -/** - * @method setKeyFrameUserInfo - * @param {int} arg0 - * @param {map_object} arg1 - */ -setKeyFrameUserInfo : function ( -int, -map -) -{ -}, - -/** - * @method getSpeed - * @return {float} - */ -getSpeed : function ( -) -{ - return 0; -}, - -/** - * @method setQuality - * @param {cc.Animate3DQuality} arg0 - */ -setQuality : function ( -animate3dquality -) -{ -}, - -/** - * @method setWeight - * @param {float} arg0 - */ -setWeight : function ( -float -) -{ -}, - -/** - * @method removeFromMap - */ -removeFromMap : function ( -) -{ -}, - -/** - * @method initWithFrames - * @param {cc.Animation3D} arg0 - * @param {int} arg1 - * @param {int} arg2 - * @param {float} arg3 - * @return {bool} - */ -initWithFrames : function ( -animation3d, -int, -int, -float -) -{ - return false; -}, - -/** - * @method getOriginInterval - * @return {float} - */ -getOriginInterval : function ( -) -{ - return 0; -}, - -/** - * @method setSpeed - * @param {float} arg0 - */ -setSpeed : function ( -float -) -{ -}, - -/** - * @method init -* @param {cc.Animation3D|cc.Animation3D} animation3d -* @param {float} float -* @param {float} float -* @return {bool|bool} -*/ -init : function( -animation3d, -float, -float -) -{ - return false; -}, - -/** - * @method setOriginInterval - * @param {float} arg0 - */ -setOriginInterval : function ( -float -) -{ -}, - -/** - * @method getWeight - * @return {float} - */ -getWeight : function ( -) -{ - return 0; -}, - -/** - * @method getQuality - * @return {cc.Animate3DQuality} - */ -getQuality : function ( -) -{ - return 0; -}, - -/** - * @method create -* @param {cc.Animation3D|cc.Animation3D} animation3d -* @param {float} float -* @param {float} float -* @return {cc.Animate3D|cc.Animate3D} -*/ -create : function( -animation3d, -float, -float -) -{ - return cc.Animate3D; -}, - -/** - * @method getTransitionTime - * @return {float} - */ -getTransitionTime : function ( -) -{ - return 0; -}, - -/** - * @method createWithFrames - * @param {cc.Animation3D} arg0 - * @param {int} arg1 - * @param {int} arg2 - * @param {float} arg3 - * @return {cc.Animate3D} - */ -createWithFrames : function ( -animation3d, -int, -int, -float -) -{ - return cc.Animate3D; -}, - -/** - * @method setTransitionTime - * @param {float} arg0 - */ -setTransitionTime : function ( -float -) -{ -}, - -/** - * @method Animate3D - * @constructor - */ -Animate3D : function ( -) -{ -}, - -}; - -/** - * @class TextureCube - */ -jsb.TextureCube = { - -/** - * @method reloadTexture - * @return {bool} - */ -reloadTexture : function ( -) -{ - return false; -}, - -/** - * @method create - * @param {String} arg0 - * @param {String} arg1 - * @param {String} arg2 - * @param {String} arg3 - * @param {String} arg4 - * @param {String} arg5 - * @return {cc.TextureCube} - */ -create : function ( -str, -str, -str, -str, -str, -str -) -{ - return cc.TextureCube; -}, - -/** - * @method TextureCube - * @constructor - */ -TextureCube : function ( -) -{ -}, - -}; - -/** - * @class AttachNode - */ -jsb.AttachNode = { - -/** - * @method create - * @param {cc.Bone3D} arg0 - * @return {cc.AttachNode} - */ -create : function ( -bone3d -) -{ - return cc.AttachNode; -}, - -/** - * @method AttachNode - * @constructor - */ -AttachNode : function ( -) -{ -}, - -}; - -/** - * @class BillBoard - */ -jsb.BillBoard = { - -/** - * @method getMode - * @return {cc.BillBoard::Mode} - */ -getMode : function ( -) -{ - return 0; -}, - -/** - * @method setMode - * @param {cc.BillBoard::Mode} arg0 - */ -setMode : function ( -mode -) -{ -}, - -/** - * @method create -* @param {String|cc.BillBoard::Mode|String} str -* @param {cc.BillBoard::Mode|rect_object} mode -* @param {cc.BillBoard::Mode} mode -* @return {cc.BillBoard|cc.BillBoard|cc.BillBoard} -*/ -create : function( -str, -rect, -mode -) -{ - return cc.BillBoard; -}, - -/** - * @method createWithTexture - * @param {cc.Texture2D} arg0 - * @param {cc.BillBoard::Mode} arg1 - * @return {cc.BillBoard} - */ -createWithTexture : function ( -texture2d, -mode -) -{ - return cc.BillBoard; -}, - -/** - * @method BillBoard - * @constructor - */ -BillBoard : function ( -) -{ -}, - -}; - -/** - * @class Mesh - */ -jsb.Mesh = { - -/** - * @method setTexture -* @param {cc.Texture2D|String} texture2d -*/ -setTexture : function( -str -) -{ -}, - -/** - * @method getTexture - * @return {cc.Texture2D} - */ -getTexture : function ( -) -{ - return cc.Texture2D; -}, - -/** - * @method getSkin - * @return {cc.MeshSkin} - */ -getSkin : function ( -) -{ - return cc.MeshSkin; -}, - -/** - * @method getMaterial - * @return {cc.Material} - */ -getMaterial : function ( -) -{ - return cc.Material; -}, - -/** - * @method getVertexSizeInBytes - * @return {int} - */ -getVertexSizeInBytes : function ( -) -{ - return 0; -}, - -/** - * @method setMaterial - * @param {cc.Material} arg0 - */ -setMaterial : function ( -material -) -{ -}, - -/** - * @method getName - * @return {String} - */ -getName : function ( -) -{ - return ; -}, - -/** - * @method getIndexFormat - * @return {unsigned int} - */ -getIndexFormat : function ( -) -{ - return 0; -}, - -/** - * @method getGLProgramState - * @return {cc.GLProgramState} - */ -getGLProgramState : function ( -) -{ - return cc.GLProgramState; -}, - -/** - * @method getVertexBuffer - * @return {unsigned int} - */ -getVertexBuffer : function ( -) -{ - return 0; -}, - -/** - * @method calculateAABB - */ -calculateAABB : function ( -) -{ -}, - -/** - * @method hasVertexAttrib - * @param {int} arg0 - * @return {bool} - */ -hasVertexAttrib : function ( -int -) -{ - return false; -}, - -/** - * @method getBlendFunc - * @return {cc.BlendFunc} - */ -getBlendFunc : function ( -) -{ - return cc.BlendFunc; -}, - -/** - * @method getMeshIndexData - * @return {cc.MeshIndexData} - */ -getMeshIndexData : function ( -) -{ - return cc.MeshIndexData; -}, - -/** - * @method setName - * @param {String} arg0 - */ -setName : function ( -str -) -{ -}, - -/** - * @method getIndexCount - * @return {int} - */ -getIndexCount : function ( -) -{ - return 0; -}, - -/** - * @method setMeshIndexData - * @param {cc.MeshIndexData} arg0 - */ -setMeshIndexData : function ( -meshindexdata -) -{ -}, - -/** - * @method getMeshVertexAttribCount - * @return {int} - */ -getMeshVertexAttribCount : function ( -) -{ - return 0; -}, - -/** - * @method setBlendFunc - * @param {cc.BlendFunc} arg0 - */ -setBlendFunc : function ( -blendfunc -) -{ -}, - -/** - * @method setForce2DQueue - * @param {bool} arg0 - */ -setForce2DQueue : function ( -bool -) -{ -}, - -/** - * @method getPrimitiveType - * @return {unsigned int} - */ -getPrimitiveType : function ( -) -{ - return 0; -}, - -/** - * @method setSkin - * @param {cc.MeshSkin} arg0 - */ -setSkin : function ( -meshskin -) -{ -}, - -/** - * @method isVisible - * @return {bool} - */ -isVisible : function ( -) -{ - return false; -}, - -/** - * @method getIndexBuffer - * @return {unsigned int} - */ -getIndexBuffer : function ( -) -{ - return 0; -}, - -/** - * @method setGLProgramState - * @param {cc.GLProgramState} arg0 - */ -setGLProgramState : function ( -glprogramstate -) -{ -}, - -/** - * @method setVisible - * @param {bool} arg0 - */ -setVisible : function ( -bool -) -{ -}, - -/** - * @method Mesh - * @constructor - */ -Mesh : function ( -) -{ -}, - -}; - -/** - * @class Skeleton3D - */ -jsb.Skeleton3D = { - -/** - * @method removeAllBones - */ -removeAllBones : function ( -) -{ -}, - -/** - * @method addBone - * @param {cc.Bone3D} arg0 - */ -addBone : function ( -bone3d -) -{ -}, - -/** - * @method getBoneByName - * @param {String} arg0 - * @return {cc.Bone3D} - */ -getBoneByName : function ( -str -) -{ - return cc.Bone3D; -}, - -/** - * @method getRootBone - * @param {int} arg0 - * @return {cc.Bone3D} - */ -getRootBone : function ( -int -) -{ - return cc.Bone3D; -}, - -/** - * @method updateBoneMatrix - */ -updateBoneMatrix : function ( -) -{ -}, - -/** - * @method getBoneByIndex - * @param {unsigned int} arg0 - * @return {cc.Bone3D} - */ -getBoneByIndex : function ( -int -) -{ - return cc.Bone3D; -}, - -/** - * @method getRootCount - * @return {int} - */ -getRootCount : function ( -) -{ - return 0; -}, - -/** - * @method getBoneIndex - * @param {cc.Bone3D} arg0 - * @return {int} - */ -getBoneIndex : function ( -bone3d -) -{ - return 0; -}, - -/** - * @method getBoneCount - * @return {int} - */ -getBoneCount : function ( -) -{ - return 0; -}, - -/** - * @method Skeleton3D - * @constructor - */ -Skeleton3D : function ( -) -{ -}, - -}; - -/** - * @class Skybox - */ -jsb.Skybox = { - -/** - * @method reload - */ -reload : function ( -) -{ -}, - -/** - * @method init - * @param {String} arg0 - * @param {String} arg1 - * @param {String} arg2 - * @param {String} arg3 - * @param {String} arg4 - * @param {String} arg5 - * @return {bool} - */ -init : function ( -str, -str, -str, -str, -str, -str -) -{ - return false; -}, - -/** - * @method setTexture - * @param {cc.TextureCube} arg0 - */ -setTexture : function ( -texturecube -) -{ -}, - -/** - * @method create -* @param {String} str -* @param {String} str -* @param {String} str -* @param {String} str -* @param {String} str -* @param {String} str -* @return {cc.Skybox|cc.Skybox} -*/ -create : function( -str, -str, -str, -str, -str, -str -) -{ - return cc.Skybox; -}, - -/** - * @method Skybox - * @constructor - */ -Skybox : function ( -) -{ -}, - -}; - -/** - * @class Sprite3D - */ -jsb.Sprite3D = { - -/** - * @method setCullFaceEnabled - * @param {bool} arg0 - */ -setCullFaceEnabled : function ( -bool -) -{ -}, - -/** - * @method setTexture -* @param {cc.Texture2D|String} texture2d -*/ -setTexture : function( -str -) -{ -}, - -/** - * @method getLightMask - * @return {unsigned int} - */ -getLightMask : function ( -) -{ - return 0; -}, - -/** - * @method createAttachSprite3DNode - * @param {cc.NodeData} arg0 - * @param {cc.MaterialDatas} arg1 - */ -createAttachSprite3DNode : function ( -nodedata, -materialdatas -) -{ -}, - -/** - * @method loadFromFile - * @param {String} arg0 - * @param {cc.NodeDatas} arg1 - * @param {cc.MeshDatas} arg2 - * @param {cc.MaterialDatas} arg3 - * @return {bool} - */ -loadFromFile : function ( -str, -nodedatas, -meshdatas, -materialdatas -) -{ - return false; -}, - -/** - * @method getMaterial - * @param {int} arg0 - * @return {cc.Material} - */ -getMaterial : function ( -int -) -{ - return cc.Material; -}, - -/** - * @method setCullFace - * @param {unsigned int} arg0 - */ -setCullFace : function ( -int -) -{ -}, - -/** - * @method addMesh - * @param {cc.Mesh} arg0 - */ -addMesh : function ( -mesh -) -{ -}, - -/** - * @method removeAllAttachNode - */ -removeAllAttachNode : function ( -) -{ -}, - -/** - * @method setMaterial -* @param {cc.Material|cc.Material} material -* @param {int} int -*/ -setMaterial : function( -material, -int -) -{ -}, - -/** - * @method getMesh - * @return {cc.Mesh} - */ -getMesh : function ( -) -{ - return cc.Mesh; -}, - -/** - * @method createSprite3DNode - * @param {cc.NodeData} arg0 - * @param {cc.ModelData} arg1 - * @param {cc.MaterialDatas} arg2 - * @return {cc.Sprite3D} - */ -createSprite3DNode : function ( -nodedata, -modeldata, -materialdatas -) -{ - return cc.Sprite3D; -}, - -/** - * @method getMeshCount - * @return {int} - */ -getMeshCount : function ( -) -{ - return 0; -}, - -/** - * @method onAABBDirty - */ -onAABBDirty : function ( -) -{ -}, - -/** - * @method getMeshByIndex - * @param {int} arg0 - * @return {cc.Mesh} - */ -getMeshByIndex : function ( -int -) -{ - return cc.Mesh; -}, - -/** - * @method createNode - * @param {cc.NodeData} arg0 - * @param {cc.Node} arg1 - * @param {cc.MaterialDatas} arg2 - * @param {bool} arg3 - */ -createNode : function ( -nodedata, -node, -materialdatas, -bool -) -{ -}, - -/** - * @method isForceDepthWrite - * @return {bool} - */ -isForceDepthWrite : function ( -) -{ - return false; -}, - -/** - * @method getBlendFunc - * @return {cc.BlendFunc} - */ -getBlendFunc : function ( -) -{ - return cc.BlendFunc; -}, - -/** - * @method getMeshIndexData - * @param {String} arg0 - * @return {cc.MeshIndexData} - */ -getMeshIndexData : function ( -str -) -{ - return cc.MeshIndexData; -}, - -/** - * @method setLightMask - * @param {unsigned int} arg0 - */ -setLightMask : function ( -int -) -{ -}, - -/** - * @method afterAsyncLoad - * @param {void} arg0 - */ -afterAsyncLoad : function ( -void -) -{ -}, - -/** - * @method loadFromCache - * @param {String} arg0 - * @return {bool} - */ -loadFromCache : function ( -str -) -{ - return false; -}, - -/** - * @method initFrom - * @param {cc.NodeDatas} arg0 - * @param {cc.MeshDatas} arg1 - * @param {cc.MaterialDatas} arg2 - * @return {bool} - */ -initFrom : function ( -nodedatas, -meshdatas, -materialdatas -) -{ - return false; -}, - -/** - * @method getAttachNode - * @param {String} arg0 - * @return {cc.AttachNode} - */ -getAttachNode : function ( -str -) -{ - return cc.AttachNode; -}, - -/** - * @method initWithFile - * @param {String} arg0 - * @return {bool} - */ -initWithFile : function ( -str -) -{ - return false; -}, - -/** - * @method setBlendFunc - * @param {cc.BlendFunc} arg0 - */ -setBlendFunc : function ( -blendfunc -) -{ -}, - -/** - * @method setForce2DQueue - * @param {bool} arg0 - */ -setForce2DQueue : function ( -bool -) -{ -}, - -/** - * @method genMaterial - */ -genMaterial : function ( -) -{ -}, - -/** - * @method removeAttachNode - * @param {String} arg0 - */ -removeAttachNode : function ( -str -) -{ -}, - -/** - * @method getSkeleton - * @return {cc.Skeleton3D} - */ -getSkeleton : function ( -) -{ - return cc.Skeleton3D; -}, - -/** - * @method setForceDepthWrite - * @param {bool} arg0 - */ -setForceDepthWrite : function ( -bool -) -{ -}, - -/** - * @method getMeshByName - * @param {String} arg0 - * @return {cc.Mesh} - */ -getMeshByName : function ( -str -) -{ - return cc.Mesh; -}, - -/** - * @method create -* @param {String|String} str -* @param {String} str -* @return {cc.Sprite3D|cc.Sprite3D|cc.Sprite3D} -*/ -create : function( -str, -str -) -{ - return cc.Sprite3D; -}, - -/** - * @method Sprite3D - * @constructor - */ -Sprite3D : function ( -) -{ -}, - -}; - -/** - * @class Sprite3DCache - */ -jsb.Sprite3DCache = { - -/** - * @method removeSprite3DData - * @param {String} arg0 - */ -removeSprite3DData : function ( -str -) -{ -}, - -/** - * @method removeAllSprite3DData - */ -removeAllSprite3DData : function ( -) -{ -}, - -/** - * @method destroyInstance - */ -destroyInstance : function ( -) -{ -}, - -/** - * @method getInstance - * @return {cc.Sprite3DCache} - */ -getInstance : function ( -) -{ - return cc.Sprite3DCache; -}, - -}; - -/** - * @class Terrain - */ -jsb.Terrain = { - -/** - * @method initHeightMap - * @param {char} arg0 - * @return {bool} - */ -initHeightMap : function ( -char -) -{ - return false; -}, - -/** - * @method setMaxDetailMapAmount - * @param {int} arg0 - */ -setMaxDetailMapAmount : function ( -int -) -{ -}, - -/** - * @method setDrawWire - * @param {bool} arg0 - */ -setDrawWire : function ( -bool -) -{ -}, - -/** - * @method setDetailMap - * @param {unsigned int} arg0 - * @param {cc.Terrain::DetailMap} arg1 - */ -setDetailMap : function ( -int, -map -) -{ -}, - -/** - * @method resetHeightMap - * @param {char} arg0 - */ -resetHeightMap : function ( -char -) -{ -}, - -/** - * @method setLightDir - * @param {vec3_object} arg0 - */ -setLightDir : function ( -vec3 -) -{ -}, - -/** - * @method setAlphaMap - * @param {cc.Texture2D} arg0 - */ -setAlphaMap : function ( -texture2d -) -{ -}, - -/** - * @method setSkirtHeightRatio - * @param {float} arg0 - */ -setSkirtHeightRatio : function ( -float -) -{ -}, - -/** - * @method convertToTerrainSpace - * @param {vec2_object} arg0 - * @return {vec2_object} - */ -convertToTerrainSpace : function ( -vec2 -) -{ - return cc.Vec2; -}, - -/** - * @method initTextures - * @return {bool} - */ -initTextures : function ( -) -{ - return false; -}, - -/** - * @method initProperties - * @return {bool} - */ -initProperties : function ( -) -{ - return false; -}, - -/** - * @method getHeight -* @param {vec2_object|float} vec2 -* @param {vec3_object|float} vec3 -* @param {vec3_object} vec3 -* @return {float|float} -*/ -getHeight : function( -float, -float, -vec3 -) -{ - return 0; -}, - -/** - * @method initWithTerrainData - * @param {cc.Terrain::TerrainData} arg0 - * @param {cc.Terrain::CrackFixedType} arg1 - * @return {bool} - */ -initWithTerrainData : function ( -terraindata, -crackfixedtype -) -{ - return false; -}, - -/** - * @method setLODDistance - * @param {float} arg0 - * @param {float} arg1 - * @param {float} arg2 - */ -setLODDistance : function ( -float, -float, -float -) -{ -}, - -/** - * @method getTerrainSize - * @return {size_object} - */ -getTerrainSize : function ( -) -{ - return cc.Size; -}, - -/** - * @method getIntersectionPoint -* @param {cc.Ray|cc.Ray} ray -* @param {vec3_object} vec3 -* @return {bool|vec3_object} -*/ -getIntersectionPoint : function( -ray, -vec3 -) -{ - return false; -}, - -/** - * @method getNormal - * @param {int} arg0 - * @param {int} arg1 - * @return {vec3_object} - */ -getNormal : function ( -int, -int -) -{ - return cc.Vec3; -}, - -/** - * @method reload - */ -reload : function ( -) -{ -}, - -/** - * @method getImageHeight - * @param {int} arg0 - * @param {int} arg1 - * @return {float} - */ -getImageHeight : function ( -int, -int -) -{ - return 0; -}, - -/** - * @method setLightMap - * @param {String} arg0 - */ -setLightMap : function ( -str -) -{ -}, - -/** - * @method setIsEnableFrustumCull - * @param {bool} arg0 - */ -setIsEnableFrustumCull : function ( -bool -) -{ -}, - -/** - * @method getMinHeight - * @return {float} - */ -getMinHeight : function ( -) -{ - return 0; -}, - -/** - * @method getMaxHeight - * @return {float} - */ -getMaxHeight : function ( -) -{ - return 0; -}, - -/** - * @method Terrain - * @constructor - */ -Terrain : function ( -) -{ -}, - -}; - -/** - * @class Bundle3D - */ -jsb.Bundle3D = { - -/** - * @method load - * @param {String} arg0 - * @return {bool} - */ -load : function ( -str -) -{ - return false; -}, - -/** - * @method loadSkinData - * @param {String} arg0 - * @param {cc.SkinData} arg1 - * @return {bool} - */ -loadSkinData : function ( -str, -skindata -) -{ - return false; -}, - -/** - * @method clear - */ -clear : function ( -) -{ -}, - -/** - * @method loadMaterials - * @param {cc.MaterialDatas} arg0 - * @return {bool} - */ -loadMaterials : function ( -materialdatas -) -{ - return false; -}, - -/** - * @method loadMeshDatas - * @param {cc.MeshDatas} arg0 - * @return {bool} - */ -loadMeshDatas : function ( -meshdatas -) -{ - return false; -}, - -/** - * @method loadNodes - * @param {cc.NodeDatas} arg0 - * @return {bool} - */ -loadNodes : function ( -nodedatas -) -{ - return false; -}, - -/** - * @method loadAnimationData - * @param {String} arg0 - * @param {cc.Animation3DData} arg1 - * @return {bool} - */ -loadAnimationData : function ( -str, -animation3ddata -) -{ - return false; -}, - -/** - * @method createBundle - * @return {cc.Bundle3D} - */ -createBundle : function ( -) -{ - return cc.Bundle3D; -}, - -/** - * @method destroyBundle - * @param {cc.Bundle3D} arg0 - */ -destroyBundle : function ( -bundle3d -) -{ -}, - -/** - * @method loadObj - * @param {cc.MeshDatas} arg0 - * @param {cc.MaterialDatas} arg1 - * @param {cc.NodeDatas} arg2 - * @param {String} arg3 - * @param {char} arg4 - * @return {bool} - */ -loadObj : function ( -meshdatas, -materialdatas, -nodedatas, -str, -char -) -{ - return false; -}, - -/** - * @method Bundle3D - * @constructor - */ -Bundle3D : function ( -) -{ -}, - -}; diff --git a/native/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_3d_extension_auto_api.js b/native/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_3d_extension_auto_api.js deleted file mode 100644 index 2a5567ec3b..0000000000 --- a/native/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_3d_extension_auto_api.js +++ /dev/null @@ -1,510 +0,0 @@ -/** - * @module cocos2dx_3d_extension - */ -var jsb = jsb || {}; - -/** - * @class ParticleSystem3D - */ -jsb.ParticleSystem3D = { - -/** - * @method resumeParticleSystem - */ -resumeParticleSystem : function ( -) -{ -}, - -/** - * @method startParticleSystem - */ -startParticleSystem : function ( -) -{ -}, - -/** - * @method isEnabled - * @return {bool} - */ -isEnabled : function ( -) -{ - return false; -}, - -/** - * @method isKeepLocal - * @return {bool} - */ -isKeepLocal : function ( -) -{ - return false; -}, - -/** - * @method setEnabled - * @param {bool} arg0 - */ -setEnabled : function ( -bool -) -{ -}, - -/** - * @method getParticleQuota - * @return {unsigned int} - */ -getParticleQuota : function ( -) -{ - return 0; -}, - -/** - * @method getBlendFunc - * @return {cc.BlendFunc} - */ -getBlendFunc : function ( -) -{ - return cc.BlendFunc; -}, - -/** - * @method pauseParticleSystem - */ -pauseParticleSystem : function ( -) -{ -}, - -/** - * @method getState - * @return {cc.ParticleSystem3D::State} - */ -getState : function ( -) -{ - return 0; -}, - -/** - * @method getAliveParticleCount - * @return {int} - */ -getAliveParticleCount : function ( -) -{ - return 0; -}, - -/** - * @method setParticleQuota - * @param {unsigned int} arg0 - */ -setParticleQuota : function ( -int -) -{ -}, - -/** - * @method setBlendFunc - * @param {cc.BlendFunc} arg0 - */ -setBlendFunc : function ( -blendfunc -) -{ -}, - -/** - * @method stopParticleSystem - */ -stopParticleSystem : function ( -) -{ -}, - -/** - * @method setKeepLocal - * @param {bool} arg0 - */ -setKeepLocal : function ( -bool -) -{ -}, - -/** - * @method ParticleSystem3D - * @constructor - */ -ParticleSystem3D : function ( -) -{ -}, - -}; - -/** - * @class PUParticleSystem3D - */ -jsb.PUParticleSystem3D = { - -/** - * @method initWithFilePath - * @param {String} arg0 - * @return {bool} - */ -initWithFilePath : function ( -str -) -{ - return false; -}, - -/** - * @method getParticleSystemScaleVelocity - * @return {float} - */ -getParticleSystemScaleVelocity : function ( -) -{ - return 0; -}, - -/** - * @method setEmittedSystemQuota - * @param {unsigned int} arg0 - */ -setEmittedSystemQuota : function ( -int -) -{ -}, - -/** - * @method getDefaultDepth - * @return {float} - */ -getDefaultDepth : function ( -) -{ - return 0; -}, - -/** - * @method getEmittedSystemQuota - * @return {unsigned int} - */ -getEmittedSystemQuota : function ( -) -{ - return 0; -}, - -/** - * @method initWithFilePathAndMaterialPath - * @param {String} arg0 - * @param {String} arg1 - * @return {bool} - */ -initWithFilePathAndMaterialPath : function ( -str, -str -) -{ - return false; -}, - -/** - * @method clearAllParticles - */ -clearAllParticles : function ( -) -{ -}, - -/** - * @method getMaterialName - * @return {String} - */ -getMaterialName : function ( -) -{ - return ; -}, - -/** - * @method calulateRotationOffset - */ -calulateRotationOffset : function ( -) -{ -}, - -/** - * @method getMaxVelocity - * @return {float} - */ -getMaxVelocity : function ( -) -{ - return 0; -}, - -/** - * @method forceUpdate - * @param {float} arg0 - */ -forceUpdate : function ( -float -) -{ -}, - -/** - * @method getTimeElapsedSinceStart - * @return {float} - */ -getTimeElapsedSinceStart : function ( -) -{ - return 0; -}, - -/** - * @method getEmittedEmitterQuota - * @return {unsigned int} - */ -getEmittedEmitterQuota : function ( -) -{ - return 0; -}, - -/** - * @method isMarkedForEmission - * @return {bool} - */ -isMarkedForEmission : function ( -) -{ - return false; -}, - -/** - * @method getDefaultWidth - * @return {float} - */ -getDefaultWidth : function ( -) -{ - return 0; -}, - -/** - * @method setEmittedEmitterQuota - * @param {unsigned int} arg0 - */ -setEmittedEmitterQuota : function ( -int -) -{ -}, - -/** - * @method setMarkedForEmission - * @param {bool} arg0 - */ -setMarkedForEmission : function ( -bool -) -{ -}, - -/** - * @method clone - * @return {cc.PUParticleSystem3D} - */ -clone : function ( -) -{ - return cc.PUParticleSystem3D; -}, - -/** - * @method setDefaultWidth - * @param {float} arg0 - */ -setDefaultWidth : function ( -float -) -{ -}, - -/** - * @method copyAttributesTo - * @param {cc.PUParticleSystem3D} arg0 - */ -copyAttributesTo : function ( -puparticlesystem3d -) -{ -}, - -/** - * @method setMaterialName - * @param {String} arg0 - */ -setMaterialName : function ( -str -) -{ -}, - -/** - * @method getParentParticleSystem - * @return {cc.PUParticleSystem3D} - */ -getParentParticleSystem : function ( -) -{ - return cc.PUParticleSystem3D; -}, - -/** - * @method setMaxVelocity - * @param {float} arg0 - */ -setMaxVelocity : function ( -float -) -{ -}, - -/** - * @method getDefaultHeight - * @return {float} - */ -getDefaultHeight : function ( -) -{ - return 0; -}, - -/** - * @method getDerivedPosition - * @return {vec3_object} - */ -getDerivedPosition : function ( -) -{ - return cc.Vec3; -}, - -/** - * @method rotationOffset - * @param {vec3_object} arg0 - */ -rotationOffset : function ( -vec3 -) -{ -}, - -/** - * @method getDerivedOrientation - * @return {cc.Quaternion} - */ -getDerivedOrientation : function ( -) -{ - return cc.Quaternion; -}, - -/** - * @method removeAllEmitter - */ -removeAllEmitter : function ( -) -{ -}, - -/** - * @method setParticleSystemScaleVelocity - * @param {float} arg0 - */ -setParticleSystemScaleVelocity : function ( -float -) -{ -}, - -/** - * @method getDerivedScale - * @return {vec3_object} - */ -getDerivedScale : function ( -) -{ - return cc.Vec3; -}, - -/** - * @method setDefaultHeight - * @param {float} arg0 - */ -setDefaultHeight : function ( -float -) -{ -}, - -/** - * @method removeAllListener - */ -removeAllListener : function ( -) -{ -}, - -/** - * @method setDefaultDepth - * @param {float} arg0 - */ -setDefaultDepth : function ( -float -) -{ -}, - -/** - * @method create -* @param {String|String} str -* @param {String} str -* @return {cc.PUParticleSystem3D|cc.PUParticleSystem3D|cc.PUParticleSystem3D} -*/ -create : function( -str, -str -) -{ - return cc.PUParticleSystem3D; -}, - -/** - * @method PUParticleSystem3D - * @constructor - */ -PUParticleSystem3D : function ( -) -{ -}, - -}; 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 56905a9bf5..3316167355 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 @@ -13435,6 +13435,16 @@ texture2d { }, +/** + * @method setMinSeg + * @param {float} arg0 + */ +setMinSeg : function ( +float +) +{ +}, + /** * @method getTexture * @return {cc.Texture2D} @@ -13455,6 +13465,16 @@ color3b { }, +/** + * @method getMinSeg + * @return {float} + */ +getMinSeg : function ( +) +{ + return 0; +}, + /** * @method setBlendFunc * @param {cc.BlendFunc} arg0 @@ -13465,6 +13485,16 @@ blendfunc { }, +/** + * @method setFadeTime + * @param {float} arg0 + */ +setFadeTime : function ( +float +) +{ +}, + /** * @method setStartingPositionInitialized * @param {bool} arg0 @@ -13475,6 +13505,16 @@ bool { }, +/** + * @method getFadeTime + * @return {float} + */ +getFadeTime : function ( +) +{ + return 0; +}, + /** * @method getBlendFunc * @return {cc.BlendFunc} diff --git a/native/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_navmesh_auto_api.js b/native/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_navmesh_auto_api.js deleted file mode 100644 index 3e02c71968..0000000000 --- a/native/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_navmesh_auto_api.js +++ /dev/null @@ -1,520 +0,0 @@ -/** - * @module cocos2dx_navmesh - */ -var jsb = jsb || {}; - -/** - * @class NavMeshAgent - */ -jsb.NavMeshAgent = { - -/** - * @method setMaxSpeed - * @param {float} arg0 - */ -setMaxSpeed : function ( -float -) -{ -}, - -/** - * @method syncToNode - */ -syncToNode : function ( -) -{ -}, - -/** - * @method completeOffMeshLink - */ -completeOffMeshLink : function ( -) -{ -}, - -/** - * @method getSeparationWeight - * @return {float} - */ -getSeparationWeight : function ( -) -{ - return 0; -}, - -/** - * @method setAutoTraverseOffMeshLink - * @param {bool} arg0 - */ -setAutoTraverseOffMeshLink : function ( -bool -) -{ -}, - -/** - * @method getCurrentVelocity - * @return {vec3_object} - */ -getCurrentVelocity : function ( -) -{ - return cc.Vec3; -}, - -/** - * @method syncToAgent - */ -syncToAgent : function ( -) -{ -}, - -/** - * @method isOnOffMeshLink - * @return {bool} - */ -isOnOffMeshLink : function ( -) -{ - return false; -}, - -/** - * @method setSeparationWeight - * @param {float} arg0 - */ -setSeparationWeight : function ( -float -) -{ -}, - -/** - * @method pause - */ -pause : function ( -) -{ -}, - -/** - * @method setAutoOrientation - * @param {bool} arg0 - */ -setAutoOrientation : function ( -bool -) -{ -}, - -/** - * @method getHeight - * @return {float} - */ -getHeight : function ( -) -{ - return 0; -}, - -/** - * @method getMaxSpeed - * @return {float} - */ -getMaxSpeed : function ( -) -{ - return 0; -}, - -/** - * @method getCurrentOffMeshLinkData - * @return {cc.OffMeshLinkData} - */ -getCurrentOffMeshLinkData : function ( -) -{ - return cc.OffMeshLinkData; -}, - -/** - * @method getRadius - * @return {float} - */ -getRadius : function ( -) -{ - return 0; -}, - -/** - * @method setSyncFlag - * @param {cc.NavMeshAgent::NavMeshAgentSyncFlag} arg0 - */ -setSyncFlag : function ( -navmeshagentsyncflag -) -{ -}, - -/** - * @method getSyncFlag - * @return {cc.NavMeshAgent::NavMeshAgentSyncFlag} - */ -getSyncFlag : function ( -) -{ - return 0; -}, - -/** - * @method resume - */ -resume : function ( -) -{ -}, - -/** - * @method stop - */ -stop : function ( -) -{ -}, - -/** - * @method setMaxAcceleration - * @param {float} arg0 - */ -setMaxAcceleration : function ( -float -) -{ -}, - -/** - * @method setOrientationRefAxes - * @param {vec3_object} arg0 - */ -setOrientationRefAxes : function ( -vec3 -) -{ -}, - -/** - * @method getMaxAcceleration - * @return {float} - */ -getMaxAcceleration : function ( -) -{ - return 0; -}, - -/** - * @method setHeight - * @param {float} arg0 - */ -setHeight : function ( -float -) -{ -}, - -/** - * @method getObstacleAvoidanceType - * @return {unsigned char} - */ -getObstacleAvoidanceType : function ( -) -{ - return 0; -}, - -/** - * @method getVelocity - * @return {vec3_object} - */ -getVelocity : function ( -) -{ - return cc.Vec3; -}, - -/** - * @method setRadius - * @param {float} arg0 - */ -setRadius : function ( -float -) -{ -}, - -/** - * @method setObstacleAvoidanceType - * @param {unsigned char} arg0 - */ -setObstacleAvoidanceType : function ( -char -) -{ -}, - -/** - * @method getNavMeshAgentComponentName - * @return {String} - */ -getNavMeshAgentComponentName : function ( -) -{ - return ; -}, - -/** - * @method create - * @param {cc.NavMeshAgentParam} arg0 - * @return {cc.NavMeshAgent} - */ -create : function ( -navmeshagentparam -) -{ - return cc.NavMeshAgent; -}, - -/** - * @method NavMeshAgent - * @constructor - */ -NavMeshAgent : function ( -) -{ -}, - -}; - -/** - * @class NavMeshObstacle - */ -jsb.NavMeshObstacle = { - -/** - * @method getSyncFlag - * @return {cc.NavMeshObstacle::NavMeshObstacleSyncFlag} - */ -getSyncFlag : function ( -) -{ - return 0; -}, - -/** - * @method initWith - * @param {float} arg0 - * @param {float} arg1 - * @return {bool} - */ -initWith : function ( -float, -float -) -{ - return false; -}, - -/** - * @method syncToObstacle - */ -syncToObstacle : function ( -) -{ -}, - -/** - * @method syncToNode - */ -syncToNode : function ( -) -{ -}, - -/** - * @method getHeight - * @return {float} - */ -getHeight : function ( -) -{ - return 0; -}, - -/** - * @method setSyncFlag - * @param {cc.NavMeshObstacle::NavMeshObstacleSyncFlag} arg0 - */ -setSyncFlag : function ( -navmeshobstaclesyncflag -) -{ -}, - -/** - * @method getRadius - * @return {float} - */ -getRadius : function ( -) -{ - return 0; -}, - -/** - * @method create - * @param {float} arg0 - * @param {float} arg1 - * @return {cc.NavMeshObstacle} - */ -create : function ( -float, -float -) -{ - return cc.NavMeshObstacle; -}, - -/** - * @method getNavMeshObstacleComponentName - * @return {String} - */ -getNavMeshObstacleComponentName : function ( -) -{ - return ; -}, - -/** - * @method NavMeshObstacle - * @constructor - */ -NavMeshObstacle : function ( -) -{ -}, - -}; - -/** - * @class NavMesh - */ -jsb.NavMesh = { - -/** - * @method removeNavMeshObstacle - * @param {cc.NavMeshObstacle} arg0 - */ -removeNavMeshObstacle : function ( -navmeshobstacle -) -{ -}, - -/** - * @method removeNavMeshAgent - * @param {cc.NavMeshAgent} arg0 - */ -removeNavMeshAgent : function ( -navmeshagent -) -{ -}, - -/** - * @method update - * @param {float} arg0 - */ -update : function ( -float -) -{ -}, - -/** - * @method isDebugDrawEnabled - * @return {bool} - */ -isDebugDrawEnabled : function ( -) -{ - return false; -}, - -/** - * @method addNavMeshAgent - * @param {cc.NavMeshAgent} arg0 - */ -addNavMeshAgent : function ( -navmeshagent -) -{ -}, - -/** - * @method addNavMeshObstacle - * @param {cc.NavMeshObstacle} arg0 - */ -addNavMeshObstacle : function ( -navmeshobstacle -) -{ -}, - -/** - * @method setDebugDrawEnable - * @param {bool} arg0 - */ -setDebugDrawEnable : function ( -bool -) -{ -}, - -/** - * @method debugDraw - * @param {cc.Renderer} arg0 - */ -debugDraw : function ( -renderer -) -{ -}, - -/** - * @method create - * @param {String} arg0 - * @param {String} arg1 - * @return {cc.NavMesh} - */ -create : function ( -str, -str -) -{ - return cc.NavMesh; -}, - -/** - * @method NavMesh - * @constructor - */ -NavMesh : function ( -) -{ -}, - -}; diff --git a/native/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_physics3d_auto_api.js b/native/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_physics3d_auto_api.js deleted file mode 100644 index 8d6b550044..0000000000 --- a/native/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_physics3d_auto_api.js +++ /dev/null @@ -1,2708 +0,0 @@ -/** - * @module cocos2dx_physics3d - */ -var jsb = jsb || {}; - -/** - * @class Physics3DShape - */ -jsb.Physics3DShape = { - -/** - * @method initConvexHull - * @param {vec3_object} arg0 - * @param {int} arg1 - * @return {bool} - */ -initConvexHull : function ( -vec3, -int -) -{ - return false; -}, - -/** - * @method getbtShape - * @return {btCollisionShape} - */ -getbtShape : function ( -) -{ - return btCollisionShape; -}, - -/** - * @method initSphere - * @param {float} arg0 - * @return {bool} - */ -initSphere : function ( -float -) -{ - return false; -}, - -/** - * @method initBox - * @param {vec3_object} arg0 - * @return {bool} - */ -initBox : function ( -vec3 -) -{ - return false; -}, - -/** - * @method initCapsule - * @param {float} arg0 - * @param {float} arg1 - * @return {bool} - */ -initCapsule : function ( -float, -float -) -{ - return false; -}, - -/** - * @method initCylinder - * @param {float} arg0 - * @param {float} arg1 - * @return {bool} - */ -initCylinder : function ( -float, -float -) -{ - return false; -}, - -/** - * @method getShapeType - * @return {cc.Physics3DShape::ShapeType} - */ -getShapeType : function ( -) -{ - return 0; -}, - -/** - * @method createBox - * @param {vec3_object} arg0 - * @return {cc.Physics3DShape} - */ -createBox : function ( -vec3 -) -{ - return cc.Physics3DShape; -}, - -/** - * @method createCylinder - * @param {float} arg0 - * @param {float} arg1 - * @return {cc.Physics3DShape} - */ -createCylinder : function ( -float, -float -) -{ - return cc.Physics3DShape; -}, - -/** - * @method createConvexHull - * @param {vec3_object} arg0 - * @param {int} arg1 - * @return {cc.Physics3DShape} - */ -createConvexHull : function ( -vec3, -int -) -{ - return cc.Physics3DShape; -}, - -/** - * @method createCapsule - * @param {float} arg0 - * @param {float} arg1 - * @return {cc.Physics3DShape} - */ -createCapsule : function ( -float, -float -) -{ - return cc.Physics3DShape; -}, - -/** - * @method createSphere - * @param {float} arg0 - * @return {cc.Physics3DShape} - */ -createSphere : function ( -float -) -{ - return cc.Physics3DShape; -}, - -/** - * @method Physics3DShape - * @constructor - */ -Physics3DShape : function ( -) -{ -}, - -}; - -/** - * @class Physics3DObject - */ -jsb.Physics3DObject = { - -/** - * @method setUserData - * @param {void} arg0 - */ -setUserData : function ( -void -) -{ -}, - -/** - * @method getUserData - * @return {void} - */ -getUserData : function ( -) -{ - return void; -}, - -/** - * @method getObjType - * @return {cc.Physics3DObject::PhysicsObjType} - */ -getObjType : function ( -) -{ - return 0; -}, - -/** - * @method setPhysicsWorld - * @param {cc.Physics3DWorld} arg0 - */ -setPhysicsWorld : function ( -physics3dworld -) -{ -}, - -/** - * @method getWorldTransform - * @return {mat4_object} - */ -getWorldTransform : function ( -) -{ - return cc.Mat4; -}, - -/** - * @method getPhysicsWorld - * @return {cc.Physics3DWorld} - */ -getPhysicsWorld : function ( -) -{ - return cc.Physics3DWorld; -}, - -/** - * @method setMask - * @param {unsigned int} arg0 - */ -setMask : function ( -int -) -{ -}, - -/** - * @method getCollisionCallback - * @return {function} - */ -getCollisionCallback : function ( -) -{ - return std::function; -}, - -/** - * @method getMask - * @return {unsigned int} - */ -getMask : function ( -) -{ - return 0; -}, - -/** - * @method needCollisionCallback - * @return {bool} - */ -needCollisionCallback : function ( -) -{ - return false; -}, - -}; - -/** - * @class Physics3DRigidBody - */ -jsb.Physics3DRigidBody = { - -/** - * @method setGravity - * @param {vec3_object} arg0 - */ -setGravity : function ( -vec3 -) -{ -}, - -/** - * @method getFriction - * @return {float} - */ -getFriction : function ( -) -{ - return 0; -}, - -/** - * @method setAngularFactor -* @param {float|vec3_object} float -*/ -setAngularFactor : function( -vec3 -) -{ -}, - -/** - * @method addConstraint - * @param {cc.Physics3DConstraint} arg0 - */ -addConstraint : function ( -physics3dconstraint -) -{ -}, - -/** - * @method getRigidBody - * @return {btRigidBody} - */ -getRigidBody : function ( -) -{ - return btRigidBody; -}, - -/** - * @method getTotalForce - * @return {vec3_object} - */ -getTotalForce : function ( -) -{ - return cc.Vec3; -}, - -/** - * @method getConstraintCount - * @return {unsigned int} - */ -getConstraintCount : function ( -) -{ - return 0; -}, - -/** - * @method applyCentralForce - * @param {vec3_object} arg0 - */ -applyCentralForce : function ( -vec3 -) -{ -}, - -/** - * @method setMassProps - * @param {float} arg0 - * @param {vec3_object} arg1 - */ -setMassProps : function ( -float, -vec3 -) -{ -}, - -/** - * @method setFriction - * @param {float} arg0 - */ -setFriction : function ( -float -) -{ -}, - -/** - * @method setKinematic - * @param {bool} arg0 - */ -setKinematic : function ( -bool -) -{ -}, - -/** - * @method setDamping - * @param {float} arg0 - * @param {float} arg1 - */ -setDamping : function ( -float, -float -) -{ -}, - -/** - * @method applyImpulse - * @param {vec3_object} arg0 - * @param {vec3_object} arg1 - */ -applyImpulse : function ( -vec3, -vec3 -) -{ -}, - -/** - * @method isKinematic - * @return {bool} - */ -isKinematic : function ( -) -{ - return false; -}, - -/** - * @method applyTorque - * @param {vec3_object} arg0 - */ -applyTorque : function ( -vec3 -) -{ -}, - -/** - * @method setCcdMotionThreshold - * @param {float} arg0 - */ -setCcdMotionThreshold : function ( -float -) -{ -}, - -/** - * @method setRollingFriction - * @param {float} arg0 - */ -setRollingFriction : function ( -float -) -{ -}, - -/** - * @method getCcdMotionThreshold - * @return {float} - */ -getCcdMotionThreshold : function ( -) -{ - return 0; -}, - -/** - * @method getLinearFactor - * @return {vec3_object} - */ -getLinearFactor : function ( -) -{ - return cc.Vec3; -}, - -/** - * @method applyDamping - * @param {float} arg0 - */ -applyDamping : function ( -float -) -{ -}, - -/** - * @method getAngularVelocity - * @return {vec3_object} - */ -getAngularVelocity : function ( -) -{ - return cc.Vec3; -}, - -/** - * @method init - * @param {cc.Physics3DRigidBodyDes} arg0 - * @return {bool} - */ -init : function ( -physics3drigidbodydes -) -{ - return false; -}, - -/** - * @method applyTorqueImpulse - * @param {vec3_object} arg0 - */ -applyTorqueImpulse : function ( -vec3 -) -{ -}, - -/** - * @method setActive - * @param {bool} arg0 - */ -setActive : function ( -bool -) -{ -}, - -/** - * @method setLinearFactor - * @param {vec3_object} arg0 - */ -setLinearFactor : function ( -vec3 -) -{ -}, - -/** - * @method setLinearVelocity - * @param {vec3_object} arg0 - */ -setLinearVelocity : function ( -vec3 -) -{ -}, - -/** - * @method getLinearVelocity - * @return {vec3_object} - */ -getLinearVelocity : function ( -) -{ - return cc.Vec3; -}, - -/** - * @method setCcdSweptSphereRadius - * @param {float} arg0 - */ -setCcdSweptSphereRadius : function ( -float -) -{ -}, - -/** - * @method applyForce - * @param {vec3_object} arg0 - * @param {vec3_object} arg1 - */ -applyForce : function ( -vec3, -vec3 -) -{ -}, - -/** - * @method setAngularVelocity - * @param {vec3_object} arg0 - */ -setAngularVelocity : function ( -vec3 -) -{ -}, - -/** - * @method applyCentralImpulse - * @param {vec3_object} arg0 - */ -applyCentralImpulse : function ( -vec3 -) -{ -}, - -/** - * @method getGravity - * @return {vec3_object} - */ -getGravity : function ( -) -{ - return cc.Vec3; -}, - -/** - * @method getRollingFriction - * @return {float} - */ -getRollingFriction : function ( -) -{ - return 0; -}, - -/** - * @method setCenterOfMassTransform - * @param {mat4_object} arg0 - */ -setCenterOfMassTransform : function ( -mat4 -) -{ -}, - -/** - * @method setInvInertiaDiagLocal - * @param {vec3_object} arg0 - */ -setInvInertiaDiagLocal : function ( -vec3 -) -{ -}, - -/** - * @method removeConstraint -* @param {unsigned int|cc.Physics3DConstraint} int -*/ -removeConstraint : function( -physics3dconstraint -) -{ -}, - -/** - * @method getTotalTorque - * @return {vec3_object} - */ -getTotalTorque : function ( -) -{ - return cc.Vec3; -}, - -/** - * @method getInvMass - * @return {float} - */ -getInvMass : function ( -) -{ - return 0; -}, - -/** - * @method getConstraint - * @param {unsigned int} arg0 - * @return {cc.Physics3DConstraint} - */ -getConstraint : function ( -int -) -{ - return cc.Physics3DConstraint; -}, - -/** - * @method getRestitution - * @return {float} - */ -getRestitution : function ( -) -{ - return 0; -}, - -/** - * @method getCcdSweptSphereRadius - * @return {float} - */ -getCcdSweptSphereRadius : function ( -) -{ - return 0; -}, - -/** - * @method getHitFraction - * @return {float} - */ -getHitFraction : function ( -) -{ - return 0; -}, - -/** - * @method getAngularDamping - * @return {float} - */ -getAngularDamping : function ( -) -{ - return 0; -}, - -/** - * @method getInvInertiaDiagLocal - * @return {vec3_object} - */ -getInvInertiaDiagLocal : function ( -) -{ - return cc.Vec3; -}, - -/** - * @method getCenterOfMassTransform - * @return {mat4_object} - */ -getCenterOfMassTransform : function ( -) -{ - return cc.Mat4; -}, - -/** - * @method getAngularFactor - * @return {vec3_object} - */ -getAngularFactor : function ( -) -{ - return cc.Vec3; -}, - -/** - * @method setRestitution - * @param {float} arg0 - */ -setRestitution : function ( -float -) -{ -}, - -/** - * @method setHitFraction - * @param {float} arg0 - */ -setHitFraction : function ( -float -) -{ -}, - -/** - * @method getLinearDamping - * @return {float} - */ -getLinearDamping : function ( -) -{ - return 0; -}, - -/** - * @method Physics3DRigidBody - * @constructor - */ -Physics3DRigidBody : function ( -) -{ -}, - -}; - -/** - * @class Physics3DComponent - */ -jsb.Physics3DComponent = { - -/** - * @method syncNodeToPhysics - */ -syncNodeToPhysics : function ( -) -{ -}, - -/** - * @method addToPhysicsWorld - * @param {cc.Physics3DWorld} arg0 - */ -addToPhysicsWorld : function ( -physics3dworld -) -{ -}, - -/** - * @method syncPhysicsToNode - */ -syncPhysicsToNode : function ( -) -{ -}, - -/** - * @method getPhysics3DObject - * @return {cc.Physics3DObject} - */ -getPhysics3DObject : function ( -) -{ - return cc.Physics3DObject; -}, - -/** - * @method setPhysics3DObject - * @param {cc.Physics3DObject} arg0 - */ -setPhysics3DObject : function ( -physics3dobject -) -{ -}, - -/** - * @method setSyncFlag - * @param {cc.Physics3DComponent::PhysicsSyncFlag} arg0 - */ -setSyncFlag : function ( -physicssyncflag -) -{ -}, - -/** - * @method setTransformInPhysics - * @param {vec3_object} arg0 - * @param {cc.Quaternion} arg1 - */ -setTransformInPhysics : function ( -vec3, -quaternion -) -{ -}, - -/** - * @method create -* @param {cc.Physics3DObject} physics3dobject -* @param {vec3_object} vec3 -* @param {cc.Quaternion} quaternion -* @return {cc.Physics3DComponent|cc.Physics3DComponent} -*/ -create : function( -physics3dobject, -vec3, -quaternion -) -{ - return cc.Physics3DComponent; -}, - -/** - * @method getPhysics3DComponentName - * @return {String} - */ -getPhysics3DComponentName : function ( -) -{ - return ; -}, - -/** - * @method Physics3DComponent - * @constructor - */ -Physics3DComponent : function ( -) -{ -}, - -}; - -/** - * @class PhysicsSprite3D - */ -jsb.PhysicsSprite3D = { - -/** - * @method syncNodeToPhysics - */ -syncNodeToPhysics : function ( -) -{ -}, - -/** - * @method syncPhysicsToNode - */ -syncPhysicsToNode : function ( -) -{ -}, - -/** - * @method getPhysicsObj - * @return {cc.Physics3DObject} - */ -getPhysicsObj : function ( -) -{ - return cc.Physics3DObject; -}, - -/** - * @method setSyncFlag - * @param {cc.Physics3DComponent::PhysicsSyncFlag} arg0 - */ -setSyncFlag : function ( -physicssyncflag -) -{ -}, - -/** - * @method PhysicsSprite3D - * @constructor - */ -PhysicsSprite3D : function ( -) -{ -}, - -}; - -/** - * @class Physics3DWorld - */ -jsb.Physics3DWorld = { - -/** - * @method setGravity - * @param {vec3_object} arg0 - */ -setGravity : function ( -vec3 -) -{ -}, - -/** - * @method stepSimulate - * @param {float} arg0 - */ -stepSimulate : function ( -float -) -{ -}, - -/** - * @method needCollisionChecking - * @return {bool} - */ -needCollisionChecking : function ( -) -{ - return false; -}, - -/** - * @method collisionChecking - */ -collisionChecking : function ( -) -{ -}, - -/** - * @method setGhostPairCallback - */ -setGhostPairCallback : function ( -) -{ -}, - -/** - * @method init - * @param {cc.Physics3DWorldDes} arg0 - * @return {bool} - */ -init : function ( -physics3dworlddes -) -{ - return false; -}, - -/** - * @method removeAllPhysics3DObjects - */ -removeAllPhysics3DObjects : function ( -) -{ -}, - -/** - * @method isDebugDrawEnabled - * @return {bool} - */ -isDebugDrawEnabled : function ( -) -{ - return false; -}, - -/** - * @method removeAllPhysics3DConstraints - */ -removeAllPhysics3DConstraints : function ( -) -{ -}, - -/** - * @method getGravity - * @return {vec3_object} - */ -getGravity : function ( -) -{ - return cc.Vec3; -}, - -/** - * @method removePhysics3DConstraint - * @param {cc.Physics3DConstraint} arg0 - */ -removePhysics3DConstraint : function ( -physics3dconstraint -) -{ -}, - -/** - * @method addPhysics3DObject - * @param {cc.Physics3DObject} arg0 - */ -addPhysics3DObject : function ( -physics3dobject -) -{ -}, - -/** - * @method setDebugDrawEnable - * @param {bool} arg0 - */ -setDebugDrawEnable : function ( -bool -) -{ -}, - -/** - * @method removePhysics3DObject - * @param {cc.Physics3DObject} arg0 - */ -removePhysics3DObject : function ( -physics3dobject -) -{ -}, - -/** - * @method getPhysicsObject - * @param {btCollisionObject} arg0 - * @return {cc.Physics3DObject} - */ -getPhysicsObject : function ( -btcollisionobject -) -{ - return cc.Physics3DObject; -}, - -/** - * @method addPhysics3DConstraint - * @param {cc.Physics3DConstraint} arg0 - * @param {bool} arg1 - */ -addPhysics3DConstraint : function ( -physics3dconstraint, -bool -) -{ -}, - -/** - * @method debugDraw - * @param {cc.Renderer} arg0 - */ -debugDraw : function ( -renderer -) -{ -}, - -/** - * @method sweepShape - * @param {cc.Physics3DShape} arg0 - * @param {mat4_object} arg1 - * @param {mat4_object} arg2 - * @param {cc.Physics3DWorld::HitResult} arg3 - * @return {bool} - */ -sweepShape : function ( -physics3dshape, -mat4, -mat4, -hitresult -) -{ - return false; -}, - -/** - * @method create - * @param {cc.Physics3DWorldDes} arg0 - * @return {cc.Physics3DWorld} - */ -create : function ( -physics3dworlddes -) -{ - return cc.Physics3DWorld; -}, - -/** - * @method Physics3DWorld - * @constructor - */ -Physics3DWorld : function ( -) -{ -}, - -}; - -/** - * @class Physics3DConstraint - */ -jsb.Physics3DConstraint = { - -/** - * @method setEnabled - * @param {bool} arg0 - */ -setEnabled : function ( -bool -) -{ -}, - -/** - * @method setBreakingImpulse - * @param {float} arg0 - */ -setBreakingImpulse : function ( -float -) -{ -}, - -/** - * @method getUserData - * @return {void} - */ -getUserData : function ( -) -{ - return void; -}, - -/** - * @method getBreakingImpulse - * @return {float} - */ -getBreakingImpulse : function ( -) -{ - return 0; -}, - -/** - * @method getBodyA - * @return {cc.Physics3DRigidBody} - */ -getBodyA : function ( -) -{ - return cc.Physics3DRigidBody; -}, - -/** - * @method isEnabled - * @return {bool} - */ -isEnabled : function ( -) -{ - return false; -}, - -/** - * @method getOverrideNumSolverIterations - * @return {int} - */ -getOverrideNumSolverIterations : function ( -) -{ - return 0; -}, - -/** - * @method getBodyB - * @return {cc.Physics3DRigidBody} - */ -getBodyB : function ( -) -{ - return cc.Physics3DRigidBody; -}, - -/** - * @method setOverrideNumSolverIterations - * @param {int} arg0 - */ -setOverrideNumSolverIterations : function ( -int -) -{ -}, - -/** - * @method getConstraintType - * @return {cc.Physics3DConstraint::ConstraintType} - */ -getConstraintType : function ( -) -{ - return 0; -}, - -/** - * @method setUserData - * @param {void} arg0 - */ -setUserData : function ( -void -) -{ -}, - -/** - * @method getbtContraint - * @return {btTypedConstraint} - */ -getbtContraint : function ( -) -{ - return btTypedConstraint; -}, - -}; - -/** - * @class Physics3DPointToPointConstraint - */ -jsb.Physics3DPointToPointConstraint = { - -/** - * @method getPivotPointInA - * @return {vec3_object} - */ -getPivotPointInA : function ( -) -{ - return cc.Vec3; -}, - -/** - * @method getPivotPointInB - * @return {vec3_object} - */ -getPivotPointInB : function ( -) -{ - return cc.Vec3; -}, - -/** - * @method init -* @param {cc.Physics3DRigidBody|cc.Physics3DRigidBody} physics3drigidbody -* @param {cc.Physics3DRigidBody|vec3_object} physics3drigidbody -* @param {vec3_object} vec3 -* @param {vec3_object} vec3 -* @return {bool|bool} -*/ -init : function( -physics3drigidbody, -physics3drigidbody, -vec3, -vec3 -) -{ - return false; -}, - -/** - * @method setPivotPointInA - * @param {vec3_object} arg0 - */ -setPivotPointInA : function ( -vec3 -) -{ -}, - -/** - * @method setPivotPointInB - * @param {vec3_object} arg0 - */ -setPivotPointInB : function ( -vec3 -) -{ -}, - -/** - * @method create -* @param {cc.Physics3DRigidBody|cc.Physics3DRigidBody} physics3drigidbody -* @param {cc.Physics3DRigidBody|vec3_object} physics3drigidbody -* @param {vec3_object} vec3 -* @param {vec3_object} vec3 -* @return {cc.Physics3DPointToPointConstraint|cc.Physics3DPointToPointConstraint} -*/ -create : function( -physics3drigidbody, -physics3drigidbody, -vec3, -vec3 -) -{ - return cc.Physics3DPointToPointConstraint; -}, - -/** - * @method Physics3DPointToPointConstraint - * @constructor - */ -Physics3DPointToPointConstraint : function ( -) -{ -}, - -}; - -/** - * @class Physics3DHingeConstraint - */ -jsb.Physics3DHingeConstraint = { - -/** - * @method getHingeAngle -* @param {mat4_object} mat4 -* @param {mat4_object} mat4 -* @return {float|float} -*/ -getHingeAngle : function( -mat4, -mat4 -) -{ - return 0; -}, - -/** - * @method getMotorTargetVelosity - * @return {float} - */ -getMotorTargetVelosity : function ( -) -{ - return 0; -}, - -/** - * @method getFrameOffsetA - * @return {mat4_object} - */ -getFrameOffsetA : function ( -) -{ - return cc.Mat4; -}, - -/** - * @method getFrameOffsetB - * @return {mat4_object} - */ -getFrameOffsetB : function ( -) -{ - return cc.Mat4; -}, - -/** - * @method setMaxMotorImpulse - * @param {float} arg0 - */ -setMaxMotorImpulse : function ( -float -) -{ -}, - -/** - * @method enableAngularMotor - * @param {bool} arg0 - * @param {float} arg1 - * @param {float} arg2 - */ -enableAngularMotor : function ( -bool, -float, -float -) -{ -}, - -/** - * @method getUpperLimit - * @return {float} - */ -getUpperLimit : function ( -) -{ - return 0; -}, - -/** - * @method getMaxMotorImpulse - * @return {float} - */ -getMaxMotorImpulse : function ( -) -{ - return 0; -}, - -/** - * @method getLowerLimit - * @return {float} - */ -getLowerLimit : function ( -) -{ - return 0; -}, - -/** - * @method setUseFrameOffset - * @param {bool} arg0 - */ -setUseFrameOffset : function ( -bool -) -{ -}, - -/** - * @method getEnableAngularMotor - * @return {bool} - */ -getEnableAngularMotor : function ( -) -{ - return false; -}, - -/** - * @method enableMotor - * @param {bool} arg0 - */ -enableMotor : function ( -bool -) -{ -}, - -/** - * @method getBFrame - * @return {mat4_object} - */ -getBFrame : function ( -) -{ - return cc.Mat4; -}, - -/** - * @method setFrames - * @param {mat4_object} arg0 - * @param {mat4_object} arg1 - */ -setFrames : function ( -mat4, -mat4 -) -{ -}, - -/** - * @method getUseFrameOffset - * @return {bool} - */ -getUseFrameOffset : function ( -) -{ - return false; -}, - -/** - * @method setAngularOnly - * @param {bool} arg0 - */ -setAngularOnly : function ( -bool -) -{ -}, - -/** - * @method setLimit - * @param {float} arg0 - * @param {float} arg1 - * @param {float} arg2 - * @param {float} arg3 - * @param {float} arg4 - */ -setLimit : function ( -float, -float, -float, -float, -float -) -{ -}, - -/** - * @method setMotorTarget -* @param {float|cc.Quaternion} float -* @param {float|float} float -*/ -setMotorTarget : function( -quaternion, -float -) -{ -}, - -/** - * @method getAngularOnly - * @return {bool} - */ -getAngularOnly : function ( -) -{ - return false; -}, - -/** - * @method setAxis - * @param {vec3_object} arg0 - */ -setAxis : function ( -vec3 -) -{ -}, - -/** - * @method getAFrame - * @return {mat4_object} - */ -getAFrame : function ( -) -{ - return cc.Mat4; -}, - -/** - * @method create -* @param {cc.Physics3DRigidBody|cc.Physics3DRigidBody|cc.Physics3DRigidBody|cc.Physics3DRigidBody} physics3drigidbody -* @param {vec3_object|mat4_object|cc.Physics3DRigidBody|cc.Physics3DRigidBody} vec3 -* @param {vec3_object|bool|vec3_object|mat4_object} vec3 -* @param {bool|vec3_object|mat4_object} bool -* @param {vec3_object|bool} vec3 -* @param {vec3_object} vec3 -* @param {bool} bool -* @return {cc.Physics3DHingeConstraint|cc.Physics3DHingeConstraint|cc.Physics3DHingeConstraint|cc.Physics3DHingeConstraint} -*/ -create : function( -physics3drigidbody, -physics3drigidbody, -vec3, -vec3, -vec3, -vec3, -bool -) -{ - return cc.Physics3DHingeConstraint; -}, - -/** - * @method Physics3DHingeConstraint - * @constructor - */ -Physics3DHingeConstraint : function ( -) -{ -}, - -}; - -/** - * @class Physics3DSliderConstraint - */ -jsb.Physics3DSliderConstraint = { - -/** - * @method setPoweredAngMotor - * @param {bool} arg0 - */ -setPoweredAngMotor : function ( -bool -) -{ -}, - -/** - * @method getDampingLimAng - * @return {float} - */ -getDampingLimAng : function ( -) -{ - return 0; -}, - -/** - * @method setRestitutionOrthoLin - * @param {float} arg0 - */ -setRestitutionOrthoLin : function ( -float -) -{ -}, - -/** - * @method setRestitutionDirLin - * @param {float} arg0 - */ -setRestitutionDirLin : function ( -float -) -{ -}, - -/** - * @method getLinearPos - * @return {float} - */ -getLinearPos : function ( -) -{ - return 0; -}, - -/** - * @method getFrameOffsetA - * @return {mat4_object} - */ -getFrameOffsetA : function ( -) -{ - return cc.Mat4; -}, - -/** - * @method getFrameOffsetB - * @return {mat4_object} - */ -getFrameOffsetB : function ( -) -{ - return cc.Mat4; -}, - -/** - * @method setPoweredLinMotor - * @param {bool} arg0 - */ -setPoweredLinMotor : function ( -bool -) -{ -}, - -/** - * @method getDampingDirAng - * @return {float} - */ -getDampingDirAng : function ( -) -{ - return 0; -}, - -/** - * @method getRestitutionLimLin - * @return {float} - */ -getRestitutionLimLin : function ( -) -{ - return 0; -}, - -/** - * @method getSoftnessOrthoAng - * @return {float} - */ -getSoftnessOrthoAng : function ( -) -{ - return 0; -}, - -/** - * @method setSoftnessOrthoLin - * @param {float} arg0 - */ -setSoftnessOrthoLin : function ( -float -) -{ -}, - -/** - * @method setSoftnessLimLin - * @param {float} arg0 - */ -setSoftnessLimLin : function ( -float -) -{ -}, - -/** - * @method getAngularPos - * @return {float} - */ -getAngularPos : function ( -) -{ - return 0; -}, - -/** - * @method setRestitutionLimAng - * @param {float} arg0 - */ -setRestitutionLimAng : function ( -float -) -{ -}, - -/** - * @method setUpperLinLimit - * @param {float} arg0 - */ -setUpperLinLimit : function ( -float -) -{ -}, - -/** - * @method setDampingDirLin - * @param {float} arg0 - */ -setDampingDirLin : function ( -float -) -{ -}, - -/** - * @method getUpperAngLimit - * @return {float} - */ -getUpperAngLimit : function ( -) -{ - return 0; -}, - -/** - * @method getDampingDirLin - * @return {float} - */ -getDampingDirLin : function ( -) -{ - return 0; -}, - -/** - * @method getSoftnessDirAng - * @return {float} - */ -getSoftnessDirAng : function ( -) -{ - return 0; -}, - -/** - * @method getPoweredAngMotor - * @return {bool} - */ -getPoweredAngMotor : function ( -) -{ - return false; -}, - -/** - * @method setLowerAngLimit - * @param {float} arg0 - */ -setLowerAngLimit : function ( -float -) -{ -}, - -/** - * @method setUpperAngLimit - * @param {float} arg0 - */ -setUpperAngLimit : function ( -float -) -{ -}, - -/** - * @method setTargetLinMotorVelocity - * @param {float} arg0 - */ -setTargetLinMotorVelocity : function ( -float -) -{ -}, - -/** - * @method setDampingLimAng - * @param {float} arg0 - */ -setDampingLimAng : function ( -float -) -{ -}, - -/** - * @method getRestitutionLimAng - * @return {float} - */ -getRestitutionLimAng : function ( -) -{ - return 0; -}, - -/** - * @method getUseFrameOffset - * @return {bool} - */ -getUseFrameOffset : function ( -) -{ - return false; -}, - -/** - * @method getSoftnessOrthoLin - * @return {float} - */ -getSoftnessOrthoLin : function ( -) -{ - return 0; -}, - -/** - * @method getDampingOrthoAng - * @return {float} - */ -getDampingOrthoAng : function ( -) -{ - return 0; -}, - -/** - * @method setUseFrameOffset - * @param {bool} arg0 - */ -setUseFrameOffset : function ( -bool -) -{ -}, - -/** - * @method setLowerLinLimit - * @param {float} arg0 - */ -setLowerLinLimit : function ( -float -) -{ -}, - -/** - * @method getRestitutionDirLin - * @return {float} - */ -getRestitutionDirLin : function ( -) -{ - return 0; -}, - -/** - * @method getTargetLinMotorVelocity - * @return {float} - */ -getTargetLinMotorVelocity : function ( -) -{ - return 0; -}, - -/** - * @method getLowerLinLimit - * @return {float} - */ -getLowerLinLimit : function ( -) -{ - return 0; -}, - -/** - * @method getSoftnessLimLin - * @return {float} - */ -getSoftnessLimLin : function ( -) -{ - return 0; -}, - -/** - * @method setDampingOrthoAng - * @param {float} arg0 - */ -setDampingOrthoAng : function ( -float -) -{ -}, - -/** - * @method setSoftnessDirAng - * @param {float} arg0 - */ -setSoftnessDirAng : function ( -float -) -{ -}, - -/** - * @method getPoweredLinMotor - * @return {bool} - */ -getPoweredLinMotor : function ( -) -{ - return false; -}, - -/** - * @method setRestitutionOrthoAng - * @param {float} arg0 - */ -setRestitutionOrthoAng : function ( -float -) -{ -}, - -/** - * @method setDampingDirAng - * @param {float} arg0 - */ -setDampingDirAng : function ( -float -) -{ -}, - -/** - * @method setFrames - * @param {mat4_object} arg0 - * @param {mat4_object} arg1 - */ -setFrames : function ( -mat4, -mat4 -) -{ -}, - -/** - * @method getRestitutionOrthoAng - * @return {float} - */ -getRestitutionOrthoAng : function ( -) -{ - return 0; -}, - -/** - * @method getMaxAngMotorForce - * @return {float} - */ -getMaxAngMotorForce : function ( -) -{ - return 0; -}, - -/** - * @method getDampingOrthoLin - * @return {float} - */ -getDampingOrthoLin : function ( -) -{ - return 0; -}, - -/** - * @method getUpperLinLimit - * @return {float} - */ -getUpperLinLimit : function ( -) -{ - return 0; -}, - -/** - * @method setMaxLinMotorForce - * @param {float} arg0 - */ -setMaxLinMotorForce : function ( -float -) -{ -}, - -/** - * @method getRestitutionOrthoLin - * @return {float} - */ -getRestitutionOrthoLin : function ( -) -{ - return 0; -}, - -/** - * @method setTargetAngMotorVelocity - * @param {float} arg0 - */ -setTargetAngMotorVelocity : function ( -float -) -{ -}, - -/** - * @method getSoftnessLimAng - * @return {float} - */ -getSoftnessLimAng : function ( -) -{ - return 0; -}, - -/** - * @method setRestitutionDirAng - * @param {float} arg0 - */ -setRestitutionDirAng : function ( -float -) -{ -}, - -/** - * @method getDampingLimLin - * @return {float} - */ -getDampingLimLin : function ( -) -{ - return 0; -}, - -/** - * @method getLowerAngLimit - * @return {float} - */ -getLowerAngLimit : function ( -) -{ - return 0; -}, - -/** - * @method getRestitutionDirAng - * @return {float} - */ -getRestitutionDirAng : function ( -) -{ - return 0; -}, - -/** - * @method getTargetAngMotorVelocity - * @return {float} - */ -getTargetAngMotorVelocity : function ( -) -{ - return 0; -}, - -/** - * @method setRestitutionLimLin - * @param {float} arg0 - */ -setRestitutionLimLin : function ( -float -) -{ -}, - -/** - * @method getMaxLinMotorForce - * @return {float} - */ -getMaxLinMotorForce : function ( -) -{ - return 0; -}, - -/** - * @method setDampingOrthoLin - * @param {float} arg0 - */ -setDampingOrthoLin : function ( -float -) -{ -}, - -/** - * @method setSoftnessOrthoAng - * @param {float} arg0 - */ -setSoftnessOrthoAng : function ( -float -) -{ -}, - -/** - * @method setDampingLimLin - * @param {float} arg0 - */ -setDampingLimLin : function ( -float -) -{ -}, - -/** - * @method setSoftnessDirLin - * @param {float} arg0 - */ -setSoftnessDirLin : function ( -float -) -{ -}, - -/** - * @method setMaxAngMotorForce - * @param {float} arg0 - */ -setMaxAngMotorForce : function ( -float -) -{ -}, - -/** - * @method getSoftnessDirLin - * @return {float} - */ -getSoftnessDirLin : function ( -) -{ - return 0; -}, - -/** - * @method setSoftnessLimAng - * @param {float} arg0 - */ -setSoftnessLimAng : function ( -float -) -{ -}, - -/** - * @method getUseLinearReferenceFrameA - * @return {bool} - */ -getUseLinearReferenceFrameA : function ( -) -{ - return false; -}, - -/** - * @method create - * @param {cc.Physics3DRigidBody} arg0 - * @param {cc.Physics3DRigidBody} arg1 - * @param {mat4_object} arg2 - * @param {mat4_object} arg3 - * @param {bool} arg4 - * @return {cc.Physics3DSliderConstraint} - */ -create : function ( -physics3drigidbody, -physics3drigidbody, -mat4, -mat4, -bool -) -{ - return cc.Physics3DSliderConstraint; -}, - -/** - * @method Physics3DSliderConstraint - * @constructor - */ -Physics3DSliderConstraint : function ( -) -{ -}, - -}; - -/** - * @class Physics3DConeTwistConstraint - */ -jsb.Physics3DConeTwistConstraint = { - -/** - * @method getBFrame - * @return {mat4_object} - */ -getBFrame : function ( -) -{ - return cc.Mat4; -}, - -/** - * @method setFixThresh - * @param {float} arg0 - */ -setFixThresh : function ( -float -) -{ -}, - -/** - * @method getFrameOffsetB - * @return {mat4_object} - */ -getFrameOffsetB : function ( -) -{ - return cc.Mat4; -}, - -/** - * @method getFrameOffsetA - * @return {mat4_object} - */ -getFrameOffsetA : function ( -) -{ - return cc.Mat4; -}, - -/** - * @method getFixThresh - * @return {float} - */ -getFixThresh : function ( -) -{ - return 0; -}, - -/** - * @method getSwingSpan2 - * @return {float} - */ -getSwingSpan2 : function ( -) -{ - return 0; -}, - -/** - * @method getSwingSpan1 - * @return {float} - */ -getSwingSpan1 : function ( -) -{ - return 0; -}, - -/** - * @method setMaxMotorImpulse - * @param {float} arg0 - */ -setMaxMotorImpulse : function ( -float -) -{ -}, - -/** - * @method setFrames - * @param {mat4_object} arg0 - * @param {mat4_object} arg1 - */ -setFrames : function ( -mat4, -mat4 -) -{ -}, - -/** - * @method getTwistAngle - * @return {float} - */ -getTwistAngle : function ( -) -{ - return 0; -}, - -/** - * @method GetPointForAngle - * @param {float} arg0 - * @param {float} arg1 - * @return {vec3_object} - */ -GetPointForAngle : function ( -float, -float -) -{ - return cc.Vec3; -}, - -/** - * @method setMaxMotorImpulseNormalized - * @param {float} arg0 - */ -setMaxMotorImpulseNormalized : function ( -float -) -{ -}, - -/** - * @method getTwistSpan - * @return {float} - */ -getTwistSpan : function ( -) -{ - return 0; -}, - -/** - * @method setDamping - * @param {float} arg0 - */ -setDamping : function ( -float -) -{ -}, - -/** - * @method setLimit - * @param {float} arg0 - * @param {float} arg1 - * @param {float} arg2 - * @param {float} arg3 - * @param {float} arg4 - * @param {float} arg5 - */ -setLimit : function ( -float, -float, -float, -float, -float, -float -) -{ -}, - -/** - * @method getAFrame - * @return {mat4_object} - */ -getAFrame : function ( -) -{ - return cc.Mat4; -}, - -/** - * @method enableMotor - * @param {bool} arg0 - */ -enableMotor : function ( -bool -) -{ -}, - -/** - * @method create -* @param {cc.Physics3DRigidBody|cc.Physics3DRigidBody} physics3drigidbody -* @param {cc.Physics3DRigidBody|mat4_object} physics3drigidbody -* @param {mat4_object} mat4 -* @param {mat4_object} mat4 -* @return {cc.Physics3DConeTwistConstraint|cc.Physics3DConeTwistConstraint} -*/ -create : function( -physics3drigidbody, -physics3drigidbody, -mat4, -mat4 -) -{ - return cc.Physics3DConeTwistConstraint; -}, - -/** - * @method Physics3DConeTwistConstraint - * @constructor - */ -Physics3DConeTwistConstraint : function ( -) -{ -}, - -}; - -/** - * @class Physics3D6DofConstraint - */ -jsb.Physics3D6DofConstraint = { - -/** - * @method setLinearLowerLimit - * @param {vec3_object} arg0 - */ -setLinearLowerLimit : function ( -vec3 -) -{ -}, - -/** - * @method getLinearLowerLimit - * @return {vec3_object} - */ -getLinearLowerLimit : function ( -) -{ - return cc.Vec3; -}, - -/** - * @method getAngularUpperLimit - * @return {vec3_object} - */ -getAngularUpperLimit : function ( -) -{ - return cc.Vec3; -}, - -/** - * @method getUseFrameOffset - * @return {bool} - */ -getUseFrameOffset : function ( -) -{ - return false; -}, - -/** - * @method getLinearUpperLimit - * @return {vec3_object} - */ -getLinearUpperLimit : function ( -) -{ - return cc.Vec3; -}, - -/** - * @method setAngularLowerLimit - * @param {vec3_object} arg0 - */ -setAngularLowerLimit : function ( -vec3 -) -{ -}, - -/** - * @method isLimited - * @param {int} arg0 - * @return {bool} - */ -isLimited : function ( -int -) -{ - return false; -}, - -/** - * @method setUseFrameOffset - * @param {bool} arg0 - */ -setUseFrameOffset : function ( -bool -) -{ -}, - -/** - * @method setLinearUpperLimit - * @param {vec3_object} arg0 - */ -setLinearUpperLimit : function ( -vec3 -) -{ -}, - -/** - * @method getAngularLowerLimit - * @return {vec3_object} - */ -getAngularLowerLimit : function ( -) -{ - return cc.Vec3; -}, - -/** - * @method setAngularUpperLimit - * @param {vec3_object} arg0 - */ -setAngularUpperLimit : function ( -vec3 -) -{ -}, - -/** - * @method create -* @param {cc.Physics3DRigidBody|cc.Physics3DRigidBody} physics3drigidbody -* @param {mat4_object|cc.Physics3DRigidBody} mat4 -* @param {bool|mat4_object} bool -* @param {mat4_object} mat4 -* @param {bool} bool -* @return {cc.Physics3D6DofConstraint|cc.Physics3D6DofConstraint} -*/ -create : function( -physics3drigidbody, -physics3drigidbody, -mat4, -mat4, -bool -) -{ - return cc.Physics3D6DofConstraint; -}, - -/** - * @method Physics3D6DofConstraint - * @constructor - */ -Physics3D6DofConstraint : function ( -) -{ -}, - -}; 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 6c57dea304..7d40d6b760 100644 --- a/native/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.cpp +++ b/native/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.cpp @@ -40179,6 +40179,26 @@ bool js_cocos2dx_MotionStreak_setTexture(JSContext *cx, uint32_t argc, jsval *vp JS_ReportError(cx, "js_cocos2dx_MotionStreak_setTexture : wrong number of arguments: %d, was expecting %d", argc, 1); return false; } +bool js_cocos2dx_MotionStreak_setMinSeg(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + bool ok = true; + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::MotionStreak* cobj = (cocos2d::MotionStreak *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_MotionStreak_setMinSeg : Invalid Native Object"); + if (argc == 1) { + double arg0 = 0; + ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_MotionStreak_setMinSeg : Error processing arguments"); + cobj->setMinSeg(arg0); + args.rval().setUndefined(); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_MotionStreak_setMinSeg : wrong number of arguments: %d, was expecting %d", argc, 1); + return false; +} bool js_cocos2dx_MotionStreak_getTexture(JSContext *cx, uint32_t argc, jsval *vp) { JS::CallArgs args = JS::CallArgsFromVp(argc, vp); @@ -40224,6 +40244,24 @@ bool js_cocos2dx_MotionStreak_tintWithColor(JSContext *cx, uint32_t argc, jsval JS_ReportError(cx, "js_cocos2dx_MotionStreak_tintWithColor : wrong number of arguments: %d, was expecting %d", argc, 1); return false; } +bool js_cocos2dx_MotionStreak_getMinSeg(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::MotionStreak* cobj = (cocos2d::MotionStreak *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_MotionStreak_getMinSeg : Invalid Native Object"); + if (argc == 0) { + double ret = cobj->getMinSeg(); + jsval jsret = JSVAL_NULL; + jsret = DOUBLE_TO_JSVAL(ret); + args.rval().set(jsret); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_MotionStreak_getMinSeg : wrong number of arguments: %d, was expecting %d", argc, 0); + return false; +} bool js_cocos2dx_MotionStreak_setBlendFunc(JSContext *cx, uint32_t argc, jsval *vp) { JS::CallArgs args = JS::CallArgsFromVp(argc, vp); @@ -40244,6 +40282,26 @@ bool js_cocos2dx_MotionStreak_setBlendFunc(JSContext *cx, uint32_t argc, jsval * JS_ReportError(cx, "js_cocos2dx_MotionStreak_setBlendFunc : wrong number of arguments: %d, was expecting %d", argc, 1); return false; } +bool js_cocos2dx_MotionStreak_setFadeTime(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + bool ok = true; + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::MotionStreak* cobj = (cocos2d::MotionStreak *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_MotionStreak_setFadeTime : Invalid Native Object"); + if (argc == 1) { + double arg0 = 0; + ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_MotionStreak_setFadeTime : Error processing arguments"); + cobj->setFadeTime(arg0); + args.rval().setUndefined(); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_MotionStreak_setFadeTime : wrong number of arguments: %d, was expecting %d", argc, 1); + return false; +} bool js_cocos2dx_MotionStreak_setStartingPositionInitialized(JSContext *cx, uint32_t argc, jsval *vp) { JS::CallArgs args = JS::CallArgsFromVp(argc, vp); @@ -40264,6 +40322,24 @@ bool js_cocos2dx_MotionStreak_setStartingPositionInitialized(JSContext *cx, uint JS_ReportError(cx, "js_cocos2dx_MotionStreak_setStartingPositionInitialized : wrong number of arguments: %d, was expecting %d", argc, 1); return false; } +bool js_cocos2dx_MotionStreak_getFadeTime(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::MotionStreak* cobj = (cocos2d::MotionStreak *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_MotionStreak_getFadeTime : Invalid Native Object"); + if (argc == 0) { + double ret = cobj->getFadeTime(); + jsval jsret = JSVAL_NULL; + jsret = DOUBLE_TO_JSVAL(ret); + args.rval().set(jsret); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_MotionStreak_getFadeTime : wrong number of arguments: %d, was expecting %d", argc, 0); + return false; +} bool js_cocos2dx_MotionStreak_getBlendFunc(JSContext *cx, uint32_t argc, jsval *vp) { JS::CallArgs args = JS::CallArgsFromVp(argc, vp); @@ -40615,10 +40691,14 @@ void js_register_cocos2dx_MotionStreak(JSContext *cx, JS::HandleObject global) { static JSFunctionSpec funcs[] = { JS_FN("reset", js_cocos2dx_MotionStreak_reset, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), JS_FN("setTexture", js_cocos2dx_MotionStreak_setTexture, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("setMinSeg", js_cocos2dx_MotionStreak_setMinSeg, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), JS_FN("getTexture", js_cocos2dx_MotionStreak_getTexture, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), JS_FN("tintWithColor", js_cocos2dx_MotionStreak_tintWithColor, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("getMinSeg", js_cocos2dx_MotionStreak_getMinSeg, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), JS_FN("setBlendFunc", js_cocos2dx_MotionStreak_setBlendFunc, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("setFadeTime", js_cocos2dx_MotionStreak_setFadeTime, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), JS_FN("setStartingPositionInitialized", js_cocos2dx_MotionStreak_setStartingPositionInitialized, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("getFadeTime", js_cocos2dx_MotionStreak_getFadeTime, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), JS_FN("getBlendFunc", js_cocos2dx_MotionStreak_getBlendFunc, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), JS_FN("isStartingPositionInitialized", js_cocos2dx_MotionStreak_isStartingPositionInitialized, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), JS_FN("isFastMode", js_cocos2dx_MotionStreak_isFastMode, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), diff --git a/native/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.hpp b/native/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.hpp index 48b3cd6a9d..4188f9b70d 100644 --- a/native/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.hpp +++ b/native/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.hpp @@ -2454,10 +2454,14 @@ void js_register_cocos2dx_MotionStreak(JSContext *cx, JS::HandleObject global); void register_all_cocos2dx(JSContext* cx, JS::HandleObject obj); bool js_cocos2dx_MotionStreak_reset(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_MotionStreak_setTexture(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_MotionStreak_setMinSeg(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_MotionStreak_getTexture(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_MotionStreak_tintWithColor(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_MotionStreak_getMinSeg(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_MotionStreak_setBlendFunc(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_MotionStreak_setFadeTime(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_MotionStreak_setStartingPositionInitialized(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_MotionStreak_getFadeTime(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_MotionStreak_getBlendFunc(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_MotionStreak_isStartingPositionInitialized(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_MotionStreak_isFastMode(JSContext *cx, uint32_t argc, jsval *vp);