From 390d31c5ed862722f809522c0a50cf85dcdb71b4 Mon Sep 17 00:00:00 2001 From: Zeqiang Li Date: Wed, 15 Dec 2021 13:34:56 +0800 Subject: [PATCH 01/45] remove redundant autoreleasepool (#4102) * remove redundant autoreleasepool * remove redundant declaration --- .../renderer/gfx-metal/MTLCommandBuffer.mm | 4 +--- native/cocos/renderer/gfx-metal/MTLDevice.h | 1 - native/cocos/renderer/gfx-metal/MTLDevice.mm | 17 +---------------- native/cocos/renderer/gfx-metal/MTLQueue.mm | 1 - 4 files changed, 2 insertions(+), 21 deletions(-) diff --git a/native/cocos/renderer/gfx-metal/MTLCommandBuffer.mm b/native/cocos/renderer/gfx-metal/MTLCommandBuffer.mm index 4898a05bcd..236d1ecee5 100644 --- a/native/cocos/renderer/gfx-metal/MTLCommandBuffer.mm +++ b/native/cocos/renderer/gfx-metal/MTLCommandBuffer.mm @@ -75,7 +75,6 @@ void CCMTLCommandBuffer::doDestroy() { if(_commandBufferBegan) { if(_gpuCommandBufferObj && _gpuCommandBufferObj->mtlCommandBuffer) { [_gpuCommandBufferObj->mtlCommandBuffer commit]; - [_gpuCommandBufferObj->mtlCommandBuffer release]; } _commandBufferBegan = false; } @@ -105,7 +104,7 @@ bool CCMTLCommandBuffer::isRenderingEntireDrawable(const Rect &rect, const CCMTL id CCMTLCommandBuffer::getMTLCommandBuffer() { if(!_gpuCommandBufferObj->mtlCommandBuffer) { auto *mtlQueue = static_cast(_queue)->gpuQueueObj()->mtlCommandQueue; - _gpuCommandBufferObj->mtlCommandBuffer = [[mtlQueue commandBuffer] retain]; + _gpuCommandBufferObj->mtlCommandBuffer = [mtlQueue commandBuffer]; [_gpuCommandBufferObj->mtlCommandBuffer enqueue]; } return _gpuCommandBufferObj->mtlCommandBuffer; @@ -933,7 +932,6 @@ void CCMTLCommandBuffer::copyTextureToBuffers(Texture *src, uint8_t *const *buff for(size_t i = 0; i < count; ++i) { memcpy(buffers[i], stagingAddrs[i].first, stagingAddrs[i].second); } - [commandBuffer release]; _texCopySemaphore->signal(); }]; [mtlCommandBuffer commit]; diff --git a/native/cocos/renderer/gfx-metal/MTLDevice.h b/native/cocos/renderer/gfx-metal/MTLDevice.h index 15b5aba7ba..f7f7c9877e 100644 --- a/native/cocos/renderer/gfx-metal/MTLDevice.h +++ b/native/cocos/renderer/gfx-metal/MTLDevice.h @@ -116,7 +116,6 @@ protected: void onMemoryWarning(); - void * _autoreleasePool = nullptr; void * _mtlCommandQueue = nullptr; void * _mtlDevice = nullptr; void * _activeDrawable = nullptr; diff --git a/native/cocos/renderer/gfx-metal/MTLDevice.mm b/native/cocos/renderer/gfx-metal/MTLDevice.mm index 854b6dad7e..bc51397e6a 100644 --- a/native/cocos/renderer/gfx-metal/MTLDevice.mm +++ b/native/cocos/renderer/gfx-metal/MTLDevice.mm @@ -164,11 +164,6 @@ void CCMTLDevice::doDestroy() { // } CC_DELETE(_gpuDeviceObj); - - if (_autoreleasePool) { - [(NSAutoreleasePool *)_autoreleasePool drain]; - _autoreleasePool = nullptr; - } CC_SAFE_DESTROY(_queryPool) CC_SAFE_DESTROY(_queue); @@ -206,10 +201,6 @@ void CCMTLDevice::acquire(Swapchain *const *swapchains, uint32_t count) { swapchain->acquire(); } - if (!_autoreleasePool) { - _autoreleasePool = [[NSAutoreleasePool alloc] init]; - // CC_LOG_INFO("POOL: %p ALLOCED", _autoreleasePool); - } // Clear queue stats CCMTLQueue *queue = static_cast(_queue); queue->gpuQueueObj()->numDrawCalls = 0; @@ -238,7 +229,7 @@ void CCMTLDevice::present() { // present drawable { - id cmdBuffer = [queue->gpuQueueObj()->mtlCommandQueue commandBufferWithUnretainedReferences]; + id cmdBuffer = [queue->gpuQueueObj()->mtlCommandQueue commandBuffer]; [cmdBuffer enqueue]; for (auto drawable : releaseQ) { @@ -250,12 +241,6 @@ void CCMTLDevice::present() { }]; [cmdBuffer commit]; } - - if (_autoreleasePool) { - // CC_LOG_INFO("POOL: %p RELEASED", _autoreleasePool); - [(NSAutoreleasePool *)_autoreleasePool drain]; - _autoreleasePool = nullptr; - } } void CCMTLDevice::onPresentCompleted() { diff --git a/native/cocos/renderer/gfx-metal/MTLQueue.mm b/native/cocos/renderer/gfx-metal/MTLQueue.mm index 8238166a7f..58afd2980a 100644 --- a/native/cocos/renderer/gfx-metal/MTLQueue.mm +++ b/native/cocos/renderer/gfx-metal/MTLQueue.mm @@ -73,7 +73,6 @@ void CCMTLQueue::submit(CommandBuffer *const *cmdBuffs, uint count) { _gpuQueueObj->numTriangles += cmdBuffer->getNumTris(); id mtlCmdBuffer = cmdBuffer->gpuCommandBufferObj()->mtlCommandBuffer; [mtlCmdBuffer commit]; - [mtlCmdBuffer release]; cmdBuffer->reset(); } } From 7b48873011b4918677de1d5344f1475db10fb508 Mon Sep 17 00:00:00 2001 From: minggo Date: Thu, 16 Dec 2021 13:40:37 +0800 Subject: [PATCH 02/45] Update config.json (#4104) --- native/external/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/external/config.json b/native/external/config.json index bf56b5dbc1..bb2249a89f 100644 --- a/native/external/config.json +++ b/native/external/config.json @@ -1,5 +1,5 @@ { - "version": "v3d-gfx-83", + "version": "v3d-gfx-84", "from": { "type": "github", "owner": "cocos-creator", From df01dd026a210d0dda374dd807b2d9909ea99290 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=9F=E6=88=98?= <40414978+PatriceJiang@users.noreply.github.com> Date: Thu, 16 Dec 2021 15:27:11 +0800 Subject: [PATCH 03/45] close uv_handle_t (#4106) --- .../cocos/bindings/manual/jsb_global_init.cpp | 22 ++++++++----------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/native/cocos/bindings/manual/jsb_global_init.cpp b/native/cocos/bindings/manual/jsb_global_init.cpp index 6056c434d2..28e8e62d12 100644 --- a/native/cocos/bindings/manual/jsb_global_init.cpp +++ b/native/cocos/bindings/manual/jsb_global_init.cpp @@ -68,21 +68,18 @@ static std::string removeFileExt(const std::string &filePath) { return filePath; } -static void remove_uv_tcp_cb(uv_handle_t *handle) { // NOLINT(readability-identifier-naming) - free(handle); -} - static int selectPort(int port) { struct sockaddr_in addr; - auto * server = static_cast(malloc(sizeof(uv_tcp_t))); - uv_loop_t *loop = uv_default_loop(); - int tryTimes = 200; - int startPort = port; - uv_tcp_init(loop, server); + static uv_tcp_t server; + uv_loop_t * loop = uv_loop_new(); + int tryTimes = 200; + int startPort = port; while (tryTimes-- > 0) { + uv_tcp_init(loop, &server); uv_ip4_addr("0.0.0.0", startPort, &addr); - uv_tcp_bind(server, reinterpret_cast(&addr), 0); - int r = uv_listen(reinterpret_cast(server), 5, nullptr); + uv_tcp_bind(&server, reinterpret_cast(&addr), 0); + int r = uv_listen(reinterpret_cast(&server), 5, nullptr); + uv_close(reinterpret_cast(&server), nullptr); if (r) { SE_LOGD("Failed to listen port %d, error: %s. Try next port\n", startPort, uv_strerror(r)); startPort += 1; @@ -90,8 +87,7 @@ static int selectPort(int port) { break; } } - uv_unref(reinterpret_cast(server)); - uv_close(reinterpret_cast(server), remove_uv_tcp_cb); + uv_loop_close(loop); return startPort; } From 4e231f4232ae760f47622edbca06c010566ea7b8 Mon Sep 17 00:00:00 2001 From: troublemaker52025 Date: Mon, 20 Dec 2021 10:34:23 +0800 Subject: [PATCH 04/45] updateLightingmap sync to native-engine for v3.4.1 (#4109) * updateLightingmap sync to native-engine for v3.4.1 --- native/cocos/scene/Model.cpp | 17 +++++++++++ native/cocos/scene/Model.h | 56 ++++++++++++++++++++---------------- 2 files changed, 49 insertions(+), 24 deletions(-) diff --git a/native/cocos/scene/Model.cpp b/native/cocos/scene/Model.cpp index 4413510783..336e38642d 100644 --- a/native/cocos/scene/Model.cpp +++ b/native/cocos/scene/Model.cpp @@ -79,6 +79,9 @@ void Model::updateUBOs(uint32_t stamp) { memcpy(bufferView.data() + pipeline::UBOLocal::MAT_WORLD_OFFSET, worldMatrix.m, sizeof(Mat4)); Mat4::inverseTranspose(worldMatrix, &mat4); memcpy(bufferView.data() + pipeline::UBOLocal::MAT_WORLD_IT_OFFSET, mat4.m, sizeof(Mat4)); + const float lightmapUVParam[4] = {_lightmapSettings._lightmapUVParam.x, _lightmapSettings._lightmapUVParam.y, + _lightmapSettings._lightmapUVParam.z, _lightmapSettings._lightmapUVParam.w}; + memcpy(bufferView.data() + pipeline::UBOLocal::LIGHTINGMAP_UVPARAM, lightmapUVParam, sizeof(lightmapUVParam)); _localBuffer->update(bufferView.data(), pipeline::UBOLocal::SIZE); const bool enableOcclusionQuery = pipeline::RenderPipeline::getInstance()->getOcclusionQueryEnabled(); @@ -88,6 +91,20 @@ void Model::updateUBOs(uint32_t stamp) { } } +void Model::updateLightingmap(const Vec4 &lightmapUVParam, gfx::Sampler *sampler, gfx::Texture *lightmap) { + _lightmapSettings._lightmapUVParam = lightmapUVParam; + _lightmapSettings._sampler = sampler; + _lightmapSettings._lightmap = lightmap; + for (const SubModel *subModel : _subModels) { + if (sampler && lightmap) { + gfx::DescriptorSet *descriptorSet = subModel->getDescriptorSet(); + descriptorSet->bindSampler(pipeline::LIGHTMAPTEXTURE::BINDING, sampler); + descriptorSet->bindTexture(pipeline::LIGHTMAPTEXTURE::BINDING, lightmap); + descriptorSet->update(); + } + } +} + void Model::updateWorldBoundUBOs() { if (_worldBoundBuffer) { std::array worldBoundBufferView; diff --git a/native/cocos/scene/Model.h b/native/cocos/scene/Model.h index 3792eb749c..9850663f3d 100644 --- a/native/cocos/scene/Model.h +++ b/native/cocos/scene/Model.h @@ -88,31 +88,33 @@ public: _instanceAttributes = attributes; _transformUpdated = true; } - inline void setOctreeNode(OctreeNode *node) { _octreeNode = node; } - inline void setScene(RenderScene *scene) { _scene = scene; if (scene) _transformUpdated = true; } + inline void setOctreeNode(OctreeNode * node) { _octreeNode = node; } + inline void setScene(RenderScene * scene) { _scene = scene; if (scene) _transformUpdated = true; } - inline bool getCastShadow() const { return _castShadow; } - inline bool getEnabled() const { return _enabled; } - inline int32_t getInstMatWorldIdx() const { return _instMatWorldIdx; } - inline const std::vector &getInstanceAttributes() const { return _instanceAttributes; } - inline InstancedAttributeBlock * getInstancedAttributeBlock() { return &_instanceAttributeBlock; } - inline uint8_t * getInstancedBuffer() const { return std::get<0>(_instancedBuffer); } - inline uint32_t getInstancedBufferSize() const { return std::get<1>(_instancedBuffer); } - inline gfx::Buffer * getLocalBuffer() const { return _localBuffer; } - inline gfx::Buffer * getWorldBoundBuffer() const { return _worldBoundBuffer; } - inline float * getLocalData() const { return _localData; } - inline const AABB & getModelBounds() const { return _modelBounds; } - inline Node * getNode() const { return _node; } - inline bool getReceiveShadow() const { return _receiveShadow; } - inline const std::vector & getSubModels() const { return _subModels; } - inline Node * getTransform() const { return _transform; } - inline bool getTransformUpdated() const { return _transformUpdated; } - inline int32_t getUpdatStamp() const { return _updateStamp; } - inline uint32_t getVisFlags() const { return _visFlags; } - inline AABB * getWorldBounds() const { return _worldBounds; } - inline ModelType getType() const { return _type; }; - inline OctreeNode * getOctreeNode() const { return _octreeNode; } - inline RenderScene * getScene() const { return _scene; } + inline bool getCastShadow() const { return _castShadow; } + inline bool getEnabled() const { return _enabled; } + inline int32_t getInstMatWorldIdx() const { return _instMatWorldIdx; } + inline const std::vector & getInstanceAttributes() const { return _instanceAttributes; } + inline InstancedAttributeBlock * getInstancedAttributeBlock() { return &_instanceAttributeBlock; } + inline uint8_t * getInstancedBuffer() const { return std::get<0>(_instancedBuffer); } + inline uint32_t getInstancedBufferSize() const { return std::get<1>(_instancedBuffer); } + inline gfx::Buffer * getLocalBuffer() const { return _localBuffer; } + inline gfx::Buffer * getWorldBoundBuffer() const { return _worldBoundBuffer; } + inline float * getLocalData() const { return _localData; } + inline const AABB & getModelBounds() const { return _modelBounds; } + inline Node * getNode() const { return _node; } + inline bool getReceiveShadow() const { return _receiveShadow; } + inline const std::vector & getSubModels() const { return _subModels; } + inline Node * getTransform() const { return _transform; } + inline bool getTransformUpdated() const { return _transformUpdated; } + inline int32_t getUpdatStamp() const { return _updateStamp; } + inline uint32_t getVisFlags() const { return _visFlags; } + inline AABB * getWorldBounds() const { return _worldBounds; } + inline ModelType getType() const { return _type; } + inline OctreeNode * getOctreeNode() const { return _octreeNode; } + inline RenderScene * getScene() const { return _scene; } + + void updateLightingmap(const Vec4 &lightmapUVParam, gfx::Sampler *sampler, gfx::Texture *lightmap); protected: ModelType _type{ModelType::DEFAULT}; @@ -140,6 +142,12 @@ private: std::vector _subModels; std::vector _instanceAttributes; static void uploadMat4AsVec4x3(const Mat4 &mat, float *v1, float *v2, float *v3); + + struct LightmapSettings { + Vec4 _lightmapUVParam; + gfx::Texture *_lightmap{nullptr}; + gfx::Sampler *_sampler{nullptr}; + } _lightmapSettings{}; }; } // namespace scene From f6e22b52da1553493ce00d7c96cd1b937b11dc30 Mon Sep 17 00:00:00 2001 From: Cocos Robot <48829427+cocos-robot@users.noreply.github.com> Date: Mon, 20 Dec 2021 10:46:14 +0800 Subject: [PATCH 05/45] [ci skip][AUTO]: Automated genbindings update: 6fc87e9f802187bcabcc24b4c0e00b79abd27412 (#4109) (#4112) Co-authored-by: cocos-robot --- native/cocos/bindings/auto/jsb_scene_auto.cpp | 24 +++++++++++++++++++ native/cocos/bindings/auto/jsb_scene_auto.h | 1 + 2 files changed, 25 insertions(+) diff --git a/native/cocos/bindings/auto/jsb_scene_auto.cpp b/native/cocos/bindings/auto/jsb_scene_auto.cpp index a6a324c9f2..5ac2cb15d8 100644 --- a/native/cocos/bindings/auto/jsb_scene_auto.cpp +++ b/native/cocos/bindings/auto/jsb_scene_auto.cpp @@ -2067,6 +2067,29 @@ static bool js_scene_Model_setWorldBoundBuffer(se::State& s) // NOLINT(readabili } SE_BIND_FUNC(js_scene_Model_setWorldBoundBuffer) +static bool js_scene_Model_updateLightingmap(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_scene_Model_updateLightingmap : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 3) { + HolderType arg0 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); + ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); + ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_scene_Model_updateLightingmap : Error processing arguments"); + cobj->updateLightingmap(arg0.value(), arg1.value(), arg2.value()); + return true; + } + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 3); + return false; +} +SE_BIND_FUNC(js_scene_Model_updateLightingmap) + static bool js_scene_Model_updateTransform(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); @@ -2177,6 +2200,7 @@ bool js_register_scene_Model(se::Object* obj) // NOLINT(readability-identifier-n cls->defineFunction("setSubModel", _SE(js_scene_Model_setSubModel)); cls->defineFunction("setTransform", _SE(js_scene_Model_setTransform)); cls->defineFunction("setWorldBoundBuffer", _SE(js_scene_Model_setWorldBoundBuffer)); + cls->defineFunction("updateLightingmap", _SE(js_scene_Model_updateLightingmap)); cls->defineFunction("updateTransform", _SE(js_scene_Model_updateTransform)); cls->defineFunction("updateUBOs", _SE(js_scene_Model_updateUBOs)); cls->defineFunction("updateWorldBoundUBOs", _SE(js_scene_Model_updateWorldBoundUBOs)); diff --git a/native/cocos/bindings/auto/jsb_scene_auto.h b/native/cocos/bindings/auto/jsb_scene_auto.h index b8a0f8e0f7..e58ff871f7 100644 --- a/native/cocos/bindings/auto/jsb_scene_auto.h +++ b/native/cocos/bindings/auto/jsb_scene_auto.h @@ -187,6 +187,7 @@ SE_DECLARE_FUNC(js_scene_Model_setReceiveShadow); SE_DECLARE_FUNC(js_scene_Model_setSubModel); SE_DECLARE_FUNC(js_scene_Model_setTransform); SE_DECLARE_FUNC(js_scene_Model_setWorldBoundBuffer); +SE_DECLARE_FUNC(js_scene_Model_updateLightingmap); SE_DECLARE_FUNC(js_scene_Model_updateTransform); SE_DECLARE_FUNC(js_scene_Model_updateUBOs); SE_DECLARE_FUNC(js_scene_Model_updateWorldBoundUBOs); From c489a8a25477a00bc170188f73f62adf25582916 Mon Sep 17 00:00:00 2001 From: timlyeee <43355299+timlyeee@users.noreply.github.com> Date: Mon, 20 Dec 2021 15:01:18 +0800 Subject: [PATCH 06/45] Remove origin code for twice call to java method. (#4114) * remove use of cc::Device::getDeviceOrientation(), which will call java method again rather than jint rotation. * Use switch and change it to cc::Device::Orientation, because ROTATION only defined on Android and OHOS. --- .../java/jni/JniCocosOrientationHelper.cpp | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/native/cocos/platform/java/jni/JniCocosOrientationHelper.cpp b/native/cocos/platform/java/jni/JniCocosOrientationHelper.cpp index 5436ab264e..d24fefdb3c 100644 --- a/native/cocos/platform/java/jni/JniCocosOrientationHelper.cpp +++ b/native/cocos/platform/java/jni/JniCocosOrientationHelper.cpp @@ -28,9 +28,19 @@ #include "platform/java/jni/JniHelper.h" extern "C" { -//NOLINTNEXTLINE +// NOLINTNEXTLINE JNIEXPORT void JNICALL Java_com_cocos_lib_CocosOrientationHelper_nativeOnOrientationChanged(JNIEnv *env, jobject thiz, jint rotation) { - auto orientation = cc::Device::getDeviceOrientation(); - cc::EventDispatcher::dispatchOrientationChangeEvent((int)orientation); + int orientation; + switch (rotation) { + case 0://ROTATION_0 + orientation = (int)cc::Device::Orientation::PORTRAIT; + case 1://ROTATION_90 + orientation = (int)cc::Device::Orientation::LANDSCAPE_RIGHT; + case 2://ROTATION_180 + orientation = (int)cc::Device::Orientation::PORTRAIT_UPSIDE_DOWN; + case 3://ROTATION_270 + orientation = (int)cc::Device::Orientation::LANDSCAPE_LEFT; + } + cc::EventDispatcher::dispatchOrientationChangeEvent(orientation); } } From ff533953ab4cf77dea753898b586937bdfa49f4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=9F=E6=88=98?= <40414978+PatriceJiang@users.noreply.github.com> Date: Tue, 21 Dec 2021 15:50:45 +0800 Subject: [PATCH 07/45] allow tick() in background (#4083) --- .../platform/android/jni/JniCocosActivity.cpp | 35 +++++++++++++++---- 1 file changed, 29 insertions(+), 6 deletions(-) diff --git a/native/cocos/platform/android/jni/JniCocosActivity.cpp b/native/cocos/platform/android/jni/JniCocosActivity.cpp index cc9e3ddfe5..7d99540274 100644 --- a/native/cocos/platform/android/jni/JniCocosActivity.cpp +++ b/native/cocos/platform/android/jni/JniCocosActivity.cpp @@ -67,6 +67,28 @@ int readCommand(int8_t &cmd) { return read(pipeRead, &cmd, sizeof(cmd)); } +int readCommandWithTimeout(int8_t &cmd, int delayMS) { + if (delayMS > 0) { + static fd_set fdSet; + static timeval timeout; + + timeout = {delayMS / 1000, (delayMS % 1000) * 1000}; + FD_ZERO(&fdSet); + FD_SET(pipeRead, &fdSet); + + auto ret = select(pipeRead + 1, &fdSet, nullptr, nullptr, &timeout); + if (ret < 0) { + LOGV("failed to run select(..): %s\n", strerror(errno)); + return ret; + } + + if (ret == 0) { + return 0; + } + } + return read(pipeRead, &cmd, sizeof(cmd)); +} + void handlePauseResume(int8_t cmd) { LOGV("appState=%d", cmd); std::unique_lock lk(cc::cocosApp.mutex); @@ -130,19 +152,20 @@ void glThreadEntry() { lk.unlock(); cc::cocosApp.cond.notify_all(); - int8_t cmd = 0; + int8_t cmd = 0; + bool runInLowRate = false; while (true) { - if (readCommand(cmd) > 0) { + + runInLowRate = !cc::cocosApp.animating || APP_CMD_PAUSE == cc::cocosApp.appState; + + if (readCommandWithTimeout(cmd, runInLowRate ? 100 : 0) > 0) { preExecCmd(cmd); cc::View::engineHandleCmd(cmd); postExecCmd(cmd); } - if (!cc::cocosApp.animating || APP_CMD_PAUSE == cc::cocosApp.appState) { - std::this_thread::yield(); - } - if (game && cc::cocosApp.animating) { + if (game) { // Handle java events send by UI thread. Input events are handled here too. cc::JniHelper::callStaticVoidMethod("com.cocos.lib.CocosHelper", "flushTasksOnGameThread"); From db9b17a45ea4ea5fdc0cf8c9f20ebdce32cee472 Mon Sep 17 00:00:00 2001 From: jk20012001 Date: Fri, 24 Dec 2021 11:01:58 +0800 Subject: [PATCH 08/45] Fix #10538: Android+WebGL PS struct variables has mediump precision (#4120) --- native/cocos/renderer/pipeline/RenderPipeline.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/native/cocos/renderer/pipeline/RenderPipeline.cpp b/native/cocos/renderer/pipeline/RenderPipeline.cpp index 5b66f89974..9c7861e567 100644 --- a/native/cocos/renderer/pipeline/RenderPipeline.cpp +++ b/native/cocos/renderer/pipeline/RenderPipeline.cpp @@ -286,6 +286,8 @@ void RenderPipeline::generateConstantMacros() { #define CC_DEVICE_MAX_VERTEX_UNIFORM_VECTORS %d #define CC_DEVICE_MAX_FRAGMENT_UNIFORM_VECTORS %d #define CC_DEVICE_CAN_BENEFIT_FROM_INPUT_ATTACHMENT %d +#define CC_PLATFORM_ANDROID_AND_WEBGL 0 +#define CC_ENABLE_WEBGL_HIGHP_STRUCT_VALUES 0 )", _device->hasFeature(gfx::Feature::TEXTURE_FLOAT) ? 1 : 0, _clusterEnabled ? 1 : 0, From c418fa88936629ff14673f1e0e122b02910f2445 Mon Sep 17 00:00:00 2001 From: troublemaker52025 Date: Fri, 24 Dec 2021 14:38:36 +0800 Subject: [PATCH 09/45] fix shadow queue performance for v3.4.1 (#4119) * fix shadow queue performance for v3.4.1 --- .../renderer/pipeline/ShadowMapBatchedQueue.cpp | 17 +++++++++-------- .../renderer/pipeline/ShadowMapBatchedQueue.h | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/native/cocos/renderer/pipeline/ShadowMapBatchedQueue.cpp b/native/cocos/renderer/pipeline/ShadowMapBatchedQueue.cpp index 5b8e31dff9..5bdcfb20b4 100644 --- a/native/cocos/renderer/pipeline/ShadowMapBatchedQueue.cpp +++ b/native/cocos/renderer/pipeline/ShadowMapBatchedQueue.cpp @@ -53,14 +53,15 @@ void ShadowMapBatchedQueue::gatherLightPasses(const scene::Camera *camera, const const PipelineSceneData *sceneData = _pipeline->getPipelineSceneData(); const scene::Shadow * shadowInfo = sceneData->getSharedData()->shadow; - const RenderObjectList & dirShadowObjects = sceneData->getDirShadowObjects(); - const RenderObjectList & castShadowObjects = sceneData->getCastShadowObjects(); if (light && shadowInfo->enabled && shadowInfo->shadowType == scene::ShadowType::SHADOWMAP) { + const RenderObjectList &dirShadowObjects = sceneData->getDirShadowObjects(); + const RenderObjectList &castShadowObjects = sceneData->getCastShadowObjects(); + switch (light->getType()) { case scene::LightType::DIRECTIONAL: { for (const auto ro : dirShadowObjects) { const auto *model = ro.model; - add(model, cmdBuffer); + add(model); } } break; @@ -80,7 +81,7 @@ void ShadowMapBatchedQueue::gatherLightPasses(const scene::Camera *camera, const if (model->getWorldBounds()) { model->getWorldBounds()->transform(matShadowViewProj, &ab); if (ab.aabbFrustum(camera->frustum)) { - add(model, cmdBuffer); + add(model); } } } @@ -95,6 +96,9 @@ void ShadowMapBatchedQueue::gatherLightPasses(const scene::Camera *camera, const default: { } break; } + + _instancedQueue->uploadBuffers(cmdBuffer); + _batchedQueue->uploadBuffers(cmdBuffer); } } @@ -106,7 +110,7 @@ void ShadowMapBatchedQueue::clear() { if (_batchedQueue) _batchedQueue->clear(); } -void ShadowMapBatchedQueue::add(const scene::Model *model, gfx::CommandBuffer *cmdBuffer) { +void ShadowMapBatchedQueue::add(const scene::Model *model) { // this assumes light pass index is the same for all subModels const auto shadowPassIdx = getShadowPassIndex(model); if (shadowPassIdx == -1) { @@ -131,9 +135,6 @@ void ShadowMapBatchedQueue::add(const scene::Model *model, gfx::CommandBuffer *c _passes.emplace_back(pass); } } - - _instancedQueue->uploadBuffers(cmdBuffer); - _batchedQueue->uploadBuffers(cmdBuffer); } void ShadowMapBatchedQueue::recordCommandBuffer(gfx::Device *device, gfx::RenderPass *renderPass, gfx::CommandBuffer *cmdBuffer) const { diff --git a/native/cocos/renderer/pipeline/ShadowMapBatchedQueue.h b/native/cocos/renderer/pipeline/ShadowMapBatchedQueue.h index 1303fd9055..aedc039ca7 100644 --- a/native/cocos/renderer/pipeline/ShadowMapBatchedQueue.h +++ b/native/cocos/renderer/pipeline/ShadowMapBatchedQueue.h @@ -48,7 +48,7 @@ public: void clear(); void gatherLightPasses(const scene::Camera *, const scene::Light *, gfx::CommandBuffer *); - void add(const scene::Model *, gfx::CommandBuffer *); + void add(const scene::Model *); void recordCommandBuffer(gfx::Device *, gfx::RenderPass *, gfx::CommandBuffer *) const; private: From 4462b96617b5ac195db7183c3355f16e3dcf8954 Mon Sep 17 00:00:00 2001 From: Greg1129 <95199410+Greg1129@users.noreply.github.com> Date: Fri, 24 Dec 2021 14:39:12 +0800 Subject: [PATCH 10/45] issue 10384 memory leak fix (#4115) * issue 10384 memory leak fix --- native/cocos/base/AutoreleasePool.cpp | 12 +++++----- .../cocos/bindings/event/EventDispatcher.cpp | 14 +++++------ .../renderer/pipeline/PipelineSceneData.h | 4 ++++ .../cocos/renderer/pipeline/SceneCulling.cpp | 24 ++++++++----------- native/cocos/scene/SkinningModel.cpp | 8 +++++-- native/cocos/scene/SkinningModel.h | 1 + 6 files changed, 34 insertions(+), 29 deletions(-) diff --git a/native/cocos/base/AutoreleasePool.cpp b/native/cocos/base/AutoreleasePool.cpp index 95a589e5fc..87b0c6c6cb 100644 --- a/native/cocos/base/AutoreleasePool.cpp +++ b/native/cocos/base/AutoreleasePool.cpp @@ -30,7 +30,7 @@ namespace cc { -LegacyAutoreleasePool::LegacyAutoreleasePool() +LegacyAutoreleasePool::LegacyAutoreleasePool() //NOLINT(misc-no-recursion) #if defined(CC_DEBUG) && (CC_DEBUG > 0) : _isClearing(false) #endif @@ -58,7 +58,7 @@ LegacyAutoreleasePool::~LegacyAutoreleasePool() { } void LegacyAutoreleasePool::addObject(Ref *object) { - _managedObjectArray.push_back(object); + _managedObjectArray.emplace_back(object); } void LegacyAutoreleasePool::clear() { @@ -76,7 +76,7 @@ void LegacyAutoreleasePool::clear() { } bool LegacyAutoreleasePool::contains(Ref *object) const { - for (const auto &obj : _managedObjectArray) { + for (const auto &obj : _managedObjectArray) {//NOLINT(readability-use-anyofallof) if (obj == object) { return true; } @@ -101,7 +101,7 @@ void LegacyAutoreleasePool::dump() { PoolManager *PoolManager::_singleInstance = nullptr; -PoolManager *PoolManager::getInstance() { +PoolManager *PoolManager::getInstance() {//NOLINT(misc-no-recursion) if (_singleInstance == nullptr) { _singleInstance = new (std::nothrow) PoolManager(); _singleInstance->push(new LegacyAutoreleasePool()); @@ -136,7 +136,7 @@ LegacyAutoreleasePool *PoolManager::getCurrentPool() const { } bool PoolManager::isObjectInPools(Ref *obj) const { - for (const auto &pool : _releasePoolStack) { + for (const auto &pool : _releasePoolStack) {//NOLINT(readability-use-anyofallof) if (pool->contains(obj)) { return true; } @@ -145,7 +145,7 @@ bool PoolManager::isObjectInPools(Ref *obj) const { } void PoolManager::push(LegacyAutoreleasePool *pool) { - _releasePoolStack.push_back(pool); + _releasePoolStack.emplace_back(pool); } void PoolManager::pop() { diff --git a/native/cocos/bindings/event/EventDispatcher.cpp b/native/cocos/bindings/event/EventDispatcher.cpp index 352ecda6f4..b4cc3756d2 100644 --- a/native/cocos/bindings/event/EventDispatcher.cpp +++ b/native/cocos/bindings/event/EventDispatcher.cpp @@ -106,7 +106,7 @@ void EventDispatcher::dispatchTouchEvent(const struct TouchEvent &touchEvent) { while (jsTouchObjPool.size() < touchEvent.touches.size()) { se::Object *touchObj = se::Object::createPlainObject(); touchObj->root(); - jsTouchObjPool.push_back(touchObj); + jsTouchObjPool.emplace_back(touchObj); } uint32_t touchIndex = 0; @@ -143,7 +143,7 @@ void EventDispatcher::dispatchTouchEvent(const struct TouchEvent &touchEvent) { } se::ValueArray args; - args.push_back(se::Value(jsTouchObjArray)); + args.emplace_back(se::Value(jsTouchObjArray)); EventDispatcher::doDispatchEvent(nullptr, eventName, args); } @@ -194,7 +194,7 @@ void EventDispatcher::dispatchMouseEvent(const struct MouseEvent &mouseEvent) { } se::ValueArray args; - args.push_back(se::Value(jsMouseEventObj)); + args.emplace_back(se::Value(jsMouseEventObj)); EventDispatcher::doDispatchEvent(eventName, jsFunctionName, args); } @@ -226,7 +226,7 @@ void EventDispatcher::dispatchKeyboardEvent(const struct KeyboardEvent &keyboard jsKeyboardEventObj->setProperty("repeat", se::Value(keyboardEvent.action == KeyboardEvent::Action::REPEAT)); jsKeyboardEventObj->setProperty("keyCode", se::Value(keyboardEvent.key)); se::ValueArray args; - args.push_back(se::Value(jsKeyboardEventObj)); + args.emplace_back(se::Value(jsKeyboardEventObj)); EventDispatcher::doDispatchEvent(nullptr, eventName, args); } @@ -245,7 +245,7 @@ void EventDispatcher::dispatchTickEvent(float /*dt*/) { se::ValueArray args; int64_t milliSeconds = std::chrono::duration_cast(prevTime - se::ScriptEngine::getInstance()->getStartTime()).count(); - args.push_back(se::Value(static_cast(milliSeconds))); + args.emplace_back(se::Value(static_cast(milliSeconds))); tickVal.toObject()->call(args, nullptr); } @@ -260,7 +260,7 @@ void EventDispatcher::dispatchResizeEvent(int width, int height) { jsResizeEventObj->setProperty("width", se::Value(width)); jsResizeEventObj->setProperty("height", se::Value(height)); se::ValueArray args; - args.push_back(se::Value(jsResizeEventObj)); + args.emplace_back(se::Value(jsResizeEventObj)); EventDispatcher::doDispatchEvent(EVENT_RESIZE, "onResize", args); } @@ -283,7 +283,7 @@ void EventDispatcher::dispatchOrientationChangeEvent(int orientation) { jsOrientationEventObj->setProperty("orientation", se::Value(orientation)); se::ValueArray args; - args.push_back(se::Value(jsOrientationEventObj)); + args.emplace_back(se::Value(jsOrientationEventObj)); func.toObject()->call(args, nullptr); } } diff --git a/native/cocos/renderer/pipeline/PipelineSceneData.h b/native/cocos/renderer/pipeline/PipelineSceneData.h index d8c6f2a8cb..0084a2bb4a 100644 --- a/native/cocos/renderer/pipeline/PipelineSceneData.h +++ b/native/cocos/renderer/pipeline/PipelineSceneData.h @@ -67,6 +67,10 @@ public: inline void setMatShadowProj(const Mat4 &matShadowProj) { _matShadowProj = matShadowProj; } inline Mat4 getMatShadowViewProj() const { return _matShadowViewProj; } inline void setMatShadowViewProj(const Mat4 &matShadowViewProj) { _matShadowViewProj = matShadowViewProj; } + inline void addRenderObject(RenderObject &&obj) { _renderObjects.emplace_back(obj); } + inline void clearRenderObjects() { _renderObjects.clear(); } + inline void addValidPunctualLight(scene::Light *light) { _validPunctualLights.emplace_back(light); } + inline void clearValidPunctualLights() { _validPunctualLights.clear(); } private: RenderObjectList _renderObjects; diff --git a/native/cocos/renderer/pipeline/SceneCulling.cpp b/native/cocos/renderer/pipeline/SceneCulling.cpp index 1a8f74fa94..af91f57b68 100644 --- a/native/cocos/renderer/pipeline/SceneCulling.cpp +++ b/native/cocos/renderer/pipeline/SceneCulling.cpp @@ -146,8 +146,7 @@ void updateDirLight(scene::Shadow *shadows, const scene::Light *light, std::arra void validPunctualLightsCulling(RenderPipeline *pipeline, scene::Camera *camera) { const auto *const scene = camera->scene; PipelineSceneData * sceneData = pipeline->getPipelineSceneData(); - vector validPunctualLights = sceneData->getValidPunctualLights(); - validPunctualLights.clear(); + sceneData->clearValidPunctualLights(); scene::Sphere sphere; for (auto *light : scene->getSpotLights()) { @@ -158,7 +157,7 @@ void validPunctualLightsCulling(RenderPipeline *pipeline, scene::Camera *camera) sphere.setCenter(light->getPosition()); sphere.setRadius(light->getRange()); if (sphere.sphereFrustum(camera->frustum)) { - validPunctualLights.emplace_back(static_cast(light)); + sceneData->addValidPunctualLight(static_cast(light)); } } @@ -170,11 +169,9 @@ void validPunctualLightsCulling(RenderPipeline *pipeline, scene::Camera *camera) sphere.setCenter(light->getPosition()); sphere.setRadius(light->getRange()); if (sphere.sphereFrustum(camera->frustum)) { - validPunctualLights.emplace_back(static_cast(light)); + sceneData->addValidPunctualLight(static_cast(light)); } } - - sceneData->setValidPunctualLights(std::move(validPunctualLights)); } Mat4 getCameraWorldMatrix(const scene::Camera *camera) { @@ -323,11 +320,12 @@ void sceneCulling(RenderPipeline *pipeline, scene::Camera *camera) { } } - RenderObjectList renderObjects; + sceneData->clearRenderObjects(); + RenderObjectList castShadowObject; if (skyBox->enabled && skyBox->model && (camera->clearFlag & skyboxFlag)) { - renderObjects.emplace_back(genRenderObject(skyBox->model, camera)); + sceneData->addRenderObject(genRenderObject(skyBox->model, camera)); } const scene::Octree *octree = scene->getOctree(); @@ -346,7 +344,7 @@ void sceneCulling(RenderPipeline *pipeline, scene::Camera *camera) { (visibility & model->getVisFlags())) { const auto *modelWorldBounds = model->getWorldBounds(); if (!modelWorldBounds && skyBox->model != model) { - renderObjects.emplace_back(genRenderObject(model, camera)); + sceneData->addRenderObject(genRenderObject(model, camera)); } } } @@ -369,7 +367,7 @@ void sceneCulling(RenderPipeline *pipeline, scene::Camera *camera) { models.reserve(scene->getModels().size() / 4); octree->queryVisibility(camera, camera->frustum, false, models); for (const auto *model : models) { - renderObjects.emplace_back(genRenderObject(model, camera)); + sceneData->addRenderObject(genRenderObject(model, camera)); } } else { scene::AABB ab; @@ -388,7 +386,7 @@ void sceneCulling(RenderPipeline *pipeline, scene::Camera *camera) { (visibility & model->getVisFlags())) { const auto *modelWorldBounds = model->getWorldBounds(); if (!modelWorldBounds) { - renderObjects.emplace_back(genRenderObject(model, camera)); + sceneData->addRenderObject(genRenderObject(model, camera)); continue; } @@ -408,7 +406,7 @@ void sceneCulling(RenderPipeline *pipeline, scene::Camera *camera) { // frustum culling if (modelWorldBounds->aabbFrustum(camera->frustum)) { - renderObjects.emplace_back(genRenderObject(model, camera)); + sceneData->addRenderObject(genRenderObject(model, camera)); } } } @@ -419,8 +417,6 @@ void sceneCulling(RenderPipeline *pipeline, scene::Camera *camera) { sceneData->setDirShadowObjects(std::move(dirShadowObjects)); sceneData->setCastShadowObjects(std::move(castShadowObject)); } - - sceneData->setRenderObjects(std::move(renderObjects)); } } // namespace pipeline diff --git a/native/cocos/scene/SkinningModel.cpp b/native/cocos/scene/SkinningModel.cpp index 3dfeb8bb4b..7759c7db91 100644 --- a/native/cocos/scene/SkinningModel.cpp +++ b/native/cocos/scene/SkinningModel.cpp @@ -30,12 +30,16 @@ namespace cc { namespace scene { + + std::vector SkinningModel::transStacks; + void SkinningModel::updateWorldMatrix(JointInfo* info, uint32_t stamp) { + transStacks.clear(); + int i = -1; _worldMatrix.setIdentity(); auto* currTransform = &info->transform; auto parentSize = static_cast(info->parents.size()); - std::vector transStacks; while (currTransform->node) { if ((currTransform->stamp == stamp || currTransform->stamp + 1 == stamp) && !currTransform->node->getFlagsChanged()) { _worldMatrix.set(currTransform->world); @@ -43,7 +47,7 @@ void SkinningModel::updateWorldMatrix(JointInfo* info, uint32_t stamp) { break; } currTransform->stamp = stamp; - transStacks.push_back(currTransform); + transStacks.emplace_back(currTransform); i++; if (i >= parentSize) { break; diff --git a/native/cocos/scene/SkinningModel.h b/native/cocos/scene/SkinningModel.h index 3a5f381c95..d2ef643c98 100644 --- a/native/cocos/scene/SkinningModel.h +++ b/native/cocos/scene/SkinningModel.h @@ -90,6 +90,7 @@ private: std::vector _buffers; std::vector _joints; std::vector *> _dataArray; + static std::vector transStacks; }; } // namespace scene From d65a00dee7a2d868e0e9b375aab3a2f6d4e5f74a Mon Sep 17 00:00:00 2001 From: troublemaker52025 Date: Tue, 28 Dec 2021 11:15:32 +0800 Subject: [PATCH 11/45] Optimize fixedArea mode culling process for v3.4.1 (#4124) --- .../cocos/renderer/pipeline/PipelineUBO.cpp | 58 ++---- .../cocos/renderer/pipeline/SceneCulling.cpp | 179 ++++++++++-------- 2 files changed, 114 insertions(+), 123 deletions(-) diff --git a/native/cocos/renderer/pipeline/PipelineUBO.cpp b/native/cocos/renderer/pipeline/PipelineUBO.cpp index 86a8a21fec..b3074acce0 100644 --- a/native/cocos/renderer/pipeline/PipelineUBO.cpp +++ b/native/cocos/renderer/pipeline/PipelineUBO.cpp @@ -176,29 +176,18 @@ void PipelineUBO::updateShadowUBOView(const RenderPipeline *pipeline, std::array if (shadowInfo->enabled) { if (mainLight && shadowInfo->shadowType == scene::ShadowType::SHADOWMAP) { + const Mat4 &matShadowView = sceneData->getMatShadowView(); + const Mat4 &matShadowProj = sceneData->getMatShadowProj(); + const Mat4 &matShadowViewProj = sceneData->getMatShadowViewProj(); + float nearClamp; float farClamp; - Mat4 matShadowView; - Mat4 matShadowProj; - Mat4 matShadowViewProj; - if (!shadowInfo->fixedArea) { - nearClamp = shadowInfo->nearValue; - farClamp = sceneData->getShadowCameraFar(); - matShadowView = sceneData->getMatShadowView(); - matShadowProj = sceneData->getMatShadowProj(); - matShadowViewProj = sceneData->getMatShadowViewProj(); + if (shadowInfo->fixedArea) { + nearClamp = shadowInfo->nearValue; + farClamp = shadowInfo->farValue; } else { - const auto *node = mainLight->getNode(); - matShadowView = node->getWorldMatrix().getInversed(); - const float x = shadowInfo->orthoSize; - const float y = shadowInfo->orthoSize; - nearClamp = shadowInfo->nearValue; - farClamp = shadowInfo->farValue; - const float projectionSinY = device->getCapabilities().clipSpaceSignY; - const float clipSpaceMinZ = device->getCapabilities().clipSpaceMinZ; - Mat4::createOrthographicOffCenter(-x, x, -y, y, -nearClamp, - farClamp, clipSpaceMinZ, projectionSinY, &matShadowProj); - matShadowViewProj = matShadowProj * matShadowView; + nearClamp = shadowInfo->nearValue; + farClamp = sceneData->getShadowCameraFar(); } memcpy(shadowUBO.data() + UBOShadow::MAT_LIGHT_VIEW_OFFSET, matShadowView.m, sizeof(matShadowView)); @@ -241,29 +230,18 @@ void PipelineUBO::updateShadowUBOLightView(const RenderPipeline *pipeline, std:: const float packing = hFTexture ? 0.0F : 1.0F; switch (light->getType()) { case scene::LightType::DIRECTIONAL: { + const Mat4 &matShadowView = sceneData->getMatShadowView(); + const Mat4 &matShadowProj = sceneData->getMatShadowProj(); + const Mat4 &matShadowViewProj = sceneData->getMatShadowViewProj(); + float nearClamp; float farClamp; - Mat4 matShadowView; - Mat4 matShadowProj; - Mat4 matShadowViewProj; - if (!shadowInfo->fixedArea) { - nearClamp = 0.1F; - farClamp = sceneData->getShadowCameraFar(); - matShadowView = sceneData->getMatShadowView(); - matShadowProj = sceneData->getMatShadowProj(); - matShadowViewProj = sceneData->getMatShadowViewProj(); + if (shadowInfo->fixedArea) { + nearClamp = shadowInfo->nearValue; + farClamp = shadowInfo->farValue; } else { - auto *const node = light->getNode(); - matShadowView = node->getWorldMatrix().getInversed(); - const float x = shadowInfo->orthoSize; - const float y = shadowInfo->orthoSize; - nearClamp = shadowInfo->nearValue; - farClamp = shadowInfo->farValue; - const float projectionSinY = device->getCapabilities().clipSpaceSignY; - const float clipSpaceMinZ = device->getCapabilities().clipSpaceMinZ; - Mat4::createOrthographicOffCenter(-x, x, -y, y, -nearClamp, - farClamp, clipSpaceMinZ, projectionSinY, &matShadowProj); - matShadowViewProj = matShadowProj * matShadowView; + nearClamp = 0.1F; + farClamp = sceneData->getShadowCameraFar(); } memcpy(shadowUBO.data() + UBOShadow::MAT_LIGHT_VIEW_OFFSET, matShadowView.m, sizeof(matShadowView)); diff --git a/native/cocos/renderer/pipeline/SceneCulling.cpp b/native/cocos/renderer/pipeline/SceneCulling.cpp index af91f57b68..952b79f3a9 100644 --- a/native/cocos/renderer/pipeline/SceneCulling.cpp +++ b/native/cocos/renderer/pipeline/SceneCulling.cpp @@ -215,85 +215,109 @@ void quantizeDirLightShadowCamera(RenderPipeline *pipeline, const scene::Camera const float shadowMapWidth = shadowInfo->size.x; const auto * node = mainLight->getNode(); const Quaternion & rotation = node->getWorldRotation(); + const bool fixedArea = shadowInfo->fixedArea; - // Raw data. - const Mat4 matWorldTrans = getCameraWorldMatrix(camera); - scene::Frustum validFrustum; - validFrustum.type = scene::ShapeEnums::SHAPE_FRUSTUM_ACCURATE; - validFrustum.split(0.1F, shadowInfo->shadowDistance, camera->aspect, camera->fov, matWorldTrans); - scene::Frustum lightViewFrustum = validFrustum.clone(); + if (fixedArea) { + const float x = shadowInfo->orthoSize; + const float y = shadowInfo->orthoSize; + const float nearClamp = shadowInfo->nearValue; + const float farClamp = shadowInfo->farValue; - // view matrix with range back. - Mat4 matShadowTrans; - Mat4::fromRT(rotation, Vec3::ZERO, &matShadowTrans); - Mat4 matShadowView = matShadowTrans.getInversed(); - Mat4 matShadowViewInv = matShadowTrans.clone(); + Mat4 matShadowTrans; + Mat4::fromRT(rotation, node->getWorldPosition(), &matShadowTrans); + Mat4 matShadowView = matShadowTrans.getInversed(); + Mat4 matShadowViewInv = matShadowTrans.clone(); + const float projectionSinY = device->getCapabilities().clipSpaceSignY; + const float clipSpaceMinZ = device->getCapabilities().clipSpaceMinZ; + Mat4 matShadowProj; + Mat4::createOrthographicOffCenter(-x, x, -y, y, -nearClamp, + farClamp, clipSpaceMinZ, projectionSinY, &matShadowProj); + Mat4 matShadowViewProj = matShadowProj * matShadowView; + sceneData->setMatShadowView(matShadowView); + sceneData->setMatShadowProj(matShadowProj); + sceneData->setMatShadowViewProj(matShadowViewProj); - const Mat4 shadowViewArbitraryPos = matShadowView.clone(); - lightViewFrustum.transform(matShadowView); - // bounding box in light space. - scene::AABB castLightViewBounds; - scene::AABB::fromPoints(Vec3(10000000.0F, 10000000.0F, 10000000.0F), Vec3(-10000000.0F, -10000000.0F, -10000000.0F), &castLightViewBounds); - castLightViewBounds.merge(lightViewFrustum); + out->createOrtho(x * 2.0F, y * 2.0F, nearClamp, farClamp, matShadowViewInv); + } else { + // Raw data. + const Mat4 matWorldTrans = getCameraWorldMatrix(camera); + scene::Frustum validFrustum; + validFrustum.type = scene::ShapeEnums::SHAPE_FRUSTUM_ACCURATE; + validFrustum.split(0.1F, shadowInfo->shadowDistance, camera->aspect, camera->fov, matWorldTrans); + scene::Frustum lightViewFrustum = validFrustum.clone(); - const float r = castLightViewBounds.getHalfExtents().z * 2.0F; - Vec3 shadowPos(castLightViewBounds.getCenter().x, castLightViewBounds.getCenter().y, - castLightViewBounds.getCenter().z + castLightViewBounds.getHalfExtents().z + invisibleOcclusionRange); - shadowPos.transformMat4(shadowPos, matShadowViewInv); + // view matrix with range back. + Mat4 matShadowTrans; + Mat4::fromRT(rotation, Vec3::ZERO, &matShadowTrans); + Mat4 matShadowView = matShadowTrans.getInversed(); + Mat4 matShadowViewInv = matShadowTrans.clone(); - Mat4::fromRT(rotation, shadowPos, &matShadowTrans); - matShadowView = matShadowTrans.getInversed(); - matShadowViewInv = matShadowTrans.clone(); + const Mat4 shadowViewArbitraryPos = matShadowView.clone(); + lightViewFrustum.transform(matShadowView); + // bounding box in light space. + scene::AABB castLightViewBounds; + scene::AABB::fromPoints(Vec3(10000000.0F, 10000000.0F, 10000000.0F), Vec3(-10000000.0F, -10000000.0F, -10000000.0F), &castLightViewBounds); + castLightViewBounds.merge(lightViewFrustum); - // calculate projection matrix params. - // min value may lead to some shadow leaks. - const float orthoSizeMin = validFrustum.vertices[0].distance(validFrustum.vertices[6]); - // max value is accurate but poor usage for shadowMap - scene::Sphere cameraBoundingSphere; - cameraBoundingSphere.setCenter(Vec3(0.0F, 0.0F, 0.0F)); - cameraBoundingSphere.setRadius(-1.0F); - cameraBoundingSphere.merge(validFrustum); - const float orthoSizeMax = cameraBoundingSphere.getRadius() * 2.0F; - // use lerp(min, accurate_max) to save shadowMap usage - const float orthoSize = orthoSizeMin * 0.8F + orthoSizeMax * 0.2F; - sceneData->setShadowCameraFar(r + invisibleOcclusionRange); + const float r = castLightViewBounds.getHalfExtents().z * 2.0F; + Vec3 shadowPos(castLightViewBounds.getCenter().x, castLightViewBounds.getCenter().y, + castLightViewBounds.getCenter().z + castLightViewBounds.getHalfExtents().z + invisibleOcclusionRange); + shadowPos.transformMat4(shadowPos, matShadowViewInv); - // snap to whole texels - const float halfOrthoSize = orthoSize * 0.5F; - Mat4 matShadowProj; - const float projectionSinY = device->getCapabilities().clipSpaceSignY; - const float clipSpaceMinZ = device->getCapabilities().clipSpaceMinZ; - Mat4::createOrthographicOffCenter(-halfOrthoSize, halfOrthoSize, -halfOrthoSize, halfOrthoSize, 0.1F, sceneData->getShadowCameraFar(), - clipSpaceMinZ, projectionSinY, &matShadowProj); - - if (shadowMapWidth > 0.0F) { - const Mat4 matShadowViewProjArbitraryPos = matShadowProj * shadowViewArbitraryPos; - Vec3 projPos; - projPos.transformMat4(shadowPos, matShadowViewProjArbitraryPos); - const float invActualSize = 2.0F / shadowMapWidth; - const Vec2 texelSize(invActualSize, invActualSize); - const float modX = fmodf(projPos.x, texelSize.x); - const float modY = fmodf(projPos.y, texelSize.y); - const Vec3 projSnap(projPos.x - modX, projPos.y - modY, projPos.z); - - const Mat4 matShadowViewProjArbitaryPosInv = matShadowViewProjArbitraryPos.getInversed(); - Vec3 snap; - snap.transformMat4(projSnap, matShadowViewProjArbitaryPosInv); - Mat4::fromRT(rotation, snap, &matShadowTrans); + Mat4::fromRT(rotation, shadowPos, &matShadowTrans); matShadowView = matShadowTrans.getInversed(); matShadowViewInv = matShadowTrans.clone(); - out->createOrtho(orthoSize, orthoSize, 0.1F, sceneData->getShadowCameraFar(), matShadowViewInv); - } else { - for (uint i = 0; i < 8; i++) { - out->vertices[i].setZero(); - } - out->updatePlanes(); - } - const Mat4 matShadowViewProj = matShadowProj * matShadowView; - sceneData->setMatShadowView(matShadowView); - sceneData->setMatShadowProj(matShadowProj); - sceneData->setMatShadowViewProj(matShadowViewProj); + // calculate projection matrix params. + // min value may lead to some shadow leaks. + const float orthoSizeMin = validFrustum.vertices[0].distance(validFrustum.vertices[6]); + // max value is accurate but poor usage for shadowMap + scene::Sphere cameraBoundingSphere; + cameraBoundingSphere.setCenter(Vec3(0.0F, 0.0F, 0.0F)); + cameraBoundingSphere.setRadius(-1.0F); + cameraBoundingSphere.merge(validFrustum); + const float orthoSizeMax = cameraBoundingSphere.getRadius() * 2.0F; + // use lerp(min, accurate_max) to save shadowMap usage + const float orthoSize = orthoSizeMin * 0.8F + orthoSizeMax * 0.2F; + sceneData->setShadowCameraFar(r + invisibleOcclusionRange); + + // snap to whole texels + const float halfOrthoSize = orthoSize * 0.5F; + Mat4 matShadowProj; + const float projectionSinY = device->getCapabilities().clipSpaceSignY; + const float clipSpaceMinZ = device->getCapabilities().clipSpaceMinZ; + Mat4::createOrthographicOffCenter(-halfOrthoSize, halfOrthoSize, -halfOrthoSize, halfOrthoSize, 0.1F, sceneData->getShadowCameraFar(), + clipSpaceMinZ, projectionSinY, &matShadowProj); + + if (shadowMapWidth > 0.0F) { + const Mat4 matShadowViewProjArbitraryPos = matShadowProj * shadowViewArbitraryPos; + Vec3 projPos; + projPos.transformMat4(shadowPos, matShadowViewProjArbitraryPos); + const float invActualSize = 2.0F / shadowMapWidth; + const Vec2 texelSize(invActualSize, invActualSize); + const float modX = fmodf(projPos.x, texelSize.x); + const float modY = fmodf(projPos.y, texelSize.y); + const Vec3 projSnap(projPos.x - modX, projPos.y - modY, projPos.z); + + const Mat4 matShadowViewProjArbitaryPosInv = matShadowViewProjArbitraryPos.getInversed(); + Vec3 snap; + snap.transformMat4(projSnap, matShadowViewProjArbitaryPosInv); + Mat4::fromRT(rotation, snap, &matShadowTrans); + matShadowView = matShadowTrans.getInversed(); + matShadowViewInv = matShadowTrans.clone(); + out->createOrtho(orthoSize, orthoSize, 0.1F, sceneData->getShadowCameraFar(), matShadowViewInv); + } else { + for (uint i = 0; i < 8; i++) { + out->vertices[i].setZero(); + } + out->updatePlanes(); + } + + const Mat4 matShadowViewProj = matShadowProj * matShadowView; + sceneData->setMatShadowView(matShadowView); + sceneData->setMatShadowProj(matShadowProj); + sceneData->setMatShadowViewProj(matShadowViewProj); + } } void sceneCulling(RenderPipeline *pipeline, scene::Camera *camera) { PipelineSceneData *const sceneData = pipeline->getPipelineSceneData(); @@ -353,11 +377,7 @@ void sceneCulling(RenderPipeline *pipeline, scene::Camera *camera) { if (isShadowMap) { std::vector casters; casters.reserve(scene->getModels().size() / 4); - if (shadowInfo->fixedArea) { - octree->queryVisibility(camera, camera->frustum, true, casters); - } else { - octree->queryVisibility(camera, dirLightFrustum, true, casters); - } + octree->queryVisibility(camera, dirLightFrustum, true, casters); for (const auto *model : casters) { dirShadowObjects.emplace_back(genRenderObject(model, camera)); } @@ -392,15 +412,8 @@ void sceneCulling(RenderPipeline *pipeline, scene::Camera *camera) { // dir shadow render Object if (isShadowMap && model->getCastShadow()) { - if (shadowInfo->fixedArea) { - model->getWorldBounds()->transform(shadowInfo->matLight, &ab); - if (ab.aabbFrustum(camera->frustum)) { - dirShadowObjects.emplace_back(genRenderObject(model, camera)); - } - } else { - if (modelWorldBounds->aabbFrustum(dirLightFrustum)) { - dirShadowObjects.emplace_back(genRenderObject(model, camera)); - } + if (modelWorldBounds->aabbFrustum(dirLightFrustum)) { + dirShadowObjects.emplace_back(genRenderObject(model, camera)); } } From 73aea115e038cead9522dea0b711677852d06a02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=9F=E6=88=98?= <40414978+PatriceJiang@users.noreply.github.com> Date: Tue, 4 Jan 2022 10:23:25 +0800 Subject: [PATCH 12/45] fix windows text alias (#4128) --- .../win32/CanvasRenderingContext2D-win32.cpp | 142 +++++++++--------- 1 file changed, 71 insertions(+), 71 deletions(-) diff --git a/native/cocos/platform/win32/CanvasRenderingContext2D-win32.cpp b/native/cocos/platform/win32/CanvasRenderingContext2D-win32.cpp index 3691b97816..5bc02ee89c 100644 --- a/native/cocos/platform/win32/CanvasRenderingContext2D-win32.cpp +++ b/native/cocos/platform/win32/CanvasRenderingContext2D-win32.cpp @@ -23,16 +23,16 @@ THE SOFTWARE. ****************************************************************************/ -#include "platform/CanvasRenderingContext2D.h" +#include +#include #include +#include #include "base/csscolorparser.h" -#include "math/Math.h" #include "cocos/bindings/jswrapper/SeApi.h" #include "cocos/bindings/manual/jsb_platform.h" +#include "math/Math.h" +#include "platform/CanvasRenderingContext2D.h" #include "platform/FileUtils.h" -#include -#include -#include using Point = std::array; using Vec2 = std::array; @@ -62,7 +62,7 @@ void fillRectWithColor(uint8_t *buf, uint32_t totalWidth, uint32_t totalHeight, uint8_t *p; for (uint32_t offsetY = y0; offsetY < y1; ++offsetY) { for (uint32_t offsetX = x; offsetX < (x + width); ++offsetX) { - p = buf + (totalWidth * offsetY + offsetX) * 4; + p = buf + (totalWidth * offsetY + offsetX) * 4; *p++ = r; *p++ = g; *p++ = b; @@ -76,7 +76,7 @@ class CanvasRenderingContext2DImpl { public: CanvasRenderingContext2DImpl() { HDC hdc = GetDC(_wnd); - _DC = CreateCompatibleDC(hdc); + _DC = CreateCompatibleDC(hdc); ReleaseDC(_wnd, hdc); } @@ -88,15 +88,15 @@ public: } void recreateBuffer(float w, float h) { - _bufferWidth = w; + _bufferWidth = w; _bufferHeight = h; if (_bufferWidth < 1.0F || _bufferHeight < 1.0F) { deleteBitmap(); return; } - auto textureSize = static_cast(_bufferWidth * _bufferHeight * 4); - auto *data = static_cast(malloc(sizeof(uint8_t) * textureSize)); + auto textureSize = static_cast(_bufferWidth * _bufferHeight * 4); + auto *data = static_cast(malloc(sizeof(uint8_t) * textureSize)); memset(data, 0x00, textureSize); _imageData.fastSet(data, textureSize); @@ -154,7 +154,7 @@ public: if (_imageData.isNull()) { return; } - + recreateBuffer(w, h); } @@ -170,12 +170,12 @@ public: uint8_t g = _fillStyle[1] * 255.0f; uint8_t b = _fillStyle[2] * 255.0f; uint8_t a = _fillStyle[3] * 255.0f; - fillRectWithColor(buffer, - static_cast(_bufferWidth), - static_cast(_bufferHeight), - static_cast(x), - static_cast(y), - static_cast(w), + fillRectWithColor(buffer, + static_cast(_bufferWidth), + static_cast(_bufferHeight), + static_cast(x), + static_cast(y), + static_cast(w), static_cast(h), r, g, b, a); } } @@ -185,7 +185,7 @@ public: return; } - SIZE textSize = {0, 0}; + SIZE textSize = {0, 0}; Point offsetPoint = convertDrawPoint(Point{x, y}, text); drawText(text, (int)offsetPoint[0], (int)offsetPoint[1]); @@ -202,9 +202,9 @@ public: if (text.empty()) return std::array{0.0f, 0.0f}; - int bufferLen = 0; + int bufferLen = 0; wchar_t *pwszBuffer = CanvasRenderingContext2DImpl::utf8ToUtf16(text, &bufferLen); - Size size = sizeWithText(pwszBuffer, bufferLen); + Size size = sizeWithText(pwszBuffer, bufferLen); //SE_LOGD("CanvasRenderingContext2DImpl::measureText: %s, %d, %d\n", text.c_str(), size.cx, size.cy); CC_SAFE_DELETE_ARRAY(pwszBuffer); return size; @@ -215,17 +215,17 @@ public: _fontName = fontName; _fontSize = static_cast(fontSize); std::string fontPath; - LOGFONTA tFont = {0}; + LOGFONTA tFont = {0}; if (!_fontName.empty()) { // firstly, try to create font from ttf file const auto &fontInfoMap = getFontFamilyNameMap(); - auto iter = fontInfoMap.find(_fontName); + auto iter = fontInfoMap.find(_fontName); if (iter != fontInfoMap.end()) { - fontPath = iter->second; + fontPath = iter->second; std::string tmpFontPath = fontPath; - int nFindPos = tmpFontPath.rfind("/"); - tmpFontPath = &tmpFontPath[nFindPos + 1]; - nFindPos = tmpFontPath.rfind("."); + int nFindPos = tmpFontPath.rfind("/"); + tmpFontPath = &tmpFontPath[nFindPos + 1]; + nFindPos = tmpFontPath.rfind("."); // IDEA: draw ttf failed if font file name not equal font face name // for example: "DejaVuSansMono-Oblique" not equal "DejaVu Sans Mono" when using DejaVuSansMono-Oblique.ttf _fontName = tmpFontPath.substr(0, nFindPos); @@ -258,7 +258,7 @@ public: removeCustomFont(); if (!fontPath.empty()) { - _curFontPath = fontPath; + _curFontPath = fontPath; wchar_t *pwszBuffer = utf8ToUtf16(_curFontPath); if (pwszBuffer) { if (AddFontResource(pwszBuffer)) { @@ -306,28 +306,28 @@ public: return _imageData; } - HDC _DC{nullptr}; + HDC _DC{nullptr}; HBITMAP _bmp{nullptr}; private: - cc::Data _imageData; - HFONT _font{static_cast(GetStockObject(DEFAULT_GUI_FONT))}; - HWND _wnd{nullptr}; - HPEN _hpen; + cc::Data _imageData; + HFONT _font{static_cast(GetStockObject(DEFAULT_GUI_FONT))}; + HWND _wnd{nullptr}; + HPEN _hpen; PAINTSTRUCT _paintStruct; std::string _curFontPath; - int _savedDC{0}; - float _lineWidth = 0.0F; - float _bufferWidth = 0.0F; - float _bufferHeight = 0.0F; + int _savedDC{0}; + float _lineWidth = 0.0F; + float _bufferWidth = 0.0F; + float _bufferHeight = 0.0F; - std::string _fontName; - int _fontSize; - Size _textSize; - CanvasTextAlign _textAlign; + std::string _fontName; + int _fontSize; + Size _textSize; + CanvasTextAlign _textAlign; CanvasTextBaseline _textBaseLine; - Color4F _fillStyle; - Color4F _strokeStyle; + Color4F _fillStyle; + Color4F _strokeStyle; TEXTMETRIC _tm; @@ -338,9 +338,9 @@ private: if (str.empty()) { break; } - int nLen = str.size(); + int nLen = str.size(); int nBufLen = nLen + 1; - pwszBuffer = new wchar_t[nBufLen]; + pwszBuffer = new wchar_t[nBufLen]; CC_BREAK_IF(!pwszBuffer); memset(pwszBuffer, 0, sizeof(wchar_t) * nBufLen); // str.size() not equal actuallyLen for Chinese char @@ -373,7 +373,7 @@ private: // x, y offset value int drawText(const std::string &text, int x, int y) { - int nRet = 0; + int nRet = 0; wchar_t *pwszBuffer = nullptr; do { CC_BREAK_IF(text.empty()); @@ -381,7 +381,7 @@ private: DWORD dwFmt = DT_SINGLELINE | DT_NOPREFIX; int bufferLen = 0; - pwszBuffer = utf8ToUtf16(text, &bufferLen); + pwszBuffer = utf8ToUtf16(text, &bufferLen); Size newSize = sizeWithText(pwszBuffer, bufferLen); @@ -389,7 +389,7 @@ private: RECT rcText = {0}; - rcText.right = newSize[0]; + rcText.right = newSize[0]; rcText.bottom = newSize[1]; LONG offsetX = x; @@ -416,7 +416,7 @@ private: do { CC_BREAK_IF(!pszText || nLen <= 0); - RECT rc = {0, 0, 0, 0}; + RECT rc = {0, 0, 0, 0}; DWORD dwCalcFmt = DT_CALCRECT | DT_NOPREFIX; // measure text size @@ -448,7 +448,7 @@ private: void fillTextureData() { do { - auto dataLen = static_cast(_bufferWidth * _bufferHeight * 4); + auto dataLen = static_cast(_bufferWidth * _bufferHeight * 4); auto *dataBuf = static_cast(malloc(sizeof(unsigned char) * dataLen)); CC_BREAK_IF(!dataBuf); unsigned char *imageBuf = _imageData.getBytes(); @@ -457,8 +457,8 @@ private: struct { BITMAPINFOHEADER bmiHeader; - int mask[4]; - } bi = {0}; + int mask[4]; + } bi = {0}; bi.bmiHeader.biSize = sizeof(bi.bmiHeader); CC_BREAK_IF(!GetDIBits(_DC, _bmp, 0, 0, nullptr, (LPBITMAPINFO)&bi, DIB_RGB_COLORS)); @@ -468,14 +468,14 @@ private: GetDIBits(_DC, _bmp, 0, _bufferHeight, dataBuf, (LPBITMAPINFO)&bi, DIB_RGB_COLORS); - uint8_t r = static_cast(round(_fillStyle[0] * 255)); - uint8_t g = static_cast(round(_fillStyle[1] * 255)); - uint8_t b = static_cast(round(_fillStyle[2] * 255)); - COLORREF textColor = (b << 16 | g << 8 | r) & 0x00ffffff; - COLORREF *pPixel = nullptr; - COLORREF *pImage = nullptr; - int bufferHeight = static_cast(_bufferHeight); - int bufferWidth = static_cast(_bufferWidth); + uint8_t r = static_cast(round(_fillStyle[0] * 255)); + uint8_t g = static_cast(round(_fillStyle[1] * 255)); + uint8_t b = static_cast(round(_fillStyle[2] * 255)); + COLORREF textColor = (b << 16 | g << 8 | r) & 0x00ffffff; + COLORREF *pPixel = nullptr; + COLORREF *pImage = nullptr; + int bufferHeight = static_cast(_bufferHeight); + int bufferWidth = static_cast(_bufferWidth); for (int y = 0; y < bufferHeight; ++y) { pPixel = (COLORREF *)dataBuf + y * bufferWidth; pImage = (COLORREF *)imageBuf + y * bufferWidth; @@ -485,7 +485,7 @@ private: // Because text is drawn in white color, and background color is black, // so the red value is equal to alpha value. And we should keep this value // as it includes anti-atlas information. - uint8_t alpha = GetRValue(clr) ? 255 : 0; + uint8_t alpha = GetRValue(clr); if (alpha > 0) { val = (alpha << 24) | textColor; } @@ -553,7 +553,7 @@ void CanvasRenderingContext2D::recreateBufferIfNeeded() { _impl->recreateBuffer(_width, _height); if (_canvasBufferUpdatedCB != nullptr) { _canvasBufferUpdatedCB(_impl->getDataRef()); - } + } } } @@ -569,7 +569,7 @@ void CanvasRenderingContext2D::fillRect(float x, float y, float width, float hei if (_canvasBufferUpdatedCB != nullptr) { _canvasBufferUpdatedCB(_impl->getDataRef()); - } + } } void CanvasRenderingContext2D::fillText(const std::string &text, float x, float y, float maxWidth) { @@ -577,13 +577,13 @@ void CanvasRenderingContext2D::fillText(const std::string &text, float x, float if (text.empty()) { return; } - + recreateBufferIfNeeded(); _impl->fillText(text, x, y, maxWidth); if (_canvasBufferUpdatedCB != nullptr) { _canvasBufferUpdatedCB(_impl->getDataRef()); - } + } } void CanvasRenderingContext2D::strokeText(const std::string &text, float x, float y, float maxWidth) { @@ -598,7 +598,7 @@ void CanvasRenderingContext2D::strokeText(const std::string &text, float x, floa if (_canvasBufferUpdatedCB != nullptr) { _canvasBufferUpdatedCB(_impl->getDataRef()); - } + } } cc::Size CanvasRenderingContext2D::measureText(const std::string &text) { @@ -658,7 +658,7 @@ void CanvasRenderingContext2D::setCanvasBufferUpdatedCallback(const CanvasBuffer void CanvasRenderingContext2D::setWidth(float width) { //SE_LOGD("CanvasRenderingContext2D::set__width: %f\n", width); if (math::IsEqualF(width, _width)) return; - _width = width; + _width = width; _isBufferSizeDirty = true; recreateBufferIfNeeded(); } @@ -666,7 +666,7 @@ void CanvasRenderingContext2D::setWidth(float width) { void CanvasRenderingContext2D::setHeight(float height) { //SE_LOGD("CanvasRenderingContext2D::set__height: %f\n", height); if (math::IsEqualF(height, _height)) return; - _height = height; + _height = height; _isBufferSizeDirty = true; recreateBufferIfNeeded(); } @@ -697,16 +697,16 @@ void CanvasRenderingContext2D::setFont(const std::string &font) { _font = font; std::string boldStr; - std::string fontName = "Arial"; + std::string fontName = "Arial"; std::string fontSizeStr = "30"; // support get font name from `60px American` or `60px "American abc-abc_abc"` - std::regex re("(bold)?\\s*((\\d+)([\\.]\\d+)?)px\\s+([\\w-]+|\"[\\w -]+\"$)"); + std::regex re("(bold)?\\s*((\\d+)([\\.]\\d+)?)px\\s+([\\w-]+|\"[\\w -]+\"$)"); std::match_results results; if (std::regex_search(_font.cbegin(), _font.cend(), results, re)) { - boldStr = results[1].str(); + boldStr = results[1].str(); fontSizeStr = results[2].str(); - fontName = results[5].str(); + fontName = results[5].str(); } auto fontSize = static_cast(atof(fontSizeStr.c_str())); From b5c40837c83ac9713ab0611c2785815030f9e0fb Mon Sep 17 00:00:00 2001 From: timlyeee <43355299+timlyeee@users.noreply.github.com> Date: Tue, 4 Jan 2022 13:38:23 +0800 Subject: [PATCH 13/45] add JsbBridgeWrapper(#4125) --- native/CMakeLists.txt | 8 +- .../src/com/cocos/lib/JsbBridgeWrapper.java | 89 ++++++++++++++ native/cocos/platform/apple/JsbBridge.h | 12 +- native/cocos/platform/apple/JsbBridge.mm | 35 +++--- .../cocos/platform/apple/JsbBridgeWrapper.h | 55 +++++++++ .../cocos/platform/apple/JsbBridgeWrapper.mm | 114 ++++++++++++++++++ 6 files changed, 285 insertions(+), 28 deletions(-) create mode 100644 native/cocos/platform/android/java/src/com/cocos/lib/JsbBridgeWrapper.java create mode 100644 native/cocos/platform/apple/JsbBridgeWrapper.h create mode 100644 native/cocos/platform/apple/JsbBridgeWrapper.mm diff --git a/native/CMakeLists.txt b/native/CMakeLists.txt index 1e85d7b681..e6143c3937 100644 --- a/native/CMakeLists.txt +++ b/native/CMakeLists.txt @@ -1590,9 +1590,9 @@ endif() if(ANDROID) cocos_source_files( - cocos/bindings/manual/jsb_platform_android.cpp - cocos/bindings/manual/JavaScriptJavaBridge.cpp - cocos/bindings/manual/JavaScriptJavaBridge.h + cocos/bindings/manual/jsb_platform_android.cpp + cocos/bindings/manual/JavaScriptJavaBridge.cpp + cocos/bindings/manual/JavaScriptJavaBridge.h ) elseif(OHOS) cocos_source_files( @@ -1607,6 +1607,8 @@ elseif(APPLE) cocos/bindings/manual/JavaScriptObjCBridge.mm cocos/platform/apple/JsbBridge.h cocos/platform/apple/JsbBridge.mm + cocos/platform/apple/JsbBridgeWrapper.h + cocos/platform/apple/JsbBridgeWrapper.mm ) elseif(WIN32) cocos_source_files( diff --git a/native/cocos/platform/android/java/src/com/cocos/lib/JsbBridgeWrapper.java b/native/cocos/platform/android/java/src/com/cocos/lib/JsbBridgeWrapper.java new file mode 100644 index 0000000000..46e4853223 --- /dev/null +++ b/native/cocos/platform/android/java/src/com/cocos/lib/JsbBridgeWrapper.java @@ -0,0 +1,89 @@ +/**************************************************************************** + Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + ****************************************************************************/ +package com.cocos.lib; + +import java.util.ArrayList; +import java.util.HashMap; + +public class JsbBridgeWrapper { + public interface JavaCallback { + void onTrigger(String arg); + } + + public static JsbBridgeWrapper getInstance() { + if (instance == null) { + instance = new JsbBridgeWrapper(); + } + return instance; + } + + public void addCallback(String event, JavaCallback cb) { + if (eventMap.get(event) == null) { + eventMap.put(event, new ArrayList()); + } + eventMap.get(event).add(cb); + } + + public void removeCallback(String event, JavaCallback cb) { + ArrayList arr = eventMap.get(event); + if (arr == null) { + return; + } + arr.remove(cb); + } + + public void removeEvent(String event) { + this.eventMap.remove(event); + } + + public void dispatchScriptEvent(String event, String arg0) { + JsbBridge.sendToScript(event, arg0); + } + + public void dispatchScriptEvent(String event) { + JsbBridge.sendToScript(event); + } + + private JsbBridgeWrapper() { + JsbBridge.setCallback(new JsbBridge.ICallback() { + @Override + public void onScript(String arg0, String arg1) { + triggerEvents(arg0, arg1); + } + }); + } + + private final HashMap> eventMap = new HashMap<>(); + private static JsbBridgeWrapper instance; + + private void triggerEvents(String event, String arg) { + ArrayList arr = eventMap.get(event); + if (arr == null) + return; + for (JavaCallback m : arr) { + m.onTrigger(arg); + } + } +} diff --git a/native/cocos/platform/apple/JsbBridge.h b/native/cocos/platform/apple/JsbBridge.h index a96919d5e2..0ef3b01110 100644 --- a/native/cocos/platform/apple/JsbBridge.h +++ b/native/cocos/platform/apple/JsbBridge.h @@ -29,12 +29,10 @@ typedef void (^ICallback)(NSString*, NSString*); - @interface JsbBridge : NSObject -+(instancetype)sharedInstance; --(void)setCallback:(ICallback)cb; --(bool)callByScript:(NSString*)arg0 arg1:(NSString*)arg1; --(void)sendToScript:(NSString*)arg0 arg1:(NSString*)arg1; --(void)sendToScript:(NSString*)arg0; ++ (instancetype)sharedInstance; +- (void)setCallback:(ICallback)cb; +- (bool)callByScript:(NSString*)arg0 arg1:(NSString*)arg1; +- (void)sendToScript:(NSString*)arg0 arg1:(NSString*)arg1; +- (void)sendToScript:(NSString*)arg0; @end - diff --git a/native/cocos/platform/apple/JsbBridge.mm b/native/cocos/platform/apple/JsbBridge.mm index 702ef0f3b8..eebde32d23 100644 --- a/native/cocos/platform/apple/JsbBridge.mm +++ b/native/cocos/platform/apple/JsbBridge.mm @@ -23,16 +23,16 @@ THE SOFTWARE. ****************************************************************************/ +#include "JsbBridge.h" +#include #import #include -#include -#include "JsbBridge.h" #include "cocos/bindings/manual/JavaScriptObjCBridge.h" -bool callPlatformStringMethod(const std::string &arg0, const std::string &arg1){ - NSString *oc_arg0 = [NSString stringWithCString:arg0.c_str() encoding:NSUTF8StringEncoding]; - NSString *oc_arg1 = [NSString stringWithCString:arg1.c_str() encoding:NSUTF8StringEncoding]; - JsbBridge * m = [JsbBridge sharedInstance]; +bool callPlatformStringMethod(const std::string &arg0, const std::string &arg1) { + NSString *oc_arg0 = [NSString stringWithCString:arg0.c_str() encoding:NSUTF8StringEncoding]; + NSString *oc_arg1 = [NSString stringWithCString:arg1.c_str() encoding:NSUTF8StringEncoding]; + JsbBridge *m = [JsbBridge sharedInstance]; [m callByScript:oc_arg0 arg1:oc_arg1]; return true; } @@ -41,51 +41,50 @@ bool callPlatformStringMethod(const std::string &arg0, const std::string &arg1){ ICallback callback; } -static JsbBridge* instance = nil; +static JsbBridge *instance = nil; -+(instancetype)sharedInstance{ ++ (instancetype)sharedInstance { static dispatch_once_t pred = 0; dispatch_once(&pred, ^{ - instance = [[super allocWithZone:NULL]init]; + instance = [[super allocWithZone:NULL] init]; }); return instance; } -+(id)allocWithZone:(struct _NSZone *)zone{ ++ (id)allocWithZone:(struct _NSZone *)zone { return [JsbBridge sharedInstance]; } --(id)copyWithZone:(struct _NSZone *)zone{ +- (id)copyWithZone:(struct _NSZone *)zone { return [JsbBridge sharedInstance]; } --(id)init{ +- (id)init { self = [super init]; return self; } --(void)setCallback:(ICallback)cb{ +- (void)setCallback:(ICallback)cb { callback = cb; } --(bool)callByScript:(NSString*)arg0 arg1:(NSString *)arg1{ - if(callback != nil){ +- (bool)callByScript:(NSString *)arg0 arg1:(NSString *)arg1 { + if (callback != nil) { callback(arg0, arg1); return true; } return false; } --(void)sendToScript:(NSString *)arg0 arg1:(NSString *)arg1{ +- (void)sendToScript:(NSString *)arg0 arg1:(NSString *)arg1 { const std::string c_arg0{[arg0 UTF8String]}; const std::string c_arg1{[arg1 UTF8String]}; callScript(c_arg0, c_arg1); } --(void)sendToScript:(NSString *)arg0{ +- (void)sendToScript:(NSString *)arg0 { const std::string c_arg0{[arg0 UTF8String]}; callScript(c_arg0, ""); } @end - diff --git a/native/cocos/platform/apple/JsbBridgeWrapper.h b/native/cocos/platform/apple/JsbBridgeWrapper.h new file mode 100644 index 0000000000..43b092dacf --- /dev/null +++ b/native/cocos/platform/apple/JsbBridgeWrapper.h @@ -0,0 +1,55 @@ +/**************************************************************************** + Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ +#pragma once +#import + +typedef void (^eventCallback)(NSString*); + +@interface JsbBridgeWrapper : NSObject +/** + * Get the instance of JsbBridgetWrapper + */ ++ (instancetype)sharedInstance; +/** + * add a callback to specified event, if the event does not exist, the wrapper will create one + */ +- (void)addCallback:(NSString*)event callback:(eventCallback)callback; +/** + * remove callback for specified event, concurrent event will be deleted. + */ +- (bool)removeCallback:(NSString*)event callback:(eventCallback)callback; +/** + * Return true if successfully remove the callback, false if event does not exist + */ +- (void)removeEvent:(NSString*)event; +/** + * Dispatch the event with argument, the event should be regiestered in javascript, or other script language in future. + */ +- (void)dispatchScriptEvent:(NSString*)name arg:(NSString*)arg; +/** + * Dispatch the event which is regiestered in javascript, or other script language in future. + */ +- (void)dispatchScriptEvent:(NSString*)name; +@end diff --git a/native/cocos/platform/apple/JsbBridgeWrapper.mm b/native/cocos/platform/apple/JsbBridgeWrapper.mm new file mode 100644 index 0000000000..b188599b1c --- /dev/null +++ b/native/cocos/platform/apple/JsbBridgeWrapper.mm @@ -0,0 +1,114 @@ +/*************************************************************************** + Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ +#include "JsbBridgeWrapper.h" +#include +#include +#include "JsbBridge.h" +#include "Application.h" + +@implementation JsbBridgeWrapper { + JsbBridge* jb; + NSMutableDictionary*>* cbDictionnary; +} + +static JsbBridgeWrapper* instance = nil; +static ICallback cb = ^void(NSString* _event, NSString* _arg) { + [[JsbBridgeWrapper sharedInstance] triggerEvent:_event arg:_arg]; +}; ++ (instancetype)sharedInstance { + static dispatch_once_t pred = 0; + dispatch_once(&pred, ^{ + instance = [[super allocWithZone:NULL] init]; + }); + return instance; +} + ++ (id)allocWithZone:(struct _NSZone*)zone { + return [JsbBridgeWrapper sharedInstance]; +} + +- (id)copyWithZone:(struct _NSZone*)zone { + return [JsbBridgeWrapper sharedInstance]; +} + +- (void)addCallback:(NSString*)event callback:(eventCallback)callback { + if (![cbDictionnary objectForKey:event]) { + [cbDictionnary setValue:[NSMutableArray new] forKey:event]; + } + NSMutableArray* arr = [cbDictionnary objectForKey:event]; + if (![arr containsObject:callback]) { + [arr addObject:callback]; + } + [callback release]; +} + +- (void)triggerEvent:(NSString*)event arg:(NSString*)arg { + NSMutableArray* arr = [cbDictionnary objectForKey:event]; + if (!arr) { + return; + } + for (eventCallback cb : arr) { + cb(arg); + } +} +- (void)removeEvent:(NSString*)event { + if (![cbDictionnary objectForKey:event]) { + return; + } + [cbDictionnary removeObjectForKey:event]; +} + +- (bool)removeCallback:(NSString*)event callback:(eventCallback)callback { + NSMutableArray* arr = [cbDictionnary objectForKey:event]; + if (!arr) { + return false; + } + [arr removeObject:callback]; + return true; +} + +- (void)dispatchScriptEvent:(NSString*)event arg:(NSString*)arg { + [jb sendToScript:event arg1:arg]; +} + +- (void)dispatchScriptEvent:(NSString*)event { + [jb sendToScript:event]; +} +- (id)init { + self = [super init]; + cbDictionnary = [NSMutableDictionary new]; + jb = [JsbBridge sharedInstance]; + [jb setCallback:cb]; + return self; +} +- (void)dealloc { + for (NSMutableArray* arr : cbDictionnary) { + [arr release]; + } + [cbDictionnary release]; + [super dealloc]; +} +@end + From 32ea1cbfbfcfbaf606e51b3ca2a13b64854295c1 Mon Sep 17 00:00:00 2001 From: troublemaker52025 Date: Wed, 5 Jan 2022 23:26:28 +0800 Subject: [PATCH 14/45] Combing planar-shadow calculations for v3.4.1 (#4127) --- native/cocos/renderer/pipeline/Define.cpp | 1 + native/cocos/renderer/pipeline/Define.h | 3 ++- native/cocos/renderer/pipeline/PipelineUBO.cpp | 1 + native/cocos/renderer/pipeline/RenderAdditiveLightQueue.cpp | 2 ++ native/cocos/renderer/pipeline/SceneCulling.cpp | 6 ++++++ native/cocos/renderer/pipeline/SceneCulling.h | 1 + 6 files changed, 13 insertions(+), 1 deletion(-) diff --git a/native/cocos/renderer/pipeline/Define.cpp b/native/cocos/renderer/pipeline/Define.cpp index a97ab92476..9515482b48 100644 --- a/native/cocos/renderer/pipeline/Define.cpp +++ b/native/cocos/renderer/pipeline/Define.cpp @@ -144,6 +144,7 @@ const gfx::UniformBlock UBOShadow::LAYOUT = { {"cc_shadowWHPBInfo", gfx::Type::FLOAT4, 1}, {"cc_shadowLPNNInfo", gfx::Type::FLOAT4, 1}, {"cc_shadowColor", gfx::Type::FLOAT4, 1}, + {"cc_planarNDInfo", gfx::Type::FLOAT4, 1}, }, 1, }; diff --git a/native/cocos/renderer/pipeline/Define.h b/native/cocos/renderer/pipeline/Define.h index ec5e180482..70fc9899ba 100644 --- a/native/cocos/renderer/pipeline/Define.h +++ b/native/cocos/renderer/pipeline/Define.h @@ -452,7 +452,8 @@ struct CC_DLL UBOShadow : public Object { static constexpr uint SHADOW_WIDTH_HEIGHT_PCF_BIAS_INFO_OFFSET = UBOShadow::SHADOW_NEAR_FAR_LINEAR_SATURATION_INFO_OFFSET + 4; static constexpr uint SHADOW_LIGHT_PACKING_NBIAS_NULL_INFO_OFFSET = UBOShadow::SHADOW_WIDTH_HEIGHT_PCF_BIAS_INFO_OFFSET + 4; static constexpr uint SHADOW_COLOR_OFFSET = UBOShadow::SHADOW_LIGHT_PACKING_NBIAS_NULL_INFO_OFFSET + 4; - static constexpr uint COUNT = UBOShadow::SHADOW_COLOR_OFFSET + 4; + static constexpr uint PLANAR_NORMAL_DISTANCE_INFO_OFFSET = UBOShadow::SHADOW_COLOR_OFFSET + 4; + static constexpr uint COUNT = UBOShadow::PLANAR_NORMAL_DISTANCE_INFO_OFFSET + 4; static constexpr uint SIZE = UBOShadow::COUNT * 4; static constexpr uint BINDING = static_cast(PipelineGlobalBindings::UBO_SHADOW); static const gfx::DescriptorSetLayoutBinding DESCRIPTOR; diff --git a/native/cocos/renderer/pipeline/PipelineUBO.cpp b/native/cocos/renderer/pipeline/PipelineUBO.cpp index b3074acce0..ad91f7fd63 100644 --- a/native/cocos/renderer/pipeline/PipelineUBO.cpp +++ b/native/cocos/renderer/pipeline/PipelineUBO.cpp @@ -212,6 +212,7 @@ void PipelineUBO::updateShadowUBOView(const RenderPipeline *pipeline, std::array memcpy(shadowUBO.data() + UBOShadow::SHADOW_LIGHT_PACKING_NBIAS_NULL_INFO_OFFSET, &shadowLPNNInfos, sizeof(shadowLPNNInfos)); } else if (mainLight && shadowInfo->shadowType == scene::ShadowType::PLANAR) { updateDirLight(shadowInfo, mainLight, &shadowUBO); + updatePlanarNormalAndDistance(shadowInfo, &shadowUBO); } const float color[4] = {shadowInfo->color.x, shadowInfo->color.y, shadowInfo->color.z, shadowInfo->color.w}; diff --git a/native/cocos/renderer/pipeline/RenderAdditiveLightQueue.cpp b/native/cocos/renderer/pipeline/RenderAdditiveLightQueue.cpp index 281319a671..0966baee54 100644 --- a/native/cocos/renderer/pipeline/RenderAdditiveLightQueue.cpp +++ b/native/cocos/renderer/pipeline/RenderAdditiveLightQueue.cpp @@ -303,6 +303,7 @@ void RenderAdditiveLightQueue::updateLightDescriptorSet(const scene::Camera *cam // update planar PROJ if (mainLight) { updateDirLight(shadowInfo, mainLight, &_shadowUBO); + updatePlanarNormalAndDistance(shadowInfo, &_shadowUBO); } // Reserve sphere light shadow interface @@ -317,6 +318,7 @@ void RenderAdditiveLightQueue::updateLightDescriptorSet(const scene::Camera *cam // update planar PROJ if (mainLight) { updateDirLight(shadowInfo, mainLight, &_shadowUBO); + updatePlanarNormalAndDistance(shadowInfo, &_shadowUBO); } const auto &matShadowCamera = light->getNode()->getWorldMatrix(); diff --git a/native/cocos/renderer/pipeline/SceneCulling.cpp b/native/cocos/renderer/pipeline/SceneCulling.cpp index 952b79f3a9..30022215a6 100644 --- a/native/cocos/renderer/pipeline/SceneCulling.cpp +++ b/native/cocos/renderer/pipeline/SceneCulling.cpp @@ -143,6 +143,12 @@ void updateDirLight(scene::Shadow *shadows, const scene::Light *light, std::arra memcpy(shadowUBO->data() + UBOShadow::SHADOW_COLOR_OFFSET, &color, sizeof(color)); } +void updatePlanarNormalAndDistance(scene::Shadow *shadows, std::array *shadowUBO) { + const Vec3 normal = shadows->normal.getNormalized(); + const float planarNDInfo[4] = {normal.x, normal.y, normal.z, shadows->distance}; + memcpy(shadowUBO->data() + UBOShadow::PLANAR_NORMAL_DISTANCE_INFO_OFFSET, &planarNDInfo, sizeof(planarNDInfo)); +} + void validPunctualLightsCulling(RenderPipeline *pipeline, scene::Camera *camera) { const auto *const scene = camera->scene; PipelineSceneData * sceneData = pipeline->getPipelineSceneData(); diff --git a/native/cocos/renderer/pipeline/SceneCulling.h b/native/cocos/renderer/pipeline/SceneCulling.h index 6292c9c3ee..9fc5bde39b 100644 --- a/native/cocos/renderer/pipeline/SceneCulling.h +++ b/native/cocos/renderer/pipeline/SceneCulling.h @@ -46,6 +46,7 @@ void validPunctualLightsCulling(RenderPipeline *pipeline, scene::Camera void sceneCulling(RenderPipeline *, scene::Camera *); void updateSphereLight(scene::Shadow *shadows, const scene::Light *light, std::array *); void updateDirLight(scene::Shadow *shadows, const scene::Light *light, std::array *); +void updatePlanarNormalAndDistance(scene::Shadow *shadows, std::array *shadowUBO); void getShadowWorldMatrix(const scene::Sphere *sphere, const cc::Quaternion &rotation, const cc::Vec3 &dir, cc::Mat4 *shadowWorldMat, cc::Vec3 *out); Mat4 getCameraWorldMatrix(const scene::Camera *camera); void updateDirFrustum(const scene::Sphere *cameraBoundingSphere, const Quaternion &rotation, float range, scene::Frustum *dirLightFrustum); From b54225e4336a3007516ecfc4b4f2ea1399d124b8 Mon Sep 17 00:00:00 2001 From: timlyeee <43355299+timlyeee@users.noreply.github.com> Date: Thu, 6 Jan 2022 16:58:37 +0800 Subject: [PATCH 15/45] Rename JsbBridgeWrapper API (#4130) --- .../src/com/cocos/lib/JsbBridgeWrapper.java | 74 ++++++++++++------- .../cocos/platform/apple/JsbBridgeWrapper.h | 26 ++++--- .../cocos/platform/apple/JsbBridgeWrapper.mm | 49 ++++++------ 3 files changed, 88 insertions(+), 61 deletions(-) diff --git a/native/cocos/platform/android/java/src/com/cocos/lib/JsbBridgeWrapper.java b/native/cocos/platform/android/java/src/com/cocos/lib/JsbBridgeWrapper.java index 46e4853223..6bc71bb92b 100644 --- a/native/cocos/platform/android/java/src/com/cocos/lib/JsbBridgeWrapper.java +++ b/native/cocos/platform/android/java/src/com/cocos/lib/JsbBridgeWrapper.java @@ -28,42 +28,62 @@ import java.util.ArrayList; import java.util.HashMap; public class JsbBridgeWrapper { - public interface JavaCallback { - void onTrigger(String arg); + //Interface for listener, should be implemented and dispatched + public interface OnScriptEventListener { + void onScriptEvent(String arg); } - + /** + * Get the instance of JsbBridgetWrapper + */ public static JsbBridgeWrapper getInstance() { if (instance == null) { instance = new JsbBridgeWrapper(); } return instance; } - - public void addCallback(String event, JavaCallback cb) { - if (eventMap.get(event) == null) { - eventMap.put(event, new ArrayList()); + /** + * Add a listener to specified event, if the event does not exist, the wrapper will create one. Concurrent listener will be ignored + */ + public void addScriptEventListener(String eventName, OnScriptEventListener listener) { + if (eventMap.get(eventName) == null) { + eventMap.put(eventName, new ArrayList()); } - eventMap.get(event).add(cb); + eventMap.get(eventName).add(listener); } - - public void removeCallback(String event, JavaCallback cb) { - ArrayList arr = eventMap.get(event); + /** + * Remove listener for specified event, concurrent event will be deleted. Return false only if the event does not exist + */ + public boolean removeScriptEventListener(String eventName, OnScriptEventListener listener) { + ArrayList arr = eventMap.get(eventName); if (arr == null) { - return; + return false; } - arr.remove(cb); + arr.remove(listener); + return true; } - - public void removeEvent(String event) { - this.eventMap.remove(event); + /** + * Remove all listener for event specified. + */ + public void removeAllListenersForEvent(String eventName) { + this.eventMap.remove(eventName); } - - public void dispatchScriptEvent(String event, String arg0) { - JsbBridge.sendToScript(event, arg0); + /** + * Remove all event registered. Use it carefully! + */ + public void removeAllListeners() { + this.eventMap.clear(); } - - public void dispatchScriptEvent(String event) { - JsbBridge.sendToScript(event); + /** + * Dispatch the event with argument, the event should be registered in javascript, or other script language in future. + */ + public void dispatchEventToScript(String eventName, String arg) { + JsbBridge.sendToScript(eventName, arg); + } + /** + * Dispatch the event which is registered in javascript, or other script language in future. + */ + public void dispatchEventToScript(String eventName) { + JsbBridge.sendToScript(eventName); } private JsbBridgeWrapper() { @@ -75,15 +95,15 @@ public class JsbBridgeWrapper { }); } - private final HashMap> eventMap = new HashMap<>(); + private final HashMap> eventMap = new HashMap<>(); private static JsbBridgeWrapper instance; - private void triggerEvents(String event, String arg) { - ArrayList arr = eventMap.get(event); + private void triggerEvents(String eventName, String arg) { + ArrayList arr = eventMap.get(eventName); if (arr == null) return; - for (JavaCallback m : arr) { - m.onTrigger(arg); + for (OnScriptEventListener m : arr) { + m.onScriptEvent(arg); } } } diff --git a/native/cocos/platform/apple/JsbBridgeWrapper.h b/native/cocos/platform/apple/JsbBridgeWrapper.h index 43b092dacf..0072fc26dc 100644 --- a/native/cocos/platform/apple/JsbBridgeWrapper.h +++ b/native/cocos/platform/apple/JsbBridgeWrapper.h @@ -25,7 +25,7 @@ #pragma once #import -typedef void (^eventCallback)(NSString*); +typedef void (^OnScriptEventListener)(NSString*); @interface JsbBridgeWrapper : NSObject /** @@ -33,23 +33,27 @@ typedef void (^eventCallback)(NSString*); */ + (instancetype)sharedInstance; /** - * add a callback to specified event, if the event does not exist, the wrapper will create one + * Add a listener to specified event, if the event does not exist, the wrapper will create one. Concurrent listener will be ignored */ -- (void)addCallback:(NSString*)event callback:(eventCallback)callback; +- (void)addScriptEventListener:(NSString*)eventName listener:(OnScriptEventListener)listener; /** - * remove callback for specified event, concurrent event will be deleted. + * Remove listener for specified event, concurrent event will be deleted. Return false only if the event does not exist */ -- (bool)removeCallback:(NSString*)event callback:(eventCallback)callback; +- (bool)removeScriptEventListener:(NSString*)eventName listener:(OnScriptEventListener)listener; /** - * Return true if successfully remove the callback, false if event does not exist + * Remove all listener for event specified. */ -- (void)removeEvent:(NSString*)event; +- (void)removeAllListenersForEvent:(NSString*)eventName; /** - * Dispatch the event with argument, the event should be regiestered in javascript, or other script language in future. + * Remove all event registered. Use it carefully! */ -- (void)dispatchScriptEvent:(NSString*)name arg:(NSString*)arg; +- (void)removeAllListeners; /** - * Dispatch the event which is regiestered in javascript, or other script language in future. + * Dispatch the event with argument, the event should be registered in javascript, or other script language in future. */ -- (void)dispatchScriptEvent:(NSString*)name; +- (void)dispatchEventToScript:(NSString*)eventName arg:(NSString*)arg; +/** + * Dispatch the event which is registered in javascript, or other script language in future. + */ +- (void)dispatchEventToScript:(NSString*)eventName; @end diff --git a/native/cocos/platform/apple/JsbBridgeWrapper.mm b/native/cocos/platform/apple/JsbBridgeWrapper.mm index b188599b1c..acb074f69b 100644 --- a/native/cocos/platform/apple/JsbBridgeWrapper.mm +++ b/native/cocos/platform/apple/JsbBridgeWrapper.mm @@ -30,7 +30,7 @@ @implementation JsbBridgeWrapper { JsbBridge* jb; - NSMutableDictionary*>* cbDictionnary; + NSMutableDictionary*>* cbDictionnary; } static JsbBridgeWrapper* instance = nil; @@ -53,48 +53,51 @@ static ICallback cb = ^void(NSString* _event, NSString* _arg) { return [JsbBridgeWrapper sharedInstance]; } -- (void)addCallback:(NSString*)event callback:(eventCallback)callback { - if (![cbDictionnary objectForKey:event]) { - [cbDictionnary setValue:[NSMutableArray new] forKey:event]; +- (void)addScriptEventListener:(NSString*)eventName listener:(OnScriptEventListener)listener { + if (![cbDictionnary objectForKey:eventName]) { + [cbDictionnary setValue:[NSMutableArray new] forKey:eventName]; } - NSMutableArray* arr = [cbDictionnary objectForKey:event]; - if (![arr containsObject:callback]) { - [arr addObject:callback]; + NSMutableArray* arr = [cbDictionnary objectForKey:eventName]; + if (![arr containsObject:listener]) { + [arr addObject:listener]; } - [callback release]; + [listener release]; } -- (void)triggerEvent:(NSString*)event arg:(NSString*)arg { - NSMutableArray* arr = [cbDictionnary objectForKey:event]; +- (void)triggerEvent:(NSString*)eventName arg:(NSString*)arg { + NSMutableArray* arr = [cbDictionnary objectForKey:eventName]; if (!arr) { return; } - for (eventCallback cb : arr) { - cb(arg); + for (OnScriptEventListener listener : arr) { + listener(arg); } } -- (void)removeEvent:(NSString*)event { - if (![cbDictionnary objectForKey:event]) { +- (void)removeAllListenersForEvent:(NSString *)eventName { + if (![cbDictionnary objectForKey:eventName]) { return; } - [cbDictionnary removeObjectForKey:event]; + //same as release all listeners. + [cbDictionnary removeObjectForKey:eventName]; } -- (bool)removeCallback:(NSString*)event callback:(eventCallback)callback { - NSMutableArray* arr = [cbDictionnary objectForKey:event]; +- (bool)removeScriptEventListener:(NSString*)eventName listener:(OnScriptEventListener)listener { + NSMutableArray* arr = [cbDictionnary objectForKey:eventName]; if (!arr) { return false; } - [arr removeObject:callback]; + [arr removeObject:listener]; return true; } - -- (void)dispatchScriptEvent:(NSString*)event arg:(NSString*)arg { - [jb sendToScript:event arg1:arg]; +- (void)removeAllListeners { + [cbDictionnary removeAllObjects]; +} +- (void)dispatchEventToScript:(NSString*)eventName arg:(NSString*)arg { + [jb sendToScript:eventName arg1:arg]; } -- (void)dispatchScriptEvent:(NSString*)event { - [jb sendToScript:event]; +- (void)dispatchEventToScript:(NSString*)eventName { + [jb sendToScript:eventName]; } - (id)init { self = [super init]; From cdfc12eccddce58a24188e0c483b0890b8a0b8d3 Mon Sep 17 00:00:00 2001 From: GengineJS <476393671@qq.com> Date: Thu, 6 Jan 2022 18:42:26 +0800 Subject: [PATCH 16/45] Multiple Cameras support rendering to the same RenderTexture (#4132) --- .../renderer/pipeline/forward/ForwardStage.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/native/cocos/renderer/pipeline/forward/ForwardStage.cpp b/native/cocos/renderer/pipeline/forward/ForwardStage.cpp index 166266a811..d6032861ee 100644 --- a/native/cocos/renderer/pipeline/forward/ForwardStage.cpp +++ b/native/cocos/renderer/pipeline/forward/ForwardStage.cpp @@ -162,8 +162,8 @@ void ForwardStage::render(scene::Camera *camera) { framegraph::Texture::Descriptor colorTexInfo; colorTexInfo.format = sharedData->isHDR ? gfx::Format::RGBA16F : gfx::Format::RGBA8; colorTexInfo.usage = gfx::TextureUsageBit::COLOR_ATTACHMENT; - colorTexInfo.width = static_cast(pipeline->getWidth() * shadingScale); - colorTexInfo.height = static_cast(pipeline->getHeight() * shadingScale); + colorTexInfo.width = static_cast(camera->window->getWidth() * shadingScale); + colorTexInfo.height = static_cast(camera->window->getHeight() * shadingScale); if (shadingScale != 1.F) { colorTexInfo.usage |= gfx::TextureUsageBit::TRANSFER_SRC; } @@ -173,8 +173,7 @@ void ForwardStage::render(scene::Camera *camera) { colorAttachmentInfo.clearColor = _clearColors[0]; colorAttachmentInfo.loadOp = gfx::LoadOp::CLEAR; auto clearFlags = static_cast(camera->clearFlag); - bool isSwapchain = !!camera->window->swapchain; - if (isSwapchain && !hasFlag(clearFlags, gfx::ClearFlagBit::COLOR)) { + if (!hasFlag(clearFlags, gfx::ClearFlagBit::COLOR)) { if (hasFlag(clearFlags, static_cast(skyboxFlag))) { colorAttachmentInfo.loadOp = gfx::LoadOp::DISCARD; } else { @@ -190,8 +189,8 @@ void ForwardStage::render(scene::Camera *camera) { gfx::TextureType::TEX2D, gfx::TextureUsageBit::DEPTH_STENCIL_ATTACHMENT, gfx::Format::DEPTH_STENCIL, - static_cast(pipeline->getWidth() * shadingScale), - static_cast(pipeline->getHeight() * shadingScale), + static_cast(camera->window->getWidth() * shadingScale), + static_cast(camera->window->getHeight() * shadingScale), }; framegraph::RenderTargetAttachment::Descriptor depthAttachmentInfo; @@ -201,7 +200,7 @@ void ForwardStage::render(scene::Camera *camera) { depthAttachmentInfo.clearStencil = camera->clearStencil; depthAttachmentInfo.beginAccesses = {gfx::AccessType::DEPTH_STENCIL_ATTACHMENT_WRITE}; depthAttachmentInfo.endAccesses = {gfx::AccessType::DEPTH_STENCIL_ATTACHMENT_WRITE}; - if (isSwapchain && static_cast(clearFlags & gfx::ClearFlagBit::DEPTH_STENCIL) != gfx::ClearFlagBit::DEPTH_STENCIL + if (static_cast(clearFlags & gfx::ClearFlagBit::DEPTH_STENCIL) != gfx::ClearFlagBit::DEPTH_STENCIL && (!hasFlag(clearFlags, gfx::ClearFlagBit::DEPTH) || !hasFlag(clearFlags, gfx::ClearFlagBit::STENCIL))) { depthAttachmentInfo.loadOp = gfx::LoadOp::LOAD; } From cf6e3f6ff0f513d9cbb3f4fa9aaf46e50f533f4b Mon Sep 17 00:00:00 2001 From: troublemaker52025 Date: Thu, 6 Jan 2022 23:09:15 +0800 Subject: [PATCH 17/45] Change define(CC_DIR_SHADOW) to uniform(cc_lightDir.w) for v3.4.1 (#4129) * change-CC_DIR_SHADOW-define-v3.4.1 * fix ci error * update --- .../cocos/renderer/pipeline/PipelineUBO.cpp | 24 +++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/native/cocos/renderer/pipeline/PipelineUBO.cpp b/native/cocos/renderer/pipeline/PipelineUBO.cpp index ad91f7fd63..1edd46394a 100644 --- a/native/cocos/renderer/pipeline/PipelineUBO.cpp +++ b/native/cocos/renderer/pipeline/PipelineUBO.cpp @@ -72,14 +72,15 @@ void PipelineUBO::updateGlobalUBOView(const scene::Camera *camera, std::arrayscene; - const scene::DirectionalLight *mainLight = scene->getMainLight(); - auto * sceneData = pipeline->getPipelineSceneData(); - auto *const sharedData = sceneData->getSharedData(); - auto *const descriptorSet = pipeline->getDescriptorSet(); - auto * ambient = sharedData->ambient; - auto * fog = sharedData->fog; - const auto isHDR = sharedData->isHDR; + const auto * scene = camera->scene; + const scene::DirectionalLight *mainLight = scene->getMainLight(); + const auto * sceneData = pipeline->getPipelineSceneData(); + const auto * sharedData = sceneData->getSharedData(); + const auto * descriptorSet = pipeline->getDescriptorSet(); + const auto * ambient = sharedData->ambient; + const auto * fog = sharedData->fog; + const auto * shadowInfo = sharedData->shadow; + const auto isHDR = sharedData->isHDR; auto *device = gfx::Device::getInstance(); @@ -98,7 +99,9 @@ void PipelineUBO::updateCameraUBOView(const RenderPipeline *pipeline, float *out output[UBOCamera::EXPOSURE_OFFSET + 3] = 0.0F; if (mainLight) { - TO_VEC3(output, mainLight->getDirection(), UBOCamera::MAIN_LIT_DIR_OFFSET) + const float shadowEnable = (shadowInfo->enabled && shadowInfo->shadowType == scene::ShadowType::SHADOWMAP) ? 1.0F : 0.0F; + const Vec4 lightDir(mainLight->getDirection().x, mainLight->getDirection().y, mainLight->getDirection().z, shadowEnable); + TO_VEC4(output, lightDir, UBOCamera::MAIN_LIT_DIR_OFFSET) TO_VEC3(output, mainLight->getColor(), UBOCamera::MAIN_LIT_COLOR_OFFSET) if (mainLight->getUseColorTemperature()) { const auto &colorTempRGB = mainLight->getColorTemperatureRGB(); @@ -114,7 +117,8 @@ void PipelineUBO::updateCameraUBOView(const RenderPipeline *pipeline, float *out output[UBOCamera::MAIN_LIT_COLOR_OFFSET + 3] = mainLight->getIlluminanceLDR(); } } else { - TO_VEC3(output, Vec3::UNIT_Z, UBOCamera::MAIN_LIT_DIR_OFFSET); + const Vec4 lightDir(0.0F, 0.0F, 1.0F, 0.0F); + TO_VEC4(output, lightDir, UBOCamera::MAIN_LIT_DIR_OFFSET); TO_VEC4(output, Vec4::ZERO, UBOCamera::MAIN_LIT_COLOR_OFFSET); } From 6d79a24cab8ef33491355090e209f6fc8747c229 Mon Sep 17 00:00:00 2001 From: qiuguohua Date: Fri, 7 Jan 2022 09:47:13 +0800 Subject: [PATCH 18/45] V3.5.0 (#4134) * Temporarily solve the application is released, but other modules need to use application * Solve the application is released, but other modules need to use application * Solve some warnings about platform adaptation * Fix the problem that the linux platform is not assigned --- .../bindings/manual/jsb_xmlhttprequest.cpp | 34 +++++++++++++------ .../CanvasRenderingContext2DDelegate.cpp | 23 +------------ .../cocos/platform/win32/FileUtils-win32.cpp | 7 ++-- .../cocos/platform/win32/WindowsPlatform.cpp | 3 +- .../cocos/platform/win32/modules/System.cpp | 3 +- 5 files changed, 32 insertions(+), 38 deletions(-) diff --git a/native/cocos/bindings/manual/jsb_xmlhttprequest.cpp b/native/cocos/bindings/manual/jsb_xmlhttprequest.cpp index 45316df31d..21e60f36f9 100644 --- a/native/cocos/bindings/manual/jsb_xmlhttprequest.cpp +++ b/native/cocos/bindings/manual/jsb_xmlhttprequest.cpp @@ -194,6 +194,8 @@ private: cc::Data _responseData; + using SchedulerWeakPtr = std::weak_ptr; + SchedulerWeakPtr _scheduler; cc::network::HttpRequest *_httpRequest; // cc::EventListenerCustom* _resetDirectorListener; @@ -227,7 +229,10 @@ XMLHttpRequest::XMLHttpRequest() } XMLHttpRequest::~XMLHttpRequest() { - CC_CURRENT_ENGINE()->getScheduler()->unscheduleAllForTarget(this); + if (!_scheduler.expired()) { + _scheduler.lock()->unscheduleAllForTarget(this); + } + // Avoid HttpClient response call a released object! _httpRequest->setResponseCallback(nullptr); CC_SAFE_RELEASE(_httpRequest); @@ -376,7 +381,10 @@ void XMLHttpRequest::getHeader(const std::string &header) { } void XMLHttpRequest::onResponse(HttpClient * /*client*/, HttpResponse *response) { - CC_CURRENT_ENGINE()->getScheduler()->unscheduleAllForTarget(this); + if (!_scheduler.expired()) { + _scheduler.lock()->unscheduleAllForTarget(this); + } + _isSending = false; if (_isTimeout) { @@ -476,15 +484,21 @@ void XMLHttpRequest::sendRequest() { } _isSending = true; _isTimeout = false; + + _scheduler.reset(); + _scheduler = CC_CURRENT_ENGINE()->getScheduler(); + if (_timeoutInMilliseconds > 0) { - CC_CURRENT_ENGINE()->getScheduler()->schedule([this](float /* dt */) { - if (ontimeout != nullptr) { - ontimeout(); - } - _isTimeout = true; - _readyState = ReadyState::UNSENT; - }, - this, _timeoutInMilliseconds / 1000.0F, 0, 0.0F, false, "XMLHttpRequest"); + if (!_scheduler.expired()) { + _scheduler.lock()->schedule([this](float /* dt */) { + if (ontimeout != nullptr) { + ontimeout(); + } + _isTimeout = true; + _readyState = ReadyState::UNSENT; + }, + this, _timeoutInMilliseconds / 1000.0F, 0, 0.0F, false, "XMLHttpRequest"); + } } setHttpRequestHeader(); diff --git a/native/cocos/platform/linux/modules/CanvasRenderingContext2DDelegate.cpp b/native/cocos/platform/linux/modules/CanvasRenderingContext2DDelegate.cpp index c8a36595f6..9c933c8165 100644 --- a/native/cocos/platform/linux/modules/CanvasRenderingContext2DDelegate.cpp +++ b/native/cocos/platform/linux/modules/CanvasRenderingContext2DDelegate.cpp @@ -33,36 +33,15 @@ namespace { #define RGBA(r, g, b, a) (int)((int)r | (((int)g) << 8) | (((int)b) << 16) | (((int)a) << 24)) } // namespace -namespace { -void fillRectWithColor(uint8_t *buf, uint32_t totalWidth, uint32_t totalHeight, uint32_t x, uint32_t y, uint32_t width, uint32_t height, uint8_t r, uint8_t g, uint8_t b, uint8_t a) { - assert(x + width <= totalWidth); - assert(y + height <= totalHeight); - - uint32_t y0 = y; - uint32_t y1 = y + height; - uint8_t *p; - for (uint32_t offsetY = y0; offsetY < y1; ++offsetY) { - for (uint32_t offsetX = x; offsetX < (x + width); ++offsetX) { - p = buf + (totalWidth * offsetY + offsetX) * 4; - *p++ = r; - *p++ = g; - *p++ = b; - *p++ = a; - } - } -} -} // namespace - namespace cc { //static const char gdefaultFontName[] = "-*-helvetica-medium-o-*-*-24-*-*-*-*-*-iso8859-*"; //static const char gdefaultFontName[] = "lucidasanstypewriter-bold-24"; static const char gdefaultFontName[] = "lucidasans-24"; -static const char gdefaultFontName1[] = "lucidasans"; CanvasRenderingContext2DDelegate::CanvasRenderingContext2DDelegate() { SDL_SysWMinfo wmInfo; SDL_VERSION(&wmInfo.version); - LinuxPlatform *platform = nullptr; + LinuxPlatform *platform = dynamic_cast(BasePlatform::getPlatform()); CCASSERT(platform != nullptr, "Platform pointer can't be null"); SDL_GetWindowWMInfo(reinterpret_cast(platform->getWindow()), &wmInfo); _dis = wmInfo.info.x11.display; diff --git a/native/cocos/platform/win32/FileUtils-win32.cpp b/native/cocos/platform/win32/FileUtils-win32.cpp index eb8f8e599f..c0e631c679 100644 --- a/native/cocos/platform/win32/FileUtils-win32.cpp +++ b/native/cocos/platform/win32/FileUtils-win32.cpp @@ -26,7 +26,6 @@ ****************************************************************************/ #if CC_PLATFORM == CC_PLATFORM_WINDOWS - #include "platform/win32/FileUtils-win32.h" #include "platform/win32/Utils-win32.h" #include "base/Log.h" @@ -48,8 +47,8 @@ static std::string s_resourcePath = ""; // D:\aaa\bbb\ccc\ddd\abc.txt --> D:/aaa/bbb/ccc/ddd/abc.txt static inline std::string convertPathFormatToUnixStyle(const std::string &path) { std::string ret = path; - int len = ret.length(); - for (int i = 0; i < len; ++i) { + size_t len = ret.length(); + for (size_t i = 0; i < len; ++i) { if (ret[i] == '\\') { ret[i] = '/'; } @@ -67,7 +66,7 @@ static void _checkPath() { WCHAR *pUtf16DirEnd = wcsrchr(pUtf16ExePath, L'\\'); char utf8ExeDir[CC_MAX_PATH] = {0}; - int nNum = WideCharToMultiByte(CP_UTF8, 0, pUtf16ExePath, pUtf16DirEnd - pUtf16ExePath + 1, utf8ExeDir, sizeof(utf8ExeDir), nullptr, nullptr); + int nNum = WideCharToMultiByte(CP_UTF8, 0, pUtf16ExePath, static_cast(pUtf16DirEnd - pUtf16ExePath + 1), utf8ExeDir, sizeof(utf8ExeDir), nullptr, nullptr); s_resourcePath = convertPathFormatToUnixStyle(utf8ExeDir); } diff --git a/native/cocos/platform/win32/WindowsPlatform.cpp b/native/cocos/platform/win32/WindowsPlatform.cpp index 531fa54b18..abfe53b3a1 100644 --- a/native/cocos/platform/win32/WindowsPlatform.cpp +++ b/native/cocos/platform/win32/WindowsPlatform.cpp @@ -65,7 +65,7 @@ void PVRFrameEnableControlWindow(bool bEnable) { || (ERROR_SUCCESS == status // or the hide_gui value is exist && 0 != wcscmp(wszNewData, wszOldData))) // but new data and old data not equal { - dwSize = sizeof(WCHAR) * (wcslen(wszNewData) + 1); + dwSize = static_cast(sizeof(WCHAR) * (wcslen(wszNewData) + 1)); RegSetValueEx(hKey, wszValue, 0, REG_SZ, (const BYTE *)wszNewData, dwSize); } @@ -453,6 +453,7 @@ bool WindowsPlatform::createWindow(const char *title, return true; } + uintptr_t WindowsPlatform::getWindowHandler() const { SDL_SysWMinfo wmInfo; SDL_VERSION(&wmInfo.version); diff --git a/native/cocos/platform/win32/modules/System.cpp b/native/cocos/platform/win32/modules/System.cpp index a769f6c77e..da0be1749d 100644 --- a/native/cocos/platform/win32/modules/System.cpp +++ b/native/cocos/platform/win32/modules/System.cpp @@ -145,7 +145,8 @@ std::string System::getSystemVersion() const { bool System::openURL(const std::string& url) { WCHAR* temp = new WCHAR[url.size() + 1]; - MultiByteToWideChar(CP_UTF8, 0, url.c_str(), url.size() + 1, temp, url.size() + 1); + int urlSize = static_cast(url.size() + 1); + MultiByteToWideChar(CP_UTF8, 0, url.c_str(), urlSize, temp, urlSize); HINSTANCE r = ShellExecuteW(NULL, L"open", temp, NULL, NULL, SW_SHOWNORMAL); delete[] temp; return (size_t)r > 32; From f78ade706e875dd0d14e9377c379fdd9b43b8587 Mon Sep 17 00:00:00 2001 From: timlyeee <43355299+timlyeee@users.noreply.github.com> Date: Fri, 7 Jan 2022 18:45:00 +0800 Subject: [PATCH 19/45] Update config.json (#4137) --- native/external/config.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/native/external/config.json b/native/external/config.json index bb2249a89f..bd01c95b95 100644 --- a/native/external/config.json +++ b/native/external/config.json @@ -1,9 +1,9 @@ { - "version": "v3d-gfx-84", + "version": "v3d-gfx-88", "from": { "type": "github", "owner": "cocos-creator", "name": "engine-native-external", - "checkout": "v3d-gfx-83" + "checkout": "v3d-gfx-88" } } From 5321d81d95647a1885d1c79488feee03186b2ca8 Mon Sep 17 00:00:00 2001 From: DolaMay <158788224@qq.com> Date: Fri, 7 Jan 2022 22:56:18 +0800 Subject: [PATCH 20/45] Position Delete & Normal Compress: V3.4.1 native (#4135) * fix cluster check bugs * Position Delete & Normal Compress --- .../renderer/pipeline/ClusterLightCulling.cpp | 7 +++- .../cocos/renderer/pipeline/PipelineUBO.cpp | 8 ++-- .../pipeline/deferred/DeferredPipeline.cpp | 1 - .../pipeline/deferred/DeferredPipeline.h | 2 +- .../pipeline/deferred/GbufferStage.cpp | 8 ++-- .../pipeline/deferred/LightingStage.cpp | 38 ++++++++++++++----- 6 files changed, 42 insertions(+), 22 deletions(-) diff --git a/native/cocos/renderer/pipeline/ClusterLightCulling.cpp b/native/cocos/renderer/pipeline/ClusterLightCulling.cpp index a32bd80d17..70777d90b6 100644 --- a/native/cocos/renderer/pipeline/ClusterLightCulling.cpp +++ b/native/cocos/renderer/pipeline/ClusterLightCulling.cpp @@ -229,8 +229,10 @@ void ClusterLightCulling::updateLights() { break; } } - // the count of lights is set to cc_lightDir[0].w - _lightBufferData[3 * 4 + 3] = static_cast(validLightCount); + if (validLightCount > 0) { + // the count of lights is set to cc_lightDir[0].w + _lightBufferData[3 * 4 + 3] = static_cast(validLightCount); + } } void ClusterLightCulling::initBuildingSatge() { @@ -661,6 +663,7 @@ void ClusterLightCulling::clusterLightCulling(scene::Camera* camera) { if (!_initialized || _pipeline->getPipelineUBO()->getCurrentCameraUBOOffset() != 0) return; _camera = camera; update(); // update ubo and light data + if (_validLights.empty()) return; struct DataClusterBuild { framegraph::BufferHandle clusterBuffer; // cluster build storage buffer diff --git a/native/cocos/renderer/pipeline/PipelineUBO.cpp b/native/cocos/renderer/pipeline/PipelineUBO.cpp index 1edd46394a..d229e5d8c6 100644 --- a/native/cocos/renderer/pipeline/PipelineUBO.cpp +++ b/native/cocos/renderer/pipeline/PipelineUBO.cpp @@ -163,10 +163,10 @@ void PipelineUBO::updateCameraUBOView(const RenderPipeline *pipeline, float *out output[UBOCamera::GLOBAL_NEAR_FAR_OFFSET + 0] = static_cast(camera->nearClip); output[UBOCamera::GLOBAL_NEAR_FAR_OFFSET + 1] = static_cast(camera->farClip); - output[UBOCamera::GLOBAL_VIEW_PORT_OFFSET + 0] = camera->viewPort.x; - output[UBOCamera::GLOBAL_VIEW_PORT_OFFSET + 1] = camera->viewPort.y; - output[UBOCamera::GLOBAL_VIEW_PORT_OFFSET + 2] = camera->viewPort.z; - output[UBOCamera::GLOBAL_VIEW_PORT_OFFSET + 3] = camera->viewPort.w; + output[UBOCamera::GLOBAL_VIEW_PORT_OFFSET + 0] = sharedData->shadingScale * camera->window->getWidth() * camera->viewPort.x; + output[UBOCamera::GLOBAL_VIEW_PORT_OFFSET + 1] = sharedData->shadingScale * camera->window->getHeight() * camera->viewPort.y; + output[UBOCamera::GLOBAL_VIEW_PORT_OFFSET + 2] = sharedData->shadingScale * camera->window->getWidth() * camera->viewPort.z; + output[UBOCamera::GLOBAL_VIEW_PORT_OFFSET + 3] = sharedData->shadingScale * camera->window->getHeight() * camera->viewPort.w; } void PipelineUBO::updateShadowUBOView(const RenderPipeline *pipeline, std::array *bufferView, const scene::Camera *camera) { diff --git a/native/cocos/renderer/pipeline/deferred/DeferredPipeline.cpp b/native/cocos/renderer/pipeline/deferred/DeferredPipeline.cpp index 491f248331..7708542943 100644 --- a/native/cocos/renderer/pipeline/deferred/DeferredPipeline.cpp +++ b/native/cocos/renderer/pipeline/deferred/DeferredPipeline.cpp @@ -51,7 +51,6 @@ namespace pipeline { framegraph::StringHandle DeferredPipeline::fgStrHandleGbufferTexture[GBUFFER_COUNT] = { framegraph::FrameGraph::stringToHandle("gbufferAlbedoTexture"), - framegraph::FrameGraph::stringToHandle("gbufferPositionTexture"), framegraph::FrameGraph::stringToHandle("gbufferNormalTexture"), framegraph::FrameGraph::stringToHandle("gbufferEmissiveTexture")}; diff --git a/native/cocos/renderer/pipeline/deferred/DeferredPipeline.h b/native/cocos/renderer/pipeline/deferred/DeferredPipeline.h index d3170936f0..f406718f0c 100644 --- a/native/cocos/renderer/pipeline/deferred/DeferredPipeline.h +++ b/native/cocos/renderer/pipeline/deferred/DeferredPipeline.h @@ -69,7 +69,7 @@ private: ClusterLightCulling *_clusterComp{nullptr}; public: - static constexpr uint GBUFFER_COUNT = 4; + static constexpr uint GBUFFER_COUNT = 3; // deferred resource names static framegraph::StringHandle fgStrHandleGbufferTexture[GBUFFER_COUNT]; diff --git a/native/cocos/renderer/pipeline/deferred/GbufferStage.cpp b/native/cocos/renderer/pipeline/deferred/GbufferStage.cpp index b9f0812a6e..40beea573e 100644 --- a/native/cocos/renderer/pipeline/deferred/GbufferStage.cpp +++ b/native/cocos/renderer/pipeline/deferred/GbufferStage.cpp @@ -169,7 +169,7 @@ void GbufferStage::render(scene::Camera *camera) { static_cast(pipeline->getHeight() * shadingScale), }; for (int i = 0; i < DeferredPipeline::GBUFFER_COUNT - 1; ++i) { - if (i != 0) { // positions & normals need more precision + if (i != 0) { // normals need more precision data.gbuffer[i] = builder.create(DeferredPipeline::fgStrHandleGbufferTexture[i], gbufferInfoFloat); } else { data.gbuffer[i] = builder.create(DeferredPipeline::fgStrHandleGbufferTexture[i], gbufferInfo); @@ -178,10 +178,10 @@ void GbufferStage::render(scene::Camera *camera) { auto subpassEnabled = _device->hasFeature(gfx::Feature::INPUT_ATTACHMENT_BENEFIT); if (subpassEnabled) { - // when subpass enabled, the color result (gles2/gles3) will write to gbuffer[3] and the blit to color texture, so the format should be RGBA16F - data.gbuffer[3] = builder.create(DeferredPipeline::fgStrHandleGbufferTexture[3], gbufferInfoFloat); + // when subpass enabled, the color result (gles2/gles3) will write to gbuffer[2] and the blit to color texture, so the format should be RGBA16F + data.gbuffer[2] = builder.create(DeferredPipeline::fgStrHandleGbufferTexture[2], gbufferInfoFloat); } else { - data.gbuffer[3] = builder.create(DeferredPipeline::fgStrHandleGbufferTexture[3], gbufferInfo); + data.gbuffer[2] = builder.create(DeferredPipeline::fgStrHandleGbufferTexture[2], gbufferInfo); } gfx::Color clearColor{0.0, 0.0, 0.0, 0.0}; diff --git a/native/cocos/renderer/pipeline/deferred/LightingStage.cpp b/native/cocos/renderer/pipeline/deferred/LightingStage.cpp index 93f227d3f0..b759d6bb33 100644 --- a/native/cocos/renderer/pipeline/deferred/LightingStage.cpp +++ b/native/cocos/renderer/pipeline/deferred/LightingStage.cpp @@ -319,7 +319,7 @@ void LightingStage::fgLightingPass(scene::Camera *camera) { } struct RenderData { - framegraph::TextureHandle gbuffer[4]; // read from gbuffer stage + framegraph::TextureHandle gbuffer[3]; // read from gbuffer stage framegraph::TextureHandle outputTex; // output texture framegraph::TextureHandle depth; framegraph::BufferHandle lightBuffer; // light storage buffer @@ -337,7 +337,7 @@ void LightingStage::fgLightingPass(scene::Camera *camera) { builder.subpass(true); // read gbuffer - for (int i = 0; i < 4; i++) { + for (int i = 0; i < 3; i++) { data.gbuffer[i] = builder.read(framegraph::TextureHandle(builder.readFromBlackboard(DeferredPipeline::fgStrHandleGbufferTexture[i]))); builder.writeToBlackboard(DeferredPipeline::fgStrHandleGbufferTexture[i], data.gbuffer[i]); } @@ -351,16 +351,23 @@ void LightingStage::fgLightingPass(scene::Camera *camera) { data.depth = framegraph::TextureHandle(builder.readFromBlackboard(RenderPipeline::fgStrHandleOutDepthTexture)); data.depth = builder.write(data.depth, depthAttachmentInfo); + data.depth = builder.read(data.depth); builder.writeToBlackboard(RenderPipeline::fgStrHandleOutDepthTexture, data.depth); if (_pipeline->getClusterEnabled()) { // read cluster and light info data.lightBuffer = framegraph::BufferHandle(builder.readFromBlackboard(fgStrHandleClusterLightBuffer)); - builder.read(data.lightBuffer); + if (data.lightBuffer.isValid()) { + builder.read(data.lightBuffer); + } data.lightIndexBuffer = framegraph::BufferHandle(builder.readFromBlackboard(fgStrHandleClusterLightIndexBuffer)); - builder.read(data.lightIndexBuffer); + if (data.lightIndexBuffer.isValid()) { + builder.read(data.lightIndexBuffer); + } data.lightGridBuffer = framegraph::BufferHandle(builder.readFromBlackboard(fgStrHandleClusterLightGridBuffer)); - builder.read(data.lightGridBuffer); + if (data.lightGridBuffer.isValid()) { + builder.read(data.lightGridBuffer); + } } // write to lighting output @@ -406,12 +413,20 @@ void LightingStage::fgLightingPass(scene::Camera *camera) { pass->getDescriptorSet()->bindTexture(i, table.getRead(data.gbuffer[i])); pass->getDescriptorSet()->bindSampler(i, _defaultSampler); } + pass->getDescriptorSet()->bindTexture(3, table.getRead(data.depth)); + pass->getDescriptorSet()->bindSampler(3, _defaultSampler); if (_pipeline->getClusterEnabled()) { // cluster buffer bind - pass->getDescriptorSet()->bindBuffer(CLUSTER_LIGHT_BINDING, table.getRead(data.lightBuffer)); - pass->getDescriptorSet()->bindBuffer(CLUSTER_LIGHT_INDEX_BINDING, table.getRead(data.lightIndexBuffer)); - pass->getDescriptorSet()->bindBuffer(CLUSTER_LIGHT_GRID_BINDING, table.getRead(data.lightGridBuffer)); + if (data.lightBuffer.isValid()) { + pass->getDescriptorSet()->bindBuffer(CLUSTER_LIGHT_BINDING, table.getRead(data.lightBuffer)); + } + if (data.lightIndexBuffer.isValid()) { + pass->getDescriptorSet()->bindBuffer(CLUSTER_LIGHT_INDEX_BINDING, table.getRead(data.lightIndexBuffer)); + } + if (data.lightGridBuffer.isValid()) { + pass->getDescriptorSet()->bindBuffer(CLUSTER_LIGHT_GRID_BINDING, table.getRead(data.lightGridBuffer)); + } } pass->getDescriptorSet()->update(); @@ -491,8 +506,11 @@ void LightingStage::fgTransparent(scene::Camera *camera) { auto *pipeline = static_cast(_pipeline); auto *cmdBuff = pipeline->getCommandBuffers()[0]; - vector dynamicOffsets = {0}; - cmdBuff->bindDescriptorSet(localSet, _descriptorSet, dynamicOffsets); + // no need to bind localSet in cluster + if (!_pipeline->getClusterEnabled()) { + vector dynamicOffsets = {0}; + cmdBuff->bindDescriptorSet(localSet, _descriptorSet, dynamicOffsets); + } const std::array globalOffsets = {pipeline->getPipelineUBO()->getCurrentCameraUBOOffset()}; cmdBuff->bindDescriptorSet(globalSet, pipeline->getDescriptorSet(), utils::toUint(globalOffsets.size()), globalOffsets.data()); From c4714ac283e6cc0087e414f66ae6c650b7f686d0 Mon Sep 17 00:00:00 2001 From: minggo Date: Sat, 8 Jan 2022 11:12:16 +0800 Subject: [PATCH 21/45] fix compiling error --- native/cocos/platform/apple/JsbBridge.mm | 1 - native/cocos/platform/apple/JsbBridgeWrapper.mm | 1 - 2 files changed, 2 deletions(-) diff --git a/native/cocos/platform/apple/JsbBridge.mm b/native/cocos/platform/apple/JsbBridge.mm index eebde32d23..4b954a6522 100644 --- a/native/cocos/platform/apple/JsbBridge.mm +++ b/native/cocos/platform/apple/JsbBridge.mm @@ -24,7 +24,6 @@ ****************************************************************************/ #include "JsbBridge.h" -#include #import #include #include "cocos/bindings/manual/JavaScriptObjCBridge.h" diff --git a/native/cocos/platform/apple/JsbBridgeWrapper.mm b/native/cocos/platform/apple/JsbBridgeWrapper.mm index acb074f69b..afa832cbd2 100644 --- a/native/cocos/platform/apple/JsbBridgeWrapper.mm +++ b/native/cocos/platform/apple/JsbBridgeWrapper.mm @@ -26,7 +26,6 @@ #include #include #include "JsbBridge.h" -#include "Application.h" @implementation JsbBridgeWrapper { JsbBridge* jb; From 7660b203ee1104c6c8d2dbfff94d4dab7c0e7840 Mon Sep 17 00:00:00 2001 From: Cocos Robot <48829427+cocos-robot@users.noreply.github.com> Date: Sat, 8 Jan 2022 12:01:44 +0800 Subject: [PATCH 22/45] [ci skip][AUTO]: Automated genbindings update: c4714ac283e6cc0087e414f66ae6c650b7f686d0 (#4138) (#4145) Co-authored-by: cocos-robot --- native/cocos/bindings/auto/jsb_scene_auto.cpp | 2431 +++++++++-------- native/cocos/bindings/auto/jsb_scene_auto.h | 156 +- 2 files changed, 1364 insertions(+), 1223 deletions(-) diff --git a/native/cocos/bindings/auto/jsb_scene_auto.cpp b/native/cocos/bindings/auto/jsb_scene_auto.cpp index 91590223c4..4324d0984c 100644 --- a/native/cocos/bindings/auto/jsb_scene_auto.cpp +++ b/native/cocos/bindings/auto/jsb_scene_auto.cpp @@ -1,43 +1,44 @@ #include "cocos/bindings/auto/jsb_scene_auto.h" #include "cocos/bindings/manual/jsb_conversions.h" #include "cocos/bindings/manual/jsb_global.h" -#include "scene/AABB.h" -#include "scene/BaseNode.h" -#include "scene/Camera.h" -#include "scene/Define.h" -#include "scene/DirectionalLight.h" -#include "scene/DrawBatch2D.h" -#include "scene/Light.h" -#include "scene/Model.h" #include "scene/Node.h" +#include "scene/BaseNode.h" +#include "scene/Scene.h" +#include "scene/Light.h" +#include "scene/DirectionalLight.h" +#include "scene/SpotLight.h" +#include "scene/SphereLight.h" +#include "scene/Model.h" +#include "scene/SubModel.h" #include "scene/Pass.h" #include "scene/RenderScene.h" +#include "scene/DrawBatch2D.h" +#include "scene/Camera.h" #include "scene/RenderWindow.h" -#include "scene/Scene.h" +#include "scene/Camera.h" +#include "scene/Define.h" +#include "scene/AABB.h" #include "scene/Sphere.h" -#include "scene/SphereLight.h" -#include "scene/SpotLight.h" -#include "scene/SubModel.h" #ifndef JSB_ALLOC - #define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) +#define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) #endif #ifndef JSB_FREE - #define JSB_FREE(ptr) delete ptr +#define JSB_FREE(ptr) delete ptr #endif se::Object* __jsb_cc_scene_BaseNode_proto = nullptr; -se::Class* __jsb_cc_scene_BaseNode_class = nullptr; +se::Class* __jsb_cc_scene_BaseNode_class = nullptr; static bool js_scene_BaseNode_getChilds(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_BaseNode_getChilds : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - const std::vector& result = cobj->getChilds(); + const std::vector& result = cobj->getChilds(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_scene_BaseNode_getChilds : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -52,9 +53,9 @@ static bool js_scene_BaseNode_setParent(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_BaseNode_setParent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -78,10 +79,13 @@ static bool js_scene_BaseNode_constructor(se::State& s) // NOLINT(readability-id } SE_BIND_CTOR(js_scene_BaseNode_constructor, __jsb_cc_scene_BaseNode_class, js_cc_scene_BaseNode_finalize) + + static bool js_cc_scene_BaseNode_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -107,7 +111,7 @@ bool js_register_scene_BaseNode(se::Object* obj) // NOLINT(readability-identifie return true; } se::Object* __jsb_cc_scene_Scene_proto = nullptr; -se::Class* __jsb_cc_scene_Scene_class = nullptr; +se::Class* __jsb_cc_scene_Scene_class = nullptr; SE_DECLARE_FINALIZE_FUNC(js_cc_scene_Scene_finalize) @@ -120,10 +124,13 @@ static bool js_scene_Scene_constructor(se::State& s) // NOLINT(readability-ident } SE_BIND_CTOR(js_scene_Scene_constructor, __jsb_cc_scene_Scene_class, js_cc_scene_Scene_finalize) + + static bool js_cc_scene_Scene_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -147,19 +154,19 @@ bool js_register_scene_Scene(se::Object* obj) // NOLINT(readability-identifier-n return true; } se::Object* __jsb_cc_scene_Node_proto = nullptr; -se::Class* __jsb_cc_scene_Node_class = nullptr; +se::Class* __jsb_cc_scene_Node_class = nullptr; static bool js_scene_Node_initWithData(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Node_initWithData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -183,10 +190,13 @@ static bool js_scene_Node_constructor(se::State& s) // NOLINT(readability-identi } SE_BIND_CTOR(js_scene_Node_constructor, __jsb_cc_scene_Node_class, js_cc_scene_Node_finalize) + + static bool js_cc_scene_Node_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -211,15 +221,15 @@ bool js_register_scene_Node(se::Object* obj) // NOLINT(readability-identifier-na return true; } se::Object* __jsb_cc_scene_Light_proto = nullptr; -se::Class* __jsb_cc_scene_Light_class = nullptr; +se::Class* __jsb_cc_scene_Light_class = nullptr; static bool js_scene_Light_getBaked(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Light_getBaked : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getBaked(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -236,9 +246,9 @@ static bool js_scene_Light_setBaked(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Light_setBaked : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -255,9 +265,9 @@ static bool js_scene_Light_setColor(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Light_setColor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -274,9 +284,9 @@ static bool js_scene_Light_setColorTemperatureRGB(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Light_setColorTemperatureRGB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -293,9 +303,9 @@ static bool js_scene_Light_setNode(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Light_setNode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -312,9 +322,9 @@ static bool js_scene_Light_setType(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Light_setType : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -331,9 +341,9 @@ static bool js_scene_Light_setUseColorTemperature(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Light_setUseColorTemperature : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -351,7 +361,7 @@ static bool js_scene_Light_update(se::State& s) // NOLINT(readability-identifier auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Light_update : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->update(); return true; @@ -361,6 +371,8 @@ static bool js_scene_Light_update(se::State& s) // NOLINT(readability-identifier } SE_BIND_FUNC(js_scene_Light_update) + + bool js_register_scene_Light(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("Light", obj, nullptr, nullptr); @@ -383,15 +395,15 @@ bool js_register_scene_Light(se::Object* obj) // NOLINT(readability-identifier-n return true; } se::Object* __jsb_cc_scene_DirectionalLight_proto = nullptr; -se::Class* __jsb_cc_scene_DirectionalLight_class = nullptr; +se::Class* __jsb_cc_scene_DirectionalLight_class = nullptr; static bool js_scene_DirectionalLight_setDirection(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setDirection : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -408,9 +420,9 @@ static bool js_scene_DirectionalLight_setIlluminanceHDR(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setIlluminanceHDR : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -427,9 +439,9 @@ static bool js_scene_DirectionalLight_setIlluminanceLDR(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setIlluminanceLDR : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -453,10 +465,13 @@ static bool js_scene_DirectionalLight_constructor(se::State& s) // NOLINT(readab } SE_BIND_CTOR(js_scene_DirectionalLight_constructor, __jsb_cc_scene_DirectionalLight_class, js_cc_scene_DirectionalLight_finalize) + + static bool js_cc_scene_DirectionalLight_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -483,15 +498,15 @@ bool js_register_scene_DirectionalLight(se::Object* obj) // NOLINT(readability-i return true; } se::Object* __jsb_cc_scene_Plane_proto = nullptr; -se::Class* __jsb_cc_scene_Plane_class = nullptr; +se::Class* __jsb_cc_scene_Plane_class = nullptr; static bool js_scene_Plane_clone(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Plane_clone : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::Plane result = cobj->clone(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -506,30 +521,24 @@ SE_BIND_FUNC(js_scene_Plane_clone) static bool js_scene_Plane_define(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_scene_Plane_define : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2( cobj, false, "js_scene_Plane_define : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->define(arg0.value(), arg1.value()); return true; } - } while (false); + } while(false); do { if (argc == 3) { @@ -538,24 +547,15 @@ static bool js_scene_Plane_define(se::State& s) // NOLINT(readability-identifier HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->define(arg0.value(), arg1.value(), arg2.value()); return true; } - } while (false); + } while(false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -566,9 +566,9 @@ static bool js_scene_Plane_distance(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Plane_distance : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -590,7 +590,7 @@ static bool js_scene_Plane_get_d(se::State& s) // NOLINT(readability-identifier- SE_PRECONDITION2(cobj, false, "js_scene_Plane_get_d : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->d, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->d, s.thisObject(), s.rval()); @@ -601,7 +601,7 @@ SE_BIND_PROP_GET(js_scene_Plane_get_d) static bool js_scene_Plane_set_d(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Plane_set_d : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -617,7 +617,7 @@ static bool js_scene_Plane_get_n(se::State& s) // NOLINT(readability-identifier- SE_PRECONDITION2(cobj, false, "js_scene_Plane_get_n : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->n, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->n, s.thisObject(), s.rval()); @@ -628,7 +628,7 @@ SE_BIND_PROP_GET(js_scene_Plane_get_n) static bool js_scene_Plane_set_n(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Plane_set_n : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -638,23 +638,25 @@ static bool js_scene_Plane_set_n(se::State& s) // NOLINT(readability-identifier- } SE_BIND_PROP_SET(js_scene_Plane_set_n) -template <> -bool sevalue_to_native(const se::Value& from, cc::scene::Plane* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::scene::Plane * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("d", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->d), ctx); } json->getProperty("n", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->n), ctx); } return ok; @@ -664,24 +666,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_Plane_finalize) static bool js_scene_Plane_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::scene::Plane* cobj = JSB_ALLOC(cc::scene::Plane); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::scene::Plane* cobj = JSB_ALLOC(cc::scene::Plane); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -700,7 +704,7 @@ static bool js_scene_Plane_constructor(se::State& s) // NOLINT(readability-ident ok &= sevalue_to_native(args[1], &(cobj->n), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -712,10 +716,13 @@ static bool js_scene_Plane_constructor(se::State& s) // NOLINT(readability-ident } SE_BIND_CTOR(js_scene_Plane_constructor, __jsb_cc_scene_Plane_class, js_cc_scene_Plane_finalize) + + static bool js_cc_scene_Plane_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -744,15 +751,15 @@ bool js_register_scene_Plane(se::Object* obj) // NOLINT(readability-identifier-n return true; } se::Object* __jsb_cc_scene_Frustum_proto = nullptr; -se::Class* __jsb_cc_scene_Frustum_class = nullptr; +se::Class* __jsb_cc_scene_Frustum_class = nullptr; static bool js_scene_Frustum_clone(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Frustum_clone : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::Frustum result = cobj->clone(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -769,14 +776,14 @@ static bool js_scene_Frustum_createOrtho(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Frustum_createOrtho : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 5) { - HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; HolderType arg4 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -796,14 +803,14 @@ static bool js_scene_Frustum_split(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Frustum_split : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 5) { - HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; HolderType arg4 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -823,9 +830,9 @@ static bool js_scene_Frustum_transform(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Frustum_transform : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -844,7 +851,7 @@ static bool js_scene_Frustum_get_vertices(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_scene_Frustum_get_vertices : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->vertices, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->vertices, s.thisObject(), s.rval()); @@ -855,7 +862,7 @@ SE_BIND_PROP_GET(js_scene_Frustum_get_vertices) static bool js_scene_Frustum_set_vertices(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Frustum_set_vertices : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -871,7 +878,7 @@ static bool js_scene_Frustum_get_planes(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_scene_Frustum_get_planes : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->planes, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->planes, s.thisObject(), s.rval()); @@ -882,7 +889,7 @@ SE_BIND_PROP_GET(js_scene_Frustum_get_planes) static bool js_scene_Frustum_set_planes(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Frustum_set_planes : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -892,27 +899,29 @@ static bool js_scene_Frustum_set_planes(se::State& s) // NOLINT(readability-iden } SE_BIND_PROP_SET(js_scene_Frustum_set_planes) -template <> -bool sevalue_to_native(const se::Value& from, cc::scene::Frustum* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::scene::Frustum * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("vertices", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->vertices), ctx); } json->getProperty("planes", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->planes), ctx); } json->getProperty("type", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->type), ctx); } return ok; @@ -922,24 +931,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_Frustum_finalize) static bool js_scene_Frustum_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::scene::Frustum* cobj = JSB_ALLOC(cc::scene::Frustum); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::scene::Frustum* cobj = JSB_ALLOC(cc::scene::Frustum); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -961,7 +972,7 @@ static bool js_scene_Frustum_constructor(se::State& s) // NOLINT(readability-ide ok &= sevalue_to_native(args[2], &(cobj->type), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -973,10 +984,13 @@ static bool js_scene_Frustum_constructor(se::State& s) // NOLINT(readability-ide } SE_BIND_CTOR(js_scene_Frustum_constructor, __jsb_cc_scene_Frustum_class, js_cc_scene_Frustum_finalize) + + static bool js_cc_scene_Frustum_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -1006,15 +1020,15 @@ bool js_register_scene_Frustum(se::Object* obj) // NOLINT(readability-identifier return true; } se::Object* __jsb_cc_scene_AABB_proto = nullptr; -se::Class* __jsb_cc_scene_AABB_class = nullptr; +se::Class* __jsb_cc_scene_AABB_class = nullptr; static bool js_scene_AABB_contain(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_AABB_contain : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1034,9 +1048,9 @@ static bool js_scene_AABB_getLayout(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_AABB_getLayout : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::AABBLayout* result = cobj->getLayout(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1053,9 +1067,9 @@ static bool js_scene_AABB_initWithData(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_AABB_initWithData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1079,10 +1093,13 @@ static bool js_scene_AABB_constructor(se::State& s) // NOLINT(readability-identi } SE_BIND_CTOR(js_scene_AABB_constructor, __jsb_cc_scene_AABB_class, js_cc_scene_AABB_finalize) + + static bool js_cc_scene_AABB_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -1109,15 +1126,15 @@ bool js_register_scene_AABB(se::Object* obj) // NOLINT(readability-identifier-na return true; } se::Object* __jsb_cc_scene_SpotLight_proto = nullptr; -se::Class* __jsb_cc_scene_SpotLight_class = nullptr; +se::Class* __jsb_cc_scene_SpotLight_class = nullptr; static bool js_scene_SpotLight_setAABB(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setAABB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1134,9 +1151,9 @@ static bool js_scene_SpotLight_setAngle(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setAngle : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1153,9 +1170,9 @@ static bool js_scene_SpotLight_setAspect(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setAspect : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1172,9 +1189,9 @@ static bool js_scene_SpotLight_setDirection(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setDirection : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1191,9 +1208,9 @@ static bool js_scene_SpotLight_setFrustum(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setFrustum : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1210,9 +1227,9 @@ static bool js_scene_SpotLight_setLuminanceHDR(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setLuminanceHDR : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1229,9 +1246,9 @@ static bool js_scene_SpotLight_setLuminanceLDR(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setLuminanceLDR : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1248,9 +1265,9 @@ static bool js_scene_SpotLight_setNeedUpdate(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setNeedUpdate : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1267,9 +1284,9 @@ static bool js_scene_SpotLight_setPosition(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setPosition : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1286,9 +1303,9 @@ static bool js_scene_SpotLight_setRange(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setRange : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1305,9 +1322,9 @@ static bool js_scene_SpotLight_setSize(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setSize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1331,10 +1348,13 @@ static bool js_scene_SpotLight_constructor(se::State& s) // NOLINT(readability-i } SE_BIND_CTOR(js_scene_SpotLight_constructor, __jsb_cc_scene_SpotLight_class, js_cc_scene_SpotLight_finalize) + + static bool js_cc_scene_SpotLight_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -1369,15 +1389,15 @@ bool js_register_scene_SpotLight(se::Object* obj) // NOLINT(readability-identifi return true; } se::Object* __jsb_cc_scene_SphereLight_proto = nullptr; -se::Class* __jsb_cc_scene_SphereLight_class = nullptr; +se::Class* __jsb_cc_scene_SphereLight_class = nullptr; static bool js_scene_SphereLight_setAABB(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SphereLight_setAABB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1394,9 +1414,9 @@ static bool js_scene_SphereLight_setLuminanceHDR(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SphereLight_setLuminanceHDR : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1413,9 +1433,9 @@ static bool js_scene_SphereLight_setLuminanceLDR(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SphereLight_setLuminanceLDR : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1432,9 +1452,9 @@ static bool js_scene_SphereLight_setPosition(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SphereLight_setPosition : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1451,9 +1471,9 @@ static bool js_scene_SphereLight_setRange(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SphereLight_setRange : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1470,9 +1490,9 @@ static bool js_scene_SphereLight_setSize(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SphereLight_setSize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1496,10 +1516,13 @@ static bool js_scene_SphereLight_constructor(se::State& s) // NOLINT(readability } SE_BIND_CTOR(js_scene_SphereLight_constructor, __jsb_cc_scene_SphereLight_class, js_cc_scene_SphereLight_finalize) + + static bool js_cc_scene_SphereLight_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -1529,15 +1552,15 @@ bool js_register_scene_SphereLight(se::Object* obj) // NOLINT(readability-identi return true; } se::Object* __jsb_cc_scene_Model_proto = nullptr; -se::Class* __jsb_cc_scene_Model_class = nullptr; +se::Class* __jsb_cc_scene_Model_class = nullptr; static bool js_scene_Model_getCastShadow(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getCastShadow : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getCastShadow(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1554,9 +1577,9 @@ static bool js_scene_Model_getEnabled(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getEnabled(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1573,9 +1596,9 @@ static bool js_scene_Model_getInstMatWorldIdx(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getInstMatWorldIdx : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int32_t result = cobj->getInstMatWorldIdx(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1592,9 +1615,9 @@ static bool js_scene_Model_getInstanceAttributes(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getInstanceAttributes : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getInstanceAttributes(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1611,9 +1634,9 @@ static bool js_scene_Model_getInstancedAttributeBlock(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getInstancedAttributeBlock : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::InstancedAttributeBlock* result = cobj->getInstancedAttributeBlock(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1630,9 +1653,9 @@ static bool js_scene_Model_getInstancedBuffer(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getInstancedBuffer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned char* result = cobj->getInstancedBuffer(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1649,9 +1672,9 @@ static bool js_scene_Model_getInstancedBufferSize(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getInstancedBufferSize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getInstancedBufferSize(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1668,9 +1691,9 @@ static bool js_scene_Model_getLocalData(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getLocalData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float* result = cobj->getLocalData(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1687,9 +1710,9 @@ static bool js_scene_Model_getNode(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getNode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::Node* result = cobj->getNode(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1706,9 +1729,9 @@ static bool js_scene_Model_getReceiveShadow(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getReceiveShadow : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getReceiveShadow(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1725,11 +1748,11 @@ static bool js_scene_Model_getSubModels(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getSubModels : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - const std::vector& result = cobj->getSubModels(); + const std::vector& result = cobj->getSubModels(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_scene_Model_getSubModels : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -1744,9 +1767,9 @@ static bool js_scene_Model_getTransform(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getTransform : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::Node* result = cobj->getTransform(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1763,9 +1786,9 @@ static bool js_scene_Model_getTransformUpdated(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getTransformUpdated : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getTransformUpdated(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1782,9 +1805,9 @@ static bool js_scene_Model_getUpdatStamp(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getUpdatStamp : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int32_t result = cobj->getUpdatStamp(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1801,9 +1824,9 @@ static bool js_scene_Model_getVisFlags(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getVisFlags : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getVisFlags(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1820,9 +1843,9 @@ static bool js_scene_Model_getWorldBoundBuffer(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getWorldBoundBuffer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::Buffer* result = cobj->getWorldBoundBuffer(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1839,9 +1862,9 @@ static bool js_scene_Model_seVisFlag(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_seVisFlag : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1858,9 +1881,9 @@ static bool js_scene_Model_setBounds(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_setBounds : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1877,9 +1900,9 @@ static bool js_scene_Model_setCastShadow(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_setCastShadow : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1896,9 +1919,9 @@ static bool js_scene_Model_setEnabled(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_setEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1915,9 +1938,9 @@ static bool js_scene_Model_setInstMatWorldIdx(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_setInstMatWorldIdx : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1934,9 +1957,9 @@ static bool js_scene_Model_setLocalBuffer(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_setLocalBuffer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1953,9 +1976,9 @@ static bool js_scene_Model_setNode(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_setNode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1972,9 +1995,9 @@ static bool js_scene_Model_setReceiveShadow(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_setReceiveShadow : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1991,11 +2014,11 @@ static bool js_scene_Model_setSubModel(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_setSubModel : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -2012,9 +2035,9 @@ static bool js_scene_Model_setTransform(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_setTransform : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2031,9 +2054,9 @@ static bool js_scene_Model_setWorldBoundBuffer(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_setWorldBoundBuffer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2050,11 +2073,11 @@ static bool js_scene_Model_updateLightingmap(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_updateLightingmap : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2073,9 +2096,9 @@ static bool js_scene_Model_updateTransform(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_updateTransform : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2092,9 +2115,9 @@ static bool js_scene_Model_updateUBOs(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_updateUBOs : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2112,7 +2135,7 @@ static bool js_scene_Model_updateWorldBoundUBOs(se::State& s) // NOLINT(readabil auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_updateWorldBoundUBOs : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->updateWorldBoundUBOs(); return true; @@ -2133,10 +2156,13 @@ static bool js_scene_Model_constructor(se::State& s) // NOLINT(readability-ident } SE_BIND_CTOR(js_scene_Model_constructor, __jsb_cc_scene_Model_class, js_cc_scene_Model_finalize) + + static bool js_cc_scene_Model_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -2191,7 +2217,7 @@ bool js_register_scene_Model(se::Object* obj) // NOLINT(readability-identifier-n return true; } se::Object* __jsb_cc_scene_Fog_proto = nullptr; -se::Class* __jsb_cc_scene_Fog_class = nullptr; +se::Class* __jsb_cc_scene_Fog_class = nullptr; static bool js_scene_Fog_get_enabled(se::State& s) // NOLINT(readability-identifier-naming) { @@ -2199,7 +2225,7 @@ static bool js_scene_Fog_get_enabled(se::State& s) // NOLINT(readability-identif SE_PRECONDITION2(cobj, false, "js_scene_Fog_get_enabled : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->enabled, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->enabled, s.thisObject(), s.rval()); @@ -2210,7 +2236,7 @@ SE_BIND_PROP_GET(js_scene_Fog_get_enabled) static bool js_scene_Fog_set_enabled(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Fog_set_enabled : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2226,7 +2252,7 @@ static bool js_scene_Fog_get_accurate(se::State& s) // NOLINT(readability-identi SE_PRECONDITION2(cobj, false, "js_scene_Fog_get_accurate : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->accurate, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->accurate, s.thisObject(), s.rval()); @@ -2237,7 +2263,7 @@ SE_BIND_PROP_GET(js_scene_Fog_get_accurate) static bool js_scene_Fog_set_accurate(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Fog_set_accurate : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2253,7 +2279,7 @@ static bool js_scene_Fog_get_type(se::State& s) // NOLINT(readability-identifier SE_PRECONDITION2(cobj, false, "js_scene_Fog_get_type : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->type, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->type, s.thisObject(), s.rval()); @@ -2264,7 +2290,7 @@ SE_BIND_PROP_GET(js_scene_Fog_get_type) static bool js_scene_Fog_set_type(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Fog_set_type : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2280,7 +2306,7 @@ static bool js_scene_Fog_get_density(se::State& s) // NOLINT(readability-identif SE_PRECONDITION2(cobj, false, "js_scene_Fog_get_density : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->density, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->density, s.thisObject(), s.rval()); @@ -2291,7 +2317,7 @@ SE_BIND_PROP_GET(js_scene_Fog_get_density) static bool js_scene_Fog_set_density(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Fog_set_density : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2307,7 +2333,7 @@ static bool js_scene_Fog_get_start(se::State& s) // NOLINT(readability-identifie SE_PRECONDITION2(cobj, false, "js_scene_Fog_get_start : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->start, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->start, s.thisObject(), s.rval()); @@ -2318,7 +2344,7 @@ SE_BIND_PROP_GET(js_scene_Fog_get_start) static bool js_scene_Fog_set_start(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Fog_set_start : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2334,7 +2360,7 @@ static bool js_scene_Fog_get_end(se::State& s) // NOLINT(readability-identifier- SE_PRECONDITION2(cobj, false, "js_scene_Fog_get_end : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->end, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->end, s.thisObject(), s.rval()); @@ -2345,7 +2371,7 @@ SE_BIND_PROP_GET(js_scene_Fog_get_end) static bool js_scene_Fog_set_end(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Fog_set_end : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2361,7 +2387,7 @@ static bool js_scene_Fog_get_atten(se::State& s) // NOLINT(readability-identifie SE_PRECONDITION2(cobj, false, "js_scene_Fog_get_atten : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->atten, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->atten, s.thisObject(), s.rval()); @@ -2372,7 +2398,7 @@ SE_BIND_PROP_GET(js_scene_Fog_get_atten) static bool js_scene_Fog_set_atten(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Fog_set_atten : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2388,7 +2414,7 @@ static bool js_scene_Fog_get_top(se::State& s) // NOLINT(readability-identifier- SE_PRECONDITION2(cobj, false, "js_scene_Fog_get_top : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->top, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->top, s.thisObject(), s.rval()); @@ -2399,7 +2425,7 @@ SE_BIND_PROP_GET(js_scene_Fog_get_top) static bool js_scene_Fog_set_top(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Fog_set_top : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2415,7 +2441,7 @@ static bool js_scene_Fog_get_range(se::State& s) // NOLINT(readability-identifie SE_PRECONDITION2(cobj, false, "js_scene_Fog_get_range : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->range, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->range, s.thisObject(), s.rval()); @@ -2426,7 +2452,7 @@ SE_BIND_PROP_GET(js_scene_Fog_get_range) static bool js_scene_Fog_set_range(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Fog_set_range : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2442,7 +2468,7 @@ static bool js_scene_Fog_get_color(se::State& s) // NOLINT(readability-identifie SE_PRECONDITION2(cobj, false, "js_scene_Fog_get_color : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->color, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->color, s.thisObject(), s.rval()); @@ -2453,7 +2479,7 @@ SE_BIND_PROP_GET(js_scene_Fog_get_color) static bool js_scene_Fog_set_color(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Fog_set_color : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2463,55 +2489,57 @@ static bool js_scene_Fog_set_color(se::State& s) // NOLINT(readability-identifie } SE_BIND_PROP_SET(js_scene_Fog_set_color) -template <> -bool sevalue_to_native(const se::Value& from, cc::scene::Fog* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::scene::Fog * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("enabled", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->enabled), ctx); } json->getProperty("accurate", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->accurate), ctx); } json->getProperty("type", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->type), ctx); } json->getProperty("density", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->density), ctx); } json->getProperty("start", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->start), ctx); } json->getProperty("end", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->end), ctx); } json->getProperty("atten", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->atten), ctx); } json->getProperty("top", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->top), ctx); } json->getProperty("range", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->range), ctx); } json->getProperty("color", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->color), ctx); } return ok; @@ -2521,24 +2549,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_Fog_finalize) static bool js_scene_Fog_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::scene::Fog* cobj = JSB_ALLOC(cc::scene::Fog); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::scene::Fog* cobj = JSB_ALLOC(cc::scene::Fog); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -2581,7 +2611,7 @@ static bool js_scene_Fog_constructor(se::State& s) // NOLINT(readability-identif ok &= sevalue_to_native(args[9], &(cobj->color), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -2593,10 +2623,13 @@ static bool js_scene_Fog_constructor(se::State& s) // NOLINT(readability-identif } SE_BIND_CTOR(js_scene_Fog_constructor, __jsb_cc_scene_Fog_class, js_cc_scene_Fog_finalize) + + static bool js_cc_scene_Fog_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -2630,7 +2663,7 @@ bool js_register_scene_Fog(se::Object* obj) // NOLINT(readability-identifier-nam return true; } se::Object* __jsb_cc_scene_Shadow_proto = nullptr; -se::Class* __jsb_cc_scene_Shadow_class = nullptr; +se::Class* __jsb_cc_scene_Shadow_class = nullptr; static bool js_scene_Shadow_get_enabled(se::State& s) // NOLINT(readability-identifier-naming) { @@ -2638,7 +2671,7 @@ static bool js_scene_Shadow_get_enabled(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_enabled : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->enabled, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->enabled, s.thisObject(), s.rval()); @@ -2649,7 +2682,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_enabled) static bool js_scene_Shadow_set_enabled(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_enabled : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2665,7 +2698,7 @@ static bool js_scene_Shadow_get_dirty(se::State& s) // NOLINT(readability-identi SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_dirty : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->dirty, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->dirty, s.thisObject(), s.rval()); @@ -2676,7 +2709,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_dirty) static bool js_scene_Shadow_set_dirty(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_dirty : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2692,7 +2725,7 @@ static bool js_scene_Shadow_get_shadowMapDirty(se::State& s) // NOLINT(readabili SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_shadowMapDirty : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->shadowMapDirty, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->shadowMapDirty, s.thisObject(), s.rval()); @@ -2703,7 +2736,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_shadowMapDirty) static bool js_scene_Shadow_set_shadowMapDirty(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_shadowMapDirty : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2719,7 +2752,7 @@ static bool js_scene_Shadow_get_fixedArea(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_fixedArea : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->fixedArea, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->fixedArea, s.thisObject(), s.rval()); @@ -2730,7 +2763,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_fixedArea) static bool js_scene_Shadow_set_fixedArea(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_fixedArea : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2746,7 +2779,7 @@ static bool js_scene_Shadow_get_shadowType(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_shadowType : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->shadowType, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->shadowType, s.thisObject(), s.rval()); @@ -2757,7 +2790,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_shadowType) static bool js_scene_Shadow_set_shadowType(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_shadowType : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2773,7 +2806,7 @@ static bool js_scene_Shadow_get_invisibleOcclusionRange(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_invisibleOcclusionRange : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->invisibleOcclusionRange, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->invisibleOcclusionRange, s.thisObject(), s.rval()); @@ -2784,7 +2817,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_invisibleOcclusionRange) static bool js_scene_Shadow_set_invisibleOcclusionRange(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_invisibleOcclusionRange : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2800,7 +2833,7 @@ static bool js_scene_Shadow_get_shadowDistance(se::State& s) // NOLINT(readabili SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_shadowDistance : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->shadowDistance, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->shadowDistance, s.thisObject(), s.rval()); @@ -2811,7 +2844,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_shadowDistance) static bool js_scene_Shadow_set_shadowDistance(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_shadowDistance : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2827,7 +2860,7 @@ static bool js_scene_Shadow_get_distance(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_distance : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->distance, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->distance, s.thisObject(), s.rval()); @@ -2838,7 +2871,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_distance) static bool js_scene_Shadow_set_distance(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_distance : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2854,7 +2887,7 @@ static bool js_scene_Shadow_get_instancePass(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_instancePass : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->instancePass, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->instancePass, s.thisObject(), s.rval()); @@ -2865,7 +2898,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_instancePass) static bool js_scene_Shadow_set_instancePass(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_instancePass : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2881,7 +2914,7 @@ static bool js_scene_Shadow_get_planarPass(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_planarPass : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->planarPass, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->planarPass, s.thisObject(), s.rval()); @@ -2892,7 +2925,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_planarPass) static bool js_scene_Shadow_set_planarPass(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_planarPass : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2908,7 +2941,7 @@ static bool js_scene_Shadow_get_nearValue(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_nearValue : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->nearValue, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->nearValue, s.thisObject(), s.rval()); @@ -2919,7 +2952,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_nearValue) static bool js_scene_Shadow_set_nearValue(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_nearValue : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2935,7 +2968,7 @@ static bool js_scene_Shadow_get_farValue(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_farValue : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->farValue, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->farValue, s.thisObject(), s.rval()); @@ -2946,7 +2979,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_farValue) static bool js_scene_Shadow_set_farValue(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_farValue : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2962,7 +2995,7 @@ static bool js_scene_Shadow_get_pcfType(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_pcfType : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->pcfType, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->pcfType, s.thisObject(), s.rval()); @@ -2973,7 +3006,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_pcfType) static bool js_scene_Shadow_set_pcfType(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_pcfType : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2989,7 +3022,7 @@ static bool js_scene_Shadow_get_bias(se::State& s) // NOLINT(readability-identif SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_bias : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->bias, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->bias, s.thisObject(), s.rval()); @@ -3000,7 +3033,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_bias) static bool js_scene_Shadow_set_bias(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_bias : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3016,7 +3049,7 @@ static bool js_scene_Shadow_get_normalBias(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_normalBias : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->normalBias, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->normalBias, s.thisObject(), s.rval()); @@ -3027,7 +3060,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_normalBias) static bool js_scene_Shadow_set_normalBias(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_normalBias : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3043,7 +3076,7 @@ static bool js_scene_Shadow_get_saturation(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_saturation : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->saturation, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->saturation, s.thisObject(), s.rval()); @@ -3054,7 +3087,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_saturation) static bool js_scene_Shadow_set_saturation(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_saturation : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3070,7 +3103,7 @@ static bool js_scene_Shadow_get_orthoSize(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_orthoSize : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->orthoSize, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->orthoSize, s.thisObject(), s.rval()); @@ -3081,7 +3114,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_orthoSize) static bool js_scene_Shadow_set_orthoSize(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_orthoSize : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3097,7 +3130,7 @@ static bool js_scene_Shadow_get_color(se::State& s) // NOLINT(readability-identi SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_color : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->color, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->color, s.thisObject(), s.rval()); @@ -3108,7 +3141,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_color) static bool js_scene_Shadow_set_color(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_color : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3124,7 +3157,7 @@ static bool js_scene_Shadow_get_size(se::State& s) // NOLINT(readability-identif SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_size : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->size, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->size, s.thisObject(), s.rval()); @@ -3135,7 +3168,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_size) static bool js_scene_Shadow_set_size(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_size : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3151,7 +3184,7 @@ static bool js_scene_Shadow_get_normal(se::State& s) // NOLINT(readability-ident SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_normal : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->normal, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->normal, s.thisObject(), s.rval()); @@ -3162,7 +3195,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_normal) static bool js_scene_Shadow_set_normal(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_normal : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3178,7 +3211,7 @@ static bool js_scene_Shadow_get_matLight(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_matLight : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->matLight, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->matLight, s.thisObject(), s.rval()); @@ -3189,7 +3222,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_matLight) static bool js_scene_Shadow_set_matLight(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_matLight : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3199,99 +3232,101 @@ static bool js_scene_Shadow_set_matLight(se::State& s) // NOLINT(readability-ide } SE_BIND_PROP_SET(js_scene_Shadow_set_matLight) -template <> -bool sevalue_to_native(const se::Value& from, cc::scene::Shadow* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::scene::Shadow * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("enabled", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->enabled), ctx); } json->getProperty("dirty", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->dirty), ctx); } json->getProperty("shadowMapDirty", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->shadowMapDirty), ctx); } json->getProperty("fixedArea", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->fixedArea), ctx); } json->getProperty("shadowType", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->shadowType), ctx); } json->getProperty("invisibleOcclusionRange", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->invisibleOcclusionRange), ctx); } json->getProperty("shadowDistance", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->shadowDistance), ctx); } json->getProperty("distance", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->distance), ctx); } json->getProperty("instancePass", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->instancePass), ctx); } json->getProperty("planarPass", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->planarPass), ctx); } json->getProperty("nearValue", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->nearValue), ctx); } json->getProperty("farValue", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->farValue), ctx); } json->getProperty("pcfType", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->pcfType), ctx); } json->getProperty("bias", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bias), ctx); } json->getProperty("normalBias", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->normalBias), ctx); } json->getProperty("saturation", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->saturation), ctx); } json->getProperty("orthoSize", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->orthoSize), ctx); } json->getProperty("color", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->color), ctx); } json->getProperty("size", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->size), ctx); } json->getProperty("normal", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->normal), ctx); } json->getProperty("matLight", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->matLight), ctx); } return ok; @@ -3301,24 +3336,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_Shadow_finalize) static bool js_scene_Shadow_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::scene::Shadow* cobj = JSB_ALLOC(cc::scene::Shadow); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::scene::Shadow* cobj = JSB_ALLOC(cc::scene::Shadow); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -3394,7 +3431,7 @@ static bool js_scene_Shadow_constructor(se::State& s) // NOLINT(readability-iden ok &= sevalue_to_native(args[20], &(cobj->matLight), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -3406,10 +3443,13 @@ static bool js_scene_Shadow_constructor(se::State& s) // NOLINT(readability-iden } SE_BIND_CTOR(js_scene_Shadow_constructor, __jsb_cc_scene_Shadow_class, js_cc_scene_Shadow_finalize) + + static bool js_cc_scene_Shadow_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -3454,7 +3494,7 @@ bool js_register_scene_Shadow(se::Object* obj) // NOLINT(readability-identifier- return true; } se::Object* __jsb_cc_scene_Skybox_proto = nullptr; -se::Class* __jsb_cc_scene_Skybox_class = nullptr; +se::Class* __jsb_cc_scene_Skybox_class = nullptr; static bool js_scene_Skybox_get_enabled(se::State& s) // NOLINT(readability-identifier-naming) { @@ -3462,7 +3502,7 @@ static bool js_scene_Skybox_get_enabled(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_scene_Skybox_get_enabled : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->enabled, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->enabled, s.thisObject(), s.rval()); @@ -3473,7 +3513,7 @@ SE_BIND_PROP_GET(js_scene_Skybox_get_enabled) static bool js_scene_Skybox_set_enabled(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Skybox_set_enabled : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3489,7 +3529,7 @@ static bool js_scene_Skybox_get_isRGBE(se::State& s) // NOLINT(readability-ident SE_PRECONDITION2(cobj, false, "js_scene_Skybox_get_isRGBE : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->isRGBE, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->isRGBE, s.thisObject(), s.rval()); @@ -3500,7 +3540,7 @@ SE_BIND_PROP_GET(js_scene_Skybox_get_isRGBE) static bool js_scene_Skybox_set_isRGBE(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Skybox_set_isRGBE : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3516,7 +3556,7 @@ static bool js_scene_Skybox_get_useIBL(se::State& s) // NOLINT(readability-ident SE_PRECONDITION2(cobj, false, "js_scene_Skybox_get_useIBL : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->useIBL, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->useIBL, s.thisObject(), s.rval()); @@ -3527,7 +3567,7 @@ SE_BIND_PROP_GET(js_scene_Skybox_get_useIBL) static bool js_scene_Skybox_set_useIBL(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Skybox_set_useIBL : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3543,7 +3583,7 @@ static bool js_scene_Skybox_get_useHDR(se::State& s) // NOLINT(readability-ident SE_PRECONDITION2(cobj, false, "js_scene_Skybox_get_useHDR : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->useHDR, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->useHDR, s.thisObject(), s.rval()); @@ -3554,7 +3594,7 @@ SE_BIND_PROP_GET(js_scene_Skybox_get_useHDR) static bool js_scene_Skybox_set_useHDR(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Skybox_set_useHDR : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3570,7 +3610,7 @@ static bool js_scene_Skybox_get_useDiffuseMap(se::State& s) // NOLINT(readabilit SE_PRECONDITION2(cobj, false, "js_scene_Skybox_get_useDiffuseMap : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->useDiffuseMap, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->useDiffuseMap, s.thisObject(), s.rval()); @@ -3581,7 +3621,7 @@ SE_BIND_PROP_GET(js_scene_Skybox_get_useDiffuseMap) static bool js_scene_Skybox_set_useDiffuseMap(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Skybox_set_useDiffuseMap : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3597,7 +3637,7 @@ static bool js_scene_Skybox_get_model(se::State& s) // NOLINT(readability-identi SE_PRECONDITION2(cobj, false, "js_scene_Skybox_get_model : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->model, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->model, s.thisObject(), s.rval()); @@ -3608,7 +3648,7 @@ SE_BIND_PROP_GET(js_scene_Skybox_get_model) static bool js_scene_Skybox_set_model(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Skybox_set_model : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3618,39 +3658,41 @@ static bool js_scene_Skybox_set_model(se::State& s) // NOLINT(readability-identi } SE_BIND_PROP_SET(js_scene_Skybox_set_model) -template <> -bool sevalue_to_native(const se::Value& from, cc::scene::Skybox* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::scene::Skybox * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("enabled", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->enabled), ctx); } json->getProperty("isRGBE", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->isRGBE), ctx); } json->getProperty("useIBL", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->useIBL), ctx); } json->getProperty("useHDR", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->useHDR), ctx); } json->getProperty("useDiffuseMap", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->useDiffuseMap), ctx); } json->getProperty("model", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->model), ctx); } return ok; @@ -3660,24 +3702,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_Skybox_finalize) static bool js_scene_Skybox_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::scene::Skybox* cobj = JSB_ALLOC(cc::scene::Skybox); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::scene::Skybox* cobj = JSB_ALLOC(cc::scene::Skybox); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -3708,7 +3752,7 @@ static bool js_scene_Skybox_constructor(se::State& s) // NOLINT(readability-iden ok &= sevalue_to_native(args[5], &(cobj->model), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -3720,10 +3764,13 @@ static bool js_scene_Skybox_constructor(se::State& s) // NOLINT(readability-iden } SE_BIND_CTOR(js_scene_Skybox_constructor, __jsb_cc_scene_Skybox_class, js_cc_scene_Skybox_finalize) + + static bool js_cc_scene_Skybox_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -3753,7 +3800,7 @@ bool js_register_scene_Skybox(se::Object* obj) // NOLINT(readability-identifier- return true; } se::Object* __jsb_cc_scene_Ambient_proto = nullptr; -se::Class* __jsb_cc_scene_Ambient_class = nullptr; +se::Class* __jsb_cc_scene_Ambient_class = nullptr; static bool js_scene_Ambient_get_enabled(se::State& s) // NOLINT(readability-identifier-naming) { @@ -3761,7 +3808,7 @@ static bool js_scene_Ambient_get_enabled(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_scene_Ambient_get_enabled : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->enabled, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->enabled, s.thisObject(), s.rval()); @@ -3772,7 +3819,7 @@ SE_BIND_PROP_GET(js_scene_Ambient_get_enabled) static bool js_scene_Ambient_set_enabled(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Ambient_set_enabled : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3788,7 +3835,7 @@ static bool js_scene_Ambient_get_skyIllum(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_scene_Ambient_get_skyIllum : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->skyIllum, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->skyIllum, s.thisObject(), s.rval()); @@ -3799,7 +3846,7 @@ SE_BIND_PROP_GET(js_scene_Ambient_get_skyIllum) static bool js_scene_Ambient_set_skyIllum(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Ambient_set_skyIllum : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3815,7 +3862,7 @@ static bool js_scene_Ambient_get_skyColor(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_scene_Ambient_get_skyColor : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->skyColor, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->skyColor, s.thisObject(), s.rval()); @@ -3826,7 +3873,7 @@ SE_BIND_PROP_GET(js_scene_Ambient_get_skyColor) static bool js_scene_Ambient_set_skyColor(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Ambient_set_skyColor : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3842,7 +3889,7 @@ static bool js_scene_Ambient_get_groundAlbedo(se::State& s) // NOLINT(readabilit SE_PRECONDITION2(cobj, false, "js_scene_Ambient_get_groundAlbedo : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->groundAlbedo, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->groundAlbedo, s.thisObject(), s.rval()); @@ -3853,7 +3900,7 @@ SE_BIND_PROP_GET(js_scene_Ambient_get_groundAlbedo) static bool js_scene_Ambient_set_groundAlbedo(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Ambient_set_groundAlbedo : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3863,31 +3910,33 @@ static bool js_scene_Ambient_set_groundAlbedo(se::State& s) // NOLINT(readabilit } SE_BIND_PROP_SET(js_scene_Ambient_set_groundAlbedo) -template <> -bool sevalue_to_native(const se::Value& from, cc::scene::Ambient* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::scene::Ambient * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("enabled", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->enabled), ctx); } json->getProperty("skyIllum", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->skyIllum), ctx); } json->getProperty("skyColor", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->skyColor), ctx); } json->getProperty("groundAlbedo", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->groundAlbedo), ctx); } return ok; @@ -3897,24 +3946,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_Ambient_finalize) static bool js_scene_Ambient_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::scene::Ambient* cobj = JSB_ALLOC(cc::scene::Ambient); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::scene::Ambient* cobj = JSB_ALLOC(cc::scene::Ambient); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -3939,7 +3990,7 @@ static bool js_scene_Ambient_constructor(se::State& s) // NOLINT(readability-ide ok &= sevalue_to_native(args[3], &(cobj->groundAlbedo), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -3951,10 +4002,13 @@ static bool js_scene_Ambient_constructor(se::State& s) // NOLINT(readability-ide } SE_BIND_CTOR(js_scene_Ambient_constructor, __jsb_cc_scene_Ambient_class, js_cc_scene_Ambient_finalize) + + static bool js_cc_scene_Ambient_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -3982,7 +4036,7 @@ bool js_register_scene_Ambient(se::Object* obj) // NOLINT(readability-identifier return true; } se::Object* __jsb_cc_scene_OctreeInfo_proto = nullptr; -se::Class* __jsb_cc_scene_OctreeInfo_class = nullptr; +se::Class* __jsb_cc_scene_OctreeInfo_class = nullptr; static bool js_scene_OctreeInfo_get_enabled(se::State& s) // NOLINT(readability-identifier-naming) { @@ -3990,7 +4044,7 @@ static bool js_scene_OctreeInfo_get_enabled(se::State& s) // NOLINT(readability- SE_PRECONDITION2(cobj, false, "js_scene_OctreeInfo_get_enabled : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->enabled, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->enabled, s.thisObject(), s.rval()); @@ -4001,7 +4055,7 @@ SE_BIND_PROP_GET(js_scene_OctreeInfo_get_enabled) static bool js_scene_OctreeInfo_set_enabled(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_OctreeInfo_set_enabled : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4017,7 +4071,7 @@ static bool js_scene_OctreeInfo_get_minPos(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_scene_OctreeInfo_get_minPos : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->minPos, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->minPos, s.thisObject(), s.rval()); @@ -4028,7 +4082,7 @@ SE_BIND_PROP_GET(js_scene_OctreeInfo_get_minPos) static bool js_scene_OctreeInfo_set_minPos(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_OctreeInfo_set_minPos : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4044,7 +4098,7 @@ static bool js_scene_OctreeInfo_get_maxPos(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_scene_OctreeInfo_get_maxPos : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxPos, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxPos, s.thisObject(), s.rval()); @@ -4055,7 +4109,7 @@ SE_BIND_PROP_GET(js_scene_OctreeInfo_get_maxPos) static bool js_scene_OctreeInfo_set_maxPos(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_OctreeInfo_set_maxPos : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4071,7 +4125,7 @@ static bool js_scene_OctreeInfo_get_depth(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_scene_OctreeInfo_get_depth : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->depth, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->depth, s.thisObject(), s.rval()); @@ -4082,7 +4136,7 @@ SE_BIND_PROP_GET(js_scene_OctreeInfo_get_depth) static bool js_scene_OctreeInfo_set_depth(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_OctreeInfo_set_depth : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4092,31 +4146,33 @@ static bool js_scene_OctreeInfo_set_depth(se::State& s) // NOLINT(readability-id } SE_BIND_PROP_SET(js_scene_OctreeInfo_set_depth) -template <> -bool sevalue_to_native(const se::Value& from, cc::scene::OctreeInfo* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::scene::OctreeInfo * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("enabled", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->enabled), ctx); } json->getProperty("minPos", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->minPos), ctx); } json->getProperty("maxPos", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxPos), ctx); } json->getProperty("depth", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->depth), ctx); } return ok; @@ -4126,24 +4182,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_OctreeInfo_finalize) static bool js_scene_OctreeInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::scene::OctreeInfo* cobj = JSB_ALLOC(cc::scene::OctreeInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::scene::OctreeInfo* cobj = JSB_ALLOC(cc::scene::OctreeInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -4168,7 +4226,7 @@ static bool js_scene_OctreeInfo_constructor(se::State& s) // NOLINT(readability- ok &= sevalue_to_native(args[3], &(cobj->depth), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -4180,10 +4238,13 @@ static bool js_scene_OctreeInfo_constructor(se::State& s) // NOLINT(readability- } SE_BIND_CTOR(js_scene_OctreeInfo_constructor, __jsb_cc_scene_OctreeInfo_class, js_cc_scene_OctreeInfo_finalize) + + static bool js_cc_scene_OctreeInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -4211,7 +4272,7 @@ bool js_register_scene_OctreeInfo(se::Object* obj) // NOLINT(readability-identif return true; } se::Object* __jsb_cc_scene_PipelineSharedSceneData_proto = nullptr; -se::Class* __jsb_cc_scene_PipelineSharedSceneData_class = nullptr; +se::Class* __jsb_cc_scene_PipelineSharedSceneData_class = nullptr; static bool js_scene_PipelineSharedSceneData_get_isHDR(se::State& s) // NOLINT(readability-identifier-naming) { @@ -4219,7 +4280,7 @@ static bool js_scene_PipelineSharedSceneData_get_isHDR(se::State& s) // NOLINT(r SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_isHDR : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->isHDR, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->isHDR, s.thisObject(), s.rval()); @@ -4230,7 +4291,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_isHDR) static bool js_scene_PipelineSharedSceneData_set_isHDR(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_isHDR : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4246,7 +4307,7 @@ static bool js_scene_PipelineSharedSceneData_get_shadingScale(se::State& s) // N SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_shadingScale : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->shadingScale, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->shadingScale, s.thisObject(), s.rval()); @@ -4257,7 +4318,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_shadingScale) static bool js_scene_PipelineSharedSceneData_set_shadingScale(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_shadingScale : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4273,7 +4334,7 @@ static bool js_scene_PipelineSharedSceneData_get_ambient(se::State& s) // NOLINT SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_ambient : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->ambient, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->ambient, s.thisObject(), s.rval()); @@ -4284,7 +4345,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_ambient) static bool js_scene_PipelineSharedSceneData_set_ambient(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_ambient : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4300,7 +4361,7 @@ static bool js_scene_PipelineSharedSceneData_get_shadow(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_shadow : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->shadow, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->shadow, s.thisObject(), s.rval()); @@ -4311,7 +4372,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_shadow) static bool js_scene_PipelineSharedSceneData_set_shadow(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_shadow : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4327,7 +4388,7 @@ static bool js_scene_PipelineSharedSceneData_get_skybox(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_skybox : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->skybox, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->skybox, s.thisObject(), s.rval()); @@ -4338,7 +4399,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_skybox) static bool js_scene_PipelineSharedSceneData_set_skybox(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_skybox : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4354,7 +4415,7 @@ static bool js_scene_PipelineSharedSceneData_get_fog(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_fog : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->fog, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->fog, s.thisObject(), s.rval()); @@ -4365,7 +4426,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_fog) static bool js_scene_PipelineSharedSceneData_set_fog(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_fog : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4381,7 +4442,7 @@ static bool js_scene_PipelineSharedSceneData_get_octree(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_octree : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->octree, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->octree, s.thisObject(), s.rval()); @@ -4392,7 +4453,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_octree) static bool js_scene_PipelineSharedSceneData_set_octree(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_octree : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4408,7 +4469,7 @@ static bool js_scene_PipelineSharedSceneData_get_geometryRendererPasses(se::Stat SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_geometryRendererPasses : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->geometryRendererPasses, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->geometryRendererPasses, s.thisObject(), s.rval()); @@ -4419,7 +4480,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_geometryRendererPasses) static bool js_scene_PipelineSharedSceneData_set_geometryRendererPasses(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_geometryRendererPasses : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4435,7 +4496,7 @@ static bool js_scene_PipelineSharedSceneData_get_geometryRendererShaders(se::Sta SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_geometryRendererShaders : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->geometryRendererShaders, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->geometryRendererShaders, s.thisObject(), s.rval()); @@ -4446,7 +4507,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_geometryRendererShaders) static bool js_scene_PipelineSharedSceneData_set_geometryRendererShaders(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_geometryRendererShaders : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4462,7 +4523,7 @@ static bool js_scene_PipelineSharedSceneData_get_occlusionQueryInputAssembler(se SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_occlusionQueryInputAssembler : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->occlusionQueryInputAssembler, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->occlusionQueryInputAssembler, s.thisObject(), s.rval()); @@ -4473,7 +4534,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_occlusionQueryInputAssembl static bool js_scene_PipelineSharedSceneData_set_occlusionQueryInputAssembler(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_occlusionQueryInputAssembler : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4489,7 +4550,7 @@ static bool js_scene_PipelineSharedSceneData_get_occlusionQueryPass(se::State& s SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_occlusionQueryPass : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->occlusionQueryPass, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->occlusionQueryPass, s.thisObject(), s.rval()); @@ -4500,7 +4561,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_occlusionQueryPass) static bool js_scene_PipelineSharedSceneData_set_occlusionQueryPass(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_occlusionQueryPass : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4516,7 +4577,7 @@ static bool js_scene_PipelineSharedSceneData_get_occlusionQueryShader(se::State& SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_occlusionQueryShader : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->occlusionQueryShader, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->occlusionQueryShader, s.thisObject(), s.rval()); @@ -4527,7 +4588,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_occlusionQueryShader) static bool js_scene_PipelineSharedSceneData_set_occlusionQueryShader(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_occlusionQueryShader : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4543,7 +4604,7 @@ static bool js_scene_PipelineSharedSceneData_get_deferredLightPass(se::State& s) SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_deferredLightPass : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->deferredLightPass, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->deferredLightPass, s.thisObject(), s.rval()); @@ -4554,7 +4615,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_deferredLightPass) static bool js_scene_PipelineSharedSceneData_set_deferredLightPass(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_deferredLightPass : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4570,7 +4631,7 @@ static bool js_scene_PipelineSharedSceneData_get_deferredLightPassShader(se::Sta SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_deferredLightPassShader : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->deferredLightPassShader, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->deferredLightPassShader, s.thisObject(), s.rval()); @@ -4581,7 +4642,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_deferredLightPassShader) static bool js_scene_PipelineSharedSceneData_set_deferredLightPassShader(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_deferredLightPassShader : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4597,7 +4658,7 @@ static bool js_scene_PipelineSharedSceneData_get_bloomPrefilterPass(se::State& s SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_bloomPrefilterPass : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->bloomPrefilterPass, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->bloomPrefilterPass, s.thisObject(), s.rval()); @@ -4608,7 +4669,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_bloomPrefilterPass) static bool js_scene_PipelineSharedSceneData_set_bloomPrefilterPass(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_bloomPrefilterPass : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4624,7 +4685,7 @@ static bool js_scene_PipelineSharedSceneData_get_bloomPrefilterPassShader(se::St SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_bloomPrefilterPassShader : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->bloomPrefilterPassShader, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->bloomPrefilterPassShader, s.thisObject(), s.rval()); @@ -4635,7 +4696,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_bloomPrefilterPassShader) static bool js_scene_PipelineSharedSceneData_set_bloomPrefilterPassShader(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_bloomPrefilterPassShader : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4651,7 +4712,7 @@ static bool js_scene_PipelineSharedSceneData_get_bloomDownsamplePass(se::State& SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_bloomDownsamplePass : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->bloomDownsamplePass, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->bloomDownsamplePass, s.thisObject(), s.rval()); @@ -4662,7 +4723,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_bloomDownsamplePass) static bool js_scene_PipelineSharedSceneData_set_bloomDownsamplePass(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_bloomDownsamplePass : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4678,7 +4739,7 @@ static bool js_scene_PipelineSharedSceneData_get_bloomDownsamplePassShader(se::S SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_bloomDownsamplePassShader : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->bloomDownsamplePassShader, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->bloomDownsamplePassShader, s.thisObject(), s.rval()); @@ -4689,7 +4750,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_bloomDownsamplePassShader) static bool js_scene_PipelineSharedSceneData_set_bloomDownsamplePassShader(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_bloomDownsamplePassShader : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4705,7 +4766,7 @@ static bool js_scene_PipelineSharedSceneData_get_bloomUpsamplePass(se::State& s) SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_bloomUpsamplePass : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->bloomUpsamplePass, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->bloomUpsamplePass, s.thisObject(), s.rval()); @@ -4716,7 +4777,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_bloomUpsamplePass) static bool js_scene_PipelineSharedSceneData_set_bloomUpsamplePass(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_bloomUpsamplePass : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4732,7 +4793,7 @@ static bool js_scene_PipelineSharedSceneData_get_bloomUpsamplePassShader(se::Sta SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_bloomUpsamplePassShader : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->bloomUpsamplePassShader, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->bloomUpsamplePassShader, s.thisObject(), s.rval()); @@ -4743,7 +4804,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_bloomUpsamplePassShader) static bool js_scene_PipelineSharedSceneData_set_bloomUpsamplePassShader(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_bloomUpsamplePassShader : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4759,7 +4820,7 @@ static bool js_scene_PipelineSharedSceneData_get_bloomCombinePass(se::State& s) SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_bloomCombinePass : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->bloomCombinePass, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->bloomCombinePass, s.thisObject(), s.rval()); @@ -4770,7 +4831,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_bloomCombinePass) static bool js_scene_PipelineSharedSceneData_set_bloomCombinePass(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_bloomCombinePass : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4786,7 +4847,7 @@ static bool js_scene_PipelineSharedSceneData_get_bloomCombinePassShader(se::Stat SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_bloomCombinePassShader : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->bloomCombinePassShader, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->bloomCombinePassShader, s.thisObject(), s.rval()); @@ -4797,7 +4858,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_bloomCombinePassShader) static bool js_scene_PipelineSharedSceneData_set_bloomCombinePassShader(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_bloomCombinePassShader : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4813,7 +4874,7 @@ static bool js_scene_PipelineSharedSceneData_get_pipelinePostPass(se::State& s) SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_pipelinePostPass : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->pipelinePostPass, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->pipelinePostPass, s.thisObject(), s.rval()); @@ -4824,7 +4885,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_pipelinePostPass) static bool js_scene_PipelineSharedSceneData_set_pipelinePostPass(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_pipelinePostPass : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4840,7 +4901,7 @@ static bool js_scene_PipelineSharedSceneData_get_pipelinePostPassShader(se::Stat SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_pipelinePostPassShader : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->pipelinePostPassShader, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->pipelinePostPassShader, s.thisObject(), s.rval()); @@ -4851,7 +4912,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_pipelinePostPassShader) static bool js_scene_PipelineSharedSceneData_set_pipelinePostPassShader(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_pipelinePostPassShader : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4861,111 +4922,113 @@ static bool js_scene_PipelineSharedSceneData_set_pipelinePostPassShader(se::Stat } SE_BIND_PROP_SET(js_scene_PipelineSharedSceneData_set_pipelinePostPassShader) -template <> -bool sevalue_to_native(const se::Value& from, cc::scene::PipelineSharedSceneData* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::scene::PipelineSharedSceneData * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("isHDR", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->isHDR), ctx); } json->getProperty("shadingScale", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->shadingScale), ctx); } json->getProperty("ambient", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->ambient), ctx); } json->getProperty("shadow", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->shadow), ctx); } json->getProperty("skybox", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->skybox), ctx); } json->getProperty("fog", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->fog), ctx); } json->getProperty("octree", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->octree), ctx); } json->getProperty("geometryRendererPasses", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->geometryRendererPasses), ctx); } json->getProperty("geometryRendererShaders", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->geometryRendererShaders), ctx); } json->getProperty("occlusionQueryInputAssembler", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->occlusionQueryInputAssembler), ctx); } json->getProperty("occlusionQueryPass", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->occlusionQueryPass), ctx); } json->getProperty("occlusionQueryShader", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->occlusionQueryShader), ctx); } json->getProperty("deferredLightPass", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->deferredLightPass), ctx); } json->getProperty("deferredLightPassShader", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->deferredLightPassShader), ctx); } json->getProperty("bloomPrefilterPass", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bloomPrefilterPass), ctx); } json->getProperty("bloomPrefilterPassShader", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bloomPrefilterPassShader), ctx); } json->getProperty("bloomDownsamplePass", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bloomDownsamplePass), ctx); } json->getProperty("bloomDownsamplePassShader", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bloomDownsamplePassShader), ctx); } json->getProperty("bloomUpsamplePass", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bloomUpsamplePass), ctx); } json->getProperty("bloomUpsamplePassShader", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bloomUpsamplePassShader), ctx); } json->getProperty("bloomCombinePass", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bloomCombinePass), ctx); } json->getProperty("bloomCombinePassShader", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bloomCombinePassShader), ctx); } json->getProperty("pipelinePostPass", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->pipelinePostPass), ctx); } json->getProperty("pipelinePostPassShader", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->pipelinePostPassShader), ctx); } return ok; @@ -4975,24 +5038,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_PipelineSharedSceneData_finalize) static bool js_scene_PipelineSharedSceneData_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::scene::PipelineSharedSceneData* cobj = JSB_ALLOC(cc::scene::PipelineSharedSceneData); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::scene::PipelineSharedSceneData* cobj = JSB_ALLOC(cc::scene::PipelineSharedSceneData); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -5077,7 +5142,7 @@ static bool js_scene_PipelineSharedSceneData_constructor(se::State& s) // NOLINT ok &= sevalue_to_native(args[23], &(cobj->pipelinePostPassShader), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -5089,10 +5154,13 @@ static bool js_scene_PipelineSharedSceneData_constructor(se::State& s) // NOLINT } SE_BIND_CTOR(js_scene_PipelineSharedSceneData_constructor, __jsb_cc_scene_PipelineSharedSceneData_class, js_cc_scene_PipelineSharedSceneData_finalize) + + static bool js_cc_scene_PipelineSharedSceneData_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -5140,7 +5208,7 @@ bool js_register_scene_PipelineSharedSceneData(se::Object* obj) // NOLINT(readab return true; } se::Object* __jsb_cc_scene_Root_proto = nullptr; -se::Class* __jsb_cc_scene_Root_class = nullptr; +se::Class* __jsb_cc_scene_Root_class = nullptr; static bool js_scene_Root_get_cumulativeTime(se::State& s) // NOLINT(readability-identifier-naming) { @@ -5148,7 +5216,7 @@ static bool js_scene_Root_get_cumulativeTime(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_scene_Root_get_cumulativeTime : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->cumulativeTime, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->cumulativeTime, s.thisObject(), s.rval()); @@ -5159,7 +5227,7 @@ SE_BIND_PROP_GET(js_scene_Root_get_cumulativeTime) static bool js_scene_Root_set_cumulativeTime(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Root_set_cumulativeTime : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5175,7 +5243,7 @@ static bool js_scene_Root_get_frameTime(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_scene_Root_get_frameTime : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->frameTime, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->frameTime, s.thisObject(), s.rval()); @@ -5186,7 +5254,7 @@ SE_BIND_PROP_GET(js_scene_Root_get_frameTime) static bool js_scene_Root_set_frameTime(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Root_set_frameTime : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5196,23 +5264,25 @@ static bool js_scene_Root_set_frameTime(se::State& s) // NOLINT(readability-iden } SE_BIND_PROP_SET(js_scene_Root_set_frameTime) -template <> -bool sevalue_to_native(const se::Value& from, cc::scene::Root* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::scene::Root * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("cumulativeTime", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->cumulativeTime), ctx); } json->getProperty("frameTime", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->frameTime), ctx); } return ok; @@ -5222,24 +5292,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_Root_finalize) static bool js_scene_Root_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::scene::Root* cobj = JSB_ALLOC(cc::scene::Root); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::scene::Root* cobj = JSB_ALLOC(cc::scene::Root); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -5258,7 +5330,7 @@ static bool js_scene_Root_constructor(se::State& s) // NOLINT(readability-identi ok &= sevalue_to_native(args[1], &(cobj->frameTime), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -5270,10 +5342,13 @@ static bool js_scene_Root_constructor(se::State& s) // NOLINT(readability-identi } SE_BIND_CTOR(js_scene_Root_constructor, __jsb_cc_scene_Root_class, js_cc_scene_Root_finalize) + + static bool js_cc_scene_Root_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -5299,15 +5374,15 @@ bool js_register_scene_Root(se::Object* obj) // NOLINT(readability-identifier-na return true; } se::Object* __jsb_cc_scene_SubModel_proto = nullptr; -se::Class* __jsb_cc_scene_SubModel_class = nullptr; +se::Class* __jsb_cc_scene_SubModel_class = nullptr; static bool js_scene_SubModel_getId(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_getId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5324,9 +5399,9 @@ static bool js_scene_SubModel_getOwner(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_getOwner : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::Model* result = cobj->getOwner(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5343,9 +5418,9 @@ static bool js_scene_SubModel_getPass(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_getPass : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5365,11 +5440,11 @@ static bool js_scene_SubModel_getPasses(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_getPasses : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - const std::vector& result = cobj->getPasses(); + const std::vector& result = cobj->getPasses(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_scene_SubModel_getPasses : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -5384,9 +5459,9 @@ static bool js_scene_SubModel_getPlanarInstanceShader(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_getPlanarInstanceShader : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::Shader* result = cobj->getPlanarInstanceShader(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5403,9 +5478,9 @@ static bool js_scene_SubModel_getPlanarShader(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_getPlanarShader : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::Shader* result = cobj->getPlanarShader(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5422,9 +5497,9 @@ static bool js_scene_SubModel_getPriority(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_getPriority : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getPriority()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5441,9 +5516,9 @@ static bool js_scene_SubModel_getShader(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_getShader : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5463,11 +5538,11 @@ static bool js_scene_SubModel_getShaders(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_getShaders : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - std::vector& result = cobj->getShaders(); + std::vector& result = cobj->getShaders(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_scene_SubModel_getShaders : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -5482,9 +5557,9 @@ static bool js_scene_SubModel_getWorldBoundDescriptorSet(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_getWorldBoundDescriptorSet : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::DescriptorSet* result = cobj->getWorldBoundDescriptorSet(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5501,9 +5576,9 @@ static bool js_scene_SubModel_setDescriptorSet(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_setDescriptorSet : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5520,9 +5595,9 @@ static bool js_scene_SubModel_setInputAssembler(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_setInputAssembler : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5539,9 +5614,9 @@ static bool js_scene_SubModel_setOwner(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_setOwner : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5558,11 +5633,11 @@ static bool js_scene_SubModel_setPasses(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_setPasses : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); SE_PRECONDITION2(ok, false, "js_scene_SubModel_setPasses : Error processing arguments"); cobj->setPasses(arg0.value()); @@ -5577,9 +5652,9 @@ static bool js_scene_SubModel_setPlanarInstanceShader(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_setPlanarInstanceShader : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5596,9 +5671,9 @@ static bool js_scene_SubModel_setPlanarShader(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_setPlanarShader : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5615,9 +5690,9 @@ static bool js_scene_SubModel_setPriority(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_setPriority : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5634,11 +5709,11 @@ static bool js_scene_SubModel_setShaders(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_setShaders : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); SE_PRECONDITION2(ok, false, "js_scene_SubModel_setShaders : Error processing arguments"); cobj->setShaders(arg0.value()); @@ -5653,9 +5728,9 @@ static bool js_scene_SubModel_setWorldBoundDescriptorSet(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_setWorldBoundDescriptorSet : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5673,7 +5748,7 @@ static bool js_scene_SubModel_update(se::State& s) // NOLINT(readability-identif auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_update : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->update(); return true; @@ -5694,10 +5769,13 @@ static bool js_scene_SubModel_constructor(se::State& s) // NOLINT(readability-id } SE_BIND_CTOR(js_scene_SubModel_constructor, __jsb_cc_scene_SubModel_class, js_cc_scene_SubModel_finalize) + + static bool js_cc_scene_SubModel_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -5741,15 +5819,15 @@ bool js_register_scene_SubModel(se::Object* obj) // NOLINT(readability-identifie return true; } se::Object* __jsb_cc_scene_Pass_proto = nullptr; -se::Class* __jsb_cc_scene_Pass_class = nullptr; +se::Class* __jsb_cc_scene_Pass_class = nullptr; static bool js_scene_Pass_getBatchingScheme(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_getBatchingScheme : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getBatchingScheme()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5766,9 +5844,9 @@ static bool js_scene_Pass_getBlendState(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_getBlendState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::BlendState* result = cobj->getBlendState(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5785,9 +5863,9 @@ static bool js_scene_Pass_getDepthStencilState(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_getDepthStencilState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::DepthStencilState* result = cobj->getDepthStencilState(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5804,9 +5882,9 @@ static bool js_scene_Pass_getDescriptorSet(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_getDescriptorSet : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::DescriptorSet* result = cobj->getDescriptorSet(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5823,9 +5901,9 @@ static bool js_scene_Pass_getDynamicState(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_getDynamicState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getDynamicState()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5842,9 +5920,9 @@ static bool js_scene_Pass_getHash(se::State& s) // NOLINT(readability-identifier { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_getHash : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getHash(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5861,9 +5939,9 @@ static bool js_scene_Pass_getPhase(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_getPhase : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getPhase(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5880,9 +5958,9 @@ static bool js_scene_Pass_getPipelineLayout(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_getPipelineLayout : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::PipelineLayout* result = cobj->getPipelineLayout(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5899,9 +5977,9 @@ static bool js_scene_Pass_getPrimitive(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_getPrimitive : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getPrimitive()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5918,9 +5996,9 @@ static bool js_scene_Pass_getPriority(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_getPriority : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getPriority()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5937,9 +6015,9 @@ static bool js_scene_Pass_getRasterizerState(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_getRasterizerState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::RasterizerState* result = cobj->getRasterizerState(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5956,9 +6034,9 @@ static bool js_scene_Pass_getStage(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_getStage : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getStage()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5975,9 +6053,9 @@ static bool js_scene_Pass_initWithData(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_initWithData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5994,9 +6072,9 @@ static bool js_scene_Pass_setBatchingScheme(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setBatchingScheme : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6013,9 +6091,9 @@ static bool js_scene_Pass_setBlendState(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setBlendState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6032,9 +6110,9 @@ static bool js_scene_Pass_setDepthStencilState(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setDepthStencilState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6051,9 +6129,9 @@ static bool js_scene_Pass_setDescriptorSet(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setDescriptorSet : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6070,9 +6148,9 @@ static bool js_scene_Pass_setDynamicState(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setDynamicState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6089,9 +6167,9 @@ static bool js_scene_Pass_setHash(se::State& s) // NOLINT(readability-identifier { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setHash : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6108,9 +6186,9 @@ static bool js_scene_Pass_setPhase(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setPhase : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6127,9 +6205,9 @@ static bool js_scene_Pass_setPipelineLayout(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setPipelineLayout : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6146,9 +6224,9 @@ static bool js_scene_Pass_setPrimitive(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setPrimitive : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6165,9 +6243,9 @@ static bool js_scene_Pass_setPriority(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setPriority : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6184,9 +6262,9 @@ static bool js_scene_Pass_setRasterizerState(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setRasterizerState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6203,9 +6281,9 @@ static bool js_scene_Pass_setRootBufferDirty(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setRootBufferDirty : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6222,9 +6300,9 @@ static bool js_scene_Pass_setStage(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setStage : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6242,7 +6320,7 @@ static bool js_scene_Pass_update(se::State& s) // NOLINT(readability-identifier- auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_update : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->update(); return true; @@ -6263,10 +6341,13 @@ static bool js_scene_Pass_constructor(se::State& s) // NOLINT(readability-identi } SE_BIND_CTOR(js_scene_Pass_constructor, __jsb_cc_scene_Pass_class, js_cc_scene_Pass_finalize) + + static bool js_cc_scene_Pass_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -6317,15 +6398,15 @@ bool js_register_scene_Pass(se::Object* obj) // NOLINT(readability-identifier-na return true; } se::Object* __jsb_cc_scene_BakedAnimInfo_proto = nullptr; -se::Class* __jsb_cc_scene_BakedAnimInfo_class = nullptr; +se::Class* __jsb_cc_scene_BakedAnimInfo_class = nullptr; static bool js_scene_BakedAnimInfo_getDirty(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_BakedAnimInfo_getDirty : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getDirty(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6338,27 +6419,29 @@ static bool js_scene_BakedAnimInfo_getDirty(se::State& s) // NOLINT(readability- } SE_BIND_FUNC(js_scene_BakedAnimInfo_getDirty) -template <> -bool sevalue_to_native(const se::Value& from, cc::scene::BakedAnimInfo* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::scene::BakedAnimInfo * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("buffer", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->buffer), ctx); } json->getProperty("data", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->data), ctx); } json->getProperty("dirty", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->dirty), ctx); } return ok; @@ -6368,24 +6451,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_BakedAnimInfo_finalize) static bool js_scene_BakedAnimInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::scene::BakedAnimInfo* cobj = JSB_ALLOC(cc::scene::BakedAnimInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::scene::BakedAnimInfo* cobj = JSB_ALLOC(cc::scene::BakedAnimInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -6407,7 +6492,7 @@ static bool js_scene_BakedAnimInfo_constructor(se::State& s) // NOLINT(readabili ok &= sevalue_to_native(args[2], &(cobj->dirty), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -6419,10 +6504,13 @@ static bool js_scene_BakedAnimInfo_constructor(se::State& s) // NOLINT(readabili } SE_BIND_CTOR(js_scene_BakedAnimInfo_constructor, __jsb_cc_scene_BakedAnimInfo_class, js_cc_scene_BakedAnimInfo_finalize) + + static bool js_cc_scene_BakedAnimInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -6447,33 +6535,35 @@ bool js_register_scene_BakedAnimInfo(se::Object* obj) // NOLINT(readability-iden return true; } se::Object* __jsb_cc_scene_BakedJointInfo_proto = nullptr; -se::Class* __jsb_cc_scene_BakedJointInfo_class = nullptr; +se::Class* __jsb_cc_scene_BakedJointInfo_class = nullptr; -template <> -bool sevalue_to_native(const se::Value& from, cc::scene::BakedJointInfo* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::scene::BakedJointInfo * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("boundsInfo", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->boundsInfo), ctx); } json->getProperty("jointTextureInfo", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->jointTextureInfo), ctx); } json->getProperty("animInfo", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->animInfo), ctx); } json->getProperty("buffer", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->buffer), ctx); } return ok; @@ -6483,24 +6573,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_BakedJointInfo_finalize) static bool js_scene_BakedJointInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::scene::BakedJointInfo* cobj = JSB_ALLOC(cc::scene::BakedJointInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::scene::BakedJointInfo* cobj = JSB_ALLOC(cc::scene::BakedJointInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -6525,7 +6617,7 @@ static bool js_scene_BakedJointInfo_constructor(se::State& s) // NOLINT(readabil ok &= sevalue_to_native(args[3], &(cobj->buffer), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -6537,10 +6629,13 @@ static bool js_scene_BakedJointInfo_constructor(se::State& s) // NOLINT(readabil } SE_BIND_CTOR(js_scene_BakedJointInfo_constructor, __jsb_cc_scene_BakedJointInfo_class, js_cc_scene_BakedJointInfo_finalize) + + static bool js_cc_scene_BakedJointInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -6564,15 +6659,15 @@ bool js_register_scene_BakedJointInfo(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_cc_scene_BakedSkinningModel_proto = nullptr; -se::Class* __jsb_cc_scene_BakedSkinningModel_class = nullptr; +se::Class* __jsb_cc_scene_BakedSkinningModel_class = nullptr; static bool js_scene_BakedSkinningModel_setAnimInfoIdx(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_BakedSkinningModel_setAnimInfoIdx : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6589,11 +6684,11 @@ static bool js_scene_BakedSkinningModel_setJointMedium(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_BakedSkinningModel_setJointMedium : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -6610,9 +6705,9 @@ static bool js_scene_BakedSkinningModel_updateModelBounds(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_BakedSkinningModel_updateModelBounds : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6636,10 +6731,13 @@ static bool js_scene_BakedSkinningModel_constructor(se::State& s) // NOLINT(read } SE_BIND_CTOR(js_scene_BakedSkinningModel_constructor, __jsb_cc_scene_BakedSkinningModel_class, js_cc_scene_BakedSkinningModel_finalize) + + static bool js_cc_scene_BakedSkinningModel_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -6666,37 +6764,39 @@ bool js_register_scene_BakedSkinningModel(se::Object* obj) // NOLINT(readability return true; } se::Object* __jsb_cc_scene_DrawBatch2D_proto = nullptr; -se::Class* __jsb_cc_scene_DrawBatch2D_class = nullptr; +se::Class* __jsb_cc_scene_DrawBatch2D_class = nullptr; -template <> -bool sevalue_to_native(const se::Value& from, cc::scene::DrawBatch2D* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::scene::DrawBatch2D * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("visFlags", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->visFlags), ctx); } json->getProperty("descriptorSet", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->descriptorSet), ctx); } json->getProperty("inputAssembler", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->inputAssembler), ctx); } json->getProperty("passes", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->passes), ctx); } json->getProperty("shaders", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->shaders), ctx); } return ok; @@ -6706,24 +6806,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_DrawBatch2D_finalize) static bool js_scene_DrawBatch2D_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::scene::DrawBatch2D* cobj = JSB_ALLOC(cc::scene::DrawBatch2D); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::scene::DrawBatch2D* cobj = JSB_ALLOC(cc::scene::DrawBatch2D); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -6751,7 +6853,7 @@ static bool js_scene_DrawBatch2D_constructor(se::State& s) // NOLINT(readability ok &= sevalue_to_native(args[4], &(cobj->shaders), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -6763,10 +6865,13 @@ static bool js_scene_DrawBatch2D_constructor(se::State& s) // NOLINT(readability } SE_BIND_CTOR(js_scene_DrawBatch2D_constructor, __jsb_cc_scene_DrawBatch2D_class, js_cc_scene_DrawBatch2D_finalize) + + static bool js_cc_scene_DrawBatch2D_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -6790,33 +6895,35 @@ bool js_register_scene_DrawBatch2D(se::Object* obj) // NOLINT(readability-identi return true; } se::Object* __jsb_cc_scene_JointTransform_proto = nullptr; -se::Class* __jsb_cc_scene_JointTransform_class = nullptr; +se::Class* __jsb_cc_scene_JointTransform_class = nullptr; -template <> -bool sevalue_to_native(const se::Value& from, cc::scene::JointTransform* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::scene::JointTransform * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("node", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->node), ctx); } json->getProperty("local", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->local), ctx); } json->getProperty("world", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->world), ctx); } json->getProperty("stamp", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stamp), ctx); } return ok; @@ -6826,24 +6933,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_JointTransform_finalize) static bool js_scene_JointTransform_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::scene::JointTransform* cobj = JSB_ALLOC(cc::scene::JointTransform); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::scene::JointTransform* cobj = JSB_ALLOC(cc::scene::JointTransform); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -6868,7 +6977,7 @@ static bool js_scene_JointTransform_constructor(se::State& s) // NOLINT(readabil ok &= sevalue_to_native(args[3], &(cobj->stamp), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -6880,10 +6989,13 @@ static bool js_scene_JointTransform_constructor(se::State& s) // NOLINT(readabil } SE_BIND_CTOR(js_scene_JointTransform_constructor, __jsb_cc_scene_JointTransform_class, js_cc_scene_JointTransform_finalize) + + static bool js_cc_scene_JointTransform_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -6907,45 +7019,47 @@ bool js_register_scene_JointTransform(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_cc_scene_JointInfo_proto = nullptr; -se::Class* __jsb_cc_scene_JointInfo_class = nullptr; +se::Class* __jsb_cc_scene_JointInfo_class = nullptr; -template <> -bool sevalue_to_native(const se::Value& from, cc::scene::JointInfo* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::scene::JointInfo * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("bound", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bound), ctx); } json->getProperty("target", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->target), ctx); } json->getProperty("bindpose", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bindpose), ctx); } json->getProperty("transform", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->transform), ctx); } json->getProperty("parents", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->parents), ctx); } json->getProperty("buffers", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->buffers), ctx); } json->getProperty("indices", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->indices), ctx); } return ok; @@ -6955,24 +7069,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_JointInfo_finalize) static bool js_scene_JointInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::scene::JointInfo* cobj = JSB_ALLOC(cc::scene::JointInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::scene::JointInfo* cobj = JSB_ALLOC(cc::scene::JointInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -7006,7 +7122,7 @@ static bool js_scene_JointInfo_constructor(se::State& s) // NOLINT(readability-i ok &= sevalue_to_native(args[6], &(cobj->indices), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -7018,10 +7134,13 @@ static bool js_scene_JointInfo_constructor(se::State& s) // NOLINT(readability-i } SE_BIND_CTOR(js_scene_JointInfo_constructor, __jsb_cc_scene_JointInfo_class, js_cc_scene_JointInfo_finalize) + + static bool js_cc_scene_JointInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -7045,17 +7164,17 @@ bool js_register_scene_JointInfo(se::Object* obj) // NOLINT(readability-identifi return true; } se::Object* __jsb_cc_scene_SkinningModel_proto = nullptr; -se::Class* __jsb_cc_scene_SkinningModel_class = nullptr; +se::Class* __jsb_cc_scene_SkinningModel_class = nullptr; static bool js_scene_SkinningModel_setBuffers(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SkinningModel_setBuffers : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, false> arg0 = {}; + HolderType, false> arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); SE_PRECONDITION2(ok, false, "js_scene_SkinningModel_setBuffers : Error processing arguments"); cobj->setBuffers(arg0.value()); @@ -7070,11 +7189,11 @@ static bool js_scene_SkinningModel_setIndicesAndJoints(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SkinningModel_setIndicesAndJoints : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType, false> arg0 = {}; + HolderType, false> arg0 = {}; HolderType, false> arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -7091,9 +7210,9 @@ static bool js_scene_SkinningModel_setNeedUpdate(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SkinningModel_setNeedUpdate : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7110,11 +7229,11 @@ static bool js_scene_SkinningModel_updateLocalDescriptors(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SkinningModel_updateLocalDescriptors : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -7138,10 +7257,13 @@ static bool js_scene_SkinningModel_constructor(se::State& s) // NOLINT(readabili } SE_BIND_CTOR(js_scene_SkinningModel_constructor, __jsb_cc_scene_SkinningModel_class, js_cc_scene_SkinningModel_finalize) + + static bool js_cc_scene_SkinningModel_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -7169,14 +7291,14 @@ bool js_register_scene_SkinningModel(se::Object* obj) // NOLINT(readability-iden return true; } se::Object* __jsb_cc_scene_RenderScene_proto = nullptr; -se::Class* __jsb_cc_scene_RenderScene_class = nullptr; +se::Class* __jsb_cc_scene_RenderScene_class = nullptr; static bool js_scene_RenderScene_activate(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_activate : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->activate(); return true; @@ -7190,9 +7312,9 @@ static bool js_scene_RenderScene_addBakedSkinningModel(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_addBakedSkinningModel : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7209,9 +7331,9 @@ static bool js_scene_RenderScene_addBatch(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_addBatch : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7228,9 +7350,9 @@ static bool js_scene_RenderScene_addModel(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_addModel : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7247,9 +7369,9 @@ static bool js_scene_RenderScene_addSkinningModel(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_addSkinningModel : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7266,9 +7388,9 @@ static bool js_scene_RenderScene_addSphereLight(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_addSphereLight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7285,9 +7407,9 @@ static bool js_scene_RenderScene_addSpotLight(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_addSpotLight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7304,11 +7426,11 @@ static bool js_scene_RenderScene_getDrawBatch2Ds(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_getDrawBatch2Ds : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - const std::vector& result = cobj->getDrawBatch2Ds(); + const std::vector& result = cobj->getDrawBatch2Ds(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_scene_RenderScene_getDrawBatch2Ds : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -7323,9 +7445,9 @@ static bool js_scene_RenderScene_getMainLight(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_getMainLight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::DirectionalLight* result = cobj->getMainLight(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7342,11 +7464,11 @@ static bool js_scene_RenderScene_getModels(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_getModels : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - const std::vector& result = cobj->getModels(); + const std::vector& result = cobj->getModels(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_scene_RenderScene_getModels : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -7361,11 +7483,11 @@ static bool js_scene_RenderScene_getSphereLights(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_getSphereLights : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - const std::vector& result = cobj->getSphereLights(); + const std::vector& result = cobj->getSphereLights(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_scene_RenderScene_getSphereLights : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -7380,11 +7502,11 @@ static bool js_scene_RenderScene_getSpotLights(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_getSpotLights : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - const std::vector& result = cobj->getSpotLights(); + const std::vector& result = cobj->getSpotLights(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_scene_RenderScene_getSpotLights : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -7397,38 +7519,32 @@ SE_BIND_FUNC(js_scene_RenderScene_getSpotLights) static bool js_scene_RenderScene_removeBatch(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_removeBatch : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2( cobj, false, "js_scene_RenderScene_removeBatch : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->removeBatch(arg0.value()); return true; } - } while (false); + } while(false); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->removeBatch(arg0.value()); return true; } - } while (false); + } while(false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -7440,7 +7556,7 @@ static bool js_scene_RenderScene_removeBatches(se::State& s) // NOLINT(readabili auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_removeBatches : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->removeBatches(); return true; @@ -7454,9 +7570,9 @@ static bool js_scene_RenderScene_removeModel(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_removeModel : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7474,7 +7590,7 @@ static bool js_scene_RenderScene_removeModels(se::State& s) // NOLINT(readabilit auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_removeModels : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->removeModels(); return true; @@ -7488,9 +7604,9 @@ static bool js_scene_RenderScene_removeSphereLight(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_removeSphereLight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7508,7 +7624,7 @@ static bool js_scene_RenderScene_removeSphereLights(se::State& s) // NOLINT(read auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_removeSphereLights : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->removeSphereLights(); return true; @@ -7522,9 +7638,9 @@ static bool js_scene_RenderScene_removeSpotLight(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_removeSpotLight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7542,7 +7658,7 @@ static bool js_scene_RenderScene_removeSpotLights(se::State& s) // NOLINT(readab auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_removeSpotLights : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->removeSpotLights(); return true; @@ -7556,9 +7672,9 @@ static bool js_scene_RenderScene_setMainLight(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_setMainLight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7575,9 +7691,9 @@ static bool js_scene_RenderScene_update(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_update : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7601,10 +7717,13 @@ static bool js_scene_RenderScene_constructor(se::State& s) // NOLINT(readability } SE_BIND_CTOR(js_scene_RenderScene_constructor, __jsb_cc_scene_RenderScene_class, js_cc_scene_RenderScene_finalize) + + static bool js_cc_scene_RenderScene_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -7650,15 +7769,15 @@ bool js_register_scene_RenderScene(se::Object* obj) // NOLINT(readability-identi return true; } se::Object* __jsb_cc_scene_RenderWindow_proto = nullptr; -se::Class* __jsb_cc_scene_RenderWindow_class = nullptr; +se::Class* __jsb_cc_scene_RenderWindow_class = nullptr; static bool js_scene_RenderWindow_getHeight(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderWindow_getHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getHeight(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7675,9 +7794,9 @@ static bool js_scene_RenderWindow_getWidth(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderWindow_getWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getWidth(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7696,7 +7815,7 @@ static bool js_scene_RenderWindow_get_swapchain(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_scene_RenderWindow_get_swapchain : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->swapchain, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->swapchain, s.thisObject(), s.rval()); @@ -7707,7 +7826,7 @@ SE_BIND_PROP_GET(js_scene_RenderWindow_get_swapchain) static bool js_scene_RenderWindow_set_swapchain(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderWindow_set_swapchain : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7723,7 +7842,7 @@ static bool js_scene_RenderWindow_get_frameBuffer(se::State& s) // NOLINT(readab SE_PRECONDITION2(cobj, false, "js_scene_RenderWindow_get_frameBuffer : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->frameBuffer, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->frameBuffer, s.thisObject(), s.rval()); @@ -7734,7 +7853,7 @@ SE_BIND_PROP_GET(js_scene_RenderWindow_get_frameBuffer) static bool js_scene_RenderWindow_set_frameBuffer(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderWindow_set_frameBuffer : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7744,23 +7863,25 @@ static bool js_scene_RenderWindow_set_frameBuffer(se::State& s) // NOLINT(readab } SE_BIND_PROP_SET(js_scene_RenderWindow_set_frameBuffer) -template <> -bool sevalue_to_native(const se::Value& from, cc::scene::RenderWindow* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::scene::RenderWindow * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("swapchain", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->swapchain), ctx); } json->getProperty("frameBuffer", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->frameBuffer), ctx); } return ok; @@ -7770,24 +7891,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_RenderWindow_finalize) static bool js_scene_RenderWindow_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::scene::RenderWindow* cobj = JSB_ALLOC(cc::scene::RenderWindow); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::scene::RenderWindow* cobj = JSB_ALLOC(cc::scene::RenderWindow); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -7806,7 +7929,7 @@ static bool js_scene_RenderWindow_constructor(se::State& s) // NOLINT(readabilit ok &= sevalue_to_native(args[1], &(cobj->frameBuffer), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -7818,10 +7941,13 @@ static bool js_scene_RenderWindow_constructor(se::State& s) // NOLINT(readabilit } SE_BIND_CTOR(js_scene_RenderWindow_constructor, __jsb_cc_scene_RenderWindow_class, js_cc_scene_RenderWindow_finalize) + + static bool js_cc_scene_RenderWindow_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -7849,7 +7975,7 @@ bool js_register_scene_RenderWindow(se::Object* obj) // NOLINT(readability-ident return true; } se::Object* __jsb_cc_scene_Camera_proto = nullptr; -se::Class* __jsb_cc_scene_Camera_class = nullptr; +se::Class* __jsb_cc_scene_Camera_class = nullptr; static bool js_scene_Camera_get_width(se::State& s) // NOLINT(readability-identifier-naming) { @@ -7857,7 +7983,7 @@ static bool js_scene_Camera_get_width(se::State& s) // NOLINT(readability-identi SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_width : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->width, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->width, s.thisObject(), s.rval()); @@ -7868,7 +7994,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_width) static bool js_scene_Camera_set_width(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_width : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7884,7 +8010,7 @@ static bool js_scene_Camera_get_height(se::State& s) // NOLINT(readability-ident SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_height : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->height, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->height, s.thisObject(), s.rval()); @@ -7895,7 +8021,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_height) static bool js_scene_Camera_set_height(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_height : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7911,7 +8037,7 @@ static bool js_scene_Camera_get_nearClip(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_nearClip : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->nearClip, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->nearClip, s.thisObject(), s.rval()); @@ -7922,7 +8048,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_nearClip) static bool js_scene_Camera_set_nearClip(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_nearClip : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7938,7 +8064,7 @@ static bool js_scene_Camera_get_farClip(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_farClip : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->farClip, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->farClip, s.thisObject(), s.rval()); @@ -7949,7 +8075,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_farClip) static bool js_scene_Camera_set_farClip(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_farClip : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7965,7 +8091,7 @@ static bool js_scene_Camera_get_clearFlag(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_clearFlag : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->clearFlag, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->clearFlag, s.thisObject(), s.rval()); @@ -7976,7 +8102,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_clearFlag) static bool js_scene_Camera_set_clearFlag(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_clearFlag : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7992,7 +8118,7 @@ static bool js_scene_Camera_get_exposure(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_exposure : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->exposure, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->exposure, s.thisObject(), s.rval()); @@ -8003,7 +8129,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_exposure) static bool js_scene_Camera_set_exposure(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_exposure : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8019,7 +8145,7 @@ static bool js_scene_Camera_get_clearDepth(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_clearDepth : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->clearDepth, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->clearDepth, s.thisObject(), s.rval()); @@ -8030,7 +8156,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_clearDepth) static bool js_scene_Camera_set_clearDepth(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_clearDepth : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8046,7 +8172,7 @@ static bool js_scene_Camera_get_fov(se::State& s) // NOLINT(readability-identifi SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_fov : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->fov, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->fov, s.thisObject(), s.rval()); @@ -8057,7 +8183,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_fov) static bool js_scene_Camera_set_fov(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_fov : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8073,7 +8199,7 @@ static bool js_scene_Camera_get_aspect(se::State& s) // NOLINT(readability-ident SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_aspect : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->aspect, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->aspect, s.thisObject(), s.rval()); @@ -8084,7 +8210,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_aspect) static bool js_scene_Camera_set_aspect(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_aspect : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8100,7 +8226,7 @@ static bool js_scene_Camera_get_viewPort(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_viewPort : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->viewPort, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->viewPort, s.thisObject(), s.rval()); @@ -8111,7 +8237,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_viewPort) static bool js_scene_Camera_set_viewPort(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_viewPort : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8127,7 +8253,7 @@ static bool js_scene_Camera_get_clearStencil(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_clearStencil : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->clearStencil, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->clearStencil, s.thisObject(), s.rval()); @@ -8138,7 +8264,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_clearStencil) static bool js_scene_Camera_set_clearStencil(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_clearStencil : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8154,7 +8280,7 @@ static bool js_scene_Camera_get_visibility(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_visibility : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->visibility, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->visibility, s.thisObject(), s.rval()); @@ -8165,7 +8291,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_visibility) static bool js_scene_Camera_set_visibility(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_visibility : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8181,7 +8307,7 @@ static bool js_scene_Camera_get_node(se::State& s) // NOLINT(readability-identif SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_node : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->node, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->node, s.thisObject(), s.rval()); @@ -8192,7 +8318,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_node) static bool js_scene_Camera_set_node(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_node : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8208,7 +8334,7 @@ static bool js_scene_Camera_get_scene(se::State& s) // NOLINT(readability-identi SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_scene : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->scene, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->scene, s.thisObject(), s.rval()); @@ -8219,7 +8345,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_scene) static bool js_scene_Camera_set_scene(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_scene : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8235,7 +8361,7 @@ static bool js_scene_Camera_get_window(se::State& s) // NOLINT(readability-ident SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_window : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->window, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->window, s.thisObject(), s.rval()); @@ -8246,7 +8372,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_window) static bool js_scene_Camera_set_window(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_window : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8262,7 +8388,7 @@ static bool js_scene_Camera_get_frustum(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_frustum : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->frustum, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->frustum, s.thisObject(), s.rval()); @@ -8273,7 +8399,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_frustum) static bool js_scene_Camera_set_frustum(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_frustum : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8289,7 +8415,7 @@ static bool js_scene_Camera_get_forward(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_forward : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->forward, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->forward, s.thisObject(), s.rval()); @@ -8300,7 +8426,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_forward) static bool js_scene_Camera_set_forward(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_forward : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8316,7 +8442,7 @@ static bool js_scene_Camera_get_position(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_position : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->position, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->position, s.thisObject(), s.rval()); @@ -8327,7 +8453,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_position) static bool js_scene_Camera_set_position(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_position : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8343,7 +8469,7 @@ static bool js_scene_Camera_get_clearColor(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_clearColor : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->clearColor, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->clearColor, s.thisObject(), s.rval()); @@ -8354,7 +8480,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_clearColor) static bool js_scene_Camera_set_clearColor(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_clearColor : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8370,7 +8496,7 @@ static bool js_scene_Camera_get_matView(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_matView : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->matView, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->matView, s.thisObject(), s.rval()); @@ -8381,7 +8507,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_matView) static bool js_scene_Camera_set_matView(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_matView : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8397,7 +8523,7 @@ static bool js_scene_Camera_get_matViewProj(se::State& s) // NOLINT(readability- SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_matViewProj : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->matViewProj, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->matViewProj, s.thisObject(), s.rval()); @@ -8408,7 +8534,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_matViewProj) static bool js_scene_Camera_set_matViewProj(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_matViewProj : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8424,7 +8550,7 @@ static bool js_scene_Camera_get_matViewProjInv(se::State& s) // NOLINT(readabili SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_matViewProjInv : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->matViewProjInv, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->matViewProjInv, s.thisObject(), s.rval()); @@ -8435,7 +8561,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_matViewProjInv) static bool js_scene_Camera_set_matViewProjInv(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_matViewProjInv : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8451,7 +8577,7 @@ static bool js_scene_Camera_get_matProj(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_matProj : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->matProj, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->matProj, s.thisObject(), s.rval()); @@ -8462,7 +8588,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_matProj) static bool js_scene_Camera_set_matProj(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_matProj : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8478,7 +8604,7 @@ static bool js_scene_Camera_get_matProjInv(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_matProjInv : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->matProjInv, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->matProjInv, s.thisObject(), s.rval()); @@ -8489,7 +8615,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_matProjInv) static bool js_scene_Camera_set_matProjInv(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_matProjInv : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8505,7 +8631,7 @@ static bool js_scene_Camera_get_matViewProjOffscreen(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_matViewProjOffscreen : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->matViewProjOffscreen, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->matViewProjOffscreen, s.thisObject(), s.rval()); @@ -8516,7 +8642,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_matViewProjOffscreen) static bool js_scene_Camera_set_matViewProjOffscreen(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_matViewProjOffscreen : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8532,7 +8658,7 @@ static bool js_scene_Camera_get_matViewProjInvOffscreen(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_matViewProjInvOffscreen : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->matViewProjInvOffscreen, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->matViewProjInvOffscreen, s.thisObject(), s.rval()); @@ -8543,7 +8669,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_matViewProjInvOffscreen) static bool js_scene_Camera_set_matViewProjInvOffscreen(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_matViewProjInvOffscreen : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8559,7 +8685,7 @@ static bool js_scene_Camera_get_matProjOffscreen(se::State& s) // NOLINT(readabi SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_matProjOffscreen : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->matProjOffscreen, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->matProjOffscreen, s.thisObject(), s.rval()); @@ -8570,7 +8696,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_matProjOffscreen) static bool js_scene_Camera_set_matProjOffscreen(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_matProjOffscreen : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8586,7 +8712,7 @@ static bool js_scene_Camera_get_matProjInvOffscreen(se::State& s) // NOLINT(read SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_matProjInvOffscreen : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->matProjInvOffscreen, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->matProjInvOffscreen, s.thisObject(), s.rval()); @@ -8597,7 +8723,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_matProjInvOffscreen) static bool js_scene_Camera_set_matProjInvOffscreen(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_matProjInvOffscreen : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8607,127 +8733,129 @@ static bool js_scene_Camera_set_matProjInvOffscreen(se::State& s) // NOLINT(read } SE_BIND_PROP_SET(js_scene_Camera_set_matProjInvOffscreen) -template <> -bool sevalue_to_native(const se::Value& from, cc::scene::Camera* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::scene::Camera * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("width", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->width), ctx); } json->getProperty("height", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->height), ctx); } json->getProperty("nearClip", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->nearClip), ctx); } json->getProperty("farClip", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->farClip), ctx); } json->getProperty("clearFlag", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->clearFlag), ctx); } json->getProperty("exposure", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->exposure), ctx); } json->getProperty("clearDepth", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->clearDepth), ctx); } json->getProperty("fov", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->fov), ctx); } json->getProperty("aspect", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->aspect), ctx); } json->getProperty("viewPort", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->viewPort), ctx); } json->getProperty("clearStencil", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->clearStencil), ctx); } json->getProperty("visibility", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->visibility), ctx); } json->getProperty("node", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->node), ctx); } json->getProperty("scene", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->scene), ctx); } json->getProperty("window", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->window), ctx); } json->getProperty("frustum", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->frustum), ctx); } json->getProperty("forward", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->forward), ctx); } json->getProperty("position", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->position), ctx); } json->getProperty("clearColor", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->clearColor), ctx); } json->getProperty("matView", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->matView), ctx); } json->getProperty("matViewProj", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->matViewProj), ctx); } json->getProperty("matViewProjInv", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->matViewProjInv), ctx); } json->getProperty("matProj", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->matProj), ctx); } json->getProperty("matProjInv", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->matProjInv), ctx); } json->getProperty("matViewProjOffscreen", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->matViewProjOffscreen), ctx); } json->getProperty("matViewProjInvOffscreen", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->matViewProjInvOffscreen), ctx); } json->getProperty("matProjOffscreen", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->matProjOffscreen), ctx); } json->getProperty("matProjInvOffscreen", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->matProjInvOffscreen), ctx); } return ok; @@ -8737,24 +8865,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_Camera_finalize) static bool js_scene_Camera_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::scene::Camera* cobj = JSB_ALLOC(cc::scene::Camera); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::scene::Camera* cobj = JSB_ALLOC(cc::scene::Camera); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -8851,7 +8981,7 @@ static bool js_scene_Camera_constructor(se::State& s) // NOLINT(readability-iden ok &= sevalue_to_native(args[27], &(cobj->matProjInvOffscreen), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -8863,10 +8993,13 @@ static bool js_scene_Camera_constructor(se::State& s) // NOLINT(readability-iden } SE_BIND_CTOR(js_scene_Camera_constructor, __jsb_cc_scene_Camera_class, js_cc_scene_Camera_finalize) + + static bool js_cc_scene_Camera_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -8918,15 +9051,15 @@ bool js_register_scene_Camera(se::Object* obj) // NOLINT(readability-identifier- return true; } se::Object* __jsb_cc_scene_Sphere_proto = nullptr; -se::Class* __jsb_cc_scene_Sphere_class = nullptr; +se::Class* __jsb_cc_scene_Sphere_class = nullptr; static bool js_scene_Sphere_getCenter(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Sphere_getCenter : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::Vec3& result = cobj->getCenter(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8943,9 +9076,9 @@ static bool js_scene_Sphere_getRadius(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Sphere_getRadius : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRadius(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8962,9 +9095,9 @@ static bool js_scene_Sphere_setCenter(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Sphere_setCenter : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -8981,9 +9114,9 @@ static bool js_scene_Sphere_setRadius(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Sphere_setRadius : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -9007,10 +9140,13 @@ static bool js_scene_Sphere_constructor(se::State& s) // NOLINT(readability-iden } SE_BIND_CTOR(js_scene_Sphere_constructor, __jsb_cc_scene_Sphere_class, js_cc_scene_Sphere_finalize) + + static bool js_cc_scene_Sphere_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -9037,10 +9173,12 @@ bool js_register_scene_Sphere(se::Object* obj) // NOLINT(readability-identifier- se::ScriptEngine::getInstance()->clearException(); return true; } -bool register_all_scene(se::Object* obj) { +bool register_all_scene(se::Object* obj) +{ // Get the ns se::Value nsVal; - if (!obj->getProperty("ns", &nsVal)) { + if (!obj->getProperty("ns", &nsVal)) + { se::HandleObject jsobj(se::Object::createPlainObject()); nsVal.setObject(jsobj); obj->setProperty("ns", nsVal); @@ -9080,3 +9218,4 @@ bool register_all_scene(se::Object* obj) { js_register_scene_Sphere(ns); return true; } + diff --git a/native/cocos/bindings/auto/jsb_scene_auto.h b/native/cocos/bindings/auto/jsb_scene_auto.h index e8ace82401..63e21cc043 100644 --- a/native/cocos/bindings/auto/jsb_scene_auto.h +++ b/native/cocos/bindings/auto/jsb_scene_auto.h @@ -1,29 +1,30 @@ #pragma once -#include #include "base/Config.h" -#include "cocos/bindings/auto/jsb_gfx_auto.h" +#include #include "cocos/bindings/jswrapper/SeApi.h" #include "cocos/bindings/manual/jsb_conversions.h" -#include "cocos/scene/AABB.h" -#include "cocos/scene/BaseNode.h" -#include "cocos/scene/Camera.h" -#include "cocos/scene/Define.h" -#include "cocos/scene/DirectionalLight.h" -#include "cocos/scene/DrawBatch2D.h" -#include "cocos/scene/Light.h" -#include "cocos/scene/Model.h" +#include "cocos/bindings/auto/jsb_gfx_auto.h" #include "cocos/scene/Node.h" +#include "cocos/scene/BaseNode.h" +#include "cocos/scene/Scene.h" +#include "cocos/scene/Light.h" +#include "cocos/scene/DirectionalLight.h" +#include "cocos/scene/SpotLight.h" +#include "cocos/scene/SphereLight.h" +#include "cocos/scene/Model.h" +#include "cocos/scene/SubModel.h" #include "cocos/scene/Pass.h" #include "cocos/scene/RenderScene.h" +#include "cocos/scene/DrawBatch2D.h" +#include "cocos/scene/Camera.h" #include "cocos/scene/RenderWindow.h" -#include "cocos/scene/Scene.h" +#include "cocos/scene/Camera.h" +#include "cocos/scene/Define.h" +#include "cocos/scene/AABB.h" #include "cocos/scene/Sphere.h" -#include "cocos/scene/SphereLight.h" -#include "cocos/scene/SpotLight.h" -#include "cocos/scene/SubModel.h" extern se::Object* __jsb_cc_scene_BaseNode_proto; -extern se::Class* __jsb_cc_scene_BaseNode_class; +extern se::Class* __jsb_cc_scene_BaseNode_class; bool js_register_cc_scene_BaseNode(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -34,7 +35,7 @@ SE_DECLARE_FUNC(js_scene_BaseNode_setParent); SE_DECLARE_FUNC(js_scene_BaseNode_BaseNode); extern se::Object* __jsb_cc_scene_Scene_proto; -extern se::Class* __jsb_cc_scene_Scene_class; +extern se::Class* __jsb_cc_scene_Scene_class; bool js_register_cc_scene_Scene(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -43,7 +44,7 @@ JSB_REGISTER_OBJECT_TYPE(cc::scene::Scene); SE_DECLARE_FUNC(js_scene_Scene_Scene); extern se::Object* __jsb_cc_scene_Node_proto; -extern se::Class* __jsb_cc_scene_Node_class; +extern se::Class* __jsb_cc_scene_Node_class; bool js_register_cc_scene_Node(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -53,7 +54,7 @@ SE_DECLARE_FUNC(js_scene_Node_initWithData); SE_DECLARE_FUNC(js_scene_Node_Node); extern se::Object* __jsb_cc_scene_Light_proto; -extern se::Class* __jsb_cc_scene_Light_class; +extern se::Class* __jsb_cc_scene_Light_class; bool js_register_cc_scene_Light(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -69,7 +70,7 @@ SE_DECLARE_FUNC(js_scene_Light_setUseColorTemperature); SE_DECLARE_FUNC(js_scene_Light_update); extern se::Object* __jsb_cc_scene_DirectionalLight_proto; -extern se::Class* __jsb_cc_scene_DirectionalLight_class; +extern se::Class* __jsb_cc_scene_DirectionalLight_class; bool js_register_cc_scene_DirectionalLight(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -81,26 +82,26 @@ SE_DECLARE_FUNC(js_scene_DirectionalLight_setIlluminanceLDR); SE_DECLARE_FUNC(js_scene_DirectionalLight_DirectionalLight); extern se::Object* __jsb_cc_scene_Plane_proto; -extern se::Class* __jsb_cc_scene_Plane_class; +extern se::Class* __jsb_cc_scene_Plane_class; bool js_register_cc_scene_Plane(se::Object* obj); bool register_all_scene(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::scene::Plane*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::scene::Plane *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::Plane); SE_DECLARE_FUNC(js_scene_Plane_clone); SE_DECLARE_FUNC(js_scene_Plane_define); SE_DECLARE_FUNC(js_scene_Plane_distance); extern se::Object* __jsb_cc_scene_Frustum_proto; -extern se::Class* __jsb_cc_scene_Frustum_class; +extern se::Class* __jsb_cc_scene_Frustum_class; bool js_register_cc_scene_Frustum(se::Object* obj); bool register_all_scene(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::scene::Frustum*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::scene::Frustum *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::Frustum); SE_DECLARE_FUNC(js_scene_Frustum_clone); SE_DECLARE_FUNC(js_scene_Frustum_createOrtho); @@ -108,7 +109,7 @@ SE_DECLARE_FUNC(js_scene_Frustum_split); SE_DECLARE_FUNC(js_scene_Frustum_transform); extern se::Object* __jsb_cc_scene_AABB_proto; -extern se::Class* __jsb_cc_scene_AABB_class; +extern se::Class* __jsb_cc_scene_AABB_class; bool js_register_cc_scene_AABB(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -120,7 +121,7 @@ SE_DECLARE_FUNC(js_scene_AABB_initWithData); SE_DECLARE_FUNC(js_scene_AABB_AABB); extern se::Object* __jsb_cc_scene_SpotLight_proto; -extern se::Class* __jsb_cc_scene_SpotLight_class; +extern se::Class* __jsb_cc_scene_SpotLight_class; bool js_register_cc_scene_SpotLight(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -140,7 +141,7 @@ SE_DECLARE_FUNC(js_scene_SpotLight_setSize); SE_DECLARE_FUNC(js_scene_SpotLight_SpotLight); extern se::Object* __jsb_cc_scene_SphereLight_proto; -extern se::Class* __jsb_cc_scene_SphereLight_class; +extern se::Class* __jsb_cc_scene_SphereLight_class; bool js_register_cc_scene_SphereLight(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -155,7 +156,7 @@ SE_DECLARE_FUNC(js_scene_SphereLight_setSize); SE_DECLARE_FUNC(js_scene_SphereLight_SphereLight); extern se::Object* __jsb_cc_scene_Model_proto; -extern se::Class* __jsb_cc_scene_Model_class; +extern se::Class* __jsb_cc_scene_Model_class; bool js_register_cc_scene_Model(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -195,77 +196,77 @@ SE_DECLARE_FUNC(js_scene_Model_updateWorldBoundUBOs); SE_DECLARE_FUNC(js_scene_Model_Model); extern se::Object* __jsb_cc_scene_Fog_proto; -extern se::Class* __jsb_cc_scene_Fog_class; +extern se::Class* __jsb_cc_scene_Fog_class; bool js_register_cc_scene_Fog(se::Object* obj); bool register_all_scene(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::scene::Fog*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::scene::Fog *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::Fog); extern se::Object* __jsb_cc_scene_Shadow_proto; -extern se::Class* __jsb_cc_scene_Shadow_class; +extern se::Class* __jsb_cc_scene_Shadow_class; bool js_register_cc_scene_Shadow(se::Object* obj); bool register_all_scene(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::scene::Shadow*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::scene::Shadow *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::Shadow); extern se::Object* __jsb_cc_scene_Skybox_proto; -extern se::Class* __jsb_cc_scene_Skybox_class; +extern se::Class* __jsb_cc_scene_Skybox_class; bool js_register_cc_scene_Skybox(se::Object* obj); bool register_all_scene(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::scene::Skybox*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::scene::Skybox *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::Skybox); extern se::Object* __jsb_cc_scene_Ambient_proto; -extern se::Class* __jsb_cc_scene_Ambient_class; +extern se::Class* __jsb_cc_scene_Ambient_class; bool js_register_cc_scene_Ambient(se::Object* obj); bool register_all_scene(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::scene::Ambient*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::scene::Ambient *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::Ambient); extern se::Object* __jsb_cc_scene_OctreeInfo_proto; -extern se::Class* __jsb_cc_scene_OctreeInfo_class; +extern se::Class* __jsb_cc_scene_OctreeInfo_class; bool js_register_cc_scene_OctreeInfo(se::Object* obj); bool register_all_scene(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::scene::OctreeInfo*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::scene::OctreeInfo *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::OctreeInfo); extern se::Object* __jsb_cc_scene_PipelineSharedSceneData_proto; -extern se::Class* __jsb_cc_scene_PipelineSharedSceneData_class; +extern se::Class* __jsb_cc_scene_PipelineSharedSceneData_class; bool js_register_cc_scene_PipelineSharedSceneData(se::Object* obj); bool register_all_scene(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::scene::PipelineSharedSceneData*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::scene::PipelineSharedSceneData *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::PipelineSharedSceneData); extern se::Object* __jsb_cc_scene_Root_proto; -extern se::Class* __jsb_cc_scene_Root_class; +extern se::Class* __jsb_cc_scene_Root_class; bool js_register_cc_scene_Root(se::Object* obj); bool register_all_scene(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::scene::Root*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::scene::Root *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::Root); extern se::Object* __jsb_cc_scene_SubModel_proto; -extern se::Class* __jsb_cc_scene_SubModel_class; +extern se::Class* __jsb_cc_scene_SubModel_class; bool js_register_cc_scene_SubModel(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -294,7 +295,7 @@ SE_DECLARE_FUNC(js_scene_SubModel_update); SE_DECLARE_FUNC(js_scene_SubModel_SubModel); extern se::Object* __jsb_cc_scene_Pass_proto; -extern se::Class* __jsb_cc_scene_Pass_class; +extern se::Class* __jsb_cc_scene_Pass_class; bool js_register_cc_scene_Pass(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -330,28 +331,28 @@ SE_DECLARE_FUNC(js_scene_Pass_update); SE_DECLARE_FUNC(js_scene_Pass_Pass); extern se::Object* __jsb_cc_scene_BakedAnimInfo_proto; -extern se::Class* __jsb_cc_scene_BakedAnimInfo_class; +extern se::Class* __jsb_cc_scene_BakedAnimInfo_class; bool js_register_cc_scene_BakedAnimInfo(se::Object* obj); bool register_all_scene(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::scene::BakedAnimInfo*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::scene::BakedAnimInfo *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::BakedAnimInfo); SE_DECLARE_FUNC(js_scene_BakedAnimInfo_getDirty); extern se::Object* __jsb_cc_scene_BakedJointInfo_proto; -extern se::Class* __jsb_cc_scene_BakedJointInfo_class; +extern se::Class* __jsb_cc_scene_BakedJointInfo_class; bool js_register_cc_scene_BakedJointInfo(se::Object* obj); bool register_all_scene(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::scene::BakedJointInfo*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::scene::BakedJointInfo *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::BakedJointInfo); extern se::Object* __jsb_cc_scene_BakedSkinningModel_proto; -extern se::Class* __jsb_cc_scene_BakedSkinningModel_class; +extern se::Class* __jsb_cc_scene_BakedSkinningModel_class; bool js_register_cc_scene_BakedSkinningModel(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -363,37 +364,37 @@ SE_DECLARE_FUNC(js_scene_BakedSkinningModel_updateModelBounds); SE_DECLARE_FUNC(js_scene_BakedSkinningModel_BakedSkinningModel); extern se::Object* __jsb_cc_scene_DrawBatch2D_proto; -extern se::Class* __jsb_cc_scene_DrawBatch2D_class; +extern se::Class* __jsb_cc_scene_DrawBatch2D_class; bool js_register_cc_scene_DrawBatch2D(se::Object* obj); bool register_all_scene(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::scene::DrawBatch2D*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::scene::DrawBatch2D *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::DrawBatch2D); extern se::Object* __jsb_cc_scene_JointTransform_proto; -extern se::Class* __jsb_cc_scene_JointTransform_class; +extern se::Class* __jsb_cc_scene_JointTransform_class; bool js_register_cc_scene_JointTransform(se::Object* obj); bool register_all_scene(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::scene::JointTransform*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::scene::JointTransform *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::JointTransform); extern se::Object* __jsb_cc_scene_JointInfo_proto; -extern se::Class* __jsb_cc_scene_JointInfo_class; +extern se::Class* __jsb_cc_scene_JointInfo_class; bool js_register_cc_scene_JointInfo(se::Object* obj); bool register_all_scene(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::scene::JointInfo*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::scene::JointInfo *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::JointInfo); extern se::Object* __jsb_cc_scene_SkinningModel_proto; -extern se::Class* __jsb_cc_scene_SkinningModel_class; +extern se::Class* __jsb_cc_scene_SkinningModel_class; bool js_register_cc_scene_SkinningModel(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -406,7 +407,7 @@ SE_DECLARE_FUNC(js_scene_SkinningModel_updateLocalDescriptors); SE_DECLARE_FUNC(js_scene_SkinningModel_SkinningModel); extern se::Object* __jsb_cc_scene_RenderScene_proto; -extern se::Class* __jsb_cc_scene_RenderScene_class; +extern se::Class* __jsb_cc_scene_RenderScene_class; bool js_register_cc_scene_RenderScene(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -437,29 +438,29 @@ SE_DECLARE_FUNC(js_scene_RenderScene_update); SE_DECLARE_FUNC(js_scene_RenderScene_RenderScene); extern se::Object* __jsb_cc_scene_RenderWindow_proto; -extern se::Class* __jsb_cc_scene_RenderWindow_class; +extern se::Class* __jsb_cc_scene_RenderWindow_class; bool js_register_cc_scene_RenderWindow(se::Object* obj); bool register_all_scene(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::scene::RenderWindow*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::scene::RenderWindow *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::RenderWindow); SE_DECLARE_FUNC(js_scene_RenderWindow_getHeight); SE_DECLARE_FUNC(js_scene_RenderWindow_getWidth); extern se::Object* __jsb_cc_scene_Camera_proto; -extern se::Class* __jsb_cc_scene_Camera_class; +extern se::Class* __jsb_cc_scene_Camera_class; bool js_register_cc_scene_Camera(se::Object* obj); bool register_all_scene(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::scene::Camera*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::scene::Camera *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::Camera); extern se::Object* __jsb_cc_scene_Sphere_proto; -extern se::Class* __jsb_cc_scene_Sphere_class; +extern se::Class* __jsb_cc_scene_Sphere_class; bool js_register_cc_scene_Sphere(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -470,3 +471,4 @@ SE_DECLARE_FUNC(js_scene_Sphere_getRadius); SE_DECLARE_FUNC(js_scene_Sphere_setCenter); SE_DECLARE_FUNC(js_scene_Sphere_setRadius); SE_DECLARE_FUNC(js_scene_Sphere_Sphere); + From 08e9f59ce9cfe898605ed13caec8693aedd17400 Mon Sep 17 00:00:00 2001 From: timlyeee <43355299+timlyeee@users.noreply.github.com> Date: Sat, 8 Jan 2022 18:05:34 +0800 Subject: [PATCH 23/45] Fix callInfo leak (#4148) --- native/cocos/bindings/manual/JavaScriptJavaBridge.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/native/cocos/bindings/manual/JavaScriptJavaBridge.cpp b/native/cocos/bindings/manual/JavaScriptJavaBridge.cpp index 40bde75041..cf1e21c5dd 100644 --- a/native/cocos/bindings/manual/JavaScriptJavaBridge.cpp +++ b/native/cocos/bindings/manual/JavaScriptJavaBridge.cpp @@ -220,7 +220,9 @@ Java_com_cocos_lib_JsbBridge_nativeSendToScript(JNIEnv *env, jclass clazz, jstri ScriptNativeBridge* ScriptNativeBridge::bridgeCxxInstance{nullptr}; JavaScriptJavaBridge::CallInfo::~CallInfo() { + _mEnv->DeleteLocalRef(_mClassID); if (_mReturnType == ValueType::STRING && _mRet.stringValue) { + _mEnv->DeleteLocalRef(_mRetjstring); delete _mRet.stringValue; } } From 952f646bc1df358054d5683413b83d7cab993253 Mon Sep 17 00:00:00 2001 From: timlyeee <43355299+timlyeee@users.noreply.github.com> Date: Mon, 10 Jan 2022 17:26:21 +0800 Subject: [PATCH 24/45] remove unnecessary include (#4153) --- native/cocos/platform/apple/JsbBridgeWrapper.mm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/native/cocos/platform/apple/JsbBridgeWrapper.mm b/native/cocos/platform/apple/JsbBridgeWrapper.mm index acb074f69b..b857e8c90e 100644 --- a/native/cocos/platform/apple/JsbBridgeWrapper.mm +++ b/native/cocos/platform/apple/JsbBridgeWrapper.mm @@ -22,11 +22,10 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ -#include "JsbBridgeWrapper.h" #include #include #include "JsbBridge.h" -#include "Application.h" +#include "JsbBridgeWrapper.h" @implementation JsbBridgeWrapper { JsbBridge* jb; From b9babc391c3066b39065feed7702c3863ecfb617 Mon Sep 17 00:00:00 2001 From: DolaMay <158788224@qq.com> Date: Wed, 12 Jan 2022 14:36:49 +0800 Subject: [PATCH 25/45] Fix Lighting stage feedback loop (#4157) * fix cluster check bugs * Position Delete & Normal Compress * Fix Lighting stage feedback loop --- native/cocos/renderer/gfx-vulkan/VKCommands.cpp | 1 - native/cocos/renderer/pipeline/deferred/LightingStage.cpp | 8 -------- 2 files changed, 9 deletions(-) diff --git a/native/cocos/renderer/gfx-vulkan/VKCommands.cpp b/native/cocos/renderer/gfx-vulkan/VKCommands.cpp index bf17f1ba6e..28aacb47f7 100644 --- a/native/cocos/renderer/gfx-vulkan/VKCommands.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKCommands.cpp @@ -609,7 +609,6 @@ void cmdFuncCCVKCreateRenderPass(CCVKDevice *device, CCVKGPURenderPass *gpuRende // first, gather necessary statistics for each attachment auto updateLifeCycle = [](AttachmentStatistics &statistics, uint32_t index, VkImageLayout layout, AttachmentStatistics::SubpassUsage usage) { if (statistics.records.count(index)) { - CC_ASSERT(statistics.records[index].layout == layout); statistics.records[index].usage |= usage; } else { statistics.records[index] = {layout, usage}; diff --git a/native/cocos/renderer/pipeline/deferred/LightingStage.cpp b/native/cocos/renderer/pipeline/deferred/LightingStage.cpp index b759d6bb33..131c06025c 100644 --- a/native/cocos/renderer/pipeline/deferred/LightingStage.cpp +++ b/native/cocos/renderer/pipeline/deferred/LightingStage.cpp @@ -342,15 +342,7 @@ void LightingStage::fgLightingPass(scene::Camera *camera) { builder.writeToBlackboard(DeferredPipeline::fgStrHandleGbufferTexture[i], data.gbuffer[i]); } - // read depth, as an attachment - framegraph::RenderTargetAttachment::Descriptor depthAttachmentInfo; - depthAttachmentInfo.usage = framegraph::RenderTargetAttachment::Usage::DEPTH_STENCIL; - depthAttachmentInfo.loadOp = gfx::LoadOp::LOAD; - depthAttachmentInfo.beginAccesses = {gfx::AccessType::DEPTH_STENCIL_ATTACHMENT_WRITE}; - depthAttachmentInfo.endAccesses = {gfx::AccessType::DEPTH_STENCIL_ATTACHMENT_WRITE}; - data.depth = framegraph::TextureHandle(builder.readFromBlackboard(RenderPipeline::fgStrHandleOutDepthTexture)); - data.depth = builder.write(data.depth, depthAttachmentInfo); data.depth = builder.read(data.depth); builder.writeToBlackboard(RenderPipeline::fgStrHandleOutDepthTexture, data.depth); From 9340b1e3cd3a0f48ce958353e8585f042bc77741 Mon Sep 17 00:00:00 2001 From: timlyeee <43355299+timlyeee@users.noreply.github.com> Date: Wed, 12 Jan 2022 15:27:14 +0800 Subject: [PATCH 26/45] remove local reference array (#4161) --- native/cocos/platform/java/jni/JniHelper.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/native/cocos/platform/java/jni/JniHelper.h b/native/cocos/platform/java/jni/JniHelper.h index 565f3ca305..0dd9ccee03 100644 --- a/native/cocos/platform/java/jni/JniHelper.h +++ b/native/cocos/platform/java/jni/JniHelper.h @@ -282,6 +282,7 @@ public: #ifndef __OHOS__ ccDeleteLocalRef(t.env, t.classID); #endif + ccDeleteLocalRef(t.env, array); deleteLocalRefs(t.env, &localRefs); return &ret[0]; } @@ -312,6 +313,7 @@ public: #ifndef __OHOS__ ccDeleteLocalRef(t.env, t.classID); #endif + ccDeleteLocalRef(t.env, array); deleteLocalRefs(t.env, &localRefs); } else { reportError(className, methodName, signature); From 675ecb2351065bae415c69b31dce093b157cf702 Mon Sep 17 00:00:00 2001 From: Zeqiang Li Date: Wed, 12 Jan 2022 15:37:39 +0800 Subject: [PATCH 27/45] camera render area (#4164) --- .../renderer/gfx-metal/MTLCommandBuffer.h | 3 ++ .../renderer/gfx-metal/MTLCommandBuffer.mm | 24 ++++++++-- .../cocos/renderer/gfx-metal/MTLGPUObjects.h | 2 + native/cocos/renderer/gfx-metal/MTLUtils.mm | 48 ++++++++++++++++--- 4 files changed, 66 insertions(+), 11 deletions(-) diff --git a/native/cocos/renderer/gfx-metal/MTLCommandBuffer.h b/native/cocos/renderer/gfx-metal/MTLCommandBuffer.h index c12b48e903..073c1d10af 100644 --- a/native/cocos/renderer/gfx-metal/MTLCommandBuffer.h +++ b/native/cocos/renderer/gfx-metal/MTLCommandBuffer.h @@ -32,6 +32,7 @@ #include "MTLComputeCommandEncoder.h" #include "MTLGPUObjects.h" #include "MTLRenderCommandEncoder.h" +#include namespace cc { namespace gfx { @@ -114,6 +115,8 @@ protected: CCMTLGPUCommandBufferObject *_gpuCommandBufferObj = nullptr; CCMTLSemaphore* _texCopySemaphore = nullptr; + + std::bitset _colorAppearedBefore; }; } // namespace gfx diff --git a/native/cocos/renderer/gfx-metal/MTLCommandBuffer.mm b/native/cocos/renderer/gfx-metal/MTLCommandBuffer.mm index 236d1ecee5..84437e462a 100644 --- a/native/cocos/renderer/gfx-metal/MTLCommandBuffer.mm +++ b/native/cocos/renderer/gfx-metal/MTLCommandBuffer.mm @@ -126,6 +126,8 @@ void CCMTLCommandBuffer::begin(RenderPass *renderPass, uint subpass, Framebuffer _firstDirtyDescriptorSet = UINT_MAX; _commandBufferBegan = true; _firstRenderPass = true; + + _colorAppearedBefore.reset(); } void CCMTLCommandBuffer::end() { @@ -162,6 +164,7 @@ void CCMTLCommandBuffer::beginRenderPass(RenderPass *renderPass, Framebuffer *fb // if not rendering to full framebuffer(eg. left top area), draw a quad to pretend viewport clear. bool renderingFullFramebuffer = isRenderingEntireDrawable(renderArea, static_cast(fbo)); + bool needPartialClear = false; if (subpasses.empty()) { if (dsTexture) { auto *ccMtlTexture = static_cast(dsTexture); @@ -181,10 +184,16 @@ void CCMTLCommandBuffer::beginRenderPass(RenderPass *renderPass, Framebuffer *fb ccMtlRenderPass->setColorAttachment(i, ccMtlTexture, 0); mtlRenderPassDescriptor.colorAttachments[i].clearColor = mu::toMTLClearColor(colors[i]); if(!renderingFullFramebuffer) { - mtlRenderPassDescriptor.colorAttachments[i].loadAction = _firstRenderPass ? MTLLoadActionClear : MTLLoadActionLoad; + if(!_colorAppearedBefore[i]) { + mtlRenderPassDescriptor.colorAttachments[i].loadAction = mu::toMTLLoadAction(colorAttachments[i].loadOp); + } else { + mtlRenderPassDescriptor.colorAttachments[i].loadAction = MTLLoadActionLoad; + needPartialClear = colorAttachments[i].loadOp == LoadOp::CLEAR; + } } else { mtlRenderPassDescriptor.colorAttachments[i].loadAction = mu::toMTLLoadAction(colorAttachments[i].loadOp); } + _colorAppearedBefore.set(i); mtlRenderPassDescriptor.colorAttachments[i].storeAction = mu::isFramebufferFetchSupported() ? mu::toMTLStoreAction(colorAttachments[i].storeOp) : MTLStoreActionStore; } } @@ -211,12 +220,18 @@ void CCMTLCommandBuffer::beginRenderPass(RenderPass *renderPass, Framebuffer *fb ccMtlRenderPass->setColorAttachment(color, ccMtlTexture, 0); mtlRenderPassDescriptor.colorAttachments[color].clearColor = mu::toMTLClearColor(colors[color]); if(!renderingFullFramebuffer) { - mtlRenderPassDescriptor.colorAttachments[color].loadAction = _firstRenderPass ? MTLLoadActionClear : MTLLoadActionLoad; + if(!_colorAppearedBefore[color]) { + mtlRenderPassDescriptor.colorAttachments[color].loadAction = mu::toMTLLoadAction(colorAttachments[color].loadOp); + } else { + mtlRenderPassDescriptor.colorAttachments[color].loadAction = MTLLoadActionLoad; + needPartialClear = colorAttachments[color].loadOp == LoadOp::CLEAR; + } } else { mtlRenderPassDescriptor.colorAttachments[color].loadAction = mu::toMTLLoadAction(colorAttachments[color].loadOp); } mtlRenderPassDescriptor.colorAttachments[color].storeAction = mu::isFramebufferFetchSupported() ? mu::toMTLStoreAction(colorAttachments[color].storeOp) : MTLStoreActionStore; visited[color] = true; + _colorAppearedBefore.set(color); if (subpasses[i].resolves.size() > j) { uint32_t resolve = subpasses[i].resolves[j]; auto * resolveTex = static_cast(colorTextures[resolve]); @@ -259,7 +274,7 @@ void CCMTLCommandBuffer::beginRenderPass(RenderPass *renderPass, Framebuffer *fb //[_renderEncoder.getMTLEncoder() memoryBarrierWithScope:MTLBarrierScopeTextures afterStages:MTLRenderStageFragment beforeStages:MTLRenderStageFragment]; } - if (!renderingFullFramebuffer) { + if (!renderingFullFramebuffer && needPartialClear) { //Metal doesn't apply the viewports and scissors to renderpass load-action clearing. mu::clearRenderArea(_mtlDevice, _renderEncoder.getMTLEncoder(), renderPass, renderArea, colors, depth, stencil); } @@ -475,8 +490,9 @@ void CCMTLCommandBuffer::nextSubpass() { const auto colorAttachmentCount = colorAttachments.size(); const SubpassInfoList &subpasses = curRenderPass->getSubpasses(); for (size_t slot = 0U; slot < colorAttachmentCount; slot++) { - mtlRenderPassDescriptor.colorAttachments[slot].loadAction = MTLLoadActionLoad; // mu::toMTLLoadAction(colorAttachments[slot].loadOp); + mtlRenderPassDescriptor.colorAttachments[slot].loadAction = _colorAppearedBefore[slot] ? MTLLoadActionLoad : mu::toMTLLoadAction(colorAttachments[slot].loadOp); mtlRenderPassDescriptor.colorAttachments[slot].storeAction = curSubpassIndex == subpasses.size() - 1 ? mu::toMTLStoreAction(colorAttachments[slot].storeOp) : MTLStoreActionStore; + _colorAppearedBefore.set(slot); } updateDepthStencilState(curSubpassIndex, mtlRenderPassDescriptor); _renderEncoder.initialize(getMTLCommandBuffer(), ccRenderpass->getMTLRenderPassDescriptor()); diff --git a/native/cocos/renderer/gfx-metal/MTLGPUObjects.h b/native/cocos/renderer/gfx-metal/MTLGPUObjects.h index 7d18dab249..104018e397 100644 --- a/native/cocos/renderer/gfx-metal/MTLGPUObjects.h +++ b/native/cocos/renderer/gfx-metal/MTLGPUObjects.h @@ -53,6 +53,8 @@ namespace { constexpr size_t MegaBytesToBytes = 1024 * 1024; } +constexpr size_t MAX_COLORATTACHMENTS = 16u; + class CCMTLGPUDescriptorSetLayout : public Object { public: DescriptorSetLayoutBindingList bindings; diff --git a/native/cocos/renderer/gfx-metal/MTLUtils.mm b/native/cocos/renderer/gfx-metal/MTLUtils.mm index 1b32ae9d66..772b0f6f45 100644 --- a/native/cocos/renderer/gfx-metal/MTLUtils.mm +++ b/native/cocos/renderer/gfx-metal/MTLUtils.mm @@ -314,24 +314,58 @@ bool isASTCFormat(Format format) { } } -gfx::Shader *createShader(CCMTLDevice *device) { +gfx::Shader *createShader(CCMTLDevice *device, CCMTLRenderPass* renderPass) { String vs = R"( layout(location = 0) in vec2 a_position; void main() { gl_Position = vec4(a_position, 1.0, 1.0); } )"; +// String fs = R"( +// precision mediump float; +// layout(set = 0, binding = 0) uniform Color { +// vec4 u_color; +// }; +// layout(location = 0) out vec4 o_color; +// +// void main() { +// o_color = u_color; +// } +// )"; + String fs = R"( precision mediump float; layout(set = 0, binding = 0) uniform Color { vec4 u_color; }; - layout(location = 0) out vec4 o_color; - - void main() { - o_color = u_color; - } )"; + + //TODO_Zeqiang: gather info in framegraph. + if(renderPass->getSubpasses().empty()) { + for (size_t i = 0; i < renderPass->getColorAttachments().size(); ++i) { + fs += "\n layout(location = " + std::to_string(i) + ") out vec4 o_color" + std::to_string(i) + ";"; + } + + fs += "\nvoid main() {\n o_color0 = u_color;\n"; + + for (size_t i = 1; i < renderPass->getColorAttachments().size(); ++i) { + fs += " o_color" + std::to_string(i) + " = vec4(0.0);\n"; + } + } else { + const auto& subpasses = renderPass->getSubpasses(); + for (size_t i = 0; i < subpasses[renderPass->getCurrentSubpassIndex()].colors.size(); ++i) { + fs += "\n layout(location = " + std::to_string(i) + ") out vec4 o_color" + std::to_string(i) + ";"; + } + + fs += "\nvoid main() {\n o_color0 = u_color;\n"; + + for (size_t i = 1; i < subpasses[renderPass->getCurrentSubpassIndex()].colors.size(); ++i) { + fs += " o_color" + std::to_string(i) + " = vec4(0.0);\n"; + } + } + + fs += "}"; + gfx::ShaderStageList shaderStageList; gfx::ShaderStage vertexShaderStage; vertexShaderStage.stage = gfx::ShaderStageFlagBit::VERTEX; @@ -367,7 +401,7 @@ CCMTLGPUPipelineState *getClearRenderPassPipelineState(CCMTLDevice *device, Rend gfx::Attribute position = {"a_position", gfx::Format::RG32F, false, 0, false}; gfx::PipelineStateInfo pipelineInfo; pipelineInfo.primitive = gfx::PrimitiveMode::TRIANGLE_LIST; - pipelineInfo.shader = createShader(device); + pipelineInfo.shader = createShader(device, static_cast(curPass)); pipelineInfo.inputState = {{position}}; pipelineInfo.renderPass = curPass; From 6d3d4830a37132ea3afd1edfbf14c9060c11afac Mon Sep 17 00:00:00 2001 From: troublemaker52025 Date: Wed, 12 Jan 2022 23:26:46 +0800 Subject: [PATCH 28/45] fix planar-shadow normal is zero for v3.4.1 (#4165) --- native/cocos/renderer/pipeline/PlanarShadowQueue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/cocos/renderer/pipeline/PlanarShadowQueue.cpp b/native/cocos/renderer/pipeline/PlanarShadowQueue.cpp index 838d3b851c..f8d629f4de 100644 --- a/native/cocos/renderer/pipeline/PlanarShadowQueue.cpp +++ b/native/cocos/renderer/pipeline/PlanarShadowQueue.cpp @@ -109,7 +109,7 @@ void PlanarShadowQueue::recordCommandBuffer(gfx::Device *device, gfx::RenderPass const PipelineSceneData * sceneData = _pipeline->getPipelineSceneData(); const scene::PipelineSharedSceneData *sharedData = sceneData->getSharedData(); const scene::Shadow * shadowInfo = sharedData->shadow; - if (!shadowInfo->enabled || shadowInfo->shadowType != scene::ShadowType::PLANAR) { + if (!shadowInfo->enabled || shadowInfo->shadowType != scene::ShadowType::PLANAR || shadowInfo->normal.length() < 0.000001F) { return; } From 940891f274d8697ffb43042d1bf14ccd00900549 Mon Sep 17 00:00:00 2001 From: GengineJS <476393671@qq.com> Date: Fri, 14 Jan 2022 09:39:20 +0800 Subject: [PATCH 29/45] Fix the problem of deferred pipeline multi-execution transparent queue (#4168) --- native/cocos/renderer/pipeline/deferred/LightingStage.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/native/cocos/renderer/pipeline/deferred/LightingStage.cpp b/native/cocos/renderer/pipeline/deferred/LightingStage.cpp index 131c06025c..5b245a4174 100644 --- a/native/cocos/renderer/pipeline/deferred/LightingStage.cpp +++ b/native/cocos/renderer/pipeline/deferred/LightingStage.cpp @@ -542,8 +542,7 @@ void LightingStage::putTransparentObj2Queue() { // TODO(xwx): need to fallback unlit and gizmo material. if (pass->getPhase() != _phaseID) continue; for (k = 0; k < _renderQueues.size(); k++) { - _isTransparentQueueEmpty = false; - _renderQueues[k]->insertRenderPass(ro, m, p); + if (_renderQueues[k]->insertRenderPass(ro, m, p)) _isTransparentQueueEmpty = false; } p++; } From 8b0c68504c7a95bba5da8e3f5ae95cf675d4720d Mon Sep 17 00:00:00 2001 From: Zeqiang Li Date: Fri, 14 Jan 2022 15:57:55 +0800 Subject: [PATCH 30/45] m1 deferred rendering issue: fbf & write to same tex not fully support (#4174) Co-authored-by: lyeee --- native/cocos/renderer/gfx-metal/MTLUtils.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/native/cocos/renderer/gfx-metal/MTLUtils.mm b/native/cocos/renderer/gfx-metal/MTLUtils.mm index 772b0f6f45..bc3bae46e7 100644 --- a/native/cocos/renderer/gfx-metal/MTLUtils.mm +++ b/native/cocos/renderer/gfx-metal/MTLUtils.mm @@ -911,7 +911,7 @@ bool mu::isImageBlockSupported() { if(!mu::isFramebufferFetchSupported()) { return false; } -#if (CC_PLATFORM == CC_PLATFORM_MAC_IOS) || TARGET_CPU_ARM64 +#if (CC_PLATFORM == CC_PLATFORM_MAC_IOS) //|| TARGET_CPU_ARM64 return true; #else return false; @@ -919,7 +919,7 @@ bool mu::isImageBlockSupported() { } bool mu::isFramebufferFetchSupported() { -#if (CC_PLATFORM == CC_PLATFORM_MAC_IOS) || TARGET_CPU_ARM64 +#if (CC_PLATFORM == CC_PLATFORM_MAC_IOS) //|| TARGET_CPU_ARM64 return true; #else return false; From 9cd1fd911e699851aa597b7626b9140c7b60fec0 Mon Sep 17 00:00:00 2001 From: Zeqiang Li Date: Mon, 17 Jan 2022 09:38:41 +0800 Subject: [PATCH 31/45] fix mem status (#4179) --- native/cocos/renderer/gfx-metal/MTLTexture.mm | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/native/cocos/renderer/gfx-metal/MTLTexture.mm b/native/cocos/renderer/gfx-metal/MTLTexture.mm index eac5ebcc53..00696133fd 100644 --- a/native/cocos/renderer/gfx-metal/MTLTexture.mm +++ b/native/cocos/renderer/gfx-metal/MTLTexture.mm @@ -269,9 +269,14 @@ void CCMTLTexture::doResize(uint width, uint height, uint size) { CC_LOG_ERROR("CCMTLTexture: create MTLTexture failed when try to resize the texture."); return; } - - CCMTLDevice::getInstance()->getMemoryStatus().textureSize += size; - + + // texture is a wrapper of drawable when _swapchain is active, drawable is not a resource alloc by gfx, + // but the system so skip here. + if(!_swapchain) { + CCMTLDevice::getInstance()->getMemoryStatus().textureSize -= oldSize; + CCMTLDevice::getInstance()->getMemoryStatus().textureSize += size; + } + if (oldMTLTexture) { std::function destroyFunc = [=]() { if (oldMTLTexture) { @@ -282,7 +287,6 @@ void CCMTLTexture::doResize(uint width, uint height, uint size) { }; //gpu object only CCMTLGPUGarbageCollectionPool::getInstance()->collect(destroyFunc); - CCMTLDevice::getInstance()->getMemoryStatus().textureSize -= oldSize; } } @@ -310,4 +314,4 @@ void CCMTLTexture::deleteDefaultTexture(){ } // namespace gfx -} // namespace cc +} // namespace cc \ No newline at end of file From a608d90577bc4449d94423b0f2efbbd395572854 Mon Sep 17 00:00:00 2001 From: kenshin <420373550@qq.com> Date: Mon, 17 Jan 2022 19:37:11 +0800 Subject: [PATCH 32/45] copy from https://github.com/cocos-creator/engine-native/pull/4170 (#4185) --- native/cocos/ui/edit-box/EditBox-ios.mm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/native/cocos/ui/edit-box/EditBox-ios.mm b/native/cocos/ui/edit-box/EditBox-ios.mm index 82668d5055..61f0628354 100644 --- a/native/cocos/ui/edit-box/EditBox-ios.mm +++ b/native/cocos/ui/edit-box/EditBox-ios.mm @@ -327,7 +327,15 @@ void removeKeyboardEventLisnters() { } - (void)keyboardWillHide:(NSNotification *)notification { - cc::EditBox::hide(); + NSDictionary *info = [notification userInfo]; + + CGRect beginKeyboardRect = [[info objectForKey:UIKeyboardFrameBeginUserInfoKey] CGRectValue]; + CGRect endKeyboardRect = [[info objectForKey:UIKeyboardFrameEndUserInfoKey] CGRectValue]; + CGFloat yOffset = endKeyboardRect.origin.y - beginKeyboardRect.origin.y; + + if (yOffset <= 0) { + cc::EditBox::hide(); + } } @end From 815464849021dd26cfcede7defb66e850c7e8bf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=9F=E6=88=98?= <40414978+PatriceJiang@users.noreply.github.com> Date: Wed, 19 Jan 2022 12:40:20 +0800 Subject: [PATCH 33/45] 3.4.1 Android: Java flush game thread tasks (#4193) * fix run on game thread * save * just flush java tasks, do not run gameTick * reduce timeout to 50 --- .../java/src/com/cocos/lib/CocosHelper.java | 100 +++++++++++------- .../platform/android/jni/JniCocosActivity.cpp | 10 +- .../main/java/com/cocos/lib/CocosHelper.java | 15 ++- 3 files changed, 75 insertions(+), 50 deletions(-) diff --git a/native/cocos/platform/android/java/src/com/cocos/lib/CocosHelper.java b/native/cocos/platform/android/java/src/com/cocos/lib/CocosHelper.java index a2476020bd..f163fc317b 100644 --- a/native/cocos/platform/android/java/src/com/cocos/lib/CocosHelper.java +++ b/native/cocos/platform/android/java/src/com/cocos/lib/CocosHelper.java @@ -1,27 +1,27 @@ /**************************************************************************** -Copyright (c) 2010-2012 cocos2d-x.org -Copyright (c) 2013-2016 Chukong Technologies Inc. -Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2010-2012 cocos2d-x.org + Copyright (c) 2013-2016 Chukong Technologies Inc. + Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. -http://www.cocos2d-x.org + http://www.cocos2d-x.org -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. ****************************************************************************/ package com.cocos.lib; @@ -77,7 +77,7 @@ public class CocosHelper { private static BatteryReceiver sBatteryReceiver = new BatteryReceiver(); public static final int NETWORK_TYPE_NONE = 0; - public static final int NETWORK_TYPE_LAN = 1; + public static final int NETWORK_TYPE_LAN = 1; public static final int NETWORK_TYPE_WWAN = 2; // The absolute path to the OBB if it exists. @@ -86,6 +86,7 @@ public class CocosHelper { // The OBB file private static ZipResourceFile sOBBFile = null; + private static Object sTaskMtx = new Object(); private static List sTaskOnGameThread = Collections.synchronizedList(new ArrayList<>()); /** @@ -120,13 +121,19 @@ public class CocosHelper { } public static void runOnGameThread(final Runnable runnable) { - sTaskOnGameThread.add(runnable); + synchronized (sTaskMtx) { + sTaskOnGameThread.add(runnable); + } } static void flushTasksOnGameThread() { - while(sTaskOnGameThread.size() > 0) { - Runnable r = sTaskOnGameThread.remove(0); - if(r != null) { + List tmp = sTaskOnGameThread; + synchronized (sTaskMtx) { + sTaskOnGameThread = Collections.synchronizedList(new ArrayList<>()); + } + while (tmp.size() > 0) { + Runnable r = tmp.remove(0); + if (r != null) { r.run(); } } @@ -159,10 +166,11 @@ public class CocosHelper { // =========================================================== private static boolean sInited = false; + public static void init(final Activity activity) { sActivity = activity; if (!sInited) { - CocosHelper.sVibrateService = (Vibrator)activity.getSystemService(Context.VIBRATOR_SERVICE); + CocosHelper.sVibrateService = (Vibrator) activity.getSystemService(Context.VIBRATOR_SERVICE); CocosHelper.initObbFilePath(); CocosHelper.initializeOBBFile(); @@ -170,20 +178,30 @@ public class CocosHelper { } } - public static float getBatteryLevel() { return sBatteryReceiver.sBatteryLevel; } - public static String getObbFilePath() { return CocosHelper.sObbFilePath; } + public static float getBatteryLevel() { + return sBatteryReceiver.sBatteryLevel; + } + + public static String getObbFilePath() { + return CocosHelper.sObbFilePath; + } + public static String getWritablePath() { return sActivity.getFilesDir().getAbsolutePath(); } + public static String getCurrentLanguage() { return Locale.getDefault().getLanguage(); } + public static String getCurrentLanguageCode() { return Locale.getDefault().toString(); } - public static String getDeviceModel(){ + + public static String getDeviceModel() { return Build.MODEL; } + public static String getSystemVersion() { return Build.VERSION.RELEASE; } @@ -193,7 +211,7 @@ public class CocosHelper { if (sVibrateService != null && sVibrateService.hasVibrator()) { if (android.os.Build.VERSION.SDK_INT >= 26) { Class vibrationEffectClass = Class.forName("android.os.VibrationEffect"); - if(vibrationEffectClass != null) { + if (vibrationEffectClass != null) { final int DEFAULT_AMPLITUDE = CocosReflectionHelper.getConstantValue(vibrationEffectClass, "DEFAULT_AMPLITUDE"); //VibrationEffect.createOneShot(long milliseconds, int amplitude) @@ -201,10 +219,10 @@ public class CocosHelper { new Class[]{Long.TYPE, Integer.TYPE}); Class type = method.getReturnType(); - Object effect = method.invoke(vibrationEffectClass, + Object effect = method.invoke(vibrationEffectClass, new Object[]{(long) (duration * 1000), DEFAULT_AMPLITUDE}); //sVibrateService.vibrate(VibrationEffect effect); - CocosReflectionHelper.invokeInstanceMethod(sVibrateService,"vibrate", + CocosReflectionHelper.invokeInstanceMethod(sVibrateService, "vibrate", new Class[]{type}, new Object[]{(effect)}); } } else { @@ -228,11 +246,11 @@ public class CocosHelper { return ret; } - public static void copyTextToClipboard(final String text){ + public static void copyTextToClipboard(final String text) { sActivity.runOnUiThread(new Runnable() { @Override public void run() { - ClipboardManager myClipboard = (ClipboardManager)sActivity.getSystemService(Context.CLIPBOARD_SERVICE); + ClipboardManager myClipboard = (ClipboardManager) sActivity.getSystemService(Context.CLIPBOARD_SERVICE); ClipData myClip = ClipData.newPlainText("text", text); myClipboard.setPrimaryClip(myClip); } @@ -246,8 +264,8 @@ public class CocosHelper { if (descriptor != null) { try { ParcelFileDescriptor parcel = descriptor.getParcelFileDescriptor(); - Method method = parcel.getClass().getMethod("getFd", new Class[] {}); - array[0] = (Integer)method.invoke(parcel); + Method method = parcel.getClass().getMethod("getFd", new Class[]{}); + array[0] = (Integer) method.invoke(parcel); array[1] = descriptor.getStartOffset(); array[2] = descriptor.getLength(); } catch (NoSuchMethodException e) { @@ -313,14 +331,14 @@ public class CocosHelper { do { Object windowInsectObj = GlobalObject.getActivity().getWindow().getDecorView().getRootWindowInsets(); - if(windowInsectObj == null) break; + if (windowInsectObj == null) break; Class windowInsets = WindowInsets.class; try { Method wiGetDisplayCutout = windowInsets.getMethod("getDisplayCutout"); Object cutout = wiGetDisplayCutout.invoke(windowInsectObj); - if(cutout == null) break; + if (cutout == null) break; Class displayCutout = cutout.getClass(); Method dcGetLeft = displayCutout.getMethod("getSafeInsetLeft"); @@ -342,15 +360,15 @@ public class CocosHelper { } catch (InvocationTargetException e) { e.printStackTrace(); } - }while(false); + } while (false); } - return new float[]{0,0,0,0}; + return new float[]{0, 0, 0, 0}; } public static void setKeepScreenOn(boolean keepScreenOn) { - if(keepScreenOn) { + if (keepScreenOn) { sActivity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); - }else { + } else { sActivity.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); } } diff --git a/native/cocos/platform/android/jni/JniCocosActivity.cpp b/native/cocos/platform/android/jni/JniCocosActivity.cpp index 7d99540274..1840e24e83 100644 --- a/native/cocos/platform/android/jni/JniCocosActivity.cpp +++ b/native/cocos/platform/android/jni/JniCocosActivity.cpp @@ -152,23 +152,23 @@ void glThreadEntry() { lk.unlock(); cc::cocosApp.cond.notify_all(); - int8_t cmd = 0; + int8_t cmd = 0; bool runInLowRate = false; while (true) { - runInLowRate = !cc::cocosApp.animating || APP_CMD_PAUSE == cc::cocosApp.appState; - if (readCommandWithTimeout(cmd, runInLowRate ? 100 : 0) > 0) { + if (readCommandWithTimeout(cmd, runInLowRate ? 50 : 0) > 0) { preExecCmd(cmd); cc::View::engineHandleCmd(cmd); postExecCmd(cmd); } - - if (game) { + if(game) { // Handle java events send by UI thread. Input events are handled here too. cc::JniHelper::callStaticVoidMethod("com.cocos.lib.CocosHelper", "flushTasksOnGameThread"); + } + if (game && cc::cocosApp.animating) { game->tick(); } if (cc::cocosApp.destroyRequested) break; diff --git a/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosHelper.java b/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosHelper.java index 4c972f5caf..cbea0ec5b4 100644 --- a/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosHelper.java +++ b/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosHelper.java @@ -80,6 +80,7 @@ public class CocosHelper { private static String sObbFilePath = ""; + private static Object sTaskMtx = new Object(); private static List sTaskOnGameThread = Collections.synchronizedList(new ArrayList<>()); /** @@ -131,13 +132,19 @@ public class CocosHelper { } public static void runOnGameThread(final Runnable runnable) { - sTaskOnGameThread.add(runnable); + synchronized (sTaskMtx) { + sTaskOnGameThread.add(runnable); + } } - + @SuppressWarnings("unused") static void flushTasksOnGameThread() { - while (sTaskOnGameThread.size() > 0) { - Runnable r = sTaskOnGameThread.remove(0); + List tmp = sTaskOnGameThread; + synchronized (sTaskMtx) { + sTaskOnGameThread = Collections.synchronizedList(new ArrayList<>()); + } + while (tmp.size() > 0) { + Runnable r = tmp.remove(0); if (r != null) { r.run(); } From 324e722f307df57d53f96051f947b09922f8935b Mon Sep 17 00:00:00 2001 From: troublemaker52025 Date: Wed, 19 Jan 2022 13:47:45 +0800 Subject: [PATCH 34/45] shadow info mifration for v3.5.0 (#4194) --- .../cocos/renderer/pipeline/PipelineUBO.cpp | 42 ++++++++++--------- .../pipeline/RenderAdditiveLightQueue.cpp | 10 ++--- .../cocos/renderer/pipeline/SceneCulling.cpp | 14 +++---- native/cocos/scene/Define.h | 15 ++----- native/cocos/scene/DirectionalLight.h | 35 ++++++++++++++++ native/cocos/scene/SpotLight.h | 14 +++++++ 6 files changed, 87 insertions(+), 43 deletions(-) diff --git a/native/cocos/renderer/pipeline/PipelineUBO.cpp b/native/cocos/renderer/pipeline/PipelineUBO.cpp index 2a6813dc6e..5167f8e1d5 100644 --- a/native/cocos/renderer/pipeline/PipelineUBO.cpp +++ b/native/cocos/renderer/pipeline/PipelineUBO.cpp @@ -184,11 +184,11 @@ void PipelineUBO::updateShadowUBOView(const RenderPipeline *pipeline, std::array float nearClamp; float farClamp; - if (shadowInfo->fixedArea) { - nearClamp = shadowInfo->nearValue; - farClamp = shadowInfo->farValue; + if (mainLight->getShadowFixedArea()) { + nearClamp = mainLight->getShadowNear(); + farClamp = mainLight->getShadowFar(); } else { - nearClamp = shadowInfo->nearValue; + nearClamp = mainLight->getShadowNear(); farClamp = sceneData->getShadowCameraFar(); } @@ -203,14 +203,14 @@ void PipelineUBO::updateShadowUBOView(const RenderPipeline *pipeline, std::array memcpy(shadowUBO.data() + UBOShadow::MAT_LIGHT_VIEW_PROJ_OFFSET, matShadowViewProj.m, sizeof(matShadowViewProj)); const float linear = 0.0F; - const float shadowNFLSInfos[4] = {nearClamp, farClamp, linear, 1.0F - shadowInfo->saturation}; + const float shadowNFLSInfos[4] = {nearClamp, farClamp, linear, 1.0F - mainLight->getShadowSaturation()}; memcpy(shadowUBO.data() + UBOShadow::SHADOW_NEAR_FAR_LINEAR_SATURATION_INFO_OFFSET, &shadowNFLSInfos, sizeof(shadowNFLSInfos)); - const float shadowWHPBInfos[4] = {shadowInfo->size.x, shadowInfo->size.y, static_cast(shadowInfo->pcfType), shadowInfo->bias}; + const float shadowWHPBInfos[4] = {shadowInfo->size.x, shadowInfo->size.y, static_cast(mainLight->getShadowPcf()), mainLight->getShadowBias()}; memcpy(shadowUBO.data() + UBOShadow::SHADOW_WIDTH_HEIGHT_PCF_BIAS_INFO_OFFSET, &shadowWHPBInfos, sizeof(shadowWHPBInfos)); const float packing = hFTexture ? 0.0F : 1.0F; - const float shadowLPNNInfos[4] = {0.0F, packing, shadowInfo->normalBias, 0.0F}; + const float shadowLPNNInfos[4] = {0.0F, packing, mainLight->getShadowNormalBias(), 0.0F}; memcpy(shadowUBO.data() + UBOShadow::SHADOW_LIGHT_PACKING_NBIAS_NULL_INFO_OFFSET, &shadowLPNNInfos, sizeof(shadowLPNNInfos)); } else if (mainLight && shadowInfo->shadowType == scene::ShadowType::PLANAR) { updateDirLight(shadowInfo, mainLight, &shadowUBO); @@ -233,15 +233,16 @@ void PipelineUBO::updateShadowUBOLightView(const RenderPipeline *pipeline, std:: const float packing = hFTexture ? 0.0F : 1.0F; switch (light->getType()) { case scene::LightType::DIRECTIONAL: { + const auto *mainLight = static_cast(light); const Mat4 &matShadowView = sceneData->getMatShadowView(); const Mat4 &matShadowProj = sceneData->getMatShadowProj(); const Mat4 &matShadowViewProj = sceneData->getMatShadowViewProj(); float nearClamp; float farClamp; - if (shadowInfo->fixedArea) { - nearClamp = shadowInfo->nearValue; - farClamp = shadowInfo->farValue; + if (mainLight->getShadowFixedArea()) { + nearClamp = mainLight->getShadowNear(); + farClamp = mainLight->getShadowFar(); } else { nearClamp = 0.1F; farClamp = sceneData->getShadowCameraFar(); @@ -249,19 +250,22 @@ void PipelineUBO::updateShadowUBOLightView(const RenderPipeline *pipeline, std:: memcpy(shadowUBO.data() + UBOShadow::MAT_LIGHT_VIEW_OFFSET, matShadowView.m, sizeof(matShadowView)); - float shadowProjDepthInfos[4] = {matShadowProj.m[10], matShadowProj.m[14], matShadowProj.m[11], matShadowProj.m[15]}; + const float shadowProjDepthInfos[4] = {matShadowProj.m[10], matShadowProj.m[14], matShadowProj.m[11], matShadowProj.m[15]}; memcpy(shadowUBO.data() + UBOShadow::SHADOW_PROJ_DEPTH_INFO_OFFSET, &shadowProjDepthInfos, sizeof(shadowProjDepthInfos)); - float shadowProjInfos[4] = {matShadowProj.m[00], matShadowProj.m[05], 1.0F / matShadowProj.m[00], 1.0F / matShadowProj.m[05]}; + const float shadowProjInfos[4] = {matShadowProj.m[00], matShadowProj.m[05], 1.0F / matShadowProj.m[00], 1.0F / matShadowProj.m[05]}; memcpy(shadowUBO.data() + UBOShadow::SHADOW_PROJ_INFO_OFFSET, &shadowProjInfos, sizeof(shadowProjInfos)); memcpy(shadowUBO.data() + UBOShadow::MAT_LIGHT_VIEW_PROJ_OFFSET, matShadowViewProj.m, sizeof(matShadowViewProj)); - float shadowNFLSInfos[4] = {nearClamp, farClamp, linear, 1.0F - shadowInfo->saturation}; + const float shadowNFLSInfos[4] = {nearClamp, farClamp, linear, 1.0F - mainLight->getShadowSaturation()}; memcpy(shadowUBO.data() + UBOShadow::SHADOW_NEAR_FAR_LINEAR_SATURATION_INFO_OFFSET, &shadowNFLSInfos, sizeof(shadowNFLSInfos)); - float shadowLPNNInfos[4] = {0.0F, packing, shadowInfo->normalBias, 0.0F}; + const float shadowLPNNInfos[4] = {0.0F, packing, mainLight->getShadowNormalBias(), 0.0F}; memcpy(shadowUBO.data() + UBOShadow::SHADOW_LIGHT_PACKING_NBIAS_NULL_INFO_OFFSET, &shadowLPNNInfos, sizeof(shadowLPNNInfos)); + + const float shadowWHPBInfos[4] = {shadowInfo->size.x, shadowInfo->size.y, static_cast(mainLight->getShadowPcf()), mainLight->getShadowBias()}; + memcpy(shadowUBO.data() + UBOShadow::SHADOW_WIDTH_HEIGHT_PCF_BIAS_INFO_OFFSET, &shadowWHPBInfos, sizeof(shadowWHPBInfos)); } break; case scene::LightType::SPOT: { const auto *spotLight = static_cast(light); @@ -274,11 +278,14 @@ void PipelineUBO::updateShadowUBOLightView(const RenderPipeline *pipeline, std:: matShadowViewProj.multiply(matShadowView); memcpy(shadowUBO.data() + UBOShadow::MAT_LIGHT_VIEW_PROJ_OFFSET, matShadowViewProj.m, sizeof(matShadowViewProj)); - const float shadowNFLSInfos[4] = {0.01F, spotLight->getRange(), linear, 1.0F - shadowInfo->saturation}; + const float shadowNFLSInfos[4] = {0.01F, spotLight->getRange(), linear, 0.0F}; memcpy(shadowUBO.data() + UBOShadow::SHADOW_NEAR_FAR_LINEAR_SATURATION_INFO_OFFSET, &shadowNFLSInfos, sizeof(shadowNFLSInfos)); - const float shadowLPNNInfos[4] = {1.0F, packing, shadowInfo->normalBias, 0.0F}; + const float shadowLPNNInfos[4] = {1.0F, packing, spotLight->getShadowNormalBias(), 0.0F}; memcpy(shadowUBO.data() + UBOShadow::SHADOW_LIGHT_PACKING_NBIAS_NULL_INFO_OFFSET, &shadowLPNNInfos, sizeof(shadowLPNNInfos)); + + const float shadowWHPBInfos[4] = {shadowInfo->size.x, shadowInfo->size.y, static_cast(spotLight->getShadowPcf()), spotLight->getShadowBias()}; + memcpy(shadowUBO.data() + UBOShadow::SHADOW_WIDTH_HEIGHT_PCF_BIAS_INFO_OFFSET, &shadowWHPBInfos, sizeof(shadowWHPBInfos)); } break; case scene::LightType::SPHERE: break; case scene::LightType::UNKNOWN: break; @@ -286,9 +293,6 @@ void PipelineUBO::updateShadowUBOLightView(const RenderPipeline *pipeline, std:: break; } - const float shadowWHPBInfos[4] = {shadowInfo->size.x, shadowInfo->size.y, static_cast(shadowInfo->pcfType), shadowInfo->bias}; - memcpy(shadowUBO.data() + UBOShadow::SHADOW_WIDTH_HEIGHT_PCF_BIAS_INFO_OFFSET, &shadowWHPBInfos, sizeof(shadowWHPBInfos)); - const float color[4] = {shadowInfo->color.x, shadowInfo->color.y, shadowInfo->color.z, shadowInfo->color.w}; memcpy(shadowUBO.data() + UBOShadow::SHADOW_COLOR_OFFSET, &color, sizeof(color)); } diff --git a/native/cocos/renderer/pipeline/RenderAdditiveLightQueue.cpp b/native/cocos/renderer/pipeline/RenderAdditiveLightQueue.cpp index cd3d195abd..27f7ef2a64 100644 --- a/native/cocos/renderer/pipeline/RenderAdditiveLightQueue.cpp +++ b/native/cocos/renderer/pipeline/RenderAdditiveLightQueue.cpp @@ -307,10 +307,10 @@ void RenderAdditiveLightQueue::updateLightDescriptorSet(const scene::Camera *cam } // Reserve sphere light shadow interface - float shadowWHPBInfos[4] = {shadowInfo->size.x, shadowInfo->size.y, static_cast(shadowInfo->pcfType), shadowInfo->bias}; + float shadowWHPBInfos[4] = {shadowInfo->size.x, shadowInfo->size.y, 1.0F, 0.0F}; memcpy(_shadowUBO.data() + UBOShadow::SHADOW_WIDTH_HEIGHT_PCF_BIAS_INFO_OFFSET, &shadowWHPBInfos, sizeof(float) * 4); - float shadowLPNNInfos[4] = {2.0F, packing, shadowInfo->normalBias, 0.0F}; + float shadowLPNNInfos[4] = {2.0F, packing, 0.0F, 0.0F}; memcpy(_shadowUBO.data() + UBOShadow::SHADOW_LIGHT_PACKING_NBIAS_NULL_INFO_OFFSET, &shadowLPNNInfos, sizeof(float) * 4); } break; case scene::LightType::SPOT: { @@ -336,13 +336,13 @@ void RenderAdditiveLightQueue::updateLightDescriptorSet(const scene::Camera *cam memcpy(_shadowUBO.data() + UBOShadow::MAT_LIGHT_VIEW_PROJ_OFFSET, matShadowViewProj.m, sizeof(matShadowViewProj)); // shadow info - float shadowNFLSInfos[4] = {0.1F, spotLight->getRange(), linear, 1.0F - shadowInfo->saturation}; + float shadowNFLSInfos[4] = {0.1F, spotLight->getRange(), linear, 0.0F}; memcpy(_shadowUBO.data() + UBOShadow::SHADOW_NEAR_FAR_LINEAR_SATURATION_INFO_OFFSET, &shadowNFLSInfos, sizeof(shadowNFLSInfos)); - float shadowWHPBInfos[4] = {shadowInfo->size.x, shadowInfo->size.y, static_cast(shadowInfo->pcfType), shadowInfo->bias}; + float shadowWHPBInfos[4] = {shadowInfo->size.x, shadowInfo->size.y, static_cast(spotLight->getShadowPcf()), spotLight->getShadowBias()}; memcpy(_shadowUBO.data() + UBOShadow::SHADOW_WIDTH_HEIGHT_PCF_BIAS_INFO_OFFSET, &shadowWHPBInfos, sizeof(shadowWHPBInfos)); - float shadowLPNNInfos[4] = {1.0F, packing, shadowInfo->normalBias, 0.0F}; + float shadowLPNNInfos[4] = {1.0F, packing, spotLight->getShadowNormalBias(), 0.0F}; memcpy(_shadowUBO.data() + UBOShadow::SHADOW_LIGHT_PACKING_NBIAS_NULL_INFO_OFFSET, &shadowLPNNInfos, sizeof(float) * 4); float shadowInvProjDepthInfos[4] = {matShadowInvProj.m[10], matShadowInvProj.m[14], matShadowInvProj.m[11], matShadowInvProj.m[15]}; diff --git a/native/cocos/renderer/pipeline/SceneCulling.cpp b/native/cocos/renderer/pipeline/SceneCulling.cpp index 5f51164336..e90cc92f0c 100644 --- a/native/cocos/renderer/pipeline/SceneCulling.cpp +++ b/native/cocos/renderer/pipeline/SceneCulling.cpp @@ -216,17 +216,17 @@ void quantizeDirLightShadowCamera(RenderPipeline *pipeline, const scene::Camera const scene::Shadow * shadowInfo = sharedData->shadow; const scene::RenderScene *const scene = camera->scene; const scene::DirectionalLight * mainLight = scene->getMainLight(); - const float invisibleOcclusionRange = shadowInfo->invisibleOcclusionRange; + const float invisibleOcclusionRange = mainLight->getShadowInvisibleOcclusionRange(); const float shadowMapWidth = shadowInfo->size.x; const auto * node = mainLight->getNode(); const Quaternion & rotation = node->getWorldRotation(); - const bool fixedArea = shadowInfo->fixedArea; + const bool fixedArea = mainLight->getShadowFixedArea(); if (fixedArea) { - const float x = shadowInfo->orthoSize; - const float y = shadowInfo->orthoSize; - const float nearClamp = shadowInfo->nearValue; - const float farClamp = shadowInfo->farValue; + const float x = mainLight->getShadowOrthoSize(); + const float y = mainLight->getShadowOrthoSize(); + const float nearClamp = mainLight->getShadowNear(); + const float farClamp = mainLight->getShadowFar(); Mat4 matShadowTrans; Mat4::fromRT(rotation, node->getWorldPosition(), &matShadowTrans); @@ -248,7 +248,7 @@ void quantizeDirLightShadowCamera(RenderPipeline *pipeline, const scene::Camera const Mat4 matWorldTrans = getCameraWorldMatrix(camera); scene::Frustum validFrustum; validFrustum.type = scene::ShapeEnums::SHAPE_FRUSTUM_ACCURATE; - validFrustum.split(0.1F, shadowInfo->shadowDistance, camera->aspect, camera->fov, matWorldTrans); + validFrustum.split(0.1F, mainLight->getShadowDistance(), camera->aspect, camera->fov, matWorldTrans); scene::Frustum lightViewFrustum = validFrustum.clone(); // view matrix with range back. diff --git a/native/cocos/scene/Define.h b/native/cocos/scene/Define.h index b4d5d93615..b992fca0c6 100644 --- a/native/cocos/scene/Define.h +++ b/native/cocos/scene/Define.h @@ -70,22 +70,13 @@ enum class TransformBit { struct Shadow { bool enabled{false}; + ShadowType shadowType{ShadowType::PLANAR}; + float distance{0.0F}; + bool dirty{false}; bool shadowMapDirty{false}; - bool fixedArea{false}; - ShadowType shadowType{ShadowType::PLANAR}; - float invisibleOcclusionRange{0.0F}; - float shadowDistance{0.0F}; - float distance{0.0F}; Pass * instancePass{nullptr}; Pass * planarPass{nullptr}; - float nearValue{0.0F}; - float farValue{0.0F}; - uint32_t pcfType{0}; - float bias{0.0F}; - float normalBias{0.0F}; - float saturation{0.0F}; - float orthoSize{0.0F}; Vec4 color; Vec2 size; diff --git a/native/cocos/scene/DirectionalLight.h b/native/cocos/scene/DirectionalLight.h index 53ddc5b27d..e0d30ae95b 100644 --- a/native/cocos/scene/DirectionalLight.h +++ b/native/cocos/scene/DirectionalLight.h @@ -45,15 +45,50 @@ public: inline void setDirection(const Vec3 &dir) { _dir = dir; } inline void setIlluminanceHDR(float illum) { _illuminanceHDR = illum; } inline void setIlluminanceLDR(float illum) { _illuminanceLDR = illum; } + inline void setShadowEnabled(bool enabled) { _shadowEnabled = enabled; } + inline void setShadowPcf(float pcf) { _shadowPcf = pcf; } + inline void setShadowBias(float bias) { _shadowBias = bias; } + inline void setShadowNormalBias(float normalBias) { _shadowNormalBias = normalBias; } + inline void setShadowSaturation(float saturation) { _shadowSaturation = saturation; } + inline void setShadowDistance(float distance) { _shadowDistance = distance; } + inline void setShadowInvisibleOcclusionRange(float invisibleOcclusionRange) { _shadowInvisibleOcclusionRange = invisibleOcclusionRange; } + inline void setShadowFixedArea(bool fixedArea) { _shadowFixedArea = fixedArea; } + inline void setShadowNear(float nearValue) { _shadowNear = nearValue; } + inline void setShadowFar(float farValue) { _shadowFar = farValue; } + inline void setShadowOrthoSize(float orthoSize) { _shadowOrthoSize = orthoSize; } inline const Vec3 &getDirection() const { return _dir; } inline float getIlluminanceHDR() const { return _illuminanceHDR; } inline float getIlluminanceLDR() const { return _illuminanceLDR; } + inline bool getShadowEnabled() const { return _shadowEnabled; } + inline float getShadowPcf() const { return _shadowPcf; } + inline float getShadowBias() const { return _shadowBias; } + inline float getShadowNormalBias() const { return _shadowNormalBias; } + inline float getShadowSaturation() const { return _shadowSaturation; } + inline float getShadowDistance() const { return _shadowDistance; } + inline float getShadowInvisibleOcclusionRange() const { return _shadowInvisibleOcclusionRange; } + inline bool getShadowFixedArea() const { return _shadowFixedArea; } + inline float getShadowNear() const { return _shadowNear; } + inline float getShadowFar() const { return _shadowFar; } + inline float getShadowOrthoSize() const { return _shadowOrthoSize; } private: float _illuminanceHDR{0.F}; float _illuminanceLDR{0.F}; Vec3 _dir; + + // shadow info + bool _shadowEnabled{false}; + float _shadowPcf{0.0F}; + float _shadowBias{0.0F}; + float _shadowNormalBias{0.0F}; + float _shadowSaturation{0.75F}; + float _shadowDistance{100.0F}; + float _shadowInvisibleOcclusionRange{200.0F}; + bool _shadowFixedArea{false}; + float _shadowNear{0.1F}; + float _shadowFar{10.0F}; + float _shadowOrthoSize{1.0F}; }; } // namespace scene diff --git a/native/cocos/scene/SpotLight.h b/native/cocos/scene/SpotLight.h index f7303426d5..72120b02b2 100644 --- a/native/cocos/scene/SpotLight.h +++ b/native/cocos/scene/SpotLight.h @@ -64,6 +64,10 @@ public: } inline void setPosition(const Vec3 &pos) { _pos = pos; } inline void setSize(float size) { _size = size; } + inline void setShadowEnabled(bool enabled) { _shadowEnabled = enabled; } + inline void setShadowPcf(float pcf) { _shadowPcf = pcf; } + inline void setShadowBias(float bias) { _shadowBias = bias; } + inline void setShadowNormalBias(float normalBias) { _shadowNormalBias = normalBias; } inline AABB * getAABB() const { return _aabb; } inline float getAngle() const { return _angle; } @@ -77,6 +81,10 @@ public: inline float getRange() const { return _range; } inline const Vec3 & getPosition() const { return _pos; } inline float getSize() const { return _size; } + inline bool getShadowEnabled() const { return _shadowEnabled; } + inline float getShadowPcf() const { return _shadowPcf; } + inline float getShadowBias() const { return _shadowBias; } + inline float getShadowNormalBias() const { return _shadowNormalBias; } private: bool _needUpdate{false}; @@ -91,6 +99,12 @@ private: Vec3 _pos; AABB * _aabb{nullptr}; Frustum _frustum; + + // shadow info + bool _shadowEnabled{false}; + float _shadowPcf{0.0F}; + float _shadowBias{0.0F}; + float _shadowNormalBias{0.0F}; }; } // namespace scene From 7285dfc584beb210ff0101764b219e30097cff88 Mon Sep 17 00:00:00 2001 From: Cocos Robot <48829427+cocos-robot@users.noreply.github.com> Date: Wed, 19 Jan 2022 15:20:25 +0800 Subject: [PATCH 35/45] [ci skip][AUTO]: Automated genbindings update: d01d0d8f25bd376ca471ae8e48590d71a7c3645b (#4194) (#4196) Co-authored-by: cocos-robot --- native/cocos/bindings/auto/jsb_scene_auto.cpp | 1098 ++++++++++------- native/cocos/bindings/auto/jsb_scene_auto.h | 30 + 2 files changed, 704 insertions(+), 424 deletions(-) diff --git a/native/cocos/bindings/auto/jsb_scene_auto.cpp b/native/cocos/bindings/auto/jsb_scene_auto.cpp index 4324d0984c..e8ab264c4c 100644 --- a/native/cocos/bindings/auto/jsb_scene_auto.cpp +++ b/native/cocos/bindings/auto/jsb_scene_auto.cpp @@ -397,6 +397,215 @@ bool js_register_scene_Light(se::Object* obj) // NOLINT(readability-identifier-n se::Object* __jsb_cc_scene_DirectionalLight_proto = nullptr; se::Class* __jsb_cc_scene_DirectionalLight_class = nullptr; +static bool js_scene_DirectionalLight_getShadowBias(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_getShadowBias : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 0) { + float result = cobj->getShadowBias(); + ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); + SE_PRECONDITION2(ok, false, "js_scene_DirectionalLight_getShadowBias : 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_DirectionalLight_getShadowBias) + +static bool js_scene_DirectionalLight_getShadowDistance(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_getShadowDistance : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 0) { + float result = cobj->getShadowDistance(); + ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); + SE_PRECONDITION2(ok, false, "js_scene_DirectionalLight_getShadowDistance : 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_DirectionalLight_getShadowDistance) + +static bool js_scene_DirectionalLight_getShadowEnabled(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_getShadowEnabled : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 0) { + bool result = cobj->getShadowEnabled(); + ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); + SE_PRECONDITION2(ok, false, "js_scene_DirectionalLight_getShadowEnabled : 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_DirectionalLight_getShadowEnabled) + +static bool js_scene_DirectionalLight_getShadowFar(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_getShadowFar : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 0) { + float result = cobj->getShadowFar(); + ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); + SE_PRECONDITION2(ok, false, "js_scene_DirectionalLight_getShadowFar : 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_DirectionalLight_getShadowFar) + +static bool js_scene_DirectionalLight_getShadowFixedArea(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_getShadowFixedArea : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 0) { + bool result = cobj->getShadowFixedArea(); + ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); + SE_PRECONDITION2(ok, false, "js_scene_DirectionalLight_getShadowFixedArea : 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_DirectionalLight_getShadowFixedArea) + +static bool js_scene_DirectionalLight_getShadowInvisibleOcclusionRange(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_getShadowInvisibleOcclusionRange : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 0) { + float result = cobj->getShadowInvisibleOcclusionRange(); + ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); + SE_PRECONDITION2(ok, false, "js_scene_DirectionalLight_getShadowInvisibleOcclusionRange : 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_DirectionalLight_getShadowInvisibleOcclusionRange) + +static bool js_scene_DirectionalLight_getShadowNear(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_getShadowNear : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 0) { + float result = cobj->getShadowNear(); + ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); + SE_PRECONDITION2(ok, false, "js_scene_DirectionalLight_getShadowNear : 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_DirectionalLight_getShadowNear) + +static bool js_scene_DirectionalLight_getShadowNormalBias(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_getShadowNormalBias : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 0) { + float result = cobj->getShadowNormalBias(); + ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); + SE_PRECONDITION2(ok, false, "js_scene_DirectionalLight_getShadowNormalBias : 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_DirectionalLight_getShadowNormalBias) + +static bool js_scene_DirectionalLight_getShadowOrthoSize(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_getShadowOrthoSize : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 0) { + float result = cobj->getShadowOrthoSize(); + ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); + SE_PRECONDITION2(ok, false, "js_scene_DirectionalLight_getShadowOrthoSize : 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_DirectionalLight_getShadowOrthoSize) + +static bool js_scene_DirectionalLight_getShadowPcf(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_getShadowPcf : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 0) { + float result = cobj->getShadowPcf(); + ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); + SE_PRECONDITION2(ok, false, "js_scene_DirectionalLight_getShadowPcf : 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_DirectionalLight_getShadowPcf) + +static bool js_scene_DirectionalLight_getShadowSaturation(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_getShadowSaturation : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 0) { + float result = cobj->getShadowSaturation(); + ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); + SE_PRECONDITION2(ok, false, "js_scene_DirectionalLight_getShadowSaturation : 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_DirectionalLight_getShadowSaturation) + static bool js_scene_DirectionalLight_setDirection(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); @@ -454,6 +663,215 @@ static bool js_scene_DirectionalLight_setIlluminanceLDR(se::State& s) // NOLINT( } SE_BIND_FUNC(js_scene_DirectionalLight_setIlluminanceLDR) +static bool js_scene_DirectionalLight_setShadowBias(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setShadowBias : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 1) { + HolderType arg0 = {}; + ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_scene_DirectionalLight_setShadowBias : Error processing arguments"); + cobj->setShadowBias(arg0.value()); + return true; + } + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1); + return false; +} +SE_BIND_FUNC(js_scene_DirectionalLight_setShadowBias) + +static bool js_scene_DirectionalLight_setShadowDistance(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setShadowDistance : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 1) { + HolderType arg0 = {}; + ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_scene_DirectionalLight_setShadowDistance : Error processing arguments"); + cobj->setShadowDistance(arg0.value()); + return true; + } + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1); + return false; +} +SE_BIND_FUNC(js_scene_DirectionalLight_setShadowDistance) + +static bool js_scene_DirectionalLight_setShadowEnabled(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setShadowEnabled : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 1) { + HolderType arg0 = {}; + ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_scene_DirectionalLight_setShadowEnabled : Error processing arguments"); + cobj->setShadowEnabled(arg0.value()); + return true; + } + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1); + return false; +} +SE_BIND_FUNC(js_scene_DirectionalLight_setShadowEnabled) + +static bool js_scene_DirectionalLight_setShadowFar(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setShadowFar : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 1) { + HolderType arg0 = {}; + ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_scene_DirectionalLight_setShadowFar : Error processing arguments"); + cobj->setShadowFar(arg0.value()); + return true; + } + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1); + return false; +} +SE_BIND_FUNC(js_scene_DirectionalLight_setShadowFar) + +static bool js_scene_DirectionalLight_setShadowFixedArea(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setShadowFixedArea : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 1) { + HolderType arg0 = {}; + ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_scene_DirectionalLight_setShadowFixedArea : Error processing arguments"); + cobj->setShadowFixedArea(arg0.value()); + return true; + } + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1); + return false; +} +SE_BIND_FUNC(js_scene_DirectionalLight_setShadowFixedArea) + +static bool js_scene_DirectionalLight_setShadowInvisibleOcclusionRange(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setShadowInvisibleOcclusionRange : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 1) { + HolderType arg0 = {}; + ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_scene_DirectionalLight_setShadowInvisibleOcclusionRange : Error processing arguments"); + cobj->setShadowInvisibleOcclusionRange(arg0.value()); + return true; + } + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1); + return false; +} +SE_BIND_FUNC(js_scene_DirectionalLight_setShadowInvisibleOcclusionRange) + +static bool js_scene_DirectionalLight_setShadowNear(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setShadowNear : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 1) { + HolderType arg0 = {}; + ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_scene_DirectionalLight_setShadowNear : Error processing arguments"); + cobj->setShadowNear(arg0.value()); + return true; + } + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1); + return false; +} +SE_BIND_FUNC(js_scene_DirectionalLight_setShadowNear) + +static bool js_scene_DirectionalLight_setShadowNormalBias(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setShadowNormalBias : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 1) { + HolderType arg0 = {}; + ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_scene_DirectionalLight_setShadowNormalBias : Error processing arguments"); + cobj->setShadowNormalBias(arg0.value()); + return true; + } + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1); + return false; +} +SE_BIND_FUNC(js_scene_DirectionalLight_setShadowNormalBias) + +static bool js_scene_DirectionalLight_setShadowOrthoSize(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setShadowOrthoSize : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 1) { + HolderType arg0 = {}; + ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_scene_DirectionalLight_setShadowOrthoSize : Error processing arguments"); + cobj->setShadowOrthoSize(arg0.value()); + return true; + } + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1); + return false; +} +SE_BIND_FUNC(js_scene_DirectionalLight_setShadowOrthoSize) + +static bool js_scene_DirectionalLight_setShadowPcf(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setShadowPcf : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 1) { + HolderType arg0 = {}; + ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_scene_DirectionalLight_setShadowPcf : Error processing arguments"); + cobj->setShadowPcf(arg0.value()); + return true; + } + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1); + return false; +} +SE_BIND_FUNC(js_scene_DirectionalLight_setShadowPcf) + +static bool js_scene_DirectionalLight_setShadowSaturation(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setShadowSaturation : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 1) { + HolderType arg0 = {}; + ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_scene_DirectionalLight_setShadowSaturation : Error processing arguments"); + cobj->setShadowSaturation(arg0.value()); + return true; + } + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1); + return false; +} +SE_BIND_FUNC(js_scene_DirectionalLight_setShadowSaturation) + SE_DECLARE_FINALIZE_FUNC(js_cc_scene_DirectionalLight_finalize) static bool js_scene_DirectionalLight_constructor(se::State& s) // NOLINT(readability-identifier-naming) constructor.c @@ -484,9 +902,31 @@ bool js_register_scene_DirectionalLight(se::Object* obj) // NOLINT(readability-i { auto* cls = se::Class::create("DirectionalLight", obj, __jsb_cc_scene_Light_proto, _SE(js_scene_DirectionalLight_constructor)); + cls->defineFunction("getShadowBias", _SE(js_scene_DirectionalLight_getShadowBias)); + cls->defineFunction("getShadowDistance", _SE(js_scene_DirectionalLight_getShadowDistance)); + cls->defineFunction("getShadowEnabled", _SE(js_scene_DirectionalLight_getShadowEnabled)); + cls->defineFunction("getShadowFar", _SE(js_scene_DirectionalLight_getShadowFar)); + cls->defineFunction("getShadowFixedArea", _SE(js_scene_DirectionalLight_getShadowFixedArea)); + cls->defineFunction("getShadowInvisibleOcclusionRange", _SE(js_scene_DirectionalLight_getShadowInvisibleOcclusionRange)); + cls->defineFunction("getShadowNear", _SE(js_scene_DirectionalLight_getShadowNear)); + cls->defineFunction("getShadowNormalBias", _SE(js_scene_DirectionalLight_getShadowNormalBias)); + cls->defineFunction("getShadowOrthoSize", _SE(js_scene_DirectionalLight_getShadowOrthoSize)); + cls->defineFunction("getShadowPcf", _SE(js_scene_DirectionalLight_getShadowPcf)); + cls->defineFunction("getShadowSaturation", _SE(js_scene_DirectionalLight_getShadowSaturation)); cls->defineFunction("setDirection", _SE(js_scene_DirectionalLight_setDirection)); cls->defineFunction("setIlluminanceHDR", _SE(js_scene_DirectionalLight_setIlluminanceHDR)); cls->defineFunction("setIlluminanceLDR", _SE(js_scene_DirectionalLight_setIlluminanceLDR)); + cls->defineFunction("setShadowBias", _SE(js_scene_DirectionalLight_setShadowBias)); + cls->defineFunction("setShadowDistance", _SE(js_scene_DirectionalLight_setShadowDistance)); + cls->defineFunction("setShadowEnabled", _SE(js_scene_DirectionalLight_setShadowEnabled)); + cls->defineFunction("setShadowFar", _SE(js_scene_DirectionalLight_setShadowFar)); + cls->defineFunction("setShadowFixedArea", _SE(js_scene_DirectionalLight_setShadowFixedArea)); + cls->defineFunction("setShadowInvisibleOcclusionRange", _SE(js_scene_DirectionalLight_setShadowInvisibleOcclusionRange)); + cls->defineFunction("setShadowNear", _SE(js_scene_DirectionalLight_setShadowNear)); + cls->defineFunction("setShadowNormalBias", _SE(js_scene_DirectionalLight_setShadowNormalBias)); + cls->defineFunction("setShadowOrthoSize", _SE(js_scene_DirectionalLight_setShadowOrthoSize)); + cls->defineFunction("setShadowPcf", _SE(js_scene_DirectionalLight_setShadowPcf)); + cls->defineFunction("setShadowSaturation", _SE(js_scene_DirectionalLight_setShadowSaturation)); cls->defineFinalizeFunction(_SE(js_cc_scene_DirectionalLight_finalize)); cls->install(); JSBClassType::registerClass(cls); @@ -1128,6 +1568,82 @@ bool js_register_scene_AABB(se::Object* obj) // NOLINT(readability-identifier-na se::Object* __jsb_cc_scene_SpotLight_proto = nullptr; se::Class* __jsb_cc_scene_SpotLight_class = nullptr; +static bool js_scene_SpotLight_getShadowBias(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_getShadowBias : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 0) { + float result = cobj->getShadowBias(); + ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); + SE_PRECONDITION2(ok, false, "js_scene_SpotLight_getShadowBias : 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_SpotLight_getShadowBias) + +static bool js_scene_SpotLight_getShadowEnabled(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_getShadowEnabled : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 0) { + bool result = cobj->getShadowEnabled(); + ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); + SE_PRECONDITION2(ok, false, "js_scene_SpotLight_getShadowEnabled : 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_SpotLight_getShadowEnabled) + +static bool js_scene_SpotLight_getShadowNormalBias(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_getShadowNormalBias : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 0) { + float result = cobj->getShadowNormalBias(); + ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); + SE_PRECONDITION2(ok, false, "js_scene_SpotLight_getShadowNormalBias : 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_SpotLight_getShadowNormalBias) + +static bool js_scene_SpotLight_getShadowPcf(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_getShadowPcf : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 0) { + float result = cobj->getShadowPcf(); + ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); + SE_PRECONDITION2(ok, false, "js_scene_SpotLight_getShadowPcf : 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_SpotLight_getShadowPcf) + static bool js_scene_SpotLight_setAABB(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); @@ -1318,6 +1834,82 @@ static bool js_scene_SpotLight_setRange(se::State& s) // NOLINT(readability-iden } SE_BIND_FUNC(js_scene_SpotLight_setRange) +static bool js_scene_SpotLight_setShadowBias(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setShadowBias : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 1) { + HolderType arg0 = {}; + ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_scene_SpotLight_setShadowBias : Error processing arguments"); + cobj->setShadowBias(arg0.value()); + return true; + } + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1); + return false; +} +SE_BIND_FUNC(js_scene_SpotLight_setShadowBias) + +static bool js_scene_SpotLight_setShadowEnabled(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setShadowEnabled : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 1) { + HolderType arg0 = {}; + ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_scene_SpotLight_setShadowEnabled : Error processing arguments"); + cobj->setShadowEnabled(arg0.value()); + return true; + } + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1); + return false; +} +SE_BIND_FUNC(js_scene_SpotLight_setShadowEnabled) + +static bool js_scene_SpotLight_setShadowNormalBias(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setShadowNormalBias : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 1) { + HolderType arg0 = {}; + ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_scene_SpotLight_setShadowNormalBias : Error processing arguments"); + cobj->setShadowNormalBias(arg0.value()); + return true; + } + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1); + return false; +} +SE_BIND_FUNC(js_scene_SpotLight_setShadowNormalBias) + +static bool js_scene_SpotLight_setShadowPcf(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setShadowPcf : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 1) { + HolderType arg0 = {}; + ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_scene_SpotLight_setShadowPcf : Error processing arguments"); + cobj->setShadowPcf(arg0.value()); + return true; + } + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1); + return false; +} +SE_BIND_FUNC(js_scene_SpotLight_setShadowPcf) + static bool js_scene_SpotLight_setSize(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); @@ -1367,6 +1959,10 @@ bool js_register_scene_SpotLight(se::Object* obj) // NOLINT(readability-identifi { auto* cls = se::Class::create("SpotLight", obj, __jsb_cc_scene_Light_proto, _SE(js_scene_SpotLight_constructor)); + cls->defineFunction("getShadowBias", _SE(js_scene_SpotLight_getShadowBias)); + cls->defineFunction("getShadowEnabled", _SE(js_scene_SpotLight_getShadowEnabled)); + cls->defineFunction("getShadowNormalBias", _SE(js_scene_SpotLight_getShadowNormalBias)); + cls->defineFunction("getShadowPcf", _SE(js_scene_SpotLight_getShadowPcf)); cls->defineFunction("setAABB", _SE(js_scene_SpotLight_setAABB)); cls->defineFunction("setAngle", _SE(js_scene_SpotLight_setAngle)); cls->defineFunction("setAspect", _SE(js_scene_SpotLight_setAspect)); @@ -1377,6 +1973,10 @@ bool js_register_scene_SpotLight(se::Object* obj) // NOLINT(readability-identifi cls->defineFunction("setNeedUpdate", _SE(js_scene_SpotLight_setNeedUpdate)); cls->defineFunction("setPosition", _SE(js_scene_SpotLight_setPosition)); cls->defineFunction("setRange", _SE(js_scene_SpotLight_setRange)); + cls->defineFunction("setShadowBias", _SE(js_scene_SpotLight_setShadowBias)); + cls->defineFunction("setShadowEnabled", _SE(js_scene_SpotLight_setShadowEnabled)); + cls->defineFunction("setShadowNormalBias", _SE(js_scene_SpotLight_setShadowNormalBias)); + cls->defineFunction("setShadowPcf", _SE(js_scene_SpotLight_setShadowPcf)); cls->defineFunction("setSize", _SE(js_scene_SpotLight_setSize)); cls->defineFinalizeFunction(_SE(js_cc_scene_SpotLight_finalize)); cls->install(); @@ -2692,6 +3292,60 @@ static bool js_scene_Shadow_set_enabled(se::State& s) // NOLINT(readability-iden } SE_BIND_PROP_SET(js_scene_Shadow_set_enabled) +static bool js_scene_Shadow_get_shadowType(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_shadowType : Invalid Native Object"); + + CC_UNUSED bool ok = true; + se::Value jsret; + ok &= nativevalue_to_se(cobj->shadowType, jsret, s.thisObject() /*ctx*/); + s.rval() = jsret; + SE_HOLD_RETURN_VALUE(cobj->shadowType, s.thisObject(), s.rval()); + return true; +} +SE_BIND_PROP_GET(js_scene_Shadow_get_shadowType) + +static bool js_scene_Shadow_set_shadowType(se::State& s) // NOLINT(readability-identifier-naming) +{ + const auto& args = s.args(); + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_shadowType : Invalid Native Object"); + + CC_UNUSED bool ok = true; + ok &= sevalue_to_native(args[0], &cobj->shadowType, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_scene_Shadow_set_shadowType : Error processing new value"); + return true; +} +SE_BIND_PROP_SET(js_scene_Shadow_set_shadowType) + +static bool js_scene_Shadow_get_distance(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_distance : Invalid Native Object"); + + CC_UNUSED bool ok = true; + se::Value jsret; + ok &= nativevalue_to_se(cobj->distance, jsret, s.thisObject() /*ctx*/); + s.rval() = jsret; + SE_HOLD_RETURN_VALUE(cobj->distance, s.thisObject(), s.rval()); + return true; +} +SE_BIND_PROP_GET(js_scene_Shadow_get_distance) + +static bool js_scene_Shadow_set_distance(se::State& s) // NOLINT(readability-identifier-naming) +{ + const auto& args = s.args(); + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_distance : Invalid Native Object"); + + CC_UNUSED bool ok = true; + ok &= sevalue_to_native(args[0], &cobj->distance, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_scene_Shadow_set_distance : Error processing new value"); + return true; +} +SE_BIND_PROP_SET(js_scene_Shadow_set_distance) + static bool js_scene_Shadow_get_dirty(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); @@ -2746,141 +3400,6 @@ static bool js_scene_Shadow_set_shadowMapDirty(se::State& s) // NOLINT(readabili } SE_BIND_PROP_SET(js_scene_Shadow_set_shadowMapDirty) -static bool js_scene_Shadow_get_fixedArea(se::State& s) // NOLINT(readability-identifier-naming) -{ - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_fixedArea : Invalid Native Object"); - - CC_UNUSED bool ok = true; - se::Value jsret; - ok &= nativevalue_to_se(cobj->fixedArea, jsret, s.thisObject() /*ctx*/); - s.rval() = jsret; - SE_HOLD_RETURN_VALUE(cobj->fixedArea, s.thisObject(), s.rval()); - return true; -} -SE_BIND_PROP_GET(js_scene_Shadow_get_fixedArea) - -static bool js_scene_Shadow_set_fixedArea(se::State& s) // NOLINT(readability-identifier-naming) -{ - const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_fixedArea : Invalid Native Object"); - - CC_UNUSED bool ok = true; - ok &= sevalue_to_native(args[0], &cobj->fixedArea, s.thisObject()); - SE_PRECONDITION2(ok, false, "js_scene_Shadow_set_fixedArea : Error processing new value"); - return true; -} -SE_BIND_PROP_SET(js_scene_Shadow_set_fixedArea) - -static bool js_scene_Shadow_get_shadowType(se::State& s) // NOLINT(readability-identifier-naming) -{ - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_shadowType : Invalid Native Object"); - - CC_UNUSED bool ok = true; - se::Value jsret; - ok &= nativevalue_to_se(cobj->shadowType, jsret, s.thisObject() /*ctx*/); - s.rval() = jsret; - SE_HOLD_RETURN_VALUE(cobj->shadowType, s.thisObject(), s.rval()); - return true; -} -SE_BIND_PROP_GET(js_scene_Shadow_get_shadowType) - -static bool js_scene_Shadow_set_shadowType(se::State& s) // NOLINT(readability-identifier-naming) -{ - const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_shadowType : Invalid Native Object"); - - CC_UNUSED bool ok = true; - ok &= sevalue_to_native(args[0], &cobj->shadowType, s.thisObject()); - SE_PRECONDITION2(ok, false, "js_scene_Shadow_set_shadowType : Error processing new value"); - return true; -} -SE_BIND_PROP_SET(js_scene_Shadow_set_shadowType) - -static bool js_scene_Shadow_get_invisibleOcclusionRange(se::State& s) // NOLINT(readability-identifier-naming) -{ - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_invisibleOcclusionRange : Invalid Native Object"); - - CC_UNUSED bool ok = true; - se::Value jsret; - ok &= nativevalue_to_se(cobj->invisibleOcclusionRange, jsret, s.thisObject() /*ctx*/); - s.rval() = jsret; - SE_HOLD_RETURN_VALUE(cobj->invisibleOcclusionRange, s.thisObject(), s.rval()); - return true; -} -SE_BIND_PROP_GET(js_scene_Shadow_get_invisibleOcclusionRange) - -static bool js_scene_Shadow_set_invisibleOcclusionRange(se::State& s) // NOLINT(readability-identifier-naming) -{ - const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_invisibleOcclusionRange : Invalid Native Object"); - - CC_UNUSED bool ok = true; - ok &= sevalue_to_native(args[0], &cobj->invisibleOcclusionRange, s.thisObject()); - SE_PRECONDITION2(ok, false, "js_scene_Shadow_set_invisibleOcclusionRange : Error processing new value"); - return true; -} -SE_BIND_PROP_SET(js_scene_Shadow_set_invisibleOcclusionRange) - -static bool js_scene_Shadow_get_shadowDistance(se::State& s) // NOLINT(readability-identifier-naming) -{ - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_shadowDistance : Invalid Native Object"); - - CC_UNUSED bool ok = true; - se::Value jsret; - ok &= nativevalue_to_se(cobj->shadowDistance, jsret, s.thisObject() /*ctx*/); - s.rval() = jsret; - SE_HOLD_RETURN_VALUE(cobj->shadowDistance, s.thisObject(), s.rval()); - return true; -} -SE_BIND_PROP_GET(js_scene_Shadow_get_shadowDistance) - -static bool js_scene_Shadow_set_shadowDistance(se::State& s) // NOLINT(readability-identifier-naming) -{ - const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_shadowDistance : Invalid Native Object"); - - CC_UNUSED bool ok = true; - ok &= sevalue_to_native(args[0], &cobj->shadowDistance, s.thisObject()); - SE_PRECONDITION2(ok, false, "js_scene_Shadow_set_shadowDistance : Error processing new value"); - return true; -} -SE_BIND_PROP_SET(js_scene_Shadow_set_shadowDistance) - -static bool js_scene_Shadow_get_distance(se::State& s) // NOLINT(readability-identifier-naming) -{ - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_distance : Invalid Native Object"); - - CC_UNUSED bool ok = true; - se::Value jsret; - ok &= nativevalue_to_se(cobj->distance, jsret, s.thisObject() /*ctx*/); - s.rval() = jsret; - SE_HOLD_RETURN_VALUE(cobj->distance, s.thisObject(), s.rval()); - return true; -} -SE_BIND_PROP_GET(js_scene_Shadow_get_distance) - -static bool js_scene_Shadow_set_distance(se::State& s) // NOLINT(readability-identifier-naming) -{ - const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_distance : Invalid Native Object"); - - CC_UNUSED bool ok = true; - ok &= sevalue_to_native(args[0], &cobj->distance, s.thisObject()); - SE_PRECONDITION2(ok, false, "js_scene_Shadow_set_distance : Error processing new value"); - return true; -} -SE_BIND_PROP_SET(js_scene_Shadow_set_distance) - static bool js_scene_Shadow_get_instancePass(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); @@ -2935,195 +3454,6 @@ static bool js_scene_Shadow_set_planarPass(se::State& s) // NOLINT(readability-i } SE_BIND_PROP_SET(js_scene_Shadow_set_planarPass) -static bool js_scene_Shadow_get_nearValue(se::State& s) // NOLINT(readability-identifier-naming) -{ - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_nearValue : Invalid Native Object"); - - CC_UNUSED bool ok = true; - se::Value jsret; - ok &= nativevalue_to_se(cobj->nearValue, jsret, s.thisObject() /*ctx*/); - s.rval() = jsret; - SE_HOLD_RETURN_VALUE(cobj->nearValue, s.thisObject(), s.rval()); - return true; -} -SE_BIND_PROP_GET(js_scene_Shadow_get_nearValue) - -static bool js_scene_Shadow_set_nearValue(se::State& s) // NOLINT(readability-identifier-naming) -{ - const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_nearValue : Invalid Native Object"); - - CC_UNUSED bool ok = true; - ok &= sevalue_to_native(args[0], &cobj->nearValue, s.thisObject()); - SE_PRECONDITION2(ok, false, "js_scene_Shadow_set_nearValue : Error processing new value"); - return true; -} -SE_BIND_PROP_SET(js_scene_Shadow_set_nearValue) - -static bool js_scene_Shadow_get_farValue(se::State& s) // NOLINT(readability-identifier-naming) -{ - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_farValue : Invalid Native Object"); - - CC_UNUSED bool ok = true; - se::Value jsret; - ok &= nativevalue_to_se(cobj->farValue, jsret, s.thisObject() /*ctx*/); - s.rval() = jsret; - SE_HOLD_RETURN_VALUE(cobj->farValue, s.thisObject(), s.rval()); - return true; -} -SE_BIND_PROP_GET(js_scene_Shadow_get_farValue) - -static bool js_scene_Shadow_set_farValue(se::State& s) // NOLINT(readability-identifier-naming) -{ - const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_farValue : Invalid Native Object"); - - CC_UNUSED bool ok = true; - ok &= sevalue_to_native(args[0], &cobj->farValue, s.thisObject()); - SE_PRECONDITION2(ok, false, "js_scene_Shadow_set_farValue : Error processing new value"); - return true; -} -SE_BIND_PROP_SET(js_scene_Shadow_set_farValue) - -static bool js_scene_Shadow_get_pcfType(se::State& s) // NOLINT(readability-identifier-naming) -{ - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_pcfType : Invalid Native Object"); - - CC_UNUSED bool ok = true; - se::Value jsret; - ok &= nativevalue_to_se(cobj->pcfType, jsret, s.thisObject() /*ctx*/); - s.rval() = jsret; - SE_HOLD_RETURN_VALUE(cobj->pcfType, s.thisObject(), s.rval()); - return true; -} -SE_BIND_PROP_GET(js_scene_Shadow_get_pcfType) - -static bool js_scene_Shadow_set_pcfType(se::State& s) // NOLINT(readability-identifier-naming) -{ - const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_pcfType : Invalid Native Object"); - - CC_UNUSED bool ok = true; - ok &= sevalue_to_native(args[0], &cobj->pcfType, s.thisObject()); - SE_PRECONDITION2(ok, false, "js_scene_Shadow_set_pcfType : Error processing new value"); - return true; -} -SE_BIND_PROP_SET(js_scene_Shadow_set_pcfType) - -static bool js_scene_Shadow_get_bias(se::State& s) // NOLINT(readability-identifier-naming) -{ - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_bias : Invalid Native Object"); - - CC_UNUSED bool ok = true; - se::Value jsret; - ok &= nativevalue_to_se(cobj->bias, jsret, s.thisObject() /*ctx*/); - s.rval() = jsret; - SE_HOLD_RETURN_VALUE(cobj->bias, s.thisObject(), s.rval()); - return true; -} -SE_BIND_PROP_GET(js_scene_Shadow_get_bias) - -static bool js_scene_Shadow_set_bias(se::State& s) // NOLINT(readability-identifier-naming) -{ - const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_bias : Invalid Native Object"); - - CC_UNUSED bool ok = true; - ok &= sevalue_to_native(args[0], &cobj->bias, s.thisObject()); - SE_PRECONDITION2(ok, false, "js_scene_Shadow_set_bias : Error processing new value"); - return true; -} -SE_BIND_PROP_SET(js_scene_Shadow_set_bias) - -static bool js_scene_Shadow_get_normalBias(se::State& s) // NOLINT(readability-identifier-naming) -{ - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_normalBias : Invalid Native Object"); - - CC_UNUSED bool ok = true; - se::Value jsret; - ok &= nativevalue_to_se(cobj->normalBias, jsret, s.thisObject() /*ctx*/); - s.rval() = jsret; - SE_HOLD_RETURN_VALUE(cobj->normalBias, s.thisObject(), s.rval()); - return true; -} -SE_BIND_PROP_GET(js_scene_Shadow_get_normalBias) - -static bool js_scene_Shadow_set_normalBias(se::State& s) // NOLINT(readability-identifier-naming) -{ - const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_normalBias : Invalid Native Object"); - - CC_UNUSED bool ok = true; - ok &= sevalue_to_native(args[0], &cobj->normalBias, s.thisObject()); - SE_PRECONDITION2(ok, false, "js_scene_Shadow_set_normalBias : Error processing new value"); - return true; -} -SE_BIND_PROP_SET(js_scene_Shadow_set_normalBias) - -static bool js_scene_Shadow_get_saturation(se::State& s) // NOLINT(readability-identifier-naming) -{ - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_saturation : Invalid Native Object"); - - CC_UNUSED bool ok = true; - se::Value jsret; - ok &= nativevalue_to_se(cobj->saturation, jsret, s.thisObject() /*ctx*/); - s.rval() = jsret; - SE_HOLD_RETURN_VALUE(cobj->saturation, s.thisObject(), s.rval()); - return true; -} -SE_BIND_PROP_GET(js_scene_Shadow_get_saturation) - -static bool js_scene_Shadow_set_saturation(se::State& s) // NOLINT(readability-identifier-naming) -{ - const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_saturation : Invalid Native Object"); - - CC_UNUSED bool ok = true; - ok &= sevalue_to_native(args[0], &cobj->saturation, s.thisObject()); - SE_PRECONDITION2(ok, false, "js_scene_Shadow_set_saturation : Error processing new value"); - return true; -} -SE_BIND_PROP_SET(js_scene_Shadow_set_saturation) - -static bool js_scene_Shadow_get_orthoSize(se::State& s) // NOLINT(readability-identifier-naming) -{ - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_orthoSize : Invalid Native Object"); - - CC_UNUSED bool ok = true; - se::Value jsret; - ok &= nativevalue_to_se(cobj->orthoSize, jsret, s.thisObject() /*ctx*/); - s.rval() = jsret; - SE_HOLD_RETURN_VALUE(cobj->orthoSize, s.thisObject(), s.rval()); - return true; -} -SE_BIND_PROP_GET(js_scene_Shadow_get_orthoSize) - -static bool js_scene_Shadow_set_orthoSize(se::State& s) // NOLINT(readability-identifier-naming) -{ - const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_orthoSize : Invalid Native Object"); - - CC_UNUSED bool ok = true; - ok &= sevalue_to_native(args[0], &cobj->orthoSize, s.thisObject()); - SE_PRECONDITION2(ok, false, "js_scene_Shadow_set_orthoSize : Error processing new value"); - return true; -} -SE_BIND_PROP_SET(js_scene_Shadow_set_orthoSize) - static bool js_scene_Shadow_get_color(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); @@ -3249,6 +3579,14 @@ bool sevalue_to_native(const se::Value &from, cc::scene::Shadow * to, se::Object if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->enabled), ctx); } + json->getProperty("shadowType", &field); + if(!field.isNullOrUndefined()) { + ok &= sevalue_to_native(field, &(to->shadowType), ctx); + } + json->getProperty("distance", &field); + if(!field.isNullOrUndefined()) { + ok &= sevalue_to_native(field, &(to->distance), ctx); + } json->getProperty("dirty", &field); if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->dirty), ctx); @@ -3257,26 +3595,6 @@ bool sevalue_to_native(const se::Value &from, cc::scene::Shadow * to, se::Object if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->shadowMapDirty), ctx); } - json->getProperty("fixedArea", &field); - if(!field.isNullOrUndefined()) { - ok &= sevalue_to_native(field, &(to->fixedArea), ctx); - } - json->getProperty("shadowType", &field); - if(!field.isNullOrUndefined()) { - ok &= sevalue_to_native(field, &(to->shadowType), ctx); - } - json->getProperty("invisibleOcclusionRange", &field); - if(!field.isNullOrUndefined()) { - ok &= sevalue_to_native(field, &(to->invisibleOcclusionRange), ctx); - } - json->getProperty("shadowDistance", &field); - if(!field.isNullOrUndefined()) { - ok &= sevalue_to_native(field, &(to->shadowDistance), ctx); - } - json->getProperty("distance", &field); - if(!field.isNullOrUndefined()) { - ok &= sevalue_to_native(field, &(to->distance), ctx); - } json->getProperty("instancePass", &field); if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->instancePass), ctx); @@ -3285,34 +3603,6 @@ bool sevalue_to_native(const se::Value &from, cc::scene::Shadow * to, se::Object if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->planarPass), ctx); } - json->getProperty("nearValue", &field); - if(!field.isNullOrUndefined()) { - ok &= sevalue_to_native(field, &(to->nearValue), ctx); - } - json->getProperty("farValue", &field); - if(!field.isNullOrUndefined()) { - ok &= sevalue_to_native(field, &(to->farValue), ctx); - } - json->getProperty("pcfType", &field); - if(!field.isNullOrUndefined()) { - ok &= sevalue_to_native(field, &(to->pcfType), ctx); - } - json->getProperty("bias", &field); - if(!field.isNullOrUndefined()) { - ok &= sevalue_to_native(field, &(to->bias), ctx); - } - json->getProperty("normalBias", &field); - if(!field.isNullOrUndefined()) { - ok &= sevalue_to_native(field, &(to->normalBias), ctx); - } - json->getProperty("saturation", &field); - if(!field.isNullOrUndefined()) { - ok &= sevalue_to_native(field, &(to->saturation), ctx); - } - json->getProperty("orthoSize", &field); - if(!field.isNullOrUndefined()) { - ok &= sevalue_to_native(field, &(to->orthoSize), ctx); - } json->getProperty("color", &field); if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->color), ctx); @@ -3371,64 +3661,34 @@ static bool js_scene_Shadow_constructor(se::State& s) // NOLINT(readability-iden ok &= sevalue_to_native(args[0], &(cobj->enabled), nullptr); } if (argc > 1 && !args[1].isUndefined()) { - ok &= sevalue_to_native(args[1], &(cobj->dirty), nullptr); + ok &= sevalue_to_native(args[1], &(cobj->shadowType), nullptr); } if (argc > 2 && !args[2].isUndefined()) { - ok &= sevalue_to_native(args[2], &(cobj->shadowMapDirty), nullptr); + ok &= sevalue_to_native(args[2], &(cobj->distance), nullptr); } if (argc > 3 && !args[3].isUndefined()) { - ok &= sevalue_to_native(args[3], &(cobj->fixedArea), nullptr); + ok &= sevalue_to_native(args[3], &(cobj->dirty), nullptr); } if (argc > 4 && !args[4].isUndefined()) { - ok &= sevalue_to_native(args[4], &(cobj->shadowType), nullptr); + ok &= sevalue_to_native(args[4], &(cobj->shadowMapDirty), nullptr); } if (argc > 5 && !args[5].isUndefined()) { - ok &= sevalue_to_native(args[5], &(cobj->invisibleOcclusionRange), nullptr); + ok &= sevalue_to_native(args[5], &(cobj->instancePass), nullptr); } if (argc > 6 && !args[6].isUndefined()) { - ok &= sevalue_to_native(args[6], &(cobj->shadowDistance), nullptr); + ok &= sevalue_to_native(args[6], &(cobj->planarPass), nullptr); } if (argc > 7 && !args[7].isUndefined()) { - ok &= sevalue_to_native(args[7], &(cobj->distance), nullptr); + ok &= sevalue_to_native(args[7], &(cobj->color), nullptr); } if (argc > 8 && !args[8].isUndefined()) { - ok &= sevalue_to_native(args[8], &(cobj->instancePass), nullptr); + ok &= sevalue_to_native(args[8], &(cobj->size), nullptr); } if (argc > 9 && !args[9].isUndefined()) { - ok &= sevalue_to_native(args[9], &(cobj->planarPass), nullptr); + ok &= sevalue_to_native(args[9], &(cobj->normal), nullptr); } if (argc > 10 && !args[10].isUndefined()) { - ok &= sevalue_to_native(args[10], &(cobj->nearValue), nullptr); - } - if (argc > 11 && !args[11].isUndefined()) { - ok &= sevalue_to_native(args[11], &(cobj->farValue), nullptr); - } - if (argc > 12 && !args[12].isUndefined()) { - ok &= sevalue_to_native(args[12], &(cobj->pcfType), nullptr); - } - if (argc > 13 && !args[13].isUndefined()) { - ok &= sevalue_to_native(args[13], &(cobj->bias), nullptr); - } - if (argc > 14 && !args[14].isUndefined()) { - ok &= sevalue_to_native(args[14], &(cobj->normalBias), nullptr); - } - if (argc > 15 && !args[15].isUndefined()) { - ok &= sevalue_to_native(args[15], &(cobj->saturation), nullptr); - } - if (argc > 16 && !args[16].isUndefined()) { - ok &= sevalue_to_native(args[16], &(cobj->orthoSize), nullptr); - } - if (argc > 17 && !args[17].isUndefined()) { - ok &= sevalue_to_native(args[17], &(cobj->color), nullptr); - } - if (argc > 18 && !args[18].isUndefined()) { - ok &= sevalue_to_native(args[18], &(cobj->size), nullptr); - } - if (argc > 19 && !args[19].isUndefined()) { - ok &= sevalue_to_native(args[19], &(cobj->normal), nullptr); - } - if (argc > 20 && !args[20].isUndefined()) { - ok &= sevalue_to_native(args[20], &(cobj->matLight), nullptr); + ok &= sevalue_to_native(args[10], &(cobj->matLight), nullptr); } if(!ok) { @@ -3463,22 +3723,12 @@ bool js_register_scene_Shadow(se::Object* obj) // NOLINT(readability-identifier- auto* cls = se::Class::create("Shadow", obj, nullptr, _SE(js_scene_Shadow_constructor)); cls->defineProperty("enabled", _SE(js_scene_Shadow_get_enabled), _SE(js_scene_Shadow_set_enabled)); + cls->defineProperty("shadowType", _SE(js_scene_Shadow_get_shadowType), _SE(js_scene_Shadow_set_shadowType)); + cls->defineProperty("distance", _SE(js_scene_Shadow_get_distance), _SE(js_scene_Shadow_set_distance)); cls->defineProperty("dirty", _SE(js_scene_Shadow_get_dirty), _SE(js_scene_Shadow_set_dirty)); cls->defineProperty("shadowMapDirty", _SE(js_scene_Shadow_get_shadowMapDirty), _SE(js_scene_Shadow_set_shadowMapDirty)); - cls->defineProperty("fixedArea", _SE(js_scene_Shadow_get_fixedArea), _SE(js_scene_Shadow_set_fixedArea)); - cls->defineProperty("shadowType", _SE(js_scene_Shadow_get_shadowType), _SE(js_scene_Shadow_set_shadowType)); - cls->defineProperty("invisibleOcclusionRange", _SE(js_scene_Shadow_get_invisibleOcclusionRange), _SE(js_scene_Shadow_set_invisibleOcclusionRange)); - cls->defineProperty("shadowDistance", _SE(js_scene_Shadow_get_shadowDistance), _SE(js_scene_Shadow_set_shadowDistance)); - cls->defineProperty("distance", _SE(js_scene_Shadow_get_distance), _SE(js_scene_Shadow_set_distance)); cls->defineProperty("instancePass", _SE(js_scene_Shadow_get_instancePass), _SE(js_scene_Shadow_set_instancePass)); cls->defineProperty("planarPass", _SE(js_scene_Shadow_get_planarPass), _SE(js_scene_Shadow_set_planarPass)); - cls->defineProperty("nearValue", _SE(js_scene_Shadow_get_nearValue), _SE(js_scene_Shadow_set_nearValue)); - cls->defineProperty("farValue", _SE(js_scene_Shadow_get_farValue), _SE(js_scene_Shadow_set_farValue)); - cls->defineProperty("pcfType", _SE(js_scene_Shadow_get_pcfType), _SE(js_scene_Shadow_set_pcfType)); - cls->defineProperty("bias", _SE(js_scene_Shadow_get_bias), _SE(js_scene_Shadow_set_bias)); - cls->defineProperty("normalBias", _SE(js_scene_Shadow_get_normalBias), _SE(js_scene_Shadow_set_normalBias)); - cls->defineProperty("saturation", _SE(js_scene_Shadow_get_saturation), _SE(js_scene_Shadow_set_saturation)); - cls->defineProperty("orthoSize", _SE(js_scene_Shadow_get_orthoSize), _SE(js_scene_Shadow_set_orthoSize)); cls->defineProperty("color", _SE(js_scene_Shadow_get_color), _SE(js_scene_Shadow_set_color)); cls->defineProperty("size", _SE(js_scene_Shadow_get_size), _SE(js_scene_Shadow_set_size)); cls->defineProperty("normal", _SE(js_scene_Shadow_get_normal), _SE(js_scene_Shadow_set_normal)); diff --git a/native/cocos/bindings/auto/jsb_scene_auto.h b/native/cocos/bindings/auto/jsb_scene_auto.h index 63e21cc043..babd985e18 100644 --- a/native/cocos/bindings/auto/jsb_scene_auto.h +++ b/native/cocos/bindings/auto/jsb_scene_auto.h @@ -76,9 +76,31 @@ bool js_register_cc_scene_DirectionalLight(se::Object* obj); bool register_all_scene(se::Object* obj); JSB_REGISTER_OBJECT_TYPE(cc::scene::DirectionalLight); +SE_DECLARE_FUNC(js_scene_DirectionalLight_getShadowBias); +SE_DECLARE_FUNC(js_scene_DirectionalLight_getShadowDistance); +SE_DECLARE_FUNC(js_scene_DirectionalLight_getShadowEnabled); +SE_DECLARE_FUNC(js_scene_DirectionalLight_getShadowFar); +SE_DECLARE_FUNC(js_scene_DirectionalLight_getShadowFixedArea); +SE_DECLARE_FUNC(js_scene_DirectionalLight_getShadowInvisibleOcclusionRange); +SE_DECLARE_FUNC(js_scene_DirectionalLight_getShadowNear); +SE_DECLARE_FUNC(js_scene_DirectionalLight_getShadowNormalBias); +SE_DECLARE_FUNC(js_scene_DirectionalLight_getShadowOrthoSize); +SE_DECLARE_FUNC(js_scene_DirectionalLight_getShadowPcf); +SE_DECLARE_FUNC(js_scene_DirectionalLight_getShadowSaturation); SE_DECLARE_FUNC(js_scene_DirectionalLight_setDirection); SE_DECLARE_FUNC(js_scene_DirectionalLight_setIlluminanceHDR); SE_DECLARE_FUNC(js_scene_DirectionalLight_setIlluminanceLDR); +SE_DECLARE_FUNC(js_scene_DirectionalLight_setShadowBias); +SE_DECLARE_FUNC(js_scene_DirectionalLight_setShadowDistance); +SE_DECLARE_FUNC(js_scene_DirectionalLight_setShadowEnabled); +SE_DECLARE_FUNC(js_scene_DirectionalLight_setShadowFar); +SE_DECLARE_FUNC(js_scene_DirectionalLight_setShadowFixedArea); +SE_DECLARE_FUNC(js_scene_DirectionalLight_setShadowInvisibleOcclusionRange); +SE_DECLARE_FUNC(js_scene_DirectionalLight_setShadowNear); +SE_DECLARE_FUNC(js_scene_DirectionalLight_setShadowNormalBias); +SE_DECLARE_FUNC(js_scene_DirectionalLight_setShadowOrthoSize); +SE_DECLARE_FUNC(js_scene_DirectionalLight_setShadowPcf); +SE_DECLARE_FUNC(js_scene_DirectionalLight_setShadowSaturation); SE_DECLARE_FUNC(js_scene_DirectionalLight_DirectionalLight); extern se::Object* __jsb_cc_scene_Plane_proto; @@ -127,6 +149,10 @@ bool js_register_cc_scene_SpotLight(se::Object* obj); bool register_all_scene(se::Object* obj); JSB_REGISTER_OBJECT_TYPE(cc::scene::SpotLight); +SE_DECLARE_FUNC(js_scene_SpotLight_getShadowBias); +SE_DECLARE_FUNC(js_scene_SpotLight_getShadowEnabled); +SE_DECLARE_FUNC(js_scene_SpotLight_getShadowNormalBias); +SE_DECLARE_FUNC(js_scene_SpotLight_getShadowPcf); SE_DECLARE_FUNC(js_scene_SpotLight_setAABB); SE_DECLARE_FUNC(js_scene_SpotLight_setAngle); SE_DECLARE_FUNC(js_scene_SpotLight_setAspect); @@ -137,6 +163,10 @@ SE_DECLARE_FUNC(js_scene_SpotLight_setLuminanceLDR); SE_DECLARE_FUNC(js_scene_SpotLight_setNeedUpdate); SE_DECLARE_FUNC(js_scene_SpotLight_setPosition); SE_DECLARE_FUNC(js_scene_SpotLight_setRange); +SE_DECLARE_FUNC(js_scene_SpotLight_setShadowBias); +SE_DECLARE_FUNC(js_scene_SpotLight_setShadowEnabled); +SE_DECLARE_FUNC(js_scene_SpotLight_setShadowNormalBias); +SE_DECLARE_FUNC(js_scene_SpotLight_setShadowPcf); SE_DECLARE_FUNC(js_scene_SpotLight_setSize); SE_DECLARE_FUNC(js_scene_SpotLight_SpotLight); From aa95a22288f21a45fc04aa5036f317cf7537e74f Mon Sep 17 00:00:00 2001 From: Zeqiang Li Date: Wed, 19 Jan 2022 16:07:03 +0800 Subject: [PATCH 36/45] subpass + invalid depth binding + valid dsAttachment format (#4198) * subpass + invalid depth binding + valid dsAttachment format * append --- .../cocos/renderer/gfx-metal/MTLCommandBuffer.mm | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/native/cocos/renderer/gfx-metal/MTLCommandBuffer.mm b/native/cocos/renderer/gfx-metal/MTLCommandBuffer.mm index 84437e462a..eb31852c15 100644 --- a/native/cocos/renderer/gfx-metal/MTLCommandBuffer.mm +++ b/native/cocos/renderer/gfx-metal/MTLCommandBuffer.mm @@ -384,6 +384,22 @@ void CCMTLCommandBuffer::updateDepthStencilState(uint32_t index, MTLRenderPassDe } } + } else if(curRenderPass->getDepthStencilAttachment().format != Format::UNKNOWN) { + if(index == 0) { + descriptor.depthAttachment.loadAction = dsAttachment.depthLoadOp == LoadOp::LOAD ? MTLLoadActionLoad : MTLLoadActionClear; + descriptor.stencilAttachment.loadAction = dsAttachment.stencilLoadOp == LoadOp::LOAD ? MTLLoadActionLoad : MTLLoadActionClear; + } else { + descriptor.depthAttachment.loadAction = MTLLoadActionLoad; + descriptor.stencilAttachment.loadAction = MTLLoadActionLoad; + } + //storeop + if(index == subpasses.size() - 1) { + descriptor.depthAttachment.storeAction = dsAttachment.depthStoreOp == StoreOp::STORE ? MTLStoreActionStore : MTLStoreActionDontCare; + descriptor.stencilAttachment.storeAction = dsAttachment.stencilStoreOp == StoreOp::STORE ? MTLStoreActionStore : MTLStoreActionDontCare; + } else { + descriptor.depthAttachment.storeAction = MTLStoreActionStore; + descriptor.stencilAttachment.storeAction = MTLStoreActionStore; + } } } From 8ffcf827486824ea2a1f820cae68d45e487b8bcb Mon Sep 17 00:00:00 2001 From: Zeqiang Li Date: Thu, 20 Jan 2022 11:47:49 +0800 Subject: [PATCH 37/45] wgpu ci (#4201) --- .../.github/workflows/compile-platforms.yml | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/native/.github/workflows/compile-platforms.yml b/native/.github/workflows/compile-platforms.yml index a7bfb1549b..a6ef4efc41 100644 --- a/native/.github/workflows/compile-platforms.yml +++ b/native/.github/workflows/compile-platforms.yml @@ -228,3 +228,33 @@ jobs: cmake --build . --config Debug -- -jobs $NUM_OF_CORES CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO fi echo "Compile iOS Done!" + + compile_wgpu_mac: + name: "Emscripten" + runs-on: macos-latest + if: contains( github.event.head_commit.message, 'WGPU_CI_ON' ) + steps: + - uses: actions/checkout@v2 + - name: Download external libraries + shell: bash + run: | + EXT_VERSION=`grep version external/config.json |awk -F'"' '{print $4}'` + rm external/config.json + git clone --branch 3.4.1_wgpu_rebase --depth 1 https://github.com/hana-alice/engine-native-external external + - name: Setup Emscripten + run: | + git clone https://github.com/emscripten-core/emsdk.git ../emsdk + cd ../emsdk + ./emsdk install 2.0.26 + ./emsdk activate 2.0.26 + source ./emsdk_env.sh + emcc -v + - name: Compile + env: + COCOS_ENGINE_DEV: 1 + run: | + COCOS2DX_ROOT=$GITHUB_WORKSPACE + cd $COCOS2DX_ROOT/cocos/renderer/gfx-wgpu + $COCOS2DX_ROOT/../emsdk/upstream/emscripten/emcmake cmake . + $COCOS2DX_ROOT/../emsdk/upstream/emscripten/emmake make + echo "Compile WGPU on MacOS Done!" \ No newline at end of file From 08dadb4faea4f2c7db72d8cbe765dfd5adecdeba Mon Sep 17 00:00:00 2001 From: Zeqiang Li Date: Fri, 21 Jan 2022 09:43:21 +0800 Subject: [PATCH 38/45] wgpu ci sdk update to latest (#4202) * wgpu ci * update emsdk to latest --- native/.github/workflows/compile-platforms.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/native/.github/workflows/compile-platforms.yml b/native/.github/workflows/compile-platforms.yml index a6ef4efc41..4ac021a104 100644 --- a/native/.github/workflows/compile-platforms.yml +++ b/native/.github/workflows/compile-platforms.yml @@ -240,13 +240,13 @@ jobs: run: | EXT_VERSION=`grep version external/config.json |awk -F'"' '{print $4}'` rm external/config.json - git clone --branch 3.4.1_wgpu_rebase --depth 1 https://github.com/hana-alice/engine-native-external external + git clone --branch $EXT_VERSION --depth 1 https://github.com/cocos-creator/engine-native-external external - name: Setup Emscripten run: | git clone https://github.com/emscripten-core/emsdk.git ../emsdk cd ../emsdk - ./emsdk install 2.0.26 - ./emsdk activate 2.0.26 + ./emsdk install latest + ./emsdk activate latest source ./emsdk_env.sh emcc -v - name: Compile @@ -257,4 +257,4 @@ jobs: cd $COCOS2DX_ROOT/cocos/renderer/gfx-wgpu $COCOS2DX_ROOT/../emsdk/upstream/emscripten/emcmake cmake . $COCOS2DX_ROOT/../emsdk/upstream/emscripten/emmake make - echo "Compile WGPU on MacOS Done!" \ No newline at end of file + echo "Compile WGPU by ems on MacOS Done!" From a360e4390a29061681b3ee390ed2d3df4c87af97 Mon Sep 17 00:00:00 2001 From: Yun Hsiao Wu Date: Fri, 21 Jan 2022 09:43:55 +0800 Subject: [PATCH 39/45] gfx: refactor binding mappings (#4195) * gfx: refactor binding mappings * fg: fix scissor merge * fix genbindings on PyYAML 6.0+ --- native/.vscode/c_cpp_properties.json | 1 - native/cocos/bindings/auto/jsb_gfx_auto.cpp | 259 +++++++++++++++--- .../cocos/renderer/frame-graph/DevicePass.cpp | 8 +- .../cocos/renderer/frame-graph/FrameGraph.cpp | 7 +- .../cocos/renderer/gfx-base/GFXDef-common.h | 19 +- native/cocos/renderer/gfx-base/GFXDevice.cpp | 9 - .../gfx-gles-common/GLESCommandPool.h | 7 + .../renderer/gfx-gles2/GLES2CommandBuffer.cpp | 2 +- .../renderer/gfx-gles2/GLES2Commands.cpp | 13 +- .../renderer/gfx-gles2/GLES2DescriptorSet.cpp | 10 +- .../cocos/renderer/gfx-gles2/GLES2Device.cpp | 15 + native/cocos/renderer/gfx-gles2/GLES2Device.h | 5 + .../renderer/gfx-gles3/GLES3CommandBuffer.cpp | 2 +- .../renderer/gfx-gles3/GLES3Commands.cpp | 15 +- .../renderer/gfx-gles3/GLES3DescriptorSet.cpp | 8 +- .../cocos/renderer/gfx-gles3/GLES3Device.cpp | 15 + native/cocos/renderer/gfx-gles3/GLES3Device.h | 5 + .../renderer/gfx-metal/MTLCommandBuffer.mm | 26 +- native/cocos/renderer/gfx-metal/MTLUtils.mm | 10 +- .../gfx-validator/BufferValidator.cpp | 4 +- .../renderer/gfx-validator/BufferValidator.h | 2 + .../gfx-validator/CommandBufferValidator.cpp | 4 +- .../renderer/gfx-vulkan/VKCommandBuffer.cpp | 4 +- .../cocos/renderer/gfx-vulkan/VKCommands.cpp | 22 +- native/cocos/renderer/gfx-vulkan/VKDevice.cpp | 8 +- .../cocos/renderer/gfx-vulkan/VKGPUObjects.h | 14 +- .../cocos/renderer/gfx-vulkan/VKQueryPool.cpp | 1 - native/cocos/renderer/gfx-vulkan/VKQueue.cpp | 1 - native/cocos/renderer/gfx-vulkan/VKShader.cpp | 2 - .../cocos/renderer/gfx-vulkan/VKTexture.cpp | 1 + .../gfx-vulkan/states/VKGlobalBarrier.cpp | 2 +- native/cocos/renderer/pipeline/Define.cpp | 19 +- native/cocos/renderer/pipeline/Define.h | 6 - native/tools/bindings-generator/generator.py | 6 +- native/tools/gfx-define-generator/generate.js | 29 +- 35 files changed, 399 insertions(+), 162 deletions(-) diff --git a/native/.vscode/c_cpp_properties.json b/native/.vscode/c_cpp_properties.json index 22ea0dd8ed..b3c838cb16 100644 --- a/native/.vscode/c_cpp_properties.json +++ b/native/.vscode/c_cpp_properties.json @@ -13,7 +13,6 @@ "external/sources", "external/sources/khronos", "external/win32/include", - "external/win32/include/glslang", "external/win32/include/v8" ], "compileCommands": "${workspaceFolder}/compile_commands.json" diff --git a/native/cocos/bindings/auto/jsb_gfx_auto.cpp b/native/cocos/bindings/auto/jsb_gfx_auto.cpp index 5803a4c144..a577298da6 100644 --- a/native/cocos/bindings/auto/jsb_gfx_auto.cpp +++ b/native/cocos/bindings/auto/jsb_gfx_auto.cpp @@ -3545,86 +3545,221 @@ bool js_register_gfx_Color(se::Object* obj) // NOLINT(readability-identifier-nam se::Object* __jsb_cc_gfx_BindingMappingInfo_proto = nullptr; se::Class* __jsb_cc_gfx_BindingMappingInfo_class = nullptr; -static bool js_gfx_BindingMappingInfo_get_bufferOffsets(se::State& s) // NOLINT(readability-identifier-naming) +static bool js_gfx_BindingMappingInfo_get_maxBlockCounts(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_get_bufferOffsets : Invalid Native Object"); + SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_get_maxBlockCounts : Invalid Native Object"); CC_UNUSED bool ok = true; se::Value jsret; - ok &= nativevalue_to_se(cobj->bufferOffsets, jsret, s.thisObject() /*ctx*/); + ok &= nativevalue_to_se(cobj->maxBlockCounts, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; - SE_HOLD_RETURN_VALUE(cobj->bufferOffsets, s.thisObject(), s.rval()); + SE_HOLD_RETURN_VALUE(cobj->maxBlockCounts, s.thisObject(), s.rval()); return true; } -SE_BIND_PROP_GET(js_gfx_BindingMappingInfo_get_bufferOffsets) +SE_BIND_PROP_GET(js_gfx_BindingMappingInfo_get_maxBlockCounts) -static bool js_gfx_BindingMappingInfo_set_bufferOffsets(se::State& s) // NOLINT(readability-identifier-naming) +static bool js_gfx_BindingMappingInfo_set_maxBlockCounts(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_set_bufferOffsets : Invalid Native Object"); + SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_set_maxBlockCounts : Invalid Native Object"); CC_UNUSED bool ok = true; - ok &= sevalue_to_native(args[0], &cobj->bufferOffsets, s.thisObject()); - SE_PRECONDITION2(ok, false, "js_gfx_BindingMappingInfo_set_bufferOffsets : Error processing new value"); + ok &= sevalue_to_native(args[0], &cobj->maxBlockCounts, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_gfx_BindingMappingInfo_set_maxBlockCounts : Error processing new value"); return true; } -SE_BIND_PROP_SET(js_gfx_BindingMappingInfo_set_bufferOffsets) +SE_BIND_PROP_SET(js_gfx_BindingMappingInfo_set_maxBlockCounts) -static bool js_gfx_BindingMappingInfo_get_samplerOffsets(se::State& s) // NOLINT(readability-identifier-naming) +static bool js_gfx_BindingMappingInfo_get_maxSamplerTextureCounts(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_get_samplerOffsets : Invalid Native Object"); + SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_get_maxSamplerTextureCounts : Invalid Native Object"); CC_UNUSED bool ok = true; se::Value jsret; - ok &= nativevalue_to_se(cobj->samplerOffsets, jsret, s.thisObject() /*ctx*/); + ok &= nativevalue_to_se(cobj->maxSamplerTextureCounts, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; - SE_HOLD_RETURN_VALUE(cobj->samplerOffsets, s.thisObject(), s.rval()); + SE_HOLD_RETURN_VALUE(cobj->maxSamplerTextureCounts, s.thisObject(), s.rval()); return true; } -SE_BIND_PROP_GET(js_gfx_BindingMappingInfo_get_samplerOffsets) +SE_BIND_PROP_GET(js_gfx_BindingMappingInfo_get_maxSamplerTextureCounts) -static bool js_gfx_BindingMappingInfo_set_samplerOffsets(se::State& s) // NOLINT(readability-identifier-naming) +static bool js_gfx_BindingMappingInfo_set_maxSamplerTextureCounts(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_set_samplerOffsets : Invalid Native Object"); + SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_set_maxSamplerTextureCounts : Invalid Native Object"); CC_UNUSED bool ok = true; - ok &= sevalue_to_native(args[0], &cobj->samplerOffsets, s.thisObject()); - SE_PRECONDITION2(ok, false, "js_gfx_BindingMappingInfo_set_samplerOffsets : Error processing new value"); + ok &= sevalue_to_native(args[0], &cobj->maxSamplerTextureCounts, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_gfx_BindingMappingInfo_set_maxSamplerTextureCounts : Error processing new value"); return true; } -SE_BIND_PROP_SET(js_gfx_BindingMappingInfo_set_samplerOffsets) +SE_BIND_PROP_SET(js_gfx_BindingMappingInfo_set_maxSamplerTextureCounts) -static bool js_gfx_BindingMappingInfo_get_flexibleSet(se::State& s) // NOLINT(readability-identifier-naming) +static bool js_gfx_BindingMappingInfo_get_maxSamplerCounts(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_get_flexibleSet : Invalid Native Object"); + SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_get_maxSamplerCounts : Invalid Native Object"); CC_UNUSED bool ok = true; se::Value jsret; - ok &= nativevalue_to_se(cobj->flexibleSet, jsret, s.thisObject() /*ctx*/); + ok &= nativevalue_to_se(cobj->maxSamplerCounts, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; - SE_HOLD_RETURN_VALUE(cobj->flexibleSet, s.thisObject(), s.rval()); + SE_HOLD_RETURN_VALUE(cobj->maxSamplerCounts, s.thisObject(), s.rval()); return true; } -SE_BIND_PROP_GET(js_gfx_BindingMappingInfo_get_flexibleSet) +SE_BIND_PROP_GET(js_gfx_BindingMappingInfo_get_maxSamplerCounts) -static bool js_gfx_BindingMappingInfo_set_flexibleSet(se::State& s) // NOLINT(readability-identifier-naming) +static bool js_gfx_BindingMappingInfo_set_maxSamplerCounts(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_set_flexibleSet : Invalid Native Object"); + SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_set_maxSamplerCounts : Invalid Native Object"); CC_UNUSED bool ok = true; - ok &= sevalue_to_native(args[0], &cobj->flexibleSet, s.thisObject()); - SE_PRECONDITION2(ok, false, "js_gfx_BindingMappingInfo_set_flexibleSet : Error processing new value"); + ok &= sevalue_to_native(args[0], &cobj->maxSamplerCounts, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_gfx_BindingMappingInfo_set_maxSamplerCounts : Error processing new value"); return true; } -SE_BIND_PROP_SET(js_gfx_BindingMappingInfo_set_flexibleSet) +SE_BIND_PROP_SET(js_gfx_BindingMappingInfo_set_maxSamplerCounts) + +static bool js_gfx_BindingMappingInfo_get_maxTextureCounts(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_get_maxTextureCounts : Invalid Native Object"); + + CC_UNUSED bool ok = true; + se::Value jsret; + ok &= nativevalue_to_se(cobj->maxTextureCounts, jsret, s.thisObject() /*ctx*/); + s.rval() = jsret; + SE_HOLD_RETURN_VALUE(cobj->maxTextureCounts, s.thisObject(), s.rval()); + return true; +} +SE_BIND_PROP_GET(js_gfx_BindingMappingInfo_get_maxTextureCounts) + +static bool js_gfx_BindingMappingInfo_set_maxTextureCounts(se::State& s) // NOLINT(readability-identifier-naming) +{ + const auto& args = s.args(); + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_set_maxTextureCounts : Invalid Native Object"); + + CC_UNUSED bool ok = true; + ok &= sevalue_to_native(args[0], &cobj->maxTextureCounts, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_gfx_BindingMappingInfo_set_maxTextureCounts : Error processing new value"); + return true; +} +SE_BIND_PROP_SET(js_gfx_BindingMappingInfo_set_maxTextureCounts) + +static bool js_gfx_BindingMappingInfo_get_maxBufferCounts(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_get_maxBufferCounts : Invalid Native Object"); + + CC_UNUSED bool ok = true; + se::Value jsret; + ok &= nativevalue_to_se(cobj->maxBufferCounts, jsret, s.thisObject() /*ctx*/); + s.rval() = jsret; + SE_HOLD_RETURN_VALUE(cobj->maxBufferCounts, s.thisObject(), s.rval()); + return true; +} +SE_BIND_PROP_GET(js_gfx_BindingMappingInfo_get_maxBufferCounts) + +static bool js_gfx_BindingMappingInfo_set_maxBufferCounts(se::State& s) // NOLINT(readability-identifier-naming) +{ + const auto& args = s.args(); + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_set_maxBufferCounts : Invalid Native Object"); + + CC_UNUSED bool ok = true; + ok &= sevalue_to_native(args[0], &cobj->maxBufferCounts, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_gfx_BindingMappingInfo_set_maxBufferCounts : Error processing new value"); + return true; +} +SE_BIND_PROP_SET(js_gfx_BindingMappingInfo_set_maxBufferCounts) + +static bool js_gfx_BindingMappingInfo_get_maxImageCounts(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_get_maxImageCounts : Invalid Native Object"); + + CC_UNUSED bool ok = true; + se::Value jsret; + ok &= nativevalue_to_se(cobj->maxImageCounts, jsret, s.thisObject() /*ctx*/); + s.rval() = jsret; + SE_HOLD_RETURN_VALUE(cobj->maxImageCounts, s.thisObject(), s.rval()); + return true; +} +SE_BIND_PROP_GET(js_gfx_BindingMappingInfo_get_maxImageCounts) + +static bool js_gfx_BindingMappingInfo_set_maxImageCounts(se::State& s) // NOLINT(readability-identifier-naming) +{ + const auto& args = s.args(); + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_set_maxImageCounts : Invalid Native Object"); + + CC_UNUSED bool ok = true; + ok &= sevalue_to_native(args[0], &cobj->maxImageCounts, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_gfx_BindingMappingInfo_set_maxImageCounts : Error processing new value"); + return true; +} +SE_BIND_PROP_SET(js_gfx_BindingMappingInfo_set_maxImageCounts) + +static bool js_gfx_BindingMappingInfo_get_maxSubpassInputCounts(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_get_maxSubpassInputCounts : Invalid Native Object"); + + CC_UNUSED bool ok = true; + se::Value jsret; + ok &= nativevalue_to_se(cobj->maxSubpassInputCounts, jsret, s.thisObject() /*ctx*/); + s.rval() = jsret; + SE_HOLD_RETURN_VALUE(cobj->maxSubpassInputCounts, s.thisObject(), s.rval()); + return true; +} +SE_BIND_PROP_GET(js_gfx_BindingMappingInfo_get_maxSubpassInputCounts) + +static bool js_gfx_BindingMappingInfo_set_maxSubpassInputCounts(se::State& s) // NOLINT(readability-identifier-naming) +{ + const auto& args = s.args(); + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_set_maxSubpassInputCounts : Invalid Native Object"); + + CC_UNUSED bool ok = true; + ok &= sevalue_to_native(args[0], &cobj->maxSubpassInputCounts, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_gfx_BindingMappingInfo_set_maxSubpassInputCounts : Error processing new value"); + return true; +} +SE_BIND_PROP_SET(js_gfx_BindingMappingInfo_set_maxSubpassInputCounts) + +static bool js_gfx_BindingMappingInfo_get_setIndices(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_get_setIndices : Invalid Native Object"); + + CC_UNUSED bool ok = true; + se::Value jsret; + ok &= nativevalue_to_se(cobj->setIndices, jsret, s.thisObject() /*ctx*/); + s.rval() = jsret; + SE_HOLD_RETURN_VALUE(cobj->setIndices, s.thisObject(), s.rval()); + return true; +} +SE_BIND_PROP_GET(js_gfx_BindingMappingInfo_get_setIndices) + +static bool js_gfx_BindingMappingInfo_set_setIndices(se::State& s) // NOLINT(readability-identifier-naming) +{ + const auto& args = s.args(); + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_set_setIndices : Invalid Native Object"); + + CC_UNUSED bool ok = true; + ok &= sevalue_to_native(args[0], &cobj->setIndices, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_gfx_BindingMappingInfo_set_setIndices : Error processing new value"); + return true; +} +SE_BIND_PROP_SET(js_gfx_BindingMappingInfo_set_setIndices) template<> @@ -3639,17 +3774,37 @@ bool sevalue_to_native(const se::Value &from, cc::gfx::BindingMappingInfo * to, } se::Value field; bool ok = true; - json->getProperty("bufferOffsets", &field); + json->getProperty("maxBlockCounts", &field); if(!field.isNullOrUndefined()) { - ok &= sevalue_to_native(field, &(to->bufferOffsets), ctx); + ok &= sevalue_to_native(field, &(to->maxBlockCounts), ctx); } - json->getProperty("samplerOffsets", &field); + json->getProperty("maxSamplerTextureCounts", &field); if(!field.isNullOrUndefined()) { - ok &= sevalue_to_native(field, &(to->samplerOffsets), ctx); + ok &= sevalue_to_native(field, &(to->maxSamplerTextureCounts), ctx); } - json->getProperty("flexibleSet", &field); + json->getProperty("maxSamplerCounts", &field); if(!field.isNullOrUndefined()) { - ok &= sevalue_to_native(field, &(to->flexibleSet), ctx); + ok &= sevalue_to_native(field, &(to->maxSamplerCounts), ctx); + } + json->getProperty("maxTextureCounts", &field); + if(!field.isNullOrUndefined()) { + ok &= sevalue_to_native(field, &(to->maxTextureCounts), ctx); + } + json->getProperty("maxBufferCounts", &field); + if(!field.isNullOrUndefined()) { + ok &= sevalue_to_native(field, &(to->maxBufferCounts), ctx); + } + json->getProperty("maxImageCounts", &field); + if(!field.isNullOrUndefined()) { + ok &= sevalue_to_native(field, &(to->maxImageCounts), ctx); + } + json->getProperty("maxSubpassInputCounts", &field); + if(!field.isNullOrUndefined()) { + ok &= sevalue_to_native(field, &(to->maxSubpassInputCounts), ctx); + } + json->getProperty("setIndices", &field); + if(!field.isNullOrUndefined()) { + ok &= sevalue_to_native(field, &(to->setIndices), ctx); } return ok; } @@ -3690,13 +3845,28 @@ static bool js_gfx_BindingMappingInfo_constructor(se::State& s) // NOLINT(readab cc::gfx::BindingMappingInfo* cobj = JSB_ALLOC(cc::gfx::BindingMappingInfo); if (argc > 0 && !args[0].isUndefined()) { - ok &= sevalue_to_native(args[0], &(cobj->bufferOffsets), nullptr); + ok &= sevalue_to_native(args[0], &(cobj->maxBlockCounts), nullptr); } if (argc > 1 && !args[1].isUndefined()) { - ok &= sevalue_to_native(args[1], &(cobj->samplerOffsets), nullptr); + ok &= sevalue_to_native(args[1], &(cobj->maxSamplerTextureCounts), nullptr); } if (argc > 2 && !args[2].isUndefined()) { - ok &= sevalue_to_native(args[2], &(cobj->flexibleSet), nullptr); + ok &= sevalue_to_native(args[2], &(cobj->maxSamplerCounts), nullptr); + } + if (argc > 3 && !args[3].isUndefined()) { + ok &= sevalue_to_native(args[3], &(cobj->maxTextureCounts), nullptr); + } + if (argc > 4 && !args[4].isUndefined()) { + ok &= sevalue_to_native(args[4], &(cobj->maxBufferCounts), nullptr); + } + if (argc > 5 && !args[5].isUndefined()) { + ok &= sevalue_to_native(args[5], &(cobj->maxImageCounts), nullptr); + } + if (argc > 6 && !args[6].isUndefined()) { + ok &= sevalue_to_native(args[6], &(cobj->maxSubpassInputCounts), nullptr); + } + if (argc > 7 && !args[7].isUndefined()) { + ok &= sevalue_to_native(args[7], &(cobj->setIndices), nullptr); } if(!ok) { @@ -3730,9 +3900,14 @@ bool js_register_gfx_BindingMappingInfo(se::Object* obj) // NOLINT(readability-i { auto* cls = se::Class::create("BindingMappingInfo", obj, nullptr, _SE(js_gfx_BindingMappingInfo_constructor)); - cls->defineProperty("bufferOffsets", _SE(js_gfx_BindingMappingInfo_get_bufferOffsets), _SE(js_gfx_BindingMappingInfo_set_bufferOffsets)); - cls->defineProperty("samplerOffsets", _SE(js_gfx_BindingMappingInfo_get_samplerOffsets), _SE(js_gfx_BindingMappingInfo_set_samplerOffsets)); - cls->defineProperty("flexibleSet", _SE(js_gfx_BindingMappingInfo_get_flexibleSet), _SE(js_gfx_BindingMappingInfo_set_flexibleSet)); + cls->defineProperty("maxBlockCounts", _SE(js_gfx_BindingMappingInfo_get_maxBlockCounts), _SE(js_gfx_BindingMappingInfo_set_maxBlockCounts)); + cls->defineProperty("maxSamplerTextureCounts", _SE(js_gfx_BindingMappingInfo_get_maxSamplerTextureCounts), _SE(js_gfx_BindingMappingInfo_set_maxSamplerTextureCounts)); + cls->defineProperty("maxSamplerCounts", _SE(js_gfx_BindingMappingInfo_get_maxSamplerCounts), _SE(js_gfx_BindingMappingInfo_set_maxSamplerCounts)); + cls->defineProperty("maxTextureCounts", _SE(js_gfx_BindingMappingInfo_get_maxTextureCounts), _SE(js_gfx_BindingMappingInfo_set_maxTextureCounts)); + cls->defineProperty("maxBufferCounts", _SE(js_gfx_BindingMappingInfo_get_maxBufferCounts), _SE(js_gfx_BindingMappingInfo_set_maxBufferCounts)); + cls->defineProperty("maxImageCounts", _SE(js_gfx_BindingMappingInfo_get_maxImageCounts), _SE(js_gfx_BindingMappingInfo_set_maxImageCounts)); + cls->defineProperty("maxSubpassInputCounts", _SE(js_gfx_BindingMappingInfo_get_maxSubpassInputCounts), _SE(js_gfx_BindingMappingInfo_set_maxSubpassInputCounts)); + cls->defineProperty("setIndices", _SE(js_gfx_BindingMappingInfo_get_setIndices), _SE(js_gfx_BindingMappingInfo_set_setIndices)); cls->defineFinalizeFunction(_SE(js_cc_gfx_BindingMappingInfo_finalize)); cls->install(); JSBClassType::registerClass(cls); diff --git a/native/cocos/renderer/frame-graph/DevicePass.cpp b/native/cocos/renderer/frame-graph/DevicePass.cpp index e75329d601..a15173e668 100644 --- a/native/cocos/renderer/frame-graph/DevicePass.cpp +++ b/native/cocos/renderer/frame-graph/DevicePass.cpp @@ -24,16 +24,18 @@ ****************************************************************************/ #include "DevicePass.h" -#include #include "CallbackPass.h" #include "DevicePassResourceTable.h" #include "FrameGraph.h" #include "PassNode.h" #include "ResourceNode.h" + #include "base/Utils.h" #include "gfx-base/GFXCommandBuffer.h" #include "gfx-base/GFXDef-common.h" +#include + namespace cc { namespace framegraph { @@ -225,8 +227,8 @@ void DevicePass::begin(gfx::CommandBuffer *cmdBuff) { // calculate the union of all viewports as render area _viewport.left = _scissor.x = std::min(_scissor.x, pass.viewport.left); _viewport.top = _scissor.y = std::min(_scissor.y, pass.viewport.top); - _viewport.width = _scissor.width = std::max(_scissor.width, pass.viewport.width); - _viewport.height = _scissor.height = std::max(_scissor.height, pass.viewport.height); + _viewport.width = _scissor.width = std::max(_scissor.width, pass.viewport.width + pass.viewport.left - _scissor.x); + _viewport.height = _scissor.height = std::max(_scissor.height, pass.viewport.height + pass.viewport.top - _scissor.y); } } } diff --git a/native/cocos/renderer/frame-graph/FrameGraph.cpp b/native/cocos/renderer/frame-graph/FrameGraph.cpp index 9265ecd96c..8ce1bc9666 100644 --- a/native/cocos/renderer/frame-graph/FrameGraph.cpp +++ b/native/cocos/renderer/frame-graph/FrameGraph.cpp @@ -191,12 +191,7 @@ void FrameGraph::move(const TextureHandle from, const TextureHandle to, uint8_t } bool FrameGraph::hasPass(StringHandle handle) { - for (const auto &passNode : _passNodes) { - if (passNode->_name == handle) { - return true; - } - } - return false; + return std::any_of(_passNodes.begin(), _passNodes.end(), [&](const auto &passNode) { return passNode->_name == handle; }); } Handle FrameGraph::create(VirtualResource *const virtualResource) { diff --git a/native/cocos/renderer/gfx-base/GFXDef-common.h b/native/cocos/renderer/gfx-base/GFXDef-common.h index e7899ce942..ffc66622bf 100644 --- a/native/cocos/renderer/gfx-base/GFXDef-common.h +++ b/native/cocos/renderer/gfx-base/GFXDef-common.h @@ -123,6 +123,7 @@ enum class API : uint32_t { GLES3, METAL, VULKAN, + NVN, WEBGL, WEBGL2, WEBGPU, @@ -884,12 +885,22 @@ using ColorList = vector; * The GFX layer assumes the binding numbers for each descriptor type inside each set * are guaranteed to be consecutive, so the mapping procedure is reduced * to a simple shifting operation. This data structure specifies the - * offsets for each descriptor type in each set. + * capacity for each descriptor type in each set. + * + * The `setIndices` field defines the binding ordering between different sets. + * The last set index is treated as the 'flexible set', whose capacity is dynamically + * assigned based on the total available descriptor slots on the runtime device. */ struct BindingMappingInfo { - std::vector bufferOffsets; - std::vector samplerOffsets; - uint32_t flexibleSet{0U}; + std::vector maxBlockCounts{0}; + std::vector maxSamplerTextureCounts{0}; + std::vector maxSamplerCounts{0}; + std::vector maxTextureCounts{0}; + std::vector maxBufferCounts{0}; + std::vector maxImageCounts{0}; + std::vector maxSubpassInputCounts{0}; + + std::vector setIndices{0}; }; struct SwapchainInfo { diff --git a/native/cocos/renderer/gfx-base/GFXDevice.cpp b/native/cocos/renderer/gfx-base/GFXDevice.cpp index 5d16229c8c..f5c8944de1 100644 --- a/native/cocos/renderer/gfx-base/GFXDevice.cpp +++ b/native/cocos/renderer/gfx-base/GFXDevice.cpp @@ -49,12 +49,6 @@ Device::~Device() { bool Device::initialize(const DeviceInfo &info) { _bindingMappingInfo = info.bindingMappingInfo; - if (_bindingMappingInfo.bufferOffsets.empty()) { - _bindingMappingInfo.bufferOffsets.push_back(0); - } - if (_bindingMappingInfo.samplerOffsets.empty()) { - _bindingMappingInfo.samplerOffsets.push_back(0); - } #if CC_CPU_ARCH == CC_CPU_ARCH_32 static_assert(sizeof(void*) == 4, "pointer size assumption broken"); @@ -78,9 +72,6 @@ void Device::destroy() { CC_SAFE_DELETE(pair.second); } - _bindingMappingInfo.bufferOffsets.clear(); - _bindingMappingInfo.samplerOffsets.clear(); - doDestroy(); CC_SAFE_DELETE(_onAcquire); diff --git a/native/cocos/renderer/gfx-gles-common/GLESCommandPool.h b/native/cocos/renderer/gfx-gles-common/GLESCommandPool.h index d6b9f289fa..a23e19ccf7 100644 --- a/native/cocos/renderer/gfx-gles-common/GLESCommandPool.h +++ b/native/cocos/renderer/gfx-gles-common/GLESCommandPool.h @@ -61,6 +61,13 @@ enum class GLESCmdType : uint8_t { COUNT, }; +class GLESBindingMapping { +public: + vector blockOffsets; + vector samplerTextureOffsets; + uint32_t flexibleSet{0}; +}; + class GLESCmd : public Object { public: GLESCmdType type; diff --git a/native/cocos/renderer/gfx-gles2/GLES2CommandBuffer.cpp b/native/cocos/renderer/gfx-gles2/GLES2CommandBuffer.cpp index 3c99072121..af8ba8679a 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2CommandBuffer.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2CommandBuffer.cpp @@ -54,7 +54,7 @@ void GLES2CommandBuffer::doInit(const CommandBufferInfo &info) { _cmdAllocator = CC_NEW(GLES2GPUCommandAllocator); _curCmdPackage = CC_NEW(GLES2CmdPackage); - size_t setCount = GLES2Device::getInstance()->bindingMappingInfo().bufferOffsets.size(); + size_t setCount = GLES2Device::getInstance()->bindingMappingInfo().setIndices.size(); _curGPUDescriptorSets.resize(setCount); _curDynamicOffsets.resize(setCount); } diff --git a/native/cocos/renderer/gfx-gles2/GLES2Commands.cpp b/native/cocos/renderer/gfx-gles2/GLES2Commands.cpp index 380e31ba12..955f37c096 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Commands.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2Commands.cpp @@ -27,6 +27,7 @@ #include "GLES2Commands.h" #include "GLES2Device.h" +#include "gfx-gles-common/GLESCommandPool.h" #define BUFFER_OFFSET(idx) (static_cast(0) + (idx)) @@ -1100,14 +1101,14 @@ void cmdFuncGLES2CreateShader(GLES2Device *device, GLES2GPUShader *gpuShader) { // texture unit index mapping optimization vector glActiveSamplerTextures; vector glActiveSamplerLocations; - const BindingMappingInfo & bindingMappingInfo = device->bindingMappingInfo(); - unordered_map & texUnitCacheMap = device->stateCache()->texUnitCacheMap; + const GLESBindingMapping & bindingMappings = device->bindingMappings(); + unordered_map & texUnitCacheMap = device->stateCache()->texUnitCacheMap; // sampler bindings in the flexible set comes strictly after buffer bindings // so we need to subtract the buffer count for these samplers uint32_t flexibleSetBaseOffset = 0U; - for (auto &block : gpuShader->blocks) { - if (block.set == bindingMappingInfo.flexibleSet) { + for (const auto &block : gpuShader->blocks) { + if (block.set == bindingMappings.flexibleSet) { flexibleSetBaseOffset++; } } @@ -1122,8 +1123,8 @@ void cmdFuncGLES2CreateShader(GLES2Device *device, GLES2GPUShader *gpuShader) { glActiveSamplerLocations.push_back(glLoc); } if (!texUnitCacheMap.count(samplerTexture.name)) { - uint32_t binding = samplerTexture.binding + bindingMappingInfo.samplerOffsets[samplerTexture.set] + arrayOffset; - if (samplerTexture.set == bindingMappingInfo.flexibleSet) binding -= flexibleSetBaseOffset; + uint32_t binding = samplerTexture.binding + bindingMappings.samplerTextureOffsets[samplerTexture.set] + arrayOffset; + if (samplerTexture.set == bindingMappings.flexibleSet) binding -= flexibleSetBaseOffset; texUnitCacheMap[samplerTexture.name] = binding % device->getCapabilities().maxTextureUnits; arrayOffset += samplerTexture.count - 1; } diff --git a/native/cocos/renderer/gfx-gles2/GLES2DescriptorSet.cpp b/native/cocos/renderer/gfx-gles2/GLES2DescriptorSet.cpp index b4511d98b5..0706fb8144 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2DescriptorSet.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2DescriptorSet.cpp @@ -73,23 +73,23 @@ void GLES2DescriptorSet::doDestroy() { void GLES2DescriptorSet::update() { if (_isDirty && _gpuDescriptorSet) { - const GLES2GPUDescriptorList &descriptors = _gpuDescriptorSet->gpuDescriptors; + auto &descriptors = _gpuDescriptorSet->gpuDescriptors; for (size_t i = 0; i < descriptors.size(); i++) { if (hasAnyFlags(descriptors[i].type, DESCRIPTOR_BUFFER_TYPE)) { auto *buffer = static_cast(_buffers[i]); if (buffer) { if (buffer->gpuBuffer()) { - _gpuDescriptorSet->gpuDescriptors[i].gpuBuffer = buffer->gpuBuffer(); + descriptors[i].gpuBuffer = buffer->gpuBuffer(); } else if (buffer->gpuBufferView()) { - _gpuDescriptorSet->gpuDescriptors[i].gpuBufferView = buffer->gpuBufferView(); + descriptors[i].gpuBufferView = buffer->gpuBufferView(); } } } else if (hasAnyFlags(descriptors[i].type, DESCRIPTOR_TEXTURE_TYPE)) { if (_textures[i]) { - _gpuDescriptorSet->gpuDescriptors[i].gpuTexture = static_cast(_textures[i])->gpuTexture(); + descriptors[i].gpuTexture = static_cast(_textures[i])->gpuTexture(); } if (_samplers[i]) { - _gpuDescriptorSet->gpuDescriptors[i].gpuSampler = static_cast(_samplers[i])->gpuSampler(); + descriptors[i].gpuSampler = static_cast(_samplers[i])->gpuSampler(); } } } diff --git a/native/cocos/renderer/gfx-gles2/GLES2Device.cpp b/native/cocos/renderer/gfx-gles2/GLES2Device.cpp index 481d72bbd5..7487dfdd0a 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Device.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2Device.cpp @@ -83,6 +83,21 @@ bool GLES2Device::doInit(const DeviceInfo & /*info*/) { return false; }; + _bindingMappings.blockOffsets.resize(_bindingMappingInfo.setIndices.size()); + _bindingMappings.samplerTextureOffsets.resize(_bindingMappingInfo.setIndices.size()); + for (size_t i = 0; i < _bindingMappingInfo.setIndices.size(); ++i) { + uint32_t curSet{_bindingMappingInfo.setIndices[i]}; + uint32_t prevSet{i ? _bindingMappingInfo.setIndices[i - 1] : curSet}; + // accumulate the per set offset according to the specified capacity + _bindingMappings.blockOffsets[curSet] = i ? static_cast(_bindingMappingInfo.maxBlockCounts[prevSet]) + _bindingMappings.blockOffsets[prevSet] : 0; + _bindingMappings.samplerTextureOffsets[curSet] = i ? static_cast(_bindingMappingInfo.maxSamplerTextureCounts[prevSet]) + _bindingMappings.samplerTextureOffsets[prevSet] : 0; + } + for (uint32_t curSet : _bindingMappingInfo.setIndices) { + // textures always come after UBOs + _bindingMappings.samplerTextureOffsets[curSet] -= static_cast(_bindingMappingInfo.maxBlockCounts[curSet]); + } + _bindingMappings.flexibleSet = _bindingMappingInfo.setIndices.back(); + String extStr = reinterpret_cast(glGetString(GL_EXTENSIONS)); _extensions = StringUtil::split(extStr, " "); diff --git a/native/cocos/renderer/gfx-gles2/GLES2Device.h b/native/cocos/renderer/gfx-gles2/GLES2Device.h index 2dbf30409f..0cb8cdf631 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Device.h +++ b/native/cocos/renderer/gfx-gles2/GLES2Device.h @@ -28,6 +28,7 @@ #include "GLES2Std.h" #include "gfx-base/GFXDevice.h" #include "gfx-base/GFXSwapchain.h" +#include "gfx-gles-common/GLESCommandPool.h" namespace cc { namespace gfx { @@ -67,6 +68,8 @@ public: void acquire(Swapchain *const *swapchains, uint32_t count) override; void present() override; + inline const GLESBindingMapping &bindingMappings() const { return _bindingMappings; } + inline GLES2GPUContext * context() const { return _gpuContext; } inline GLES2GPUStateCache * stateCache() const { return _gpuStateCache; } inline GLES2GPUBlitManager * blitManager() const { return _gpuBlitManager; } @@ -123,6 +126,8 @@ protected: vector _swapchains; + GLESBindingMapping _bindingMappings; + StringArray _extensions; }; diff --git a/native/cocos/renderer/gfx-gles3/GLES3CommandBuffer.cpp b/native/cocos/renderer/gfx-gles3/GLES3CommandBuffer.cpp index b9ae5ac68a..e85ca86ae9 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3CommandBuffer.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3CommandBuffer.cpp @@ -53,7 +53,7 @@ void GLES3CommandBuffer::doInit(const CommandBufferInfo & /*info*/) { _cmdAllocator = CC_NEW(GLES3GPUCommandAllocator); _curCmdPackage = CC_NEW(GLES3CmdPackage); - size_t setCount = GLES3Device::getInstance()->bindingMappingInfo().bufferOffsets.size(); + size_t setCount = GLES3Device::getInstance()->bindingMappingInfo().setIndices.size(); _curGPUDescriptorSets.resize(setCount); _curDynamicOffsets.resize(setCount); } diff --git a/native/cocos/renderer/gfx-gles3/GLES3Commands.cpp b/native/cocos/renderer/gfx-gles3/GLES3Commands.cpp index 33856964fc..21c2df7013 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Commands.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3Commands.cpp @@ -29,6 +29,7 @@ #include "GLES3Device.h" #include "GLES3QueryPool.h" #include "gfx-base/GFXDef-common.h" +#include "gfx-gles-common/GLESCommandPool.h" #define BUFFER_OFFSET(idx) (static_cast(0) + (idx)) @@ -1147,7 +1148,7 @@ void cmdFuncGLES3CreateShader(GLES3Device *device, GLES3GPUShader *gpuShader) { if (block.name == glBlock.name) { glBlock.set = block.set; glBlock.binding = block.binding; - glBlock.glBinding = block.binding + device->bindingMappingInfo().bufferOffsets[block.set]; + glBlock.glBinding = block.binding + device->bindingMappings().blockOffsets[block.set]; GL_CHECK(glUniformBlockBinding(gpuShader->glProgram, i, glBlock.glBinding)); break; } @@ -1216,14 +1217,14 @@ void cmdFuncGLES3CreateShader(GLES3Device *device, GLES3GPUShader *gpuShader) { // texture unit index mapping optimization vector glActiveSamplerTextures; vector glActiveSamplerLocations; - const BindingMappingInfo & bindingMappingInfo = device->bindingMappingInfo(); - unordered_map & texUnitCacheMap = device->stateCache()->texUnitCacheMap; + const GLESBindingMapping & bindingMappings = device->bindingMappings(); + unordered_map & texUnitCacheMap = device->stateCache()->texUnitCacheMap; // sampler bindings in the flexible set comes strictly after buffer bindings // so we need to subtract the buffer count for these samplers uint32_t flexibleSetBaseOffset = 0U; - for (GLES3GPUUniformBuffer &buffer : gpuShader->glBuffers) { - if (buffer.set == bindingMappingInfo.flexibleSet) { + for (const auto &buffer : gpuShader->blocks) { + if (buffer.set == bindingMappings.flexibleSet) { flexibleSetBaseOffset++; } } @@ -1239,8 +1240,8 @@ void cmdFuncGLES3CreateShader(GLES3Device *device, GLES3GPUShader *gpuShader) { glActiveSamplerLocations.push_back(glLoc); if (texUnitCacheMap.count(samplerTexture.name) == 0U) { - uint32_t binding = samplerTexture.binding + bindingMappingInfo.samplerOffsets[samplerTexture.set] + arrayOffset; - if (samplerTexture.set == bindingMappingInfo.flexibleSet) binding -= flexibleSetBaseOffset; + uint32_t binding = samplerTexture.binding + bindingMappings.samplerTextureOffsets[samplerTexture.set] + arrayOffset; + if (samplerTexture.set == bindingMappings.flexibleSet) binding -= flexibleSetBaseOffset; texUnitCacheMap[samplerTexture.name] = binding % device->getCapabilities().maxTextureUnits; arrayOffset += samplerTexture.count - 1; } diff --git a/native/cocos/renderer/gfx-gles3/GLES3DescriptorSet.cpp b/native/cocos/renderer/gfx-gles3/GLES3DescriptorSet.cpp index 300c0c2852..678df0dc28 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3DescriptorSet.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3DescriptorSet.cpp @@ -69,18 +69,18 @@ void GLES3DescriptorSet::doDestroy() { void GLES3DescriptorSet::update() { if (_isDirty && _gpuDescriptorSet) { - const GLES3GPUDescriptorList &descriptors = _gpuDescriptorSet->gpuDescriptors; + auto &descriptors = _gpuDescriptorSet->gpuDescriptors; for (size_t i = 0; i < descriptors.size(); i++) { if (hasAnyFlags(descriptors[i].type, DESCRIPTOR_BUFFER_TYPE)) { if (_buffers[i]) { - _gpuDescriptorSet->gpuDescriptors[i].gpuBuffer = static_cast(_buffers[i])->gpuBuffer(); + descriptors[i].gpuBuffer = static_cast(_buffers[i])->gpuBuffer(); } } else if (hasAnyFlags(descriptors[i].type, DESCRIPTOR_TEXTURE_TYPE)) { if (_textures[i]) { - _gpuDescriptorSet->gpuDescriptors[i].gpuTexture = static_cast(_textures[i])->gpuTexture(); + descriptors[i].gpuTexture = static_cast(_textures[i])->gpuTexture(); } if (_samplers[i]) { - _gpuDescriptorSet->gpuDescriptors[i].gpuSampler = static_cast(_samplers[i])->gpuSampler(); + descriptors[i].gpuSampler = static_cast(_samplers[i])->gpuSampler(); } } } diff --git a/native/cocos/renderer/gfx-gles3/GLES3Device.cpp b/native/cocos/renderer/gfx-gles3/GLES3Device.cpp index 263324ea2a..1863ad40d0 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Device.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3Device.cpp @@ -83,6 +83,21 @@ bool GLES3Device::doInit(const DeviceInfo & /*info*/) { return false; }; + _bindingMappings.blockOffsets.resize(_bindingMappingInfo.setIndices.size()); + _bindingMappings.samplerTextureOffsets.resize(_bindingMappingInfo.setIndices.size()); + for (size_t i = 0; i < _bindingMappingInfo.setIndices.size(); ++i) { + uint32_t curSet{_bindingMappingInfo.setIndices[i]}; + uint32_t prevSet{i ? _bindingMappingInfo.setIndices[i - 1] : curSet}; + // accumulate the per set offset according to the specified capacity + _bindingMappings.blockOffsets[curSet] = i ? static_cast(_bindingMappingInfo.maxBlockCounts[prevSet]) + _bindingMappings.blockOffsets[prevSet] : 0; + _bindingMappings.samplerTextureOffsets[curSet] = i ? static_cast(_bindingMappingInfo.maxSamplerTextureCounts[prevSet]) + _bindingMappings.samplerTextureOffsets[prevSet] : 0; + } + for (uint32_t curSet : _bindingMappingInfo.setIndices) { + // textures always come after UBOs + _bindingMappings.samplerTextureOffsets[curSet] -= static_cast(_bindingMappingInfo.maxBlockCounts[curSet]); + } + _bindingMappings.flexibleSet = _bindingMappingInfo.setIndices.back(); + String extStr = reinterpret_cast(glGetString(GL_EXTENSIONS)); _extensions = StringUtil::split(extStr, " "); diff --git a/native/cocos/renderer/gfx-gles3/GLES3Device.h b/native/cocos/renderer/gfx-gles3/GLES3Device.h index 2aaec972dc..db19feb9ab 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Device.h +++ b/native/cocos/renderer/gfx-gles3/GLES3Device.h @@ -27,6 +27,7 @@ #include "GLES3Std.h" #include "gfx-base/GFXDevice.h" +#include "gfx-gles-common/GLESCommandPool.h" namespace cc { namespace gfx { @@ -67,6 +68,8 @@ public: void acquire(Swapchain *const *swapchains, uint32_t count) override; void present() override; + inline const GLESBindingMapping &bindingMappings() const { return _bindingMappings; } + inline GLES3GPUContext * context() const { return _gpuContext; } inline GLES3GPUStateCache * stateCache() const { return _gpuStateCache; } inline GLES3GPUFramebufferHub * framebufferHub() const { return _gpuFramebufferHub; } @@ -122,6 +125,8 @@ protected: vector _swapchains; + GLESBindingMapping _bindingMappings; + StringArray _extensions; }; diff --git a/native/cocos/renderer/gfx-metal/MTLCommandBuffer.mm b/native/cocos/renderer/gfx-metal/MTLCommandBuffer.mm index 236d1ecee5..c317623b4e 100644 --- a/native/cocos/renderer/gfx-metal/MTLCommandBuffer.mm +++ b/native/cocos/renderer/gfx-metal/MTLCommandBuffer.mm @@ -52,7 +52,7 @@ CCMTLCommandBuffer::CCMTLCommandBuffer() _mtlCommandQueue = id(_mtlDevice->getMTLCommandQueue()); _indirectDrawSuppotred = _mtlDevice->isIndirectDrawSupported(); - const auto setCount = _mtlDevice->bindingMappingInfo().bufferOffsets.size(); + const auto setCount = _mtlDevice->bindingMappingInfo().setIndices.size(); _GPUDescriptorSets.resize(setCount); _dynamicOffsets.resize(setCount); _indirectDrawSuppotred = _mtlDevice->isIndirectDrawSupported(); @@ -71,14 +71,14 @@ void CCMTLCommandBuffer::doDestroy() { CC_DELETE(_texCopySemaphore); _texCopySemaphore = nullptr; } - + if(_commandBufferBegan) { if(_gpuCommandBufferObj && _gpuCommandBufferObj->mtlCommandBuffer) { [_gpuCommandBufferObj->mtlCommandBuffer commit]; } _commandBufferBegan = false; } - + _GPUDescriptorSets.clear(); _dynamicOffsets.clear(); _firstDirtyDescriptorSet = UINT_MAX; @@ -146,7 +146,7 @@ void CCMTLCommandBuffer::beginRenderPass(RenderPass *renderPass, Framebuffer *fb if (_gpuCommandBufferObj->isSecondary) { return; } - + _gpuCommandBufferObj->renderPass = static_cast(renderPass); _gpuCommandBufferObj->fbo = static_cast(fbo); @@ -229,7 +229,7 @@ void CCMTLCommandBuffer::beginRenderPass(RenderPass *renderPass, Framebuffer *fb mtlRenderPassDescriptor.colorAttachments[color].storeAction = MTLStoreActionMultisampleResolve; } } - + for (size_t j = 0; j < subpasses[i].preserves.size(); ++j) { uint32_t preserves = subpasses[i].preserves[j]; mtlRenderPassDescriptor.colorAttachments[preserves].storeAction = MTLStoreActionStoreAndMultisampleResolve; @@ -237,7 +237,7 @@ void CCMTLCommandBuffer::beginRenderPass(RenderPass *renderPass, Framebuffer *fb } updateDepthStencilState(ccMtlRenderPass->getCurrentSubpassIndex(), mtlRenderPassDescriptor); } - + mtlRenderPassDescriptor.depthAttachment.clearDepth = clampf(depth, 0.0F, 1.0F); mtlRenderPassDescriptor.stencilAttachment.clearStencil = stencil; @@ -258,7 +258,7 @@ void CCMTLCommandBuffer::beginRenderPass(RenderPass *renderPass, Framebuffer *fb _renderEncoder.initialize(mtlCommandBuffer, mtlRenderPassDescriptor); //[_renderEncoder.getMTLEncoder() memoryBarrierWithScope:MTLBarrierScopeTextures afterStages:MTLRenderStageFragment beforeStages:MTLRenderStageFragment]; } - + if (!renderingFullFramebuffer) { //Metal doesn't apply the viewports and scissors to renderpass load-action clearing. mu::clearRenderArea(_mtlDevice, _renderEncoder.getMTLEncoder(), renderPass, renderArea, colors, depth, stencil); @@ -272,7 +272,7 @@ void CCMTLCommandBuffer::beginRenderPass(RenderPass *renderPass, Framebuffer *fb #endif _renderEncoder.setViewport(scissorArea); _renderEncoder.setScissor(scissorArea); - + if(_firstRenderPass) { _firstRenderPass = false; } @@ -301,7 +301,7 @@ void CCMTLCommandBuffer::updateDepthStencilState(uint32_t index, MTLRenderPassDe CCMTLRenderPass * curRenderPass = _gpuCommandBufferObj->renderPass; CCMTLFramebuffer * curFBO = _gpuCommandBufferObj->fbo; const SubpassInfoList &subpasses = curRenderPass->getSubpasses(); - + const DepthStencilAttachment& dsAttachment = curRenderPass->getDepthStencilAttachment(); const SubpassInfo& subpass = subpasses[index]; if (subpass.depthStencil != INVALID_BINDING) { @@ -359,7 +359,7 @@ void CCMTLCommandBuffer::updateDepthStencilState(uint32_t index, MTLRenderPassDe if (@available(iOS 12.0, *)) { descriptor.stencilAttachment.stencilResolveFilter = mu::toMTLStencilResolveMode(subpass.stencilResolveMode); } - + if(index == subpasses.size() - 1) { descriptor.depthAttachment.storeAction = dsAttachment.depthStoreOp == StoreOp::STORE ? MTLStoreActionStoreAndMultisampleResolve : MTLStoreActionMultisampleResolve; descriptor.stencilAttachment.storeAction = dsAttachment.stencilStoreOp == StoreOp::STORE ? MTLStoreActionStoreAndMultisampleResolve : MTLStoreActionMultisampleResolve; @@ -877,7 +877,7 @@ void CCMTLCommandBuffer::copyTextureToBuffers(Texture *src, uint8_t *const *buff auto * ccMTLTexture = static_cast(src); Format convertedFormat = ccMTLTexture->getConvertedFormat(); id mtlTexture = ccMTLTexture->getMTLTexture(); - + if([mtlTexture storageMode] == MTLStorageModeShared) { for (size_t i = 0; i < count; ++i) { uint32_t width = regions[i].texExtent.width; @@ -897,7 +897,7 @@ void CCMTLCommandBuffer::copyTextureToBuffers(Texture *src, uint8_t *const *buff } } else { id mtlCommandBuffer = getMTLCommandBuffer(); - + std::vector> stagingAddrs(count); for (size_t i = 0; i < count; ++i) { uint32_t width = regions[i].texExtent.width; @@ -927,7 +927,7 @@ void CCMTLCommandBuffer::copyTextureToBuffers(Texture *src, uint8_t *const *buff if(!_texCopySemaphore) { _texCopySemaphore = CC_NEW(CCMTLSemaphore(0)); } - + [mtlCommandBuffer addCompletedHandler:^(id commandBuffer) { for(size_t i = 0; i < count; ++i) { memcpy(buffers[i], stagingAddrs[i].first, stagingAddrs[i].second); diff --git a/native/cocos/renderer/gfx-metal/MTLUtils.mm b/native/cocos/renderer/gfx-metal/MTLUtils.mm index 1b32ae9d66..92f6564481 100644 --- a/native/cocos/renderer/gfx-metal/MTLUtils.mm +++ b/native/cocos/renderer/gfx-metal/MTLUtils.mm @@ -370,7 +370,7 @@ CCMTLGPUPipelineState *getClearRenderPassPipelineState(CCMTLDevice *device, Rend pipelineInfo.shader = createShader(device); pipelineInfo.inputState = {{position}}; pipelineInfo.renderPass = curPass; - + DepthStencilState dsState; dsState.depthWrite = 0; dsState.depthTest = 1; @@ -927,7 +927,6 @@ String mu::spirv2MSL(const uint32_t *ir, size_t word_count, // TODO: bindings from shader just kind of validation, cannot be directly input // Get all uniform buffers in the shader. uint maxBufferBindingIndex = device->getMaximumBufferBindingIndex(); - const auto &bufferBindingOffset = device->bindingMappingInfo().bufferOffsets; for (const auto &ubo : resources.uniform_buffers) { auto set = msl.get_decoration(ubo.id, spv::DecorationDescriptorSet); auto binding = msl.get_decoration(ubo.id, spv::DecorationBinding); @@ -965,7 +964,7 @@ String mu::spirv2MSL(const uint32_t *ir, size_t word_count, if (binding >= maxBufferBindingIndex) { CC_LOG_ERROR("Implementation limits: %s binding at %d, should not use more than %d entries in the buffer argument table", ubo.name.c_str(), binding, maxBufferBindingIndex); } - + uint nameHash = static_cast(std::hash{}(ubo.name)); if (gpuShader->blocks.find(nameHash) == gpuShader->blocks.end()) { auto mappedBinding = gpuShader->bufferIndex; @@ -992,9 +991,6 @@ String mu::spirv2MSL(const uint32_t *ir, size_t word_count, return ""; } - // Get all sampled images in the shader. - const auto &samplerBindingOffset = device->bindingMappingInfo().samplerOffsets; - // avoid conflict index with input attachments. const uint8_t rtOffsets = executionModel == spv::ExecutionModelFragment ? resources.subpass_inputs.size() : 0; for (const auto &sampler : resources.sampled_images) { @@ -1634,7 +1630,7 @@ void mu::clearRenderArea(CCMTLDevice *device, id render const auto gpuPSO = getClearRenderPassPipelineState(device, renderPass); const auto mtlRenderPass = static_cast(renderPass); uint slot = 0u; - + const auto &renderTargetSizes = mtlRenderPass->getRenderTargetSizes(); float renderTargetWidth = renderTargetSizes[slot].x; float renderTargetHeight = renderTargetSizes[slot].y; diff --git a/native/cocos/renderer/gfx-validator/BufferValidator.cpp b/native/cocos/renderer/gfx-validator/BufferValidator.cpp index ea29550b40..854c866837 100644 --- a/native/cocos/renderer/gfx-validator/BufferValidator.cpp +++ b/native/cocos/renderer/gfx-validator/BufferValidator.cpp @@ -40,6 +40,8 @@ namespace cc { namespace gfx { +bool BufferValidator::recordInitStack{true}; + BufferValidator::BufferValidator(Buffer *actor) : Agent(actor) { _typedID = actor->getTypedID(); @@ -66,7 +68,7 @@ void BufferValidator::doInit(const BufferInfo &info) { CCASSERT(info.size, "zero-sized buffer?"); CCASSERT(info.size / info.stride * info.stride == info.size, "size is not multiple of stride?"); - _initStack = se::ScriptEngine::getInstance()->getCurrentStackTrace(); + if (recordInitStack) _initStack = se::ScriptEngine::getInstance()->getCurrentStackTrace(); _creationFrame = DeviceValidator::getInstance()->currentFrame(); _totalUpdateTimes = 0U; diff --git a/native/cocos/renderer/gfx-validator/BufferValidator.h b/native/cocos/renderer/gfx-validator/BufferValidator.h index 4d488ded70..bf8ddbc4a6 100644 --- a/native/cocos/renderer/gfx-validator/BufferValidator.h +++ b/native/cocos/renderer/gfx-validator/BufferValidator.h @@ -33,6 +33,8 @@ namespace gfx { class CC_DLL BufferValidator final : public Agent { public: + static bool recordInitStack; + explicit BufferValidator(Buffer *actor); ~BufferValidator() override; diff --git a/native/cocos/renderer/gfx-validator/CommandBufferValidator.cpp b/native/cocos/renderer/gfx-validator/CommandBufferValidator.cpp index 15ef060fa6..55cdbae47b 100644 --- a/native/cocos/renderer/gfx-validator/CommandBufferValidator.cpp +++ b/native/cocos/renderer/gfx-validator/CommandBufferValidator.cpp @@ -58,7 +58,7 @@ void CommandBufferValidator::initValidator() { CCASSERT(!isInited(), "initializing twice?"); _inited = true; - size_t descriptorSetCount = DeviceValidator::getInstance()->bindingMappingInfo().bufferOffsets.size(); + size_t descriptorSetCount = DeviceValidator::getInstance()->bindingMappingInfo().setIndices.size(); _curStates.descriptorSets.resize(descriptorSetCount); _curStates.dynamicOffsets.resize(descriptorSetCount); } @@ -238,7 +238,7 @@ void CommandBufferValidator::bindDescriptorSet(uint32_t set, DescriptorSet *desc CCASSERT(isInited(), "alread destroyed?"); CCASSERT(descriptorSet && static_cast(descriptorSet)->isInited(), "already destroyed?"); - CCASSERT(set < DeviceValidator::getInstance()->bindingMappingInfo().bufferOffsets.size(), "invalid set index"); + CCASSERT(set < DeviceValidator::getInstance()->bindingMappingInfo().setIndices.size(), "invalid set index"); //CCASSERT(descriptorSet->getLayout()->getDynamicBindings().size() == dynamicOffsetCount, "wrong number of dynamic offsets"); // be more lenient on this _curStates.descriptorSets[set] = descriptorSet; diff --git a/native/cocos/renderer/gfx-vulkan/VKCommandBuffer.cpp b/native/cocos/renderer/gfx-vulkan/VKCommandBuffer.cpp index f133c592d0..985f0f495a 100644 --- a/native/cocos/renderer/gfx-vulkan/VKCommandBuffer.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKCommandBuffer.cpp @@ -35,10 +35,8 @@ #include "VKQueue.h" #include "VKRenderPass.h" #include "VKTexture.h" -#include "gfx-base/GFXDef-common.h" #include "states/VKGlobalBarrier.h" #include "states/VKTextureBarrier.h" -#include "vulkan/vulkan_core.h" namespace cc { namespace gfx { @@ -56,7 +54,7 @@ void CCVKCommandBuffer::doInit(const CommandBufferInfo & /*info*/) { _gpuCommandBuffer->level = mapVkCommandBufferLevel(_type); _gpuCommandBuffer->queueFamilyIndex = static_cast(_queue)->gpuQueue()->queueFamilyIndex; - size_t setCount = CCVKDevice::getInstance()->bindingMappingInfo().bufferOffsets.size(); + size_t setCount = CCVKDevice::getInstance()->bindingMappingInfo().setIndices.size(); _curGPUDescriptorSets.resize(setCount); _curVkDescriptorSets.resize(setCount); _curDynamicOffsetsArray.resize(setCount); diff --git a/native/cocos/renderer/gfx-vulkan/VKCommands.cpp b/native/cocos/renderer/gfx-vulkan/VKCommands.cpp index 8476935a60..047d0a0587 100644 --- a/native/cocos/renderer/gfx-vulkan/VKCommands.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKCommands.cpp @@ -477,18 +477,14 @@ void cmdFuncCCVKCreateRenderPass(CCVKDevice *device, CCVKGPURenderPass *gpuRende if (subpassInfo.depthStencilResolve != INVALID_BINDING) { Format dsFormat{Format::UNKNOWN}; bool isGeneralLayout{false}; - if (subpassInfo.depthStencil >= colorAttachmentCount) { - const DepthStencilAttachment & desc = gpuRenderPass->depthStencilAttachment; - const VkAttachmentDescription2 &attachment = attachmentDescriptions.back(); - isGeneralLayout = desc.isGeneralLayout; - dsFormat = desc.format; - sampleCount = std::max(sampleCount, attachment.samples); + if (subpassInfo.depthStencilResolve >= colorAttachmentCount) { + const DepthStencilAttachment &desc = gpuRenderPass->depthStencilAttachment; + isGeneralLayout = desc.isGeneralLayout; + dsFormat = desc.format; } else { - const ColorAttachment & desc = gpuRenderPass->colorAttachments[subpassInfo.depthStencil]; - const VkAttachmentDescription2 &attachment = attachmentDescriptions[subpassInfo.depthStencil]; - isGeneralLayout = desc.isGeneralLayout; - dsFormat = desc.format; - sampleCount = std::max(sampleCount, attachment.samples); + const ColorAttachment &desc = gpuRenderPass->colorAttachments[subpassInfo.depthStencilResolve]; + isGeneralLayout = desc.isGeneralLayout; + dsFormat = desc.format; } VkImageAspectFlags aspect = GFX_FORMAT_INFOS[toNumber(dsFormat)].hasStencil @@ -1170,7 +1166,7 @@ void cmdFuncCCVKUpdateBuffer(CCVKDevice *device, CCVKGPUBuffer *gpuBuffer, const } else { for (size_t i = 0; i < drawInfoCount; ++i) { gpuBuffer->indirectCmds[i].vertexCount = drawInfo->vertexCount; - gpuBuffer->indirectCmds[i].instanceCount = drawInfo->instanceCount; + gpuBuffer->indirectCmds[i].instanceCount = std::max(drawInfo->instanceCount, 1U); gpuBuffer->indirectCmds[i].firstVertex = drawInfo->firstVertex; gpuBuffer->indirectCmds[i].firstInstance = drawInfo->firstInstance; drawInfo++; @@ -1355,7 +1351,7 @@ void cmdFuncCCVKCopyBuffersToTexture(CCVKDevice *device, const uint8_t *const *b } void cmdFuncCCVKCopyTextureToBuffers(CCVKDevice *device, CCVKGPUTexture *srcTexture, CCVKGPUBuffer *destBuffer, - const BufferTextureCopy *regions, uint32_t count, const CCVKGPUCommandBuffer *gpuCommandBuffer) { + const BufferTextureCopy *regions, uint32_t count, const CCVKGPUCommandBuffer *gpuCommandBuffer) { vector &curTypes = srcTexture->currentAccessTypes; ThsvsImageBarrier barrier{}; diff --git a/native/cocos/renderer/gfx-vulkan/VKDevice.cpp b/native/cocos/renderer/gfx-vulkan/VKDevice.cpp index d7c0e1b3ae..b2b64dd31e 100644 --- a/native/cocos/renderer/gfx-vulkan/VKDevice.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKDevice.cpp @@ -40,6 +40,7 @@ #include "VKSwapchain.h" #include "VKTexture.h" #include "VKUtils.h" +#include "base/Utils.h" #include "states/VKGlobalBarrier.h" #include "states/VKSampler.h" #include "states/VKTextureBarrier.h" @@ -283,7 +284,7 @@ bool CCVKDevice::doInit(const DeviceInfo & /*info*/) { _caps.maxVertexTextureUnits = limits.maxPerStageDescriptorSampledImages; _caps.maxTextureSize = limits.maxImageDimension2D; _caps.maxCubeMapTextureSize = limits.maxImageDimensionCube; - _caps.uboOffsetAlignment = static_cast(limits.minUniformBufferOffsetAlignment); + _caps.uboOffsetAlignment = utils::toUint(limits.minUniformBufferOffsetAlignment); // compute shaders _caps.maxComputeSharedMemorySize = limits.maxComputeSharedMemorySize; _caps.maxComputeWorkGroupInvocations = limits.maxComputeWorkGroupInvocations; @@ -597,8 +598,9 @@ void CCVKDevice::acquire(Swapchain *const *swapchains, uint32_t count) { for (uint32_t i = 0; i < vkSwapchains.size(); ++i) { VkSemaphore acquireSemaphore = _gpuSemaphorePool->alloc(); - VK_CHECK(vkAcquireNextImageKHR(_gpuDevice->vkDevice, vkSwapchains[i], ~0ULL, - acquireSemaphore, VK_NULL_HANDLE, &vkSwapchainIndices[i])); + VkResult res = vkAcquireNextImageKHR(_gpuDevice->vkDevice, vkSwapchains[i], ~0ULL, + acquireSemaphore, VK_NULL_HANDLE, &vkSwapchainIndices[i]); + CCASSERT(res == VK_SUCCESS || res == VK_SUBOPTIMAL_KHR, "acquire surface failed"); gpuSwapchains[i]->curImageIndex = vkSwapchainIndices[i]; queue->gpuQueue()->lastSignaledSemaphores.push_back(acquireSemaphore); diff --git a/native/cocos/renderer/gfx-vulkan/VKGPUObjects.h b/native/cocos/renderer/gfx-vulkan/VKGPUObjects.h index f731e05d9e..65ef3bd57a 100644 --- a/native/cocos/renderer/gfx-vulkan/VKGPUObjects.h +++ b/native/cocos/renderer/gfx-vulkan/VKGPUObjects.h @@ -274,8 +274,6 @@ class CCVKGPUShader final : public Object { public: String name; AttributeList attributes; - UniformBlockList blocks; - UniformSamplerList samplers; vector gpuStages; }; @@ -979,6 +977,18 @@ public: } } } + void update(const CCVKGPUTexture *texture) { + for (auto &it : _textures) { + if (it.first->gpuTexture != texture) continue; + const auto &info = it.second; + for (uint32_t i = 0U; i < info.descriptors.size(); i++) { + doUpdate(it.first, info.descriptors[i]); + } + for (const auto *set : info.sets) { + _descriptorSetHub->record(set); + } + } + } void disengage(const CCVKGPUBufferView *buffer) { auto it = _buffers.find(buffer); diff --git a/native/cocos/renderer/gfx-vulkan/VKQueryPool.cpp b/native/cocos/renderer/gfx-vulkan/VKQueryPool.cpp index fcff56751e..13c27fbe58 100644 --- a/native/cocos/renderer/gfx-vulkan/VKQueryPool.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKQueryPool.cpp @@ -27,7 +27,6 @@ #include "VKCommandBuffer.h" #include "VKCommands.h" #include "VKDevice.h" -#include "vulkan/vulkan_core.h" namespace cc { namespace gfx { diff --git a/native/cocos/renderer/gfx-vulkan/VKQueue.cpp b/native/cocos/renderer/gfx-vulkan/VKQueue.cpp index d13243acc9..522a4e7003 100644 --- a/native/cocos/renderer/gfx-vulkan/VKQueue.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKQueue.cpp @@ -29,7 +29,6 @@ #include "VKCommands.h" #include "VKDevice.h" #include "VKQueue.h" -#include "vulkan/vulkan_core.h" namespace cc { namespace gfx { diff --git a/native/cocos/renderer/gfx-vulkan/VKShader.cpp b/native/cocos/renderer/gfx-vulkan/VKShader.cpp index fe47695c04..3dca39c09a 100644 --- a/native/cocos/renderer/gfx-vulkan/VKShader.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKShader.cpp @@ -44,8 +44,6 @@ void CCVKShader::doInit(const ShaderInfo & /*info*/) { _gpuShader = CC_NEW(CCVKGPUShader); _gpuShader->name = _name; _gpuShader->attributes = _attributes; - _gpuShader->blocks = _blocks; - _gpuShader->samplers = _samplers; for (ShaderStage &stage : _stages) { _gpuShader->gpuStages.push_back({stage.stage, stage.source}); } diff --git a/native/cocos/renderer/gfx-vulkan/VKTexture.cpp b/native/cocos/renderer/gfx-vulkan/VKTexture.cpp index ffb73e8493..677e956b65 100644 --- a/native/cocos/renderer/gfx-vulkan/VKTexture.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKTexture.cpp @@ -126,6 +126,7 @@ void CCVKTexture::doResize(uint32_t width, uint32_t height, uint32_t size) { cmdFuncCCVKCreateTextureView(CCVKDevice::getInstance(), _gpuTextureView); CCVKDevice::getInstance()->gpuFramebufferHub()->update(_gpuTexture); + CCVKDevice::getInstance()->gpuDescriptorHub()->update(_gpuTexture); } ///////////////////////////// Swapchain Specific ///////////////////////////// diff --git a/native/cocos/renderer/gfx-vulkan/states/VKGlobalBarrier.cpp b/native/cocos/renderer/gfx-vulkan/states/VKGlobalBarrier.cpp index 3de225d47b..025bb4334b 100644 --- a/native/cocos/renderer/gfx-vulkan/states/VKGlobalBarrier.cpp +++ b/native/cocos/renderer/gfx-vulkan/states/VKGlobalBarrier.cpp @@ -24,7 +24,7 @@ ****************************************************************************/ #include "VKGlobalBarrier.h" -#include "../VKCommands.h" +#include "../VKGPUObjects.h" namespace cc { namespace gfx { diff --git a/native/cocos/renderer/pipeline/Define.cpp b/native/cocos/renderer/pipeline/Define.cpp index 9515482b48..fd65fc993c 100644 --- a/native/cocos/renderer/pipeline/Define.cpp +++ b/native/cocos/renderer/pipeline/Define.cpp @@ -30,20 +30,25 @@ namespace cc { namespace pipeline { -int globalUBOCount = static_cast(PipelineGlobalBindings::SAMPLER_SHADOWMAP); -int globalSamplerCount = static_cast(PipelineGlobalBindings::COUNT) - globalUBOCount; +static uint32_t globalUBOCount = static_cast(PipelineGlobalBindings::SAMPLER_SHADOWMAP); +static uint32_t globalSamplerCount = static_cast(PipelineGlobalBindings::COUNT) - globalUBOCount; -int localUBOCount = static_cast(ModelLocalBindings::SAMPLER_JOINTS); -int localSamplerCount = static_cast(ModelLocalBindings::COUNT) - localUBOCount; +static uint32_t localUBOCount = static_cast(ModelLocalBindings::SAMPLER_JOINTS); +static uint32_t localSamplerCount = static_cast(ModelLocalBindings::COUNT) - localUBOCount; uint globalSet = static_cast(SetIndex::GLOBAL); uint materialSet = static_cast(SetIndex::MATERIAL); uint localSet = static_cast(SetIndex::LOCAL); gfx::BindingMappingInfo bindingMappingInfo = { - {0, globalUBOCount + localUBOCount, globalUBOCount}, - {-globalUBOCount, globalSamplerCount + localSamplerCount, globalSamplerCount - localUBOCount}, - 1, + {globalUBOCount, 0, localUBOCount}, // Uniform Buffer Counts + {globalSamplerCount, 0, localSamplerCount}, // Combined Sampler Texture Counts + {0, 0, 0}, // Sampler Counts + {0, 0, 0}, // Texture Counts + {0, 0, 0}, // Storage Buffer Counts + {0, 0, 0}, // Storage Image Counts + {0, 0, 0}, // Subpass Input Counts + {0, 2, 1}, // Set Order Indices }; DescriptorSetLayoutInfos globalDescriptorSetLayout; diff --git a/native/cocos/renderer/pipeline/Define.h b/native/cocos/renderer/pipeline/Define.h index b184b0fce5..6102f078be 100644 --- a/native/cocos/renderer/pipeline/Define.h +++ b/native/cocos/renderer/pipeline/Define.h @@ -222,9 +222,6 @@ enum class CC_DLL PipelineGlobalBindings { }; CC_ENUM_CONVERSION_OPERATOR(PipelineGlobalBindings) -extern CC_DLL int globalUBOCount; -extern CC_DLL int globalSamplerCount; - enum class CC_DLL ModelLocalBindings { UBO_LOCAL, UBO_FORWARD_LIGHTS, @@ -246,9 +243,6 @@ enum class CC_DLL ModelLocalBindings { }; CC_ENUM_CONVERSION_OPERATOR(ModelLocalBindings) -extern CC_DLL int localUBOCount; -extern CC_DLL int localSamplerCount; - enum class CC_DLL SetIndex { GLOBAL, MATERIAL, diff --git a/native/tools/bindings-generator/generator.py b/native/tools/bindings-generator/generator.py index 031e37a78f..9b70aae8fc 100755 --- a/native/tools/bindings-generator/generator.py +++ b/native/tools/bindings-generator/generator.py @@ -1153,7 +1153,7 @@ class NativeClass(object): def generate_struct_constructor(self): stream = open(os.path.join(self.generator.target, "conversions.yaml"), "r") - config = yaml.load(stream) + config = yaml.safe_load(stream) tpl = Template(config['definitions']['constructor'], searchList=[self]) self.struct_constructor_name = str(tpl) @@ -1585,7 +1585,7 @@ class Generator(object): return False def should_skip_public_field(self, class_name, field_name, verbose=False): - + if class_name == "*" and "*" in self.skip_public_fields_classes: for func in self.skip_public_fields_classes["*"]: if re.match(func, field_name): @@ -1697,7 +1697,7 @@ class Generator(object): def generate_code(self): # must read the yaml file first stream = open(os.path.join(self.target, "conversions.yaml"), "r") - data = yaml.load(stream) + data = yaml.safe_load(stream) self.config = data implfilepath = os.path.join(self.outdir, self.out_file + ".cpp") headfilepath = os.path.join(self.outdir, self.out_file + ".h") diff --git a/native/tools/gfx-define-generator/generate.js b/native/tools/gfx-define-generator/generate.js index aae8ea8081..1faf4070ab 100644 --- a/native/tools/gfx-define-generator/generate.js +++ b/native/tools/gfx-define-generator/generate.js @@ -72,12 +72,19 @@ while (enumCap) { enumCap = enumRE.exec(header); } -// now discard all block comments -header = header.replace(/\/\*.*?\*\//gs, ''); -header = header.replace(/\s*[*&](.)/g, (_, c) => (c === '>' ? '' : ' ') + c); -header = header.replace(/(?:\w*::)?vector<(.+?)>/g, '$1[]'); -// and preprocessors +// save & strip block comments +const blockComments = []; +const blockCommentsRE = /(\/\*\*.*?\*\/)\s*(.+?\n)/gs; +header = header.replace(blockCommentsRE, (_, comments, succeeding) => { + blockComments.push({ succeeding, source: comments }); + return succeeding; +}); +// discard preprocessors header = header.replace(/\s*#(if|else|elif|end).*/gm, ''); +// replace vector +header = header.replace(/(?:\w*::)?vector<(.+?)>/g, (_, type) => { + return `${type.replace(/[*\s]+/g, '')}[]`; +}); const typedefRE = /^\s*using\s+(.+?)\s*=\s*(.+?);/gsm; const typedefMap = { lists: {}, others: [] }; @@ -124,7 +131,7 @@ const getMemberList = (() => { }; })(); -const structRE = /(struct\s+(?:\w+\(\w+\)\s+)?)(\w+).*?{\s*(.+?)\s*};/gs; +const structRE = /(struct\s+(?:\w+\(\w+\)\s+)?(\w+).*?){\s*.+?\s*};/gs; const structMemberRE = /^\s*(const\w*\s*)?([\w[\]]+)\s+?(\w+)(?:\s*[={]?\s*(.*?)\s*}*\s*)?;(?:\s*\/\/\s*@ts-(.*?)$)?/gm; const structMap = {}; const replaceConstants = (() => { @@ -153,9 +160,13 @@ const getArrayValue = (decayedType, value) => { let structCap = structRE.exec(header); while (structCap) { const struct = structMap[structCap[2]] = {}; + struct.comments = blockComments.find((c) => structCap[0].startsWith(c.succeeding))?.source; + struct.member = {}; // structRE can not reliably extract the correct member declaration range - const memberList = getMemberList(header, structCap.index + structCap[1].length); + let memberList = getMemberList(header, structCap.index + structCap[1].length); + // discard pointer signs + memberList = memberList.replace(/\*/g, ''); let memberCap = structMemberRE.exec(memberList); while (memberCap) { @@ -178,6 +189,7 @@ while (structCap) { let n = Number.parseInt(value); if (!Number.isNaN(n)) { if (!value.startsWith('0x')) { value = n; } // keep hexadecimal numbers + if (isArray) { value = `[${value}]`; } } else if (value) { value = replaceConstants(value); if (isArray) { value = getArrayValue(decayedType, value); } @@ -242,12 +254,13 @@ output += `\n`; for (const name of Object.keys(structMap)) { if (name in ignoreList) { continue; } + const struct = structMap[name]; + if (struct.comments) { output += struct.comments + '\n'; } output += `export class ${name} {\n declare private _token: never; `; output += `// to make sure all usages must be an instance of this exact class, not assembled from plain object`; output += `\n\n constructor (\n`; - const struct = structMap[name]; for (const key in struct.member) { const { readonly, type, value } = struct.member[key]; const decl = readonly ? `readonly ${key}` : key; From 49c57bd9c50eccb5a54e66ccb85685d8675e20e4 Mon Sep 17 00:00:00 2001 From: timlyeee <43355299+timlyeee@users.noreply.github.com> Date: Fri, 21 Jan 2022 11:10:38 +0800 Subject: [PATCH 40/45] Add JsbBridgeWrapper for ohos (#4204) --- .../java/com/cocos/lib/JsbBridgeWrapper.java | 109 ++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/JsbBridgeWrapper.java diff --git a/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/JsbBridgeWrapper.java b/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/JsbBridgeWrapper.java new file mode 100644 index 0000000000..6bc71bb92b --- /dev/null +++ b/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/JsbBridgeWrapper.java @@ -0,0 +1,109 @@ +/**************************************************************************** + Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + ****************************************************************************/ +package com.cocos.lib; + +import java.util.ArrayList; +import java.util.HashMap; + +public class JsbBridgeWrapper { + //Interface for listener, should be implemented and dispatched + public interface OnScriptEventListener { + void onScriptEvent(String arg); + } + /** + * Get the instance of JsbBridgetWrapper + */ + public static JsbBridgeWrapper getInstance() { + if (instance == null) { + instance = new JsbBridgeWrapper(); + } + return instance; + } + /** + * Add a listener to specified event, if the event does not exist, the wrapper will create one. Concurrent listener will be ignored + */ + public void addScriptEventListener(String eventName, OnScriptEventListener listener) { + if (eventMap.get(eventName) == null) { + eventMap.put(eventName, new ArrayList()); + } + eventMap.get(eventName).add(listener); + } + /** + * Remove listener for specified event, concurrent event will be deleted. Return false only if the event does not exist + */ + public boolean removeScriptEventListener(String eventName, OnScriptEventListener listener) { + ArrayList arr = eventMap.get(eventName); + if (arr == null) { + return false; + } + arr.remove(listener); + return true; + } + /** + * Remove all listener for event specified. + */ + public void removeAllListenersForEvent(String eventName) { + this.eventMap.remove(eventName); + } + /** + * Remove all event registered. Use it carefully! + */ + public void removeAllListeners() { + this.eventMap.clear(); + } + /** + * Dispatch the event with argument, the event should be registered in javascript, or other script language in future. + */ + public void dispatchEventToScript(String eventName, String arg) { + JsbBridge.sendToScript(eventName, arg); + } + /** + * Dispatch the event which is registered in javascript, or other script language in future. + */ + public void dispatchEventToScript(String eventName) { + JsbBridge.sendToScript(eventName); + } + + private JsbBridgeWrapper() { + JsbBridge.setCallback(new JsbBridge.ICallback() { + @Override + public void onScript(String arg0, String arg1) { + triggerEvents(arg0, arg1); + } + }); + } + + private final HashMap> eventMap = new HashMap<>(); + private static JsbBridgeWrapper instance; + + private void triggerEvents(String eventName, String arg) { + ArrayList arr = eventMap.get(eventName); + if (arr == null) + return; + for (OnScriptEventListener m : arr) { + m.onScriptEvent(arg); + } + } +} From 83ecd197213ad0068c3cd9e543144dafb13802dd Mon Sep 17 00:00:00 2001 From: timlyeee <43355299+timlyeee@users.noreply.github.com> Date: Mon, 24 Jan 2022 10:25:05 +0800 Subject: [PATCH 41/45] Divide foreground tasks and all-time tasks (#4206) * Add JsbBridgeWrapper for ohos * Divide Foreground tasks and all-time tasks * implement a taskQ class * Add ohos support --- .../com/cocos/lib/CocosEditBoxActivity.java | 6 +-- .../java/src/com/cocos/lib/CocosHelper.java | 47 +++++++++++++------ .../com/cocos/lib/CocosKeyCodeHandler.java | 4 +- .../com/cocos/lib/CocosOrientationHelper.java | 2 +- .../src/com/cocos/lib/CocosSurfaceView.java | 2 +- .../src/com/cocos/lib/CocosTouchHandler.java | 12 ++--- .../src/com/cocos/lib/CocosVideoHelper.java | 4 +- .../java/src/com/cocos/lib/CocosWebView.java | 6 +-- .../platform/android/jni/JniCocosActivity.cpp | 3 ++ .../platform/ohos/jni/JniCocosAbility.cpp | 45 ++++++++++++++---- .../java/com/cocos/lib/CocosAbilitySlice.java | 2 +- .../com/cocos/lib/CocosEditBoxAbility.java | 6 +-- .../main/java/com/cocos/lib/CocosHelper.java | 45 +++++++++++------- .../com/cocos/lib/CocosKeyCodeHandler.java | 4 +- .../com/cocos/lib/CocosOrientationHelper.java | 2 +- .../java/com/cocos/lib/CocosTouchHandler.java | 8 ++-- .../java/com/cocos/lib/CocosVideoHelper.java | 4 +- .../main/java/com/cocos/lib/CocosWebView.java | 8 ++-- 18 files changed, 135 insertions(+), 75 deletions(-) diff --git a/native/cocos/platform/android/java/src/com/cocos/lib/CocosEditBoxActivity.java b/native/cocos/platform/android/java/src/com/cocos/lib/CocosEditBoxActivity.java index dbf29eb63d..4bed76fe11 100644 --- a/native/cocos/platform/android/java/src/com/cocos/lib/CocosEditBoxActivity.java +++ b/native/cocos/platform/android/java/src/com/cocos/lib/CocosEditBoxActivity.java @@ -434,7 +434,7 @@ public class CocosEditBoxActivity extends Activity { Native functions invoked by UI. **************************************************************************************/ private void onKeyboardInput(String text) { - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { CocosEditBoxActivity.onKeyboardInputNative(text); @@ -443,7 +443,7 @@ public class CocosEditBoxActivity extends Activity { } private void onKeyboardComplete(String text) { - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { CocosEditBoxActivity.onKeyboardCompleteNative(text); @@ -452,7 +452,7 @@ public class CocosEditBoxActivity extends Activity { } private void onKeyboardConfirm(String text) { - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { CocosEditBoxActivity.onKeyboardConfirmNative(text); diff --git a/native/cocos/platform/android/java/src/com/cocos/lib/CocosHelper.java b/native/cocos/platform/android/java/src/com/cocos/lib/CocosHelper.java index f163fc317b..dfcfc85abf 100644 --- a/native/cocos/platform/android/java/src/com/cocos/lib/CocosHelper.java +++ b/native/cocos/platform/android/java/src/com/cocos/lib/CocosHelper.java @@ -58,8 +58,11 @@ import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Collections; +import java.util.LinkedList; import java.util.List; import java.util.Locale; +import java.util.Queue; +import java.util.concurrent.locks.ReentrantLock; public class CocosHelper { @@ -86,9 +89,26 @@ public class CocosHelper { // The OBB file private static ZipResourceFile sOBBFile = null; - private static Object sTaskMtx = new Object(); - private static List sTaskOnGameThread = Collections.synchronizedList(new ArrayList<>()); + static class LockedTaskQ { + private final Object readMtx = new Object(); + private Queue sTaskQ = new LinkedList<>(); + public synchronized void addTask(Runnable runnable) { + sTaskQ.add(runnable); + } + public void runTasks(){ + Queue tmp; + synchronized (readMtx) { + tmp = sTaskQ; + sTaskQ = new LinkedList<>(); + } + for(Runnable runnable : tmp){ + runnable.run(); + } + } + } + private static LockedTaskQ sTaskQOnGameThread = new LockedTaskQ(); + private static LockedTaskQ sForegroundTaskQOnGameThread = new LockedTaskQ(); /** * Battery receiver to getting battery level. */ @@ -120,23 +140,20 @@ public class CocosHelper { context.unregisterReceiver(sBatteryReceiver); } + //Run on game thread forever, no matter foreground or background public static void runOnGameThread(final Runnable runnable) { - synchronized (sTaskMtx) { - sTaskOnGameThread.add(runnable); - } + sTaskQOnGameThread.addTask(runnable); } static void flushTasksOnGameThread() { - List tmp = sTaskOnGameThread; - synchronized (sTaskMtx) { - sTaskOnGameThread = Collections.synchronizedList(new ArrayList<>()); - } - while (tmp.size() > 0) { - Runnable r = tmp.remove(0); - if (r != null) { - r.run(); - } - } + sTaskQOnGameThread.runTasks(); + } + public static void runOnGameThreadAtForeground(final Runnable runnable) { + sForegroundTaskQOnGameThread.addTask(runnable); + } + + static void flushTasksOnGameThreadAtForeground() { + sForegroundTaskQOnGameThread.runTasks(); } public static int getNetworkType() { diff --git a/native/cocos/platform/android/java/src/com/cocos/lib/CocosKeyCodeHandler.java b/native/cocos/platform/android/java/src/com/cocos/lib/CocosKeyCodeHandler.java index f183a638e5..834d11792d 100644 --- a/native/cocos/platform/android/java/src/com/cocos/lib/CocosKeyCodeHandler.java +++ b/native/cocos/platform/android/java/src/com/cocos/lib/CocosKeyCodeHandler.java @@ -50,7 +50,7 @@ public class CocosKeyCodeHandler { case KeyEvent.KEYCODE_ENTER: case KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE: case KeyEvent.KEYCODE_DPAD_CENTER: - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { handleKeyDown(keyCode); @@ -73,7 +73,7 @@ public class CocosKeyCodeHandler { case KeyEvent.KEYCODE_ENTER: case KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE: case KeyEvent.KEYCODE_DPAD_CENTER: - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { handleKeyUp(keyCode); diff --git a/native/cocos/platform/android/java/src/com/cocos/lib/CocosOrientationHelper.java b/native/cocos/platform/android/java/src/com/cocos/lib/CocosOrientationHelper.java index d4d09e4479..43c4b3d9f6 100644 --- a/native/cocos/platform/android/java/src/com/cocos/lib/CocosOrientationHelper.java +++ b/native/cocos/platform/android/java/src/com/cocos/lib/CocosOrientationHelper.java @@ -49,7 +49,7 @@ public class CocosOrientationHelper extends OrientationEventListener { int curOrientation = CocosHelper.getDeviceRotation(); if (curOrientation != mCurrentOrientation) { mCurrentOrientation = CocosHelper.getDeviceRotation(); - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { nativeOnOrientationChanged(mCurrentOrientation); diff --git a/native/cocos/platform/android/java/src/com/cocos/lib/CocosSurfaceView.java b/native/cocos/platform/android/java/src/com/cocos/lib/CocosSurfaceView.java index 88a67dfd12..d808ce745d 100644 --- a/native/cocos/platform/android/java/src/com/cocos/lib/CocosSurfaceView.java +++ b/native/cocos/platform/android/java/src/com/cocos/lib/CocosSurfaceView.java @@ -41,7 +41,7 @@ public class CocosSurfaceView extends SurfaceView { @Override protected void onSizeChanged(int w, int h, int oldw, int oldh) { super.onSizeChanged(w, h, oldw, oldh); - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { nativeOnSizeChanged(w, h); diff --git a/native/cocos/platform/android/java/src/com/cocos/lib/CocosTouchHandler.java b/native/cocos/platform/android/java/src/com/cocos/lib/CocosTouchHandler.java index 4e8953ebd0..499c4d91ba 100644 --- a/native/cocos/platform/android/java/src/com/cocos/lib/CocosTouchHandler.java +++ b/native/cocos/platform/android/java/src/com/cocos/lib/CocosTouchHandler.java @@ -60,7 +60,7 @@ public class CocosTouchHandler { final int idPointerDown = pMotionEvent.getPointerId(indexPointerDown); final float xPointerDown = pMotionEvent.getX(indexPointerDown); final float yPointerDown = pMotionEvent.getY(indexPointerDown); - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { handleActionDown(idPointerDown, xPointerDown, yPointerDown); @@ -79,7 +79,7 @@ public class CocosTouchHandler { final float xDown = xs[0]; final float yDown = ys[0]; - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { handleActionDown(idDown, xDown, yDown); @@ -89,7 +89,7 @@ public class CocosTouchHandler { break; case MotionEvent.ACTION_MOVE: - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { handleActionMove(ids, xs, ys); @@ -103,7 +103,7 @@ public class CocosTouchHandler { final int idPointerUp = pMotionEvent.getPointerId(indexPointUp); final float xPointerUp = pMotionEvent.getX(indexPointUp); final float yPointerUp = pMotionEvent.getY(indexPointUp); - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { handleActionUp(idPointerUp, xPointerUp, yPointerUp); @@ -117,7 +117,7 @@ public class CocosTouchHandler { final int idUp = pMotionEvent.getPointerId(0); final float xUp = xs[0]; final float yUp = ys[0]; - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { handleActionUp(idUp, xUp, yUp); @@ -127,7 +127,7 @@ public class CocosTouchHandler { break; case MotionEvent.ACTION_CANCEL: - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { handleActionCancel(ids, xs, ys); diff --git a/native/cocos/platform/android/java/src/com/cocos/lib/CocosVideoHelper.java b/native/cocos/platform/android/java/src/com/cocos/lib/CocosVideoHelper.java index e0f7f86486..d1ce6d2433 100644 --- a/native/cocos/platform/android/java/src/com/cocos/lib/CocosVideoHelper.java +++ b/native/cocos/platform/android/java/src/com/cocos/lib/CocosVideoHelper.java @@ -170,7 +170,7 @@ public class CocosVideoHelper { @Override public void onVideoEvent(int tag,int event) { - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { nativeExecuteVideoCallback(tag, event); @@ -282,7 +282,7 @@ public class CocosVideoHelper { CocosVideoView videoView = sVideoViews.get(key); if (videoView != null) { videoView.setFullScreenEnabled(false); - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { nativeExecuteVideoCallback(key, KeyEventBack); diff --git a/native/cocos/platform/android/java/src/com/cocos/lib/CocosWebView.java b/native/cocos/platform/android/java/src/com/cocos/lib/CocosWebView.java index 09c713af4a..541e7921e7 100755 --- a/native/cocos/platform/android/java/src/com/cocos/lib/CocosWebView.java +++ b/native/cocos/platform/android/java/src/com/cocos/lib/CocosWebView.java @@ -109,7 +109,7 @@ import java.util.concurrent.CountDownLatch; try { URI uri = URI.create(urlString); if (uri != null && uri.getScheme().equals(mJSScheme)) { - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { CocosWebViewHelper._onJsCallback(mViewTag, urlString); @@ -141,7 +141,7 @@ import java.util.concurrent.CountDownLatch; public void onPageFinished(WebView view, final String url) { super.onPageFinished(view, url); - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { CocosWebViewHelper._didFinishLoading(mViewTag, url); @@ -153,7 +153,7 @@ import java.util.concurrent.CountDownLatch; public void onReceivedError(WebView view, int errorCode, String description, final String failingUrl) { super.onReceivedError(view, errorCode, description, failingUrl); - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { CocosWebViewHelper._didFailLoading(mViewTag, failingUrl); diff --git a/native/cocos/platform/android/jni/JniCocosActivity.cpp b/native/cocos/platform/android/jni/JniCocosActivity.cpp index 1840e24e83..bfdc1e9b03 100644 --- a/native/cocos/platform/android/jni/JniCocosActivity.cpp +++ b/native/cocos/platform/android/jni/JniCocosActivity.cpp @@ -169,6 +169,9 @@ void glThreadEntry() { "flushTasksOnGameThread"); } if (game && cc::cocosApp.animating) { + + cc::JniHelper::callStaticVoidMethod("com.cocos.lib.CocosHelper", + "flushTasksOnGameThreadAtForeground"); game->tick(); } if (cc::cocosApp.destroyRequested) break; diff --git a/native/cocos/platform/ohos/jni/JniCocosAbility.cpp b/native/cocos/platform/ohos/jni/JniCocosAbility.cpp index 398b05fcc7..a397391234 100644 --- a/native/cocos/platform/ohos/jni/JniCocosAbility.cpp +++ b/native/cocos/platform/ohos/jni/JniCocosAbility.cpp @@ -88,6 +88,28 @@ int readCommand(CommandMsg *msg) { return read(pipeRead, msg, sizeof(*msg)); } +int readCommandWithTimeout(CommandMsg *msg, int delayMS) { + if (delayMS > 0) { + static fd_set fdSet; + static timeval timeout; + + timeout = {delayMS / 1000, (delayMS % 1000) * 1000}; + FD_ZERO(&fdSet); + FD_SET(pipeRead, &fdSet); + + auto ret = select(pipeRead + 1, &fdSet, nullptr, nullptr, &timeout); + if (ret < 0) { + LOGV("failed to run select(..): %s\n", strerror(errno)); + return ret; + } + + if (ret == 0) { + return 0; + } + } + return read(pipeRead, msg, sizeof(*msg)); +} + void handlePauseResume(int8_t cmd) { LOGV("activityState=%d", cmd); cc::cocosApp.activityState = cmd; @@ -139,27 +161,32 @@ void glThreadEntry() { cc::cocosApp.glThreadPromise.set_value(); cc::cocosApp.running = true; - int cmd = 0; CommandMsg msg; + bool runInLowRate = false; while (true) { - if (readCommand(&msg) > 0) { - cmd = msg.cmd; - preExecCmd(cmd); - cc::View::engineHandleCmd(cmd); - postExecCmd(cmd); + runInLowRate = !cc::cocosApp.animating || ABILITY_CMD_PAUSE == cc::cocosApp.activityState; + if (readCommandWithTimeout(&msg, runInLowRate ? 50 : 0) > 0) { +// if(readCommand(0&msg)>0){ + preExecCmd(msg.cmd); + cc::View::engineHandleCmd(msg.cmd); + postExecCmd(msg.cmd); if (msg.callback) { msg.callback(); } } +// if (!cc::cocosApp.animating || ABILITY_CMD_PAUSE == cc::cocosApp.activityState) { +// std::this_thread::yield(); +// } - if (!cc::cocosApp.animating || ABILITY_CMD_PAUSE == cc::cocosApp.activityState) { - std::this_thread::yield(); + if (game) { + cc::JniHelper::callStaticVoidMethod("com.cocos.lib.CocosHelper", + "flushTasksOnGameThread"); } if (game && cc::cocosApp.animating) { // Handle java events send by UI thread. Input events are handled here too. cc::JniHelper::callStaticVoidMethod("com.cocos.lib.CocosHelper", - "flushTasksOnGameThread"); + "flushTasksOnGameThreadAtForeground"); game->tick(); } diff --git a/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosAbilitySlice.java b/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosAbilitySlice.java index 7f0e48c006..1116d108a4 100644 --- a/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosAbilitySlice.java +++ b/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosAbilitySlice.java @@ -152,7 +152,7 @@ public class CocosAbilitySlice extends AbilitySlice implements SurfaceOps.Callba mSurfaceProvider.setTouchEventListener(this); mSurfaceProvider.setLayoutRefreshedListener(component -> { // dispatch resize event - CocosHelper.runOnGameThread(()->{ + CocosHelper.runOnGameThreadAtForeground(()->{ onOrientationChangedNative(getDisplayOrientation(), component.getWidth(), component.getHeight()); }); }); diff --git a/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosEditBoxAbility.java b/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosEditBoxAbility.java index 738b05b8ea..c7aa591cdd 100644 --- a/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosEditBoxAbility.java +++ b/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosEditBoxAbility.java @@ -397,19 +397,19 @@ public class CocosEditBoxAbility extends AbilitySlice { Native functions invoked by UI. **************************************************************************************/ private void onKeyboardInput(String text) { - CocosHelper.runOnGameThread(() -> + CocosHelper.runOnGameThreadAtForeground(() -> CocosEditBoxAbility.onKeyboardInputNative(text) ); } private void onKeyboardComplete(String text) { - CocosHelper.runOnGameThread(() -> + CocosHelper.runOnGameThreadAtForeground(() -> CocosEditBoxAbility.onKeyboardCompleteNative(text) ); } private void onKeyboardConfirm(String text) { - CocosHelper.runOnGameThread(() -> + CocosHelper.runOnGameThreadAtForeground(() -> CocosEditBoxAbility.onKeyboardConfirmNative(text) ); } diff --git a/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosHelper.java b/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosHelper.java index cbea0ec5b4..0d8bfbfab2 100644 --- a/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosHelper.java +++ b/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosHelper.java @@ -80,9 +80,26 @@ public class CocosHelper { private static String sObbFilePath = ""; - private static Object sTaskMtx = new Object(); - private static List sTaskOnGameThread = Collections.synchronizedList(new ArrayList<>()); + static class LockedTaskQ { + private final Object readMtx = new Object(); + private Queue sTaskQ = new LinkedList<>(); + public synchronized void addTask(Runnable runnable) { + sTaskQ.add(runnable); + } + public void runTasks(){ + Queue tmp; + synchronized (readMtx) { + tmp = sTaskQ; + sTaskQ = new LinkedList<>(); + } + for(Runnable runnable : tmp){ + runnable.run(); + } + } + } + private static LockedTaskQ sTaskQOnGameThread = new LockedTaskQ(); + private static LockedTaskQ sForegroundTaskQOnGameThread = new LockedTaskQ(); /** * Battery receiver to getting battery level. */ @@ -131,24 +148,20 @@ public class CocosHelper { } } + //Run on game thread forever, no matter foreground or background public static void runOnGameThread(final Runnable runnable) { - synchronized (sTaskMtx) { - sTaskOnGameThread.add(runnable); - } + sTaskQOnGameThread.addTask(runnable); } - @SuppressWarnings("unused") static void flushTasksOnGameThread() { - List tmp = sTaskOnGameThread; - synchronized (sTaskMtx) { - sTaskOnGameThread = Collections.synchronizedList(new ArrayList<>()); - } - while (tmp.size() > 0) { - Runnable r = tmp.remove(0); - if (r != null) { - r.run(); - } - } + sTaskQOnGameThread.runTasks(); + } + public static void runOnGameThreadAtForeground(final Runnable runnable) { + sForegroundTaskQOnGameThread.addTask(runnable); + } + @SuppressWarnings("unused") + static void flushTasksOnGameThreadAtForeground() { + sForegroundTaskQOnGameThread.runTasks(); } @SuppressWarnings("unused") diff --git a/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosKeyCodeHandler.java b/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosKeyCodeHandler.java index fc5b58687e..26f19e9134 100644 --- a/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosKeyCodeHandler.java +++ b/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosKeyCodeHandler.java @@ -51,7 +51,7 @@ public class CocosKeyCodeHandler { case KeyEvent.KEY_ENTER: case KeyEvent.KEY_MEDIA_PLAY_PAUSE: case KeyEvent.KEY_DPAD_CENTER: - CocosHelper.runOnGameThread(() -> handleKeyDown(keyCode)); + CocosHelper.runOnGameThreadAtForeground(() -> handleKeyDown(keyCode)); return true; default: return false; @@ -69,7 +69,7 @@ public class CocosKeyCodeHandler { case KeyEvent.KEY_ENTER: case KeyEvent.KEY_MEDIA_PLAY_PAUSE: case KeyEvent.KEY_DPAD_CENTER: - CocosHelper.runOnGameThread(() -> handleKeyDown(keyCode)); + CocosHelper.runOnGameThreadAtForeground(() -> handleKeyDown(keyCode)); return true; default: return false; diff --git a/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosOrientationHelper.java b/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosOrientationHelper.java index a1171a5643..62b14c9028 100644 --- a/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosOrientationHelper.java +++ b/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosOrientationHelper.java @@ -63,7 +63,7 @@ public class CocosOrientationHelper implements ICategoryOrientationDataCallback final int curOrientation = CocosHelper.getDeviceRotation(); if (curOrientation != mCurrentOrientation) { mCurrentOrientation = curOrientation; - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { nativeOnOrientationChanged(mCurrentOrientation); diff --git a/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosTouchHandler.java b/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosTouchHandler.java index 1b5323244c..4f99b0904f 100644 --- a/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosTouchHandler.java +++ b/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosTouchHandler.java @@ -69,7 +69,7 @@ public class CocosTouchHandler { MmiPoint pos = pMotionEvent.getPointerPosition(indexPointerDown); final float xPointerDown = pos.getX(); final float yPointerDown = pos.getY(); - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { handleActionDown(idPointerDown, xPointerDown, yPointerDown); @@ -78,7 +78,7 @@ public class CocosTouchHandler { break; case TouchEvent.POINT_MOVE: - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { handleActionMove(ids, xs, ys); @@ -95,7 +95,7 @@ public class CocosTouchHandler { MmiPoint posUP = pMotionEvent.getPointerPosition(indexPointUp); final float xPointerUp = posUP.getX(); final float yPointerUp = posUP.getY(); - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { handleActionUp(idPointerUp, xPointerUp, yPointerUp); @@ -105,7 +105,7 @@ public class CocosTouchHandler { break; case TouchEvent.CANCEL: - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { handleActionCancel(ids, xs, ys); diff --git a/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosVideoHelper.java b/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosVideoHelper.java index a36e726674..2f787d76be 100644 --- a/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosVideoHelper.java +++ b/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosVideoHelper.java @@ -171,7 +171,7 @@ public class CocosVideoHelper { @Override public void onVideoEvent(int tag,int event) { - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { nativeExecuteVideoCallback(tag, event); @@ -294,7 +294,7 @@ public class CocosVideoHelper { CocosVideoView videoView = sVideoViews.get(key); if (videoView != null) { videoView.setFullScreenEnabled(false); - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { nativeExecuteVideoCallback(key, KeyEventBack); diff --git a/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosWebView.java b/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosWebView.java index 90dc06e583..d88137adf2 100644 --- a/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosWebView.java +++ b/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosWebView.java @@ -78,7 +78,7 @@ public class CocosWebView extends WebView { try { URI uri = new URI(request.getRequestUrl().toString()); if (uri.getScheme().equals(mJSScheme)) { - CocosHelper.runOnGameThread( + CocosHelper.runOnGameThreadAtForeground( () -> CocosWebViewHelper._onJsCallback(mViewTag, urlString) ); return true; @@ -92,7 +92,7 @@ public class CocosWebView extends WebView { ); // run worker on cocos thread - CocosHelper.runOnGameThread(shouldStartLoadingCB); + CocosHelper.runOnGameThreadAtForeground(shouldStartLoadingCB); // wait for result from cocos thread try { @@ -109,7 +109,7 @@ public class CocosWebView extends WebView { public void onPageLoaded(WebView view, final String url) { super.onPageLoaded(view, url); - CocosHelper.runOnGameThread( + CocosHelper.runOnGameThreadAtForeground( () -> CocosWebViewHelper._didFinishLoading(mViewTag, url) ); } @@ -118,7 +118,7 @@ public class CocosWebView extends WebView { public void onError(WebView view, ResourceRequest request, ResourceError error) { super.onError(view, request, error); final String failingUrl = request.getRequestUrl().toString(); - CocosHelper.runOnGameThread( + CocosHelper.runOnGameThreadAtForeground( () -> CocosWebViewHelper._didFailLoading(mViewTag, failingUrl) ); } From 45f096ead8b26934921a50c5c41fbc6403b0fb5d Mon Sep 17 00:00:00 2001 From: minggo Date: Mon, 24 Jan 2022 16:42:39 +0800 Subject: [PATCH 42/45] fix compiling error --- .../platform/java/jni/glue/JniNativeGlue.cpp | 22 ++----------------- .../platform/java/jni/glue/MessagePipe.cpp | 22 +++++++++++++++++++ .../platform/java/jni/glue/MessagePipe.h | 1 + 3 files changed, 25 insertions(+), 20 deletions(-) diff --git a/native/cocos/platform/java/jni/glue/JniNativeGlue.cpp b/native/cocos/platform/java/jni/glue/JniNativeGlue.cpp index a5968e35c8..e5522b4253 100644 --- a/native/cocos/platform/java/jni/glue/JniNativeGlue.cpp +++ b/native/cocos/platform/java/jni/glue/JniNativeGlue.cpp @@ -131,25 +131,7 @@ int JniNativeGlue::readCommand(CommandMsg* msg) { } int JniNativeGlue::readCommandWithTimeout(CommandMsg* cmd, int delayMS) { - if (delayMS > 0) { - static fd_set fdSet; - static timeval timeout; - - timeout = {delayMS / 1000, (delayMS % 1000) * 1000}; - FD_ZERO(&fdSet); - FD_SET(pipeRead, &fdSet); - - auto ret = select(pipeRead + 1, &fdSet, nullptr, nullptr, &timeout); - if (ret < 0) { - LOGV("failed to run select(..): %s\n", strerror(errno)); - return ret; - } - - if (ret == 0) { - return 0; - } - } - return readCommand(cmd); + return _messagePipe->readCommandWithTimeout(cmd, sizeof(CommandMsg), delayMS); } void JniNativeGlue::setEventDispatch(IEventDispatch* eventDispatcher) { @@ -193,7 +175,7 @@ void JniNativeGlue::onLowMemory() { void JniNativeGlue::execCommand() { static CommandMsg msg; static bool runInLowRate{false}; - runInLowRate = !_animating || APP_CMD_PAUSE == _appState; + runInLowRate = !_animating || JniCommand::JNI_CMD_PAUSE == _appState; if (readCommandWithTimeout(&msg, runInLowRate ? 50 : 0) > 0) { preExecCmd(msg.cmd); diff --git a/native/cocos/platform/java/jni/glue/MessagePipe.cpp b/native/cocos/platform/java/jni/glue/MessagePipe.cpp index 38d1f75d62..bf26a3c106 100644 --- a/native/cocos/platform/java/jni/glue/MessagePipe.cpp +++ b/native/cocos/platform/java/jni/glue/MessagePipe.cpp @@ -57,6 +57,28 @@ int MessagePipe::readCommand(int8_t& cmd) const { return read(_pipeRead, &cmd, sizeof(cmd)); } +int MessagePipe::readCommandWithTimeout(void* msg, int32_t size, int delayMS) { + if (delayMS > 0) { + static fd_set fdSet; + static timeval timeout; + + timeout = {delayMS / 1000, (delayMS % 1000) * 1000}; + FD_ZERO(&fdSet); + FD_SET(_pipeRead, &fdSet); + + auto ret = select(_pipeRead + 1, &fdSet, nullptr, nullptr, &timeout); + if (ret < 0) { + LOGV("failed to run select(..): %s\n", strerror(errno)); + return ret; + } + + if (ret == 0) { + return 0; + } + } + return readCommand(msg, size); +} + void MessagePipe::writeCommand(void* msg, int32_t size) const { write(_pipeWrite, msg, size); } diff --git a/native/cocos/platform/java/jni/glue/MessagePipe.h b/native/cocos/platform/java/jni/glue/MessagePipe.h index 7674c3fe38..e6ed5243fd 100644 --- a/native/cocos/platform/java/jni/glue/MessagePipe.h +++ b/native/cocos/platform/java/jni/glue/MessagePipe.h @@ -38,6 +38,7 @@ public: int readCommand(int8_t& cmd) const; void writeCommand(void* msg, int32_t size) const; int readCommand(void* msg, int32_t size) const; + int readCommandWithTimeout(void* msg, int32_t size, int delayMS); private: int _pipeRead = 0; From 14a17c9d22a14c00ec2bacfc167b2ccc1a7aa85e Mon Sep 17 00:00:00 2001 From: Yun Hsiao Wu Date: Mon, 24 Jan 2022 17:18:47 +0800 Subject: [PATCH 43/45] license upgrade (#4210) --- .../cocos/application/ApplicationManager.cpp | 2 +- native/cocos/application/ApplicationManager.h | 2 +- native/cocos/application/BaseApplication.h | 2 +- native/cocos/application/CocosApplication.cpp | 2 +- native/cocos/application/CocosApplication.h | 2 +- native/cocos/audio/AudioEngine.cpp | 2 +- native/cocos/audio/apple/AudioCache.h | 2 +- native/cocos/audio/apple/AudioCache.mm | 2 +- native/cocos/audio/apple/AudioDecoder.h | 2 +- native/cocos/audio/apple/AudioDecoder.mm | 2 +- native/cocos/audio/apple/AudioEngine-inl.h | 2 +- native/cocos/audio/apple/AudioEngine-inl.mm | 2 +- native/cocos/audio/apple/AudioMacros.h | 2 +- native/cocos/audio/apple/AudioPlayer.h | 2 +- native/cocos/audio/apple/AudioPlayer.mm | 2 +- native/cocos/audio/include/AudioEngine.h | 2 +- native/cocos/audio/include/Export.h | 2 +- native/cocos/audio/oalsoft/AudioCache.cpp | 2 +- native/cocos/audio/oalsoft/AudioCache.h | 2 +- native/cocos/audio/oalsoft/AudioDecoder.cpp | 5 +- native/cocos/audio/oalsoft/AudioDecoder.h | 2 +- .../audio/oalsoft/AudioDecoderManager.cpp | 2 +- .../cocos/audio/oalsoft/AudioDecoderManager.h | 2 +- .../cocos/audio/oalsoft/AudioDecoderMp3.cpp | 5 +- native/cocos/audio/oalsoft/AudioDecoderMp3.h | 2 +- .../cocos/audio/oalsoft/AudioDecoderOgg.cpp | 5 +- native/cocos/audio/oalsoft/AudioDecoderOgg.h | 2 +- .../cocos/audio/oalsoft/AudioEngine-soft.cpp | 5 +- native/cocos/audio/oalsoft/AudioEngine-soft.h | 2 +- native/cocos/audio/oalsoft/AudioMacros.h | 2 +- native/cocos/audio/oalsoft/AudioPlayer.cpp | 2 +- native/cocos/audio/oalsoft/AudioPlayer.h | 2 +- native/cocos/audio/ohos/AudioDecoderWav.cpp | 37 ++-- native/cocos/audio/ohos/AudioDecoderWav.h | 37 ++-- native/cocos/audio/ohos/FsCallback.cpp | 25 +++ native/cocos/audio/ohos/FsCallback.h | 25 +++ native/cocos/base/Agent.h | 2 +- native/cocos/base/AutoreleasePool.cpp | 2 +- native/cocos/base/AutoreleasePool.h | 2 +- native/cocos/base/CachedArray.h | 2 +- native/cocos/base/Config.h | 2 +- native/cocos/base/CoreStd.h | 2 +- native/cocos/base/Data.cpp | 2 +- native/cocos/base/Data.h | 2 +- native/cocos/base/IndexHandle.h | 2 +- native/cocos/base/Locked.h | 2 +- native/cocos/base/Log.cpp | 2 +- native/cocos/base/Log.h | 2 +- native/cocos/base/Macros.h | 2 +- native/cocos/base/Map.h | 2 +- native/cocos/base/Object.h | 2 +- native/cocos/base/Random.h | 2 +- native/cocos/base/Ref.cpp | 2 +- native/cocos/base/Ref.h | 2 +- native/cocos/base/Scheduler.cpp | 2 +- native/cocos/base/Scheduler.h | 2 +- native/cocos/base/StringHandle.cpp | 2 +- native/cocos/base/StringHandle.h | 2 +- native/cocos/base/StringPool.h | 2 +- native/cocos/base/StringUtil.cpp | 2 +- native/cocos/base/StringUtil.h | 2 +- native/cocos/base/ThreadPool.cpp | 2 +- native/cocos/base/ThreadPool.h | 2 +- native/cocos/base/Timer.cpp | 12 +- native/cocos/base/Timer.h | 12 +- native/cocos/base/TypeDef.h | 2 +- native/cocos/base/UTF8.cpp | 2 +- native/cocos/base/UTF8.h | 2 +- native/cocos/base/Utils.cpp | 2 +- native/cocos/base/Utils.h | 2 +- native/cocos/base/Value.cpp | 2 +- native/cocos/base/Value.h | 2 +- native/cocos/base/Vector.h | 2 +- native/cocos/base/ZipUtils.cpp | 2 +- native/cocos/base/ZipUtils.h | 2 +- native/cocos/base/astc.cpp | 2 +- native/cocos/base/astc.h | 2 +- native/cocos/base/base64.cpp | 2 +- native/cocos/base/base64.h | 2 +- native/cocos/base/csscolorparser.cpp | 2 +- native/cocos/base/csscolorparser.h | 2 +- native/cocos/base/etc1.cpp | 2 +- native/cocos/base/etc1.h | 2 +- native/cocos/base/etc2.cpp | 2 +- native/cocos/base/etc2.h | 2 +- native/cocos/base/job-system/JobSystem.h | 2 +- .../job-system-dummy/DummyJobGraph.cpp | 2 +- .../job-system-dummy/DummyJobGraph.h | 2 +- .../job-system-dummy/DummyJobSystem.cpp | 2 +- .../job-system-dummy/DummyJobSystem.h | 2 +- .../job-system-taskflow/TFJobGraph.cpp | 2 +- .../job-system-taskflow/TFJobGraph.h | 2 +- .../job-system-taskflow/TFJobSystem.cpp | 2 +- .../job-system-taskflow/TFJobSystem.h | 2 +- .../job-system/job-system-tbb/TBBJobGraph.cpp | 2 +- .../job-system/job-system-tbb/TBBJobGraph.h | 2 +- .../job-system-tbb/TBBJobSystem.cpp | 2 +- .../job-system/job-system-tbb/TBBJobSystem.h | 2 +- native/cocos/base/memory/CallStack.cpp | 2 +- native/cocos/base/memory/CallStack.h | 2 +- native/cocos/base/memory/Memory.cpp | 2 +- native/cocos/base/memory/Memory.h | 2 +- native/cocos/base/memory/MemoryHook.cpp | 2 +- native/cocos/base/memory/MemoryHook.h | 2 +- .../base/threading/AutoReleasePool-apple.mm | 12 +- .../cocos/base/threading/AutoReleasePool.cpp | 12 +- native/cocos/base/threading/AutoReleasePool.h | 12 +- .../base/threading/ConditionVariable.cpp | 2 +- .../cocos/base/threading/ConditionVariable.h | 2 +- native/cocos/base/threading/Event.h | 2 +- native/cocos/base/threading/MessageQueue.cpp | 2 +- native/cocos/base/threading/MessageQueue.h | 2 +- native/cocos/base/threading/ReadWriteLock.h | 2 +- native/cocos/base/threading/Semaphore.cpp | 2 +- native/cocos/base/threading/Semaphore.h | 2 +- native/cocos/base/threading/ThreadPool.cpp | 2 +- native/cocos/base/threading/ThreadPool.h | 2 +- .../cocos/base/threading/ThreadSafeCounter.h | 2 +- .../threading/ThreadSafeLinearAllocator.cpp | 2 +- .../threading/ThreadSafeLinearAllocator.h | 2 +- native/cocos/bindings/auto/jsb_audio_auto.cpp | 29 ++- native/cocos/bindings/auto/jsb_audio_auto.h | 25 +++ native/cocos/bindings/auto/jsb_cocos_auto.cpp | 28 ++- native/cocos/bindings/auto/jsb_cocos_auto.h | 26 ++- .../bindings/auto/jsb_dragonbones_auto.cpp | 33 +++- .../bindings/auto/jsb_dragonbones_auto.h | 25 +++ .../bindings/auto/jsb_editor_support_auto.cpp | 30 ++- .../bindings/auto/jsb_editor_support_auto.h | 26 ++- .../bindings/auto/jsb_extension_auto.cpp | 34 +++- .../cocos/bindings/auto/jsb_extension_auto.h | 25 +++ native/cocos/bindings/auto/jsb_gfx_auto.cpp | 26 ++- native/cocos/bindings/auto/jsb_gfx_auto.h | 26 ++- .../cocos/bindings/auto/jsb_network_auto.cpp | 28 ++- native/cocos/bindings/auto/jsb_network_auto.h | 26 ++- .../cocos/bindings/auto/jsb_physics_auto.cpp | 26 ++- native/cocos/bindings/auto/jsb_physics_auto.h | 26 ++- .../cocos/bindings/auto/jsb_pipeline_auto.cpp | 26 ++- .../cocos/bindings/auto/jsb_pipeline_auto.h | 26 ++- native/cocos/bindings/auto/jsb_scene_auto.cpp | 26 ++- native/cocos/bindings/auto/jsb_scene_auto.h | 26 ++- native/cocos/bindings/auto/jsb_spine_auto.cpp | 60 ++++-- native/cocos/bindings/auto/jsb_spine_auto.h | 26 ++- native/cocos/bindings/auto/jsb_video_auto.cpp | 27 ++- native/cocos/bindings/auto/jsb_video_auto.h | 25 +++ .../cocos/bindings/auto/jsb_webview_auto.cpp | 33 +++- native/cocos/bindings/auto/jsb_webview_auto.h | 25 +++ native/cocos/bindings/dop/BufferAllocator.cpp | 2 +- native/cocos/bindings/dop/BufferAllocator.h | 2 +- native/cocos/bindings/dop/BufferPool.cpp | 2 +- native/cocos/bindings/dop/BufferPool.h | 2 +- native/cocos/bindings/dop/PoolType.h | 2 +- native/cocos/bindings/dop/jsb_dop.cpp | 2 +- native/cocos/bindings/dop/jsb_dop.h | 2 +- .../cocos/bindings/event/CustomEventTypes.h | 2 +- .../cocos/bindings/event/EventDispatcher.cpp | 2 +- native/cocos/bindings/event/EventDispatcher.h | 2 +- .../cocos/bindings/jswrapper/HandleObject.cpp | 2 +- .../cocos/bindings/jswrapper/HandleObject.h | 2 +- .../cocos/bindings/jswrapper/MappingUtils.cpp | 2 +- .../cocos/bindings/jswrapper/MappingUtils.h | 2 +- native/cocos/bindings/jswrapper/Object.h | 2 +- .../cocos/bindings/jswrapper/RefCounter.cpp | 2 +- native/cocos/bindings/jswrapper/RefCounter.h | 2 +- native/cocos/bindings/jswrapper/SeApi.h | 2 +- native/cocos/bindings/jswrapper/State.cpp | 2 +- native/cocos/bindings/jswrapper/State.h | 2 +- native/cocos/bindings/jswrapper/Value.cpp | 2 +- native/cocos/bindings/jswrapper/Value.h | 2 +- .../bindings/jswrapper/chakracore/Base.h | 2 +- .../bindings/jswrapper/chakracore/Class.cpp | 2 +- .../bindings/jswrapper/chakracore/Class.h | 2 +- .../jswrapper/chakracore/HelperMacros.h | 2 +- .../bindings/jswrapper/chakracore/Object.cpp | 2 +- .../bindings/jswrapper/chakracore/Object.h | 2 +- .../jswrapper/chakracore/ScriptEngine.cpp | 2 +- .../jswrapper/chakracore/ScriptEngine.h | 2 +- .../bindings/jswrapper/chakracore/SeApi.h | 2 +- .../bindings/jswrapper/chakracore/Utils.cpp | 2 +- .../bindings/jswrapper/chakracore/Utils.h | 2 +- native/cocos/bindings/jswrapper/config.cpp | 2 +- native/cocos/bindings/jswrapper/config.h | 2 +- native/cocos/bindings/jswrapper/jsc/Base.h | 2 +- native/cocos/bindings/jswrapper/jsc/Class.cpp | 2 +- native/cocos/bindings/jswrapper/jsc/Class.h | 2 +- .../cocos/bindings/jswrapper/jsc/EJConvert.h | 2 +- .../jswrapper/jsc/EJConvertTypedArray.h | 2 +- .../bindings/jswrapper/jsc/HelperMacros.h | 2 +- native/cocos/bindings/jswrapper/jsc/Object.h | 2 +- native/cocos/bindings/jswrapper/jsc/Object.mm | 2 +- .../bindings/jswrapper/jsc/PlatformUtils.h | 2 +- .../bindings/jswrapper/jsc/PlatformUtils.mm | 2 +- .../bindings/jswrapper/jsc/ScriptEngine.h | 2 +- .../bindings/jswrapper/jsc/ScriptEngine.mm | 2 +- native/cocos/bindings/jswrapper/jsc/SeApi.h | 2 +- native/cocos/bindings/jswrapper/jsc/Utils.cpp | 2 +- native/cocos/bindings/jswrapper/jsc/Utils.h | 2 +- native/cocos/bindings/jswrapper/sm/Base.h | 2 +- native/cocos/bindings/jswrapper/sm/Class.cpp | 2 +- native/cocos/bindings/jswrapper/sm/Class.h | 2 +- .../bindings/jswrapper/sm/HelperMacros.h | 2 +- native/cocos/bindings/jswrapper/sm/Object.cpp | 2 +- native/cocos/bindings/jswrapper/sm/Object.h | 2 +- .../bindings/jswrapper/sm/ScriptEngine.cpp | 2 +- .../bindings/jswrapper/sm/ScriptEngine.h | 2 +- native/cocos/bindings/jswrapper/sm/SeApi.h | 2 +- native/cocos/bindings/jswrapper/sm/Utils.cpp | 2 +- native/cocos/bindings/jswrapper/sm/Utils.h | 2 +- native/cocos/bindings/jswrapper/v8/Base.h | 2 +- native/cocos/bindings/jswrapper/v8/Class.cpp | 2 +- native/cocos/bindings/jswrapper/v8/Class.h | 2 +- .../bindings/jswrapper/v8/HelperMacros.cpp | 2 +- .../bindings/jswrapper/v8/HelperMacros.h | 2 +- .../bindings/jswrapper/v8/MissingSymbols.cpp | 3 +- .../bindings/jswrapper/v8/MissingSymbols.h | 3 +- native/cocos/bindings/jswrapper/v8/Object.cpp | 2 +- native/cocos/bindings/jswrapper/v8/Object.h | 2 +- .../bindings/jswrapper/v8/ObjectWrap.cpp | 2 +- .../cocos/bindings/jswrapper/v8/ObjectWrap.h | 2 +- .../bindings/jswrapper/v8/ScriptEngine.cpp | 2 +- .../bindings/jswrapper/v8/ScriptEngine.h | 2 +- native/cocos/bindings/jswrapper/v8/SeApi.h | 2 +- native/cocos/bindings/jswrapper/v8/Utils.cpp | 2 +- native/cocos/bindings/jswrapper/v8/Utils.h | 2 +- .../bindings/manual/JavaScriptJavaBridge.cpp | 2 +- .../bindings/manual/JavaScriptJavaBridge.h | 2 +- .../bindings/manual/JavaScriptObjCBridge.h | 2 +- .../bindings/manual/JavaScriptObjCBridge.mm | 2 +- .../cocos/bindings/manual/jsb_classtype.cpp | 2 +- native/cocos/bindings/manual/jsb_classtype.h | 2 +- .../bindings/manual/jsb_cocos_manual.cpp | 2 +- .../cocos/bindings/manual/jsb_cocos_manual.h | 2 +- .../cocos/bindings/manual/jsb_conversions.cpp | 2 +- .../cocos/bindings/manual/jsb_conversions.h | 2 +- .../manual/jsb_dragonbones_manual.cpp | 2 +- .../bindings/manual/jsb_dragonbones_manual.h | 2 +- .../bindings/manual/jsb_extension_manual.cpp | 2 +- .../bindings/manual/jsb_extension_manual.h | 2 +- .../cocos/bindings/manual/jsb_gfx_manual.cpp | 2 +- native/cocos/bindings/manual/jsb_gfx_manual.h | 2 +- native/cocos/bindings/manual/jsb_global.cpp | 2 +- native/cocos/bindings/manual/jsb_global.h | 2 +- .../cocos/bindings/manual/jsb_global_init.cpp | 2 +- .../cocos/bindings/manual/jsb_global_init.h | 2 +- native/cocos/bindings/manual/jsb_helper.cpp | 2 +- native/cocos/bindings/manual/jsb_helper.h | 2 +- .../bindings/manual/jsb_module_register.cpp | 2 +- .../bindings/manual/jsb_module_register.h | 2 +- .../bindings/manual/jsb_network_manual.cpp | 2 +- .../bindings/manual/jsb_network_manual.h | 2 +- .../bindings/manual/jsb_pipeline_manual.cpp | 2 +- .../bindings/manual/jsb_pipeline_manual.h | 2 +- native/cocos/bindings/manual/jsb_platform.h | 2 +- .../bindings/manual/jsb_platform_android.cpp | 2 +- .../bindings/manual/jsb_platform_ohos.cpp | 5 +- .../bindings/manual/jsb_platfrom_apple.mm | 2 +- .../bindings/manual/jsb_platfrom_linux.cpp | 2 +- .../bindings/manual/jsb_platfrom_qnx.cpp | 2 +- .../bindings/manual/jsb_platfrom_win32.cpp | 2 +- .../bindings/manual/jsb_scene_manual.cpp | 4 +- .../cocos/bindings/manual/jsb_scene_manual.h | 12 +- .../bindings/manual/jsb_scene_manual_ext.cpp | 25 +++ native/cocos/bindings/manual/jsb_socketio.cpp | 2 +- native/cocos/bindings/manual/jsb_socketio.h | 2 +- .../bindings/manual/jsb_spine_manual.cpp | 2 +- .../cocos/bindings/manual/jsb_spine_manual.h | 2 +- .../cocos/bindings/manual/jsb_websocket.cpp | 2 +- native/cocos/bindings/manual/jsb_websocket.h | 2 +- .../bindings/manual/jsb_websocket_server.cpp | 2 +- .../bindings/manual/jsb_websocket_server.h | 2 +- .../bindings/manual/jsb_xmlhttprequest.cpp | 2 +- .../bindings/manual/jsb_xmlhttprequest.h | 2 +- native/cocos/editor-support/IOBuffer.cpp | 2 +- native/cocos/editor-support/IOBuffer.h | 2 +- native/cocos/editor-support/IOTypedArray.cpp | 2 +- native/cocos/editor-support/IOTypedArray.h | 2 +- native/cocos/editor-support/MeshBuffer.cpp | 2 +- native/cocos/editor-support/MeshBuffer.h | 2 +- native/cocos/editor-support/MiddlewareMacro.h | 2 +- .../editor-support/MiddlewareManager.cpp | 2 +- .../cocos/editor-support/MiddlewareManager.h | 2 +- .../editor-support/SharedBufferManager.cpp | 2 +- .../editor-support/SharedBufferManager.h | 2 +- .../cocos/editor-support/TypedArrayPool.cpp | 2 +- native/cocos/editor-support/TypedArrayPool.h | 2 +- .../editor-support/middleware-adapter.cpp | 2 +- .../cocos/editor-support/middleware-adapter.h | 2 +- native/cocos/engine/BaseEngine.cpp | 2 +- native/cocos/engine/BaseEngine.h | 2 +- native/cocos/engine/Engine.cpp | 2 +- native/cocos/engine/Engine.h | 2 +- native/cocos/main/main-ios.mm | 3 +- native/cocos/main/main-linux.cpp | 3 +- native/cocos/main/main-mac.mm | 3 +- native/cocos/main/main-qnx.cpp | 3 +- native/cocos/main/main-win32.cpp | 3 +- native/cocos/network/Downloader-curl.cpp | 2 +- native/cocos/network/Downloader-curl.h | 2 +- native/cocos/network/Downloader-java.cpp | 2 +- native/cocos/network/Downloader-java.h | 2 +- native/cocos/network/Downloader.cpp | 2 +- native/cocos/network/Downloader.h | 2 +- native/cocos/network/DownloaderImpl-apple.h | 2 +- native/cocos/network/DownloaderImpl-apple.mm | 2 +- native/cocos/network/DownloaderImpl.h | 2 +- .../cocos/network/HttpAsynConnection-apple.h | 2 +- native/cocos/network/HttpClient-apple.mm | 2 +- native/cocos/network/HttpClient-java.cpp | 2 +- native/cocos/network/HttpClient.cpp | 2 +- native/cocos/network/HttpClient.h | 2 +- native/cocos/network/HttpCookie.cpp | 2 +- native/cocos/network/HttpCookie.h | 2 +- native/cocos/network/HttpRequest.h | 2 +- native/cocos/network/HttpResponse.h | 2 +- native/cocos/network/SocketIO.cpp | 2 +- native/cocos/network/SocketIO.h | 2 +- native/cocos/network/WebSocket-apple.mm | 2 +- .../cocos/network/WebSocket-libwebsockets.cpp | 2 +- native/cocos/network/WebSocket.h | 2 +- native/cocos/network/WebSocketServer.cpp | 2 +- native/cocos/network/WebSocketServer.h | 2 +- native/cocos/physics/PhysicsSDK.h | 2 +- native/cocos/physics/PhysicsSelector.h | 2 +- native/cocos/physics/physx/PhysX.h | 2 +- .../cocos/physics/physx/PhysXEventManager.cpp | 2 +- .../cocos/physics/physx/PhysXEventManager.h | 2 +- .../cocos/physics/physx/PhysXFilterShader.cpp | 2 +- .../cocos/physics/physx/PhysXFilterShader.h | 2 +- native/cocos/physics/physx/PhysXInc.h | 2 +- native/cocos/physics/physx/PhysXRigidBody.cpp | 2 +- native/cocos/physics/physx/PhysXRigidBody.h | 2 +- .../cocos/physics/physx/PhysXSharedBody.cpp | 2 +- native/cocos/physics/physx/PhysXSharedBody.h | 2 +- native/cocos/physics/physx/PhysXUtils.cpp | 2 +- native/cocos/physics/physx/PhysXUtils.h | 2 +- native/cocos/physics/physx/PhysXWorld.cpp | 2 +- native/cocos/physics/physx/PhysXWorld.h | 2 +- .../physics/physx/joints/PhysXDistance.cpp | 2 +- .../physics/physx/joints/PhysXDistance.h | 2 +- .../cocos/physics/physx/joints/PhysXJoint.cpp | 2 +- .../cocos/physics/physx/joints/PhysXJoint.h | 2 +- .../physics/physx/joints/PhysXRevolute.cpp | 2 +- .../physics/physx/joints/PhysXRevolute.h | 2 +- .../cocos/physics/physx/shapes/PhysXBox.cpp | 2 +- native/cocos/physics/physx/shapes/PhysXBox.h | 2 +- .../physics/physx/shapes/PhysXCapsule.cpp | 2 +- .../cocos/physics/physx/shapes/PhysXCapsule.h | 2 +- .../cocos/physics/physx/shapes/PhysXCone.cpp | 2 +- native/cocos/physics/physx/shapes/PhysXCone.h | 2 +- .../physics/physx/shapes/PhysXCylinder.cpp | 2 +- .../physics/physx/shapes/PhysXCylinder.h | 2 +- .../cocos/physics/physx/shapes/PhysXPlane.cpp | 2 +- .../cocos/physics/physx/shapes/PhysXPlane.h | 2 +- .../cocos/physics/physx/shapes/PhysXShape.cpp | 2 +- .../cocos/physics/physx/shapes/PhysXShape.h | 2 +- .../physics/physx/shapes/PhysXSphere.cpp | 2 +- .../cocos/physics/physx/shapes/PhysXSphere.h | 2 +- .../physics/physx/shapes/PhysXTerrain.cpp | 2 +- .../cocos/physics/physx/shapes/PhysXTerrain.h | 2 +- .../physics/physx/shapes/PhysXTrimesh.cpp | 2 +- .../cocos/physics/physx/shapes/PhysXTrimesh.h | 2 +- native/cocos/physics/sdk/Joint.cpp | 2 +- native/cocos/physics/sdk/Joint.h | 2 +- native/cocos/physics/sdk/RigidBody.cpp | 2 +- native/cocos/physics/sdk/RigidBody.h | 2 +- native/cocos/physics/sdk/Shape.cpp | 2 +- native/cocos/physics/sdk/Shape.h | 2 +- native/cocos/physics/sdk/World.cpp | 2 +- native/cocos/physics/sdk/World.h | 2 +- native/cocos/physics/spec/IBody.h | 2 +- native/cocos/physics/spec/IJoint.h | 2 +- native/cocos/physics/spec/ILifecycle.h | 2 +- native/cocos/physics/spec/IShape.h | 2 +- native/cocos/physics/spec/IWorld.h | 2 +- native/cocos/platform/Application.cpp | 2 +- native/cocos/platform/BasePlatform.cpp | 2 +- native/cocos/platform/BasePlatform.h | 2 +- native/cocos/platform/FileUtils.cpp | 2 +- native/cocos/platform/FileUtils.h | 2 +- native/cocos/platform/IEventDispatch.h | 2 +- native/cocos/platform/Image.cpp | 2 +- native/cocos/platform/Image.h | 2 +- native/cocos/platform/SAXParser.cpp | 2 +- native/cocos/platform/SAXParser.h | 2 +- native/cocos/platform/StdC.h | 2 +- native/cocos/platform/UniversalPlatform.cpp | 2 +- native/cocos/platform/UniversalPlatform.h | 2 +- .../platform/android/AndroidPlatform.cpp | 3 +- .../cocos/platform/android/AndroidPlatform.h | 2 +- .../platform/android/FileUtils-android.cpp | 2 +- .../platform/android/FileUtils-android.h | 5 +- .../platform/android/jni/JniCocosActivity.cpp | 2 +- .../platform/android/jni/JniCocosActivity.h | 2 +- .../android/jni/JniCocosSurfaceView.cpp | 3 +- .../cocos/platform/android/modules/Screen.cpp | 2 +- .../cocos/platform/android/modules/Screen.h | 2 +- .../cocos/platform/android/modules/System.cpp | 2 +- .../cocos/platform/android/modules/System.h | 2 +- native/cocos/platform/apple/FileUtils-apple.h | 2 +- .../cocos/platform/apple/FileUtils-apple.mm | 2 +- native/cocos/platform/apple/JsbBridge.h | 2 +- native/cocos/platform/apple/JsbBridge.mm | 2 +- .../cocos/platform/apple/JsbBridgeWrapper.h | 3 +- .../cocos/platform/apple/JsbBridgeWrapper.mm | 5 +- native/cocos/platform/apple/Reachability.cpp | 2 +- native/cocos/platform/apple/Reachability.h | 2 +- .../CanvasRenderingContext2DDelegate.h | 2 +- .../CanvasRenderingContext2DDelegate.mm | 2 +- .../cocos/platform/interfaces/OSInterface.cpp | 3 +- .../cocos/platform/interfaces/OSInterface.h | 2 +- .../interfaces/OSInterfaceManager.cpp | 25 +++ .../platform/interfaces/OSInterfaceManager.h | 2 +- .../platform/interfaces/modules/Device.cpp | 3 +- .../platform/interfaces/modules/Device.h | 2 +- .../interfaces/modules/IAccelerometer.cpp | 2 +- .../interfaces/modules/IAccelerometer.h | 2 +- .../platform/interfaces/modules/IBattery.cpp | 2 +- .../platform/interfaces/modules/IBattery.h | 2 +- .../platform/interfaces/modules/INetwork.cpp | 2 +- .../platform/interfaces/modules/INetwork.h | 2 +- .../platform/interfaces/modules/IScreen.cpp | 2 +- .../platform/interfaces/modules/IScreen.h | 2 +- .../platform/interfaces/modules/ISystem.cpp | 3 +- .../platform/interfaces/modules/ISystem.h | 2 +- .../interfaces/modules/ISystemWindow.cpp | 2 +- .../interfaces/modules/ISystemWindow.h | 2 +- .../platform/interfaces/modules/IVibrator.cpp | 2 +- .../platform/interfaces/modules/IVibrator.h | 2 +- .../canvas/CanvasRenderingContext2D.cpp | 2 +- .../modules/canvas/CanvasRenderingContext2D.h | 2 +- .../canvas/ICanvasRenderingContext2D.cpp | 3 +- .../canvas/ICanvasRenderingContext2D.h | 2 +- native/cocos/platform/ios/AppDelegate.h | 24 +-- native/cocos/platform/ios/AppDelegate.mm | 22 ++- native/cocos/platform/ios/IOSPlatform.h | 2 +- native/cocos/platform/ios/IOSPlatform.mm | 2 +- native/cocos/platform/ios/View.h | 2 +- native/cocos/platform/ios/View.mm | 2 +- native/cocos/platform/ios/ViewController.h | 29 +-- native/cocos/platform/ios/ViewController.mm | 22 ++- .../platform/ios/modules/Accelerometer.h | 2 +- .../platform/ios/modules/Accelerometer.mm | 2 +- native/cocos/platform/ios/modules/Battery.h | 2 +- native/cocos/platform/ios/modules/Battery.mm | 3 +- native/cocos/platform/ios/modules/Network.h | 2 +- native/cocos/platform/ios/modules/Network.mm | 3 +- native/cocos/platform/ios/modules/Screen.h | 2 +- native/cocos/platform/ios/modules/Screen.mm | 2 +- native/cocos/platform/ios/modules/System.h | 2 +- native/cocos/platform/ios/modules/System.mm | 3 +- .../cocos/platform/ios/modules/SystemWindow.h | 2 +- .../platform/ios/modules/SystemWindow.mm | 3 +- native/cocos/platform/ios/modules/Vibrator.h | 2 +- native/cocos/platform/ios/modules/Vibrator.mm | 2 +- .../cocos/platform/ios/service/SDKWrapper.h | 24 +-- .../java/jni/JniCocosKeyCodeHandler.cpp | 3 +- .../java/jni/JniCocosOrientationHelper.cpp | 3 +- .../java/jni/JniCocosTouchHandler.cpp | 3 +- native/cocos/platform/java/jni/JniHelper.cpp | 3 +- native/cocos/platform/java/jni/JniHelper.h | 3 +- native/cocos/platform/java/jni/JniImp.cpp | 2 +- native/cocos/platform/java/jni/JniImp.h | 2 +- .../platform/java/jni/glue/JniNativeGlue.cpp | 2 +- .../platform/java/jni/glue/JniNativeGlue.h | 3 +- .../platform/java/jni/glue/MessagePipe.cpp | 3 +- .../platform/java/jni/glue/MessagePipe.h | 2 +- native/cocos/platform/java/jni/log.h | 2 +- .../platform/java/modules/Accelerometer.cpp | 2 +- .../platform/java/modules/Accelerometer.h | 2 +- .../cocos/platform/java/modules/Battery.cpp | 3 +- native/cocos/platform/java/modules/Battery.h | 2 +- .../CanvasRenderingContext2DDelegate.cpp | 6 +- .../CanvasRenderingContext2DDelegate.h | 2 +- .../platform/java/modules/CommonScreen.cpp | 2 +- .../platform/java/modules/CommonScreen.h | 2 +- .../platform/java/modules/CommonSystem.cpp | 2 +- .../platform/java/modules/CommonSystem.h | 2 +- .../cocos/platform/java/modules/Network.cpp | 3 +- native/cocos/platform/java/modules/Network.h | 2 +- .../platform/java/modules/SystemWindow.cpp | 2 +- .../platform/java/modules/SystemWindow.h | 2 +- .../cocos/platform/java/modules/Vibrator.cpp | 2 +- native/cocos/platform/java/modules/Vibrator.h | 2 +- .../cocos/platform/linux/FileUtils-linux.cpp | 3 +- native/cocos/platform/linux/FileUtils-linux.h | 2 +- native/cocos/platform/linux/LinuxPlatform.cpp | 2 +- native/cocos/platform/linux/LinuxPlatform.h | 2 +- .../platform/linux/modules/Accelerometer.cpp | 2 +- .../platform/linux/modules/Accelerometer.h | 2 +- .../cocos/platform/linux/modules/Battery.cpp | 3 +- native/cocos/platform/linux/modules/Battery.h | 2 +- .../CanvasRenderingContext2DDelegate.cpp | 6 +- .../CanvasRenderingContext2DDelegate.h | 2 +- .../cocos/platform/linux/modules/Network.cpp | 3 +- native/cocos/platform/linux/modules/Network.h | 2 +- .../cocos/platform/linux/modules/Screen.cpp | 2 +- native/cocos/platform/linux/modules/Screen.h | 2 +- .../cocos/platform/linux/modules/System.cpp | 2 +- native/cocos/platform/linux/modules/System.h | 2 +- .../platform/linux/modules/SystemWindow.cpp | 2 +- .../platform/linux/modules/SystemWindow.h | 2 +- .../cocos/platform/linux/modules/Vibrate.cpp | 2 +- native/cocos/platform/linux/modules/Vibrate.h | 2 +- native/cocos/platform/mac/AppDelegate.h | 25 +++ native/cocos/platform/mac/AppDelegate.mm | 25 +++ native/cocos/platform/mac/KeyCodeHelper.cpp | 2 +- native/cocos/platform/mac/KeyCodeHelper.h | 2 +- native/cocos/platform/mac/MacPlatform.h | 2 +- native/cocos/platform/mac/MacPlatform.mm | 2 +- native/cocos/platform/mac/View.h | 2 +- native/cocos/platform/mac/View.mm | 2 +- native/cocos/platform/mac/ViewController.h | 25 +++ native/cocos/platform/mac/ViewController.mm | 25 +++ .../platform/mac/modules/Accelerometer.h | 2 +- .../platform/mac/modules/Accelerometer.mm | 2 +- native/cocos/platform/mac/modules/Battery.h | 2 +- native/cocos/platform/mac/modules/Battery.mm | 3 +- native/cocos/platform/mac/modules/Network.h | 2 +- native/cocos/platform/mac/modules/Network.mm | 3 +- native/cocos/platform/mac/modules/Screen.h | 2 +- native/cocos/platform/mac/modules/Screen.mm | 2 +- native/cocos/platform/mac/modules/System.h | 2 +- native/cocos/platform/mac/modules/System.mm | 3 +- .../cocos/platform/mac/modules/SystemWindow.h | 2 +- .../platform/mac/modules/SystemWindow.mm | 3 +- native/cocos/platform/mac/modules/Vibrator.h | 2 +- native/cocos/platform/mac/modules/Vibrator.mm | 2 +- native/cocos/platform/ohos/FileUtils-ohos.cpp | 25 +++ native/cocos/platform/ohos/FileUtils-ohos.h | 25 +++ native/cocos/platform/ohos/OhosPlatform.cpp | 2 +- native/cocos/platform/ohos/OhosPlatform.h | 2 +- native/cocos/platform/ohos/View.cpp | 20 +- native/cocos/platform/ohos/View.h | 28 +-- .../cocos/platform/ohos/jni/AbilityConsts.h | 25 +++ .../platform/ohos/jni/JniCocosAbility.cpp | 36 ++-- .../cocos/platform/ohos/jni/JniCocosAbility.h | 36 ++-- .../platform/ohos/jni/JniCocosSurfaceView.cpp | 25 +++ .../platform/ohos/jni/JniInteraction.cpp | 2 +- .../cocos/platform/ohos/jni/JniNativeGlue.cpp | 2 +- native/cocos/platform/ohos/modules/Screen.cpp | 2 +- native/cocos/platform/ohos/modules/Screen.h | 2 +- native/cocos/platform/ohos/modules/System.cpp | 2 +- native/cocos/platform/ohos/modules/System.h | 2 +- native/cocos/platform/qnx/FileUtils-qnx.cpp | 3 +- native/cocos/platform/qnx/FileUtils-qnx.h | 2 +- native/cocos/platform/qnx/QNXPlatform.cpp | 2 +- native/cocos/platform/qnx/QNXPlatform.h | 2 +- .../platform/qnx/modules/Accelerometer.cpp | 2 +- .../platform/qnx/modules/Accelerometer.h | 2 +- native/cocos/platform/qnx/modules/Battery.cpp | 3 +- native/cocos/platform/qnx/modules/Battery.h | 2 +- .../CanvasRenderingContext2DDelegate.cpp | 6 +- .../CanvasRenderingContext2DDelegate.h | 2 +- native/cocos/platform/qnx/modules/Network.cpp | 3 +- native/cocos/platform/qnx/modules/Network.h | 2 +- native/cocos/platform/qnx/modules/Screen.cpp | 2 +- native/cocos/platform/qnx/modules/Screen.h | 2 +- native/cocos/platform/qnx/modules/System.cpp | 2 +- native/cocos/platform/qnx/modules/System.h | 2 +- .../platform/qnx/modules/SystemWindow.cpp | 2 +- .../cocos/platform/qnx/modules/SystemWindow.h | 2 +- native/cocos/platform/qnx/modules/Vibrate.cpp | 2 +- native/cocos/platform/qnx/modules/Vibrate.h | 2 +- .../cocos/platform/win32/FileUtils-win32.cpp | 2 +- native/cocos/platform/win32/FileUtils-win32.h | 2 +- native/cocos/platform/win32/SystemGlue.cpp | 25 +++ native/cocos/platform/win32/SystemGlue.h | 25 +++ native/cocos/platform/win32/Utils-win32.cpp | 2 +- native/cocos/platform/win32/Utils-win32.h | 2 +- .../cocos/platform/win32/WindowsPlatform.cpp | 2 +- native/cocos/platform/win32/WindowsPlatform.h | 2 +- native/cocos/platform/win32/compat/stdint.h | 2 +- .../platform/win32/modules/Accelerometer.cpp | 2 +- .../platform/win32/modules/Accelerometer.h | 2 +- .../cocos/platform/win32/modules/Battery.cpp | 3 +- native/cocos/platform/win32/modules/Battery.h | 2 +- .../CanvasRenderingContext2DDelegate.cpp | 6 +- .../CanvasRenderingContext2DDelegate.h | 2 +- .../cocos/platform/win32/modules/Network.cpp | 3 +- native/cocos/platform/win32/modules/Network.h | 2 +- .../cocos/platform/win32/modules/Screen.cpp | 2 +- native/cocos/platform/win32/modules/Screen.h | 2 +- .../cocos/platform/win32/modules/System.cpp | 2 +- native/cocos/platform/win32/modules/System.h | 2 +- .../platform/win32/modules/SystemWindow.cpp | 2 +- .../platform/win32/modules/SystemWindow.h | 2 +- .../cocos/platform/win32/modules/Vibrator.cpp | 2 +- .../cocos/platform/win32/modules/Vibrator.h | 2 +- native/cocos/renderer/GFXDeviceManager.h | 2 +- .../cocos/renderer/frame-graph/Blackboard.h | 2 +- .../cocos/renderer/frame-graph/CallbackPass.h | 2 +- .../cocos/renderer/frame-graph/DevicePass.cpp | 2 +- .../cocos/renderer/frame-graph/DevicePass.h | 2 +- .../frame-graph/DevicePassResourceTable.cpp | 2 +- .../frame-graph/DevicePassResourceTable.h | 2 +- .../cocos/renderer/frame-graph/FrameGraph.cpp | 2 +- .../cocos/renderer/frame-graph/FrameGraph.h | 2 +- native/cocos/renderer/frame-graph/Handle.h | 2 +- .../frame-graph/PassInsertPointManager.cpp | 2 +- .../frame-graph/PassInsertPointManager.h | 2 +- .../cocos/renderer/frame-graph/PassNode.cpp | 2 +- native/cocos/renderer/frame-graph/PassNode.h | 2 +- .../renderer/frame-graph/PassNodeBuilder.cpp | 2 +- .../renderer/frame-graph/PassNodeBuilder.h | 2 +- .../frame-graph/RenderTargetAttachment.h | 2 +- native/cocos/renderer/frame-graph/Resource.h | 2 +- .../renderer/frame-graph/ResourceAllocator.h | 2 +- .../renderer/frame-graph/ResourceEntry.h | 2 +- .../cocos/renderer/frame-graph/ResourceNode.h | 2 +- .../renderer/frame-graph/VirtualResource.cpp | 2 +- .../renderer/frame-graph/VirtualResource.h | 2 +- .../cocos/renderer/gfx-agent/BufferAgent.cpp | 2 +- native/cocos/renderer/gfx-agent/BufferAgent.h | 2 +- .../renderer/gfx-agent/CommandBufferAgent.cpp | 2 +- .../renderer/gfx-agent/CommandBufferAgent.h | 2 +- .../renderer/gfx-agent/DescriptorSetAgent.cpp | 2 +- .../renderer/gfx-agent/DescriptorSetAgent.h | 2 +- .../gfx-agent/DescriptorSetLayoutAgent.cpp | 2 +- .../gfx-agent/DescriptorSetLayoutAgent.h | 2 +- .../cocos/renderer/gfx-agent/DeviceAgent.cpp | 2 +- native/cocos/renderer/gfx-agent/DeviceAgent.h | 2 +- .../renderer/gfx-agent/FramebufferAgent.cpp | 2 +- .../renderer/gfx-agent/FramebufferAgent.h | 2 +- .../gfx-agent/InputAssemblerAgent.cpp | 2 +- .../renderer/gfx-agent/InputAssemblerAgent.h | 2 +- .../gfx-agent/PipelineLayoutAgent.cpp | 2 +- .../renderer/gfx-agent/PipelineLayoutAgent.h | 2 +- .../renderer/gfx-agent/PipelineStateAgent.cpp | 2 +- .../renderer/gfx-agent/PipelineStateAgent.h | 2 +- .../renderer/gfx-agent/QueryPoolAgent.cpp | 2 +- .../cocos/renderer/gfx-agent/QueryPoolAgent.h | 2 +- .../cocos/renderer/gfx-agent/QueueAgent.cpp | 2 +- native/cocos/renderer/gfx-agent/QueueAgent.h | 2 +- .../renderer/gfx-agent/RenderPassAgent.cpp | 2 +- .../renderer/gfx-agent/RenderPassAgent.h | 2 +- .../cocos/renderer/gfx-agent/ShaderAgent.cpp | 2 +- native/cocos/renderer/gfx-agent/ShaderAgent.h | 2 +- .../renderer/gfx-agent/SwapchainAgent.cpp | 2 +- .../cocos/renderer/gfx-agent/SwapchainAgent.h | 2 +- .../cocos/renderer/gfx-agent/TextureAgent.cpp | 2 +- .../cocos/renderer/gfx-agent/TextureAgent.h | 2 +- native/cocos/renderer/gfx-base/GFXBuffer.cpp | 2 +- native/cocos/renderer/gfx-base/GFXBuffer.h | 2 +- .../renderer/gfx-base/GFXCommandBuffer.cpp | 2 +- .../renderer/gfx-base/GFXCommandBuffer.h | 2 +- .../cocos/renderer/gfx-base/GFXDef-common.h | 12 +- native/cocos/renderer/gfx-base/GFXDef.cpp | 2 +- native/cocos/renderer/gfx-base/GFXDef.h | 2 +- .../renderer/gfx-base/GFXDescriptorSet.cpp | 2 +- .../renderer/gfx-base/GFXDescriptorSet.h | 2 +- .../gfx-base/GFXDescriptorSetLayout.cpp | 2 +- .../gfx-base/GFXDescriptorSetLayout.h | 2 +- native/cocos/renderer/gfx-base/GFXDevice.cpp | 2 +- native/cocos/renderer/gfx-base/GFXDevice.h | 2 +- .../renderer/gfx-base/GFXFramebuffer.cpp | 2 +- .../cocos/renderer/gfx-base/GFXFramebuffer.h | 2 +- .../renderer/gfx-base/GFXInputAssembler.cpp | 2 +- .../renderer/gfx-base/GFXInputAssembler.h | 2 +- native/cocos/renderer/gfx-base/GFXObject.cpp | 2 +- native/cocos/renderer/gfx-base/GFXObject.h | 2 +- .../renderer/gfx-base/GFXPipelineLayout.cpp | 2 +- .../renderer/gfx-base/GFXPipelineLayout.h | 2 +- .../renderer/gfx-base/GFXPipelineState.cpp | 2 +- .../renderer/gfx-base/GFXPipelineState.h | 2 +- .../cocos/renderer/gfx-base/GFXQueryPool.cpp | 2 +- native/cocos/renderer/gfx-base/GFXQueryPool.h | 2 +- native/cocos/renderer/gfx-base/GFXQueue.cpp | 2 +- native/cocos/renderer/gfx-base/GFXQueue.h | 2 +- .../cocos/renderer/gfx-base/GFXRenderPass.cpp | 2 +- .../cocos/renderer/gfx-base/GFXRenderPass.h | 2 +- native/cocos/renderer/gfx-base/GFXShader.cpp | 2 +- native/cocos/renderer/gfx-base/GFXShader.h | 2 +- .../cocos/renderer/gfx-base/GFXSwapchain.cpp | 2 +- native/cocos/renderer/gfx-base/GFXSwapchain.h | 2 +- native/cocos/renderer/gfx-base/GFXTexture.cpp | 2 +- native/cocos/renderer/gfx-base/GFXTexture.h | 2 +- native/cocos/renderer/gfx-base/SPIRVUtils.cpp | 2 +- native/cocos/renderer/gfx-base/SPIRVUtils.h | 2 +- .../gfx-base/states/GFXGlobalBarrier.cpp | 2 +- .../gfx-base/states/GFXGlobalBarrier.h | 2 +- .../renderer/gfx-base/states/GFXSampler.cpp | 2 +- .../renderer/gfx-base/states/GFXSampler.h | 2 +- .../gfx-base/states/GFXTextureBarrier.cpp | 2 +- .../gfx-base/states/GFXTextureBarrier.h | 2 +- .../cocos/renderer/gfx-empty/EmptyBuffer.cpp | 2 +- native/cocos/renderer/gfx-empty/EmptyBuffer.h | 2 +- .../renderer/gfx-empty/EmptyCommandBuffer.cpp | 2 +- .../renderer/gfx-empty/EmptyCommandBuffer.h | 2 +- .../renderer/gfx-empty/EmptyDescriptorSet.cpp | 2 +- .../renderer/gfx-empty/EmptyDescriptorSet.h | 2 +- .../gfx-empty/EmptyDescriptorSetLayout.cpp | 2 +- .../gfx-empty/EmptyDescriptorSetLayout.h | 2 +- .../cocos/renderer/gfx-empty/EmptyDevice.cpp | 2 +- native/cocos/renderer/gfx-empty/EmptyDevice.h | 2 +- .../renderer/gfx-empty/EmptyFramebuffer.cpp | 2 +- .../renderer/gfx-empty/EmptyFramebuffer.h | 2 +- .../gfx-empty/EmptyInputAssembler.cpp | 2 +- .../renderer/gfx-empty/EmptyInputAssembler.h | 2 +- .../gfx-empty/EmptyPipelineLayout.cpp | 2 +- .../renderer/gfx-empty/EmptyPipelineLayout.h | 2 +- .../renderer/gfx-empty/EmptyPipelineState.cpp | 2 +- .../renderer/gfx-empty/EmptyPipelineState.h | 2 +- .../renderer/gfx-empty/EmptyQueryPool.cpp | 2 +- .../cocos/renderer/gfx-empty/EmptyQueryPool.h | 2 +- .../cocos/renderer/gfx-empty/EmptyQueue.cpp | 2 +- native/cocos/renderer/gfx-empty/EmptyQueue.h | 2 +- .../renderer/gfx-empty/EmptyRenderPass.cpp | 2 +- .../renderer/gfx-empty/EmptyRenderPass.h | 2 +- .../cocos/renderer/gfx-empty/EmptyShader.cpp | 2 +- native/cocos/renderer/gfx-empty/EmptyShader.h | 2 +- .../renderer/gfx-empty/EmptySwapchain.cpp | 2 +- .../cocos/renderer/gfx-empty/EmptySwapchain.h | 2 +- .../cocos/renderer/gfx-empty/EmptyTexture.cpp | 2 +- .../cocos/renderer/gfx-empty/EmptyTexture.h | 2 +- .../gfx-gles-common/GLESCommandPool.h | 2 +- .../cocos/renderer/gfx-gles-common/eglw.cpp | 2 +- native/cocos/renderer/gfx-gles-common/eglw.h | 2 +- .../cocos/renderer/gfx-gles-common/gles2w.cpp | 2 +- .../cocos/renderer/gfx-gles-common/gles2w.h | 2 +- .../cocos/renderer/gfx-gles-common/gles3w.cpp | 2 +- .../cocos/renderer/gfx-gles-common/gles3w.h | 2 +- .../cocos/renderer/gfx-gles2/GLES2Buffer.cpp | 2 +- native/cocos/renderer/gfx-gles2/GLES2Buffer.h | 2 +- .../renderer/gfx-gles2/GLES2CommandBuffer.cpp | 2 +- .../renderer/gfx-gles2/GLES2CommandBuffer.h | 2 +- .../renderer/gfx-gles2/GLES2Commands.cpp | 2 +- .../cocos/renderer/gfx-gles2/GLES2Commands.h | 2 +- .../renderer/gfx-gles2/GLES2DescriptorSet.cpp | 2 +- .../renderer/gfx-gles2/GLES2DescriptorSet.h | 2 +- .../gfx-gles2/GLES2DescriptorSetLayout.cpp | 2 +- .../gfx-gles2/GLES2DescriptorSetLayout.h | 2 +- .../cocos/renderer/gfx-gles2/GLES2Device.cpp | 2 +- native/cocos/renderer/gfx-gles2/GLES2Device.h | 2 +- .../renderer/gfx-gles2/GLES2Framebuffer.cpp | 2 +- .../renderer/gfx-gles2/GLES2Framebuffer.h | 2 +- .../renderer/gfx-gles2/GLES2GPUContext.cpp | 2 +- .../renderer/gfx-gles2/GLES2GPUObjects.h | 2 +- .../gfx-gles2/GLES2InputAssembler.cpp | 2 +- .../renderer/gfx-gles2/GLES2InputAssembler.h | 2 +- .../gfx-gles2/GLES2PipelineLayout.cpp | 2 +- .../renderer/gfx-gles2/GLES2PipelineLayout.h | 2 +- .../renderer/gfx-gles2/GLES2PipelineState.cpp | 2 +- .../renderer/gfx-gles2/GLES2PipelineState.h | 2 +- .../gfx-gles2/GLES2PrimaryCommandBuffer.cpp | 2 +- .../gfx-gles2/GLES2PrimaryCommandBuffer.h | 2 +- .../renderer/gfx-gles2/GLES2QueryPool.cpp | 2 +- .../cocos/renderer/gfx-gles2/GLES2QueryPool.h | 2 +- .../cocos/renderer/gfx-gles2/GLES2Queue.cpp | 2 +- native/cocos/renderer/gfx-gles2/GLES2Queue.h | 2 +- .../renderer/gfx-gles2/GLES2RenderPass.cpp | 2 +- .../renderer/gfx-gles2/GLES2RenderPass.h | 2 +- .../cocos/renderer/gfx-gles2/GLES2Shader.cpp | 2 +- native/cocos/renderer/gfx-gles2/GLES2Shader.h | 2 +- native/cocos/renderer/gfx-gles2/GLES2Std.cpp | 2 +- native/cocos/renderer/gfx-gles2/GLES2Std.h | 2 +- .../renderer/gfx-gles2/GLES2Swapchain.cpp | 2 +- .../cocos/renderer/gfx-gles2/GLES2Swapchain.h | 2 +- .../cocos/renderer/gfx-gles2/GLES2Texture.cpp | 2 +- .../cocos/renderer/gfx-gles2/GLES2Texture.h | 2 +- .../renderer/gfx-gles2/GLES2Wrangler.cpp | 2 +- .../cocos/renderer/gfx-gles2/GLES2Wrangler.h | 2 +- .../gfx-gles2/states/GLES2Sampler.cpp | 2 +- .../renderer/gfx-gles2/states/GLES2Sampler.h | 2 +- .../cocos/renderer/gfx-gles3/GLES3Buffer.cpp | 2 +- native/cocos/renderer/gfx-gles3/GLES3Buffer.h | 2 +- .../renderer/gfx-gles3/GLES3CommandBuffer.cpp | 2 +- .../renderer/gfx-gles3/GLES3CommandBuffer.h | 2 +- .../renderer/gfx-gles3/GLES3Commands.cpp | 2 +- .../cocos/renderer/gfx-gles3/GLES3Commands.h | 2 +- .../renderer/gfx-gles3/GLES3DescriptorSet.cpp | 2 +- .../renderer/gfx-gles3/GLES3DescriptorSet.h | 2 +- .../gfx-gles3/GLES3DescriptorSetLayout.cpp | 2 +- .../gfx-gles3/GLES3DescriptorSetLayout.h | 2 +- .../cocos/renderer/gfx-gles3/GLES3Device.cpp | 2 +- native/cocos/renderer/gfx-gles3/GLES3Device.h | 2 +- .../renderer/gfx-gles3/GLES3Framebuffer.cpp | 2 +- .../renderer/gfx-gles3/GLES3Framebuffer.h | 2 +- .../renderer/gfx-gles3/GLES3GPUContext.cpp | 2 +- .../renderer/gfx-gles3/GLES3GPUObjects.h | 2 +- .../gfx-gles3/GLES3InputAssembler.cpp | 2 +- .../renderer/gfx-gles3/GLES3InputAssembler.h | 2 +- .../gfx-gles3/GLES3PipelineLayout.cpp | 2 +- .../renderer/gfx-gles3/GLES3PipelineLayout.h | 2 +- .../renderer/gfx-gles3/GLES3PipelineState.cpp | 2 +- .../renderer/gfx-gles3/GLES3PipelineState.h | 2 +- .../gfx-gles3/GLES3PrimaryCommandBuffer.cpp | 2 +- .../gfx-gles3/GLES3PrimaryCommandBuffer.h | 2 +- .../renderer/gfx-gles3/GLES3QueryPool.cpp | 2 +- .../cocos/renderer/gfx-gles3/GLES3QueryPool.h | 2 +- .../cocos/renderer/gfx-gles3/GLES3Queue.cpp | 2 +- native/cocos/renderer/gfx-gles3/GLES3Queue.h | 2 +- .../renderer/gfx-gles3/GLES3RenderPass.cpp | 2 +- .../renderer/gfx-gles3/GLES3RenderPass.h | 2 +- .../cocos/renderer/gfx-gles3/GLES3Shader.cpp | 2 +- native/cocos/renderer/gfx-gles3/GLES3Shader.h | 2 +- native/cocos/renderer/gfx-gles3/GLES3Std.cpp | 2 +- native/cocos/renderer/gfx-gles3/GLES3Std.h | 2 +- .../renderer/gfx-gles3/GLES3Swapchain.cpp | 2 +- .../cocos/renderer/gfx-gles3/GLES3Swapchain.h | 2 +- .../cocos/renderer/gfx-gles3/GLES3Texture.cpp | 2 +- .../cocos/renderer/gfx-gles3/GLES3Texture.h | 2 +- .../renderer/gfx-gles3/GLES3Wrangler.cpp | 2 +- .../cocos/renderer/gfx-gles3/GLES3Wrangler.h | 2 +- .../gfx-gles3/states/GLES3GlobalBarrier.cpp | 2 +- .../gfx-gles3/states/GLES3GlobalBarrier.h | 2 +- .../gfx-gles3/states/GLES3Sampler.cpp | 2 +- .../renderer/gfx-gles3/states/GLES3Sampler.h | 2 +- native/cocos/renderer/gfx-metal/MTLBuffer.h | 2 +- native/cocos/renderer/gfx-metal/MTLBuffer.mm | 2 +- .../renderer/gfx-metal/MTLCommandBuffer.h | 2 +- .../renderer/gfx-metal/MTLCommandBuffer.mm | 2 +- .../renderer/gfx-metal/MTLCommandEncoder.h | 2 +- .../gfx-metal/MTLComputeCommandEncoder.h | 2 +- native/cocos/renderer/gfx-metal/MTLConfig.h | 2 +- .../renderer/gfx-metal/MTLDescriptorSet.h | 2 +- .../renderer/gfx-metal/MTLDescriptorSet.mm | 2 +- .../gfx-metal/MTLDescriptorSetLayout.h | 2 +- .../gfx-metal/MTLDescriptorSetLayout.mm | 2 +- native/cocos/renderer/gfx-metal/MTLDevice.h | 2 +- native/cocos/renderer/gfx-metal/MTLDevice.mm | 2 +- .../cocos/renderer/gfx-metal/MTLFramebuffer.h | 2 +- .../renderer/gfx-metal/MTLFramebuffer.mm | 2 +- .../cocos/renderer/gfx-metal/MTLGPUObjects.h | 2 +- .../renderer/gfx-metal/MTLInputAssembler.h | 2 +- .../renderer/gfx-metal/MTLInputAssembler.mm | 2 +- .../renderer/gfx-metal/MTLPipelineLayout.h | 2 +- .../renderer/gfx-metal/MTLPipelineLayout.mm | 2 +- .../renderer/gfx-metal/MTLPipelineState.h | 2 +- .../renderer/gfx-metal/MTLPipelineState.mm | 2 +- .../cocos/renderer/gfx-metal/MTLQueryPool.h | 2 +- .../cocos/renderer/gfx-metal/MTLQueryPool.mm | 2 +- native/cocos/renderer/gfx-metal/MTLQueue.h | 2 +- native/cocos/renderer/gfx-metal/MTLQueue.mm | 2 +- .../gfx-metal/MTLRenderCommandEncoder.h | 2 +- .../cocos/renderer/gfx-metal/MTLRenderPass.h | 2 +- .../cocos/renderer/gfx-metal/MTLRenderPass.mm | 2 +- native/cocos/renderer/gfx-metal/MTLSampler.h | 2 +- native/cocos/renderer/gfx-metal/MTLSampler.mm | 2 +- .../cocos/renderer/gfx-metal/MTLSemaphore.h | 2 +- native/cocos/renderer/gfx-metal/MTLShader.h | 2 +- native/cocos/renderer/gfx-metal/MTLShader.mm | 2 +- native/cocos/renderer/gfx-metal/MTLStd.cpp | 2 +- native/cocos/renderer/gfx-metal/MTLStd.h | 2 +- .../cocos/renderer/gfx-metal/MTLSwapchain.h | 2 +- .../cocos/renderer/gfx-metal/MTLSwapchain.mm | 3 +- native/cocos/renderer/gfx-metal/MTLTexture.h | 2 +- native/cocos/renderer/gfx-metal/MTLTexture.mm | 2 +- native/cocos/renderer/gfx-metal/MTLUtils.h | 2 +- native/cocos/renderer/gfx-metal/MTLUtils.mm | 2 +- .../gfx-validator/BufferValidator.cpp | 2 +- .../renderer/gfx-validator/BufferValidator.h | 2 +- .../gfx-validator/CommandBufferValidator.cpp | 2 +- .../gfx-validator/CommandBufferValidator.h | 2 +- .../DescriptorSetLayoutValidator.cpp | 2 +- .../DescriptorSetLayoutValidator.h | 2 +- .../gfx-validator/DescriptorSetValidator.cpp | 2 +- .../gfx-validator/DescriptorSetValidator.h | 2 +- .../gfx-validator/DeviceValidator.cpp | 2 +- .../renderer/gfx-validator/DeviceValidator.h | 2 +- .../gfx-validator/FramebufferValidator.cpp | 2 +- .../gfx-validator/FramebufferValidator.h | 2 +- .../gfx-validator/InputAssemblerValidator.cpp | 2 +- .../gfx-validator/InputAssemblerValidator.h | 2 +- .../gfx-validator/PipelineLayoutValidator.cpp | 2 +- .../gfx-validator/PipelineLayoutValidator.h | 2 +- .../gfx-validator/PipelineStateValidator.cpp | 2 +- .../gfx-validator/PipelineStateValidator.h | 2 +- .../gfx-validator/QueryPoolValidator.cpp | 2 +- .../gfx-validator/QueryPoolValidator.h | 2 +- .../renderer/gfx-validator/QueueValidator.cpp | 2 +- .../renderer/gfx-validator/QueueValidator.h | 2 +- .../gfx-validator/RenderPassValidator.cpp | 2 +- .../gfx-validator/RenderPassValidator.h | 2 +- .../gfx-validator/ShaderValidator.cpp | 2 +- .../renderer/gfx-validator/ShaderValidator.h | 2 +- .../gfx-validator/SwapchainValidator.cpp | 2 +- .../gfx-validator/SwapchainValidator.h | 2 +- .../gfx-validator/TextureValidator.cpp | 2 +- .../renderer/gfx-validator/TextureValidator.h | 2 +- .../gfx-validator/ValidationUtils.cpp | 2 +- .../renderer/gfx-validator/ValidationUtils.h | 2 +- native/cocos/renderer/gfx-vulkan/VKBuffer.cpp | 2 +- native/cocos/renderer/gfx-vulkan/VKBuffer.h | 2 +- .../renderer/gfx-vulkan/VKCommandBuffer.cpp | 2 +- .../renderer/gfx-vulkan/VKCommandBuffer.h | 2 +- .../cocos/renderer/gfx-vulkan/VKCommands.cpp | 2 +- native/cocos/renderer/gfx-vulkan/VKCommands.h | 2 +- .../renderer/gfx-vulkan/VKDescriptorSet.cpp | 2 +- .../renderer/gfx-vulkan/VKDescriptorSet.h | 2 +- .../gfx-vulkan/VKDescriptorSetLayout.cpp | 2 +- .../gfx-vulkan/VKDescriptorSetLayout.h | 2 +- native/cocos/renderer/gfx-vulkan/VKDevice.cpp | 2 +- native/cocos/renderer/gfx-vulkan/VKDevice.h | 2 +- .../renderer/gfx-vulkan/VKFramebuffer.cpp | 2 +- .../cocos/renderer/gfx-vulkan/VKFramebuffer.h | 2 +- .../renderer/gfx-vulkan/VKGPUContext.cpp | 2 +- .../cocos/renderer/gfx-vulkan/VKGPUObjects.h | 2 +- .../renderer/gfx-vulkan/VKInputAssembler.cpp | 2 +- .../renderer/gfx-vulkan/VKInputAssembler.h | 2 +- .../renderer/gfx-vulkan/VKPipelineLayout.cpp | 2 +- .../renderer/gfx-vulkan/VKPipelineLayout.h | 2 +- .../renderer/gfx-vulkan/VKPipelineState.cpp | 2 +- .../renderer/gfx-vulkan/VKPipelineState.h | 2 +- .../cocos/renderer/gfx-vulkan/VKQueryPool.cpp | 2 +- .../cocos/renderer/gfx-vulkan/VKQueryPool.h | 2 +- native/cocos/renderer/gfx-vulkan/VKQueue.cpp | 2 +- native/cocos/renderer/gfx-vulkan/VKQueue.h | 2 +- .../renderer/gfx-vulkan/VKRenderPass.cpp | 2 +- .../cocos/renderer/gfx-vulkan/VKRenderPass.h | 2 +- native/cocos/renderer/gfx-vulkan/VKShader.cpp | 2 +- native/cocos/renderer/gfx-vulkan/VKShader.h | 2 +- native/cocos/renderer/gfx-vulkan/VKStd.cpp | 2 +- native/cocos/renderer/gfx-vulkan/VKStd.h | 2 +- .../cocos/renderer/gfx-vulkan/VKSwapchain.cpp | 2 +- .../cocos/renderer/gfx-vulkan/VKSwapchain.h | 2 +- .../cocos/renderer/gfx-vulkan/VKTexture.cpp | 2 +- native/cocos/renderer/gfx-vulkan/VKTexture.h | 2 +- native/cocos/renderer/gfx-vulkan/VKUtils.cpp | 2 +- native/cocos/renderer/gfx-vulkan/VKUtils.h | 2 +- .../gfx-vulkan/states/VKGlobalBarrier.cpp | 2 +- .../gfx-vulkan/states/VKGlobalBarrier.h | 2 +- .../renderer/gfx-vulkan/states/VKSampler.cpp | 2 +- .../renderer/gfx-vulkan/states/VKSampler.h | 2 +- .../gfx-vulkan/states/VKTextureBarrier.cpp | 2 +- .../gfx-vulkan/states/VKTextureBarrier.h | 2 +- .../cocos/renderer/pipeline/BatchedBuffer.cpp | 2 +- .../cocos/renderer/pipeline/BatchedBuffer.h | 2 +- .../renderer/pipeline/ClusterLightCulling.cpp | 2 +- .../renderer/pipeline/ClusterLightCulling.h | 3 +- native/cocos/renderer/pipeline/Define.cpp | 2 +- native/cocos/renderer/pipeline/Define.h | 2 +- native/cocos/renderer/pipeline/Enum.h | 25 +++ .../renderer/pipeline/GeometryRenderer.cpp | 12 +- .../renderer/pipeline/GeometryRenderer.h | 12 +- .../pipeline/GlobalDescriptorSetManager.cpp | 2 +- .../pipeline/GlobalDescriptorSetManager.h | 2 +- .../renderer/pipeline/InstancedBuffer.cpp | 2 +- .../cocos/renderer/pipeline/InstancedBuffer.h | 2 +- .../renderer/pipeline/PipelineSceneData.cpp | 2 +- .../renderer/pipeline/PipelineSceneData.h | 2 +- .../pipeline/PipelineStateManager.cpp | 2 +- .../renderer/pipeline/PipelineStateManager.h | 2 +- .../cocos/renderer/pipeline/PipelineUBO.cpp | 2 +- native/cocos/renderer/pipeline/PipelineUBO.h | 2 +- .../renderer/pipeline/PlanarShadowQueue.cpp | 2 +- .../renderer/pipeline/PlanarShadowQueue.h | 2 +- .../pipeline/RenderAdditiveLightQueue.cpp | 2 +- .../pipeline/RenderAdditiveLightQueue.h | 2 +- .../renderer/pipeline/RenderBatchedQueue.cpp | 2 +- .../renderer/pipeline/RenderBatchedQueue.h | 2 +- native/cocos/renderer/pipeline/RenderFlow.cpp | 2 +- native/cocos/renderer/pipeline/RenderFlow.h | 2 +- .../pipeline/RenderInstancedQueue.cpp | 2 +- .../renderer/pipeline/RenderInstancedQueue.h | 2 +- .../renderer/pipeline/RenderPipeline.cpp | 2 +- .../cocos/renderer/pipeline/RenderPipeline.h | 2 +- .../cocos/renderer/pipeline/RenderQueue.cpp | 2 +- native/cocos/renderer/pipeline/RenderQueue.h | 2 +- .../cocos/renderer/pipeline/RenderStage.cpp | 2 +- native/cocos/renderer/pipeline/RenderStage.h | 2 +- .../cocos/renderer/pipeline/SceneCulling.cpp | 2 +- native/cocos/renderer/pipeline/SceneCulling.h | 2 +- .../pipeline/ShadowMapBatchedQueue.cpp | 2 +- .../renderer/pipeline/ShadowMapBatchedQueue.h | 2 +- native/cocos/renderer/pipeline/UIPhase.cpp | 2 +- native/cocos/renderer/pipeline/UIPhase.h | 2 +- .../renderer/pipeline/forward/ForwardFlow.cpp | 2 +- .../renderer/pipeline/forward/ForwardFlow.h | 2 +- .../pipeline/forward/ForwardPipeline.cpp | 2 +- .../pipeline/forward/ForwardPipeline.h | 2 +- .../pipeline/forward/ForwardStage.cpp | 2 +- .../renderer/pipeline/forward/ForwardStage.h | 2 +- .../renderer/pipeline/helper/DefineMap.cpp | 2 +- .../renderer/pipeline/helper/DefineMap.h | 2 +- native/cocos/renderer/pipeline/helper/Utils.h | 176 +++++++++--------- .../renderer/pipeline/shadow/ShadowFlow.cpp | 2 +- .../renderer/pipeline/shadow/ShadowFlow.h | 2 +- .../renderer/pipeline/shadow/ShadowStage.cpp | 2 +- .../renderer/pipeline/shadow/ShadowStage.h | 2 +- native/cocos/scene/AABB.cpp | 12 +- native/cocos/scene/AABB.h | 12 +- native/cocos/scene/BakedSkinningModel.cpp | 13 +- native/cocos/scene/BakedSkinningModel.h | 12 +- native/cocos/scene/BaseNode.cpp | 12 +- native/cocos/scene/BaseNode.h | 12 +- native/cocos/scene/Camera.h | 12 +- native/cocos/scene/Define.cpp | 12 +- native/cocos/scene/Define.h | 4 +- native/cocos/scene/DirectionalLight.cpp | 12 +- native/cocos/scene/DirectionalLight.h | 12 +- native/cocos/scene/DrawBatch2D.h | 4 +- native/cocos/scene/Frustum.cpp | 12 +- native/cocos/scene/Frustum.h | 12 +- native/cocos/scene/Light.cpp | 12 +- native/cocos/scene/Light.h | 12 +- native/cocos/scene/Model.cpp | 13 +- native/cocos/scene/Model.h | 4 +- native/cocos/scene/MorphModel.h | 12 +- native/cocos/scene/Node.cpp | 12 +- native/cocos/scene/Node.h | 12 +- native/cocos/scene/Octree.cpp | 12 +- native/cocos/scene/Octree.h | 12 +- native/cocos/scene/Pass.cpp | 12 +- native/cocos/scene/Pass.h | 12 +- native/cocos/scene/RenderScene.cpp | 12 +- native/cocos/scene/RenderScene.h | 12 +- native/cocos/scene/RenderWindow.h | 4 +- native/cocos/scene/Scene.cpp | 12 +- native/cocos/scene/Scene.h | 12 +- native/cocos/scene/SkinningModel.cpp | 12 +- native/cocos/scene/SkinningModel.h | 12 +- native/cocos/scene/Sphere.cpp | 12 +- native/cocos/scene/Sphere.h | 12 +- native/cocos/scene/SphereLight.cpp | 12 +- native/cocos/scene/SphereLight.h | 12 +- native/cocos/scene/SpotLight.cpp | 12 +- native/cocos/scene/SpotLight.h | 12 +- native/cocos/scene/SubModel.cpp | 5 +- native/cocos/scene/SubModel.h | 4 +- .../local-storage/LocalStorage-android.cpp | 2 +- .../storage/local-storage/LocalStorage.cpp | 2 +- .../storage/local-storage/LocalStorage.h | 2 +- native/cocos/ui/edit-box/EditBox-android.cpp | 2 +- native/cocos/ui/edit-box/EditBox-ios.mm | 2 +- native/cocos/ui/edit-box/EditBox-linux.cpp | 2 +- native/cocos/ui/edit-box/EditBox-mac.mm | 2 +- native/cocos/ui/edit-box/EditBox-ohos.cpp | 25 +-- native/cocos/ui/edit-box/EditBox-win32.cpp | 2 +- native/cocos/ui/edit-box/EditBox.h | 2 +- .../cocos/ui/videoplayer/VideoPlayer-ios.mm | 2 +- .../cocos/ui/videoplayer/VideoPlayer-java.cpp | 2 +- native/cocos/ui/videoplayer/VideoPlayer.h | 2 +- native/cocos/ui/webview/WebView-inl.h | 2 +- native/cocos/ui/webview/WebView.h | 2 +- .../cocos/ui/webview/WebViewImpl-android.cpp | 2 +- native/cocos/ui/webview/WebViewImpl-ios.h | 2 +- native/cocos/ui/webview/WebViewImpl-ios.mm | 2 +- native/cocos/ui/webview/WebViewImpl-java.h | 2 +- native/cocos/ui/webview/WebViewImpl-ohos.cpp | 2 +- native/tools/license-upgrader/generate.js | 2 + 1039 files changed, 2603 insertions(+), 1522 deletions(-) diff --git a/native/cocos/application/ApplicationManager.cpp b/native/cocos/application/ApplicationManager.cpp index c5a3425453..b8a20cf715 100644 --- a/native/cocos/application/ApplicationManager.cpp +++ b/native/cocos/application/ApplicationManager.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/application/ApplicationManager.h b/native/cocos/application/ApplicationManager.h index 6946e31f74..56ddf9740d 100644 --- a/native/cocos/application/ApplicationManager.h +++ b/native/cocos/application/ApplicationManager.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/application/BaseApplication.h b/native/cocos/application/BaseApplication.h index 8cbb2f1da8..09e6739d61 100644 --- a/native/cocos/application/BaseApplication.h +++ b/native/cocos/application/BaseApplication.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/application/CocosApplication.cpp b/native/cocos/application/CocosApplication.cpp index 75c41ef9fe..1f4ceac951 100644 --- a/native/cocos/application/CocosApplication.cpp +++ b/native/cocos/application/CocosApplication.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/application/CocosApplication.h b/native/cocos/application/CocosApplication.h index a70f46a2a2..ec953ca6ac 100644 --- a/native/cocos/application/CocosApplication.h +++ b/native/cocos/application/CocosApplication.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/AudioEngine.cpp b/native/cocos/audio/AudioEngine.cpp index e67c6a9efc..d84a35154c 100644 --- a/native/cocos/audio/AudioEngine.cpp +++ b/native/cocos/audio/AudioEngine.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/apple/AudioCache.h b/native/cocos/audio/apple/AudioCache.h index 29135e5937..f7c7184d94 100644 --- a/native/cocos/audio/apple/AudioCache.h +++ b/native/cocos/audio/apple/AudioCache.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/apple/AudioCache.mm b/native/cocos/audio/apple/AudioCache.mm index a6aebd3579..c33eab4f46 100644 --- a/native/cocos/audio/apple/AudioCache.mm +++ b/native/cocos/audio/apple/AudioCache.mm @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/apple/AudioDecoder.h b/native/cocos/audio/apple/AudioDecoder.h index d543d5e515..c5b1f55996 100644 --- a/native/cocos/audio/apple/AudioDecoder.h +++ b/native/cocos/audio/apple/AudioDecoder.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/apple/AudioDecoder.mm b/native/cocos/audio/apple/AudioDecoder.mm index 583f0ed41f..815194fec9 100644 --- a/native/cocos/audio/apple/AudioDecoder.mm +++ b/native/cocos/audio/apple/AudioDecoder.mm @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/apple/AudioEngine-inl.h b/native/cocos/audio/apple/AudioEngine-inl.h index 7570236dbe..a5d5cb5e8c 100644 --- a/native/cocos/audio/apple/AudioEngine-inl.h +++ b/native/cocos/audio/apple/AudioEngine-inl.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/apple/AudioEngine-inl.mm b/native/cocos/audio/apple/AudioEngine-inl.mm index 57d5c57f15..76d80914fc 100644 --- a/native/cocos/audio/apple/AudioEngine-inl.mm +++ b/native/cocos/audio/apple/AudioEngine-inl.mm @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/apple/AudioMacros.h b/native/cocos/audio/apple/AudioMacros.h index 7833fcc329..21e05b8d12 100644 --- a/native/cocos/audio/apple/AudioMacros.h +++ b/native/cocos/audio/apple/AudioMacros.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/apple/AudioPlayer.h b/native/cocos/audio/apple/AudioPlayer.h index e0646e59bf..a1c5de1189 100644 --- a/native/cocos/audio/apple/AudioPlayer.h +++ b/native/cocos/audio/apple/AudioPlayer.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/apple/AudioPlayer.mm b/native/cocos/audio/apple/AudioPlayer.mm index ccab825788..fe91eb8b0f 100644 --- a/native/cocos/audio/apple/AudioPlayer.mm +++ b/native/cocos/audio/apple/AudioPlayer.mm @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/include/AudioEngine.h b/native/cocos/audio/include/AudioEngine.h index 049eeb9a59..530107a223 100644 --- a/native/cocos/audio/include/AudioEngine.h +++ b/native/cocos/audio/include/AudioEngine.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/include/Export.h b/native/cocos/audio/include/Export.h index a76ced08da..a3819ee2d1 100644 --- a/native/cocos/audio/include/Export.h +++ b/native/cocos/audio/include/Export.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/oalsoft/AudioCache.cpp b/native/cocos/audio/oalsoft/AudioCache.cpp index d94852b24f..d0d61a9aa2 100644 --- a/native/cocos/audio/oalsoft/AudioCache.cpp +++ b/native/cocos/audio/oalsoft/AudioCache.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/oalsoft/AudioCache.h b/native/cocos/audio/oalsoft/AudioCache.h index e71be0bd5f..afa31d43b2 100644 --- a/native/cocos/audio/oalsoft/AudioCache.h +++ b/native/cocos/audio/oalsoft/AudioCache.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/oalsoft/AudioDecoder.cpp b/native/cocos/audio/oalsoft/AudioDecoder.cpp index 6a9ff8754a..4aa94a9ef9 100644 --- a/native/cocos/audio/oalsoft/AudioDecoder.cpp +++ b/native/cocos/audio/oalsoft/AudioDecoder.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,7 +22,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ + #include "audio/oalsoft/AudioDecoder.h" #include "audio/oalsoft/AudioMacros.h" #include "platform/FileUtils.h" diff --git a/native/cocos/audio/oalsoft/AudioDecoder.h b/native/cocos/audio/oalsoft/AudioDecoder.h index 9a7d1fcf68..f757f0d8af 100644 --- a/native/cocos/audio/oalsoft/AudioDecoder.h +++ b/native/cocos/audio/oalsoft/AudioDecoder.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/oalsoft/AudioDecoderManager.cpp b/native/cocos/audio/oalsoft/AudioDecoderManager.cpp index a58bd7b415..6280efc4a1 100644 --- a/native/cocos/audio/oalsoft/AudioDecoderManager.cpp +++ b/native/cocos/audio/oalsoft/AudioDecoderManager.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/oalsoft/AudioDecoderManager.h b/native/cocos/audio/oalsoft/AudioDecoderManager.h index f14ceaeea0..1465fbfe26 100644 --- a/native/cocos/audio/oalsoft/AudioDecoderManager.h +++ b/native/cocos/audio/oalsoft/AudioDecoderManager.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/oalsoft/AudioDecoderMp3.cpp b/native/cocos/audio/oalsoft/AudioDecoderMp3.cpp index c3356485ee..de3b3be3de 100644 --- a/native/cocos/audio/oalsoft/AudioDecoderMp3.cpp +++ b/native/cocos/audio/oalsoft/AudioDecoderMp3.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,7 +22,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ + #include "audio/oalsoft/AudioDecoderMp3.h" #include "audio/oalsoft/AudioMacros.h" #include "platform/FileUtils.h" diff --git a/native/cocos/audio/oalsoft/AudioDecoderMp3.h b/native/cocos/audio/oalsoft/AudioDecoderMp3.h index 992ff3eab3..c7c3de2ab6 100644 --- a/native/cocos/audio/oalsoft/AudioDecoderMp3.h +++ b/native/cocos/audio/oalsoft/AudioDecoderMp3.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/oalsoft/AudioDecoderOgg.cpp b/native/cocos/audio/oalsoft/AudioDecoderOgg.cpp index cdccdcd864..1df53302a3 100644 --- a/native/cocos/audio/oalsoft/AudioDecoderOgg.cpp +++ b/native/cocos/audio/oalsoft/AudioDecoderOgg.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,7 +22,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ + #include "audio/oalsoft/AudioDecoderOgg.h" #include "audio/oalsoft/AudioMacros.h" #include "platform/FileUtils.h" diff --git a/native/cocos/audio/oalsoft/AudioDecoderOgg.h b/native/cocos/audio/oalsoft/AudioDecoderOgg.h index 2db4fbda2b..1e763ca07f 100644 --- a/native/cocos/audio/oalsoft/AudioDecoderOgg.h +++ b/native/cocos/audio/oalsoft/AudioDecoderOgg.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/oalsoft/AudioEngine-soft.cpp b/native/cocos/audio/oalsoft/AudioEngine-soft.cpp index 65b015cc97..9953106734 100644 --- a/native/cocos/audio/oalsoft/AudioEngine-soft.cpp +++ b/native/cocos/audio/oalsoft/AudioEngine-soft.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,7 +22,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ + #define LOG_TAG "AudioEngine-OALSOFT" #include "audio/oalsoft/AudioEngine-soft.h" diff --git a/native/cocos/audio/oalsoft/AudioEngine-soft.h b/native/cocos/audio/oalsoft/AudioEngine-soft.h index d3b52eca92..4ade4b8624 100644 --- a/native/cocos/audio/oalsoft/AudioEngine-soft.h +++ b/native/cocos/audio/oalsoft/AudioEngine-soft.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/oalsoft/AudioMacros.h b/native/cocos/audio/oalsoft/AudioMacros.h index 97ad88c7dc..5167de10cb 100644 --- a/native/cocos/audio/oalsoft/AudioMacros.h +++ b/native/cocos/audio/oalsoft/AudioMacros.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/oalsoft/AudioPlayer.cpp b/native/cocos/audio/oalsoft/AudioPlayer.cpp index ea735fedf2..099af25dd1 100644 --- a/native/cocos/audio/oalsoft/AudioPlayer.cpp +++ b/native/cocos/audio/oalsoft/AudioPlayer.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/oalsoft/AudioPlayer.h b/native/cocos/audio/oalsoft/AudioPlayer.h index c01d5b06f0..3c5b07afdd 100644 --- a/native/cocos/audio/oalsoft/AudioPlayer.h +++ b/native/cocos/audio/oalsoft/AudioPlayer.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/ohos/AudioDecoderWav.cpp b/native/cocos/audio/ohos/AudioDecoderWav.cpp index 0d39b981ed..94f20d35b8 100644 --- a/native/cocos/audio/ohos/AudioDecoderWav.cpp +++ b/native/cocos/audio/ohos/AudioDecoderWav.cpp @@ -1,26 +1,27 @@ /**************************************************************************** -Copyright (c) 2016 Chukong Technologies Inc. -Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2016 Chukong Technologies Inc. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. -http://www.cocos2d-x.org + http://www.cocos.com -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. ****************************************************************************/ #define LOG_TAG "AudioDecoderWav" diff --git a/native/cocos/audio/ohos/AudioDecoderWav.h b/native/cocos/audio/ohos/AudioDecoderWav.h index 0492b508d2..1652d5a77f 100644 --- a/native/cocos/audio/ohos/AudioDecoderWav.h +++ b/native/cocos/audio/ohos/AudioDecoderWav.h @@ -1,26 +1,27 @@ /**************************************************************************** -Copyright (c) 2016 Chukong Technologies Inc. -Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2016 Chukong Technologies Inc. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. -http://www.cocos2d-x.org + http://www.cocos.com -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. ****************************************************************************/ #pragma once diff --git a/native/cocos/audio/ohos/FsCallback.cpp b/native/cocos/audio/ohos/FsCallback.cpp index b6759bc120..950ce7b37b 100644 --- a/native/cocos/audio/ohos/FsCallback.cpp +++ b/native/cocos/audio/ohos/FsCallback.cpp @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #include "cocos/audio/ohos/FsCallback.h" #include diff --git a/native/cocos/audio/ohos/FsCallback.h b/native/cocos/audio/ohos/FsCallback.h index f0d8a9ec6c..ca859183d0 100644 --- a/native/cocos/audio/ohos/FsCallback.h +++ b/native/cocos/audio/ohos/FsCallback.h @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #pragma once #include diff --git a/native/cocos/base/Agent.h b/native/cocos/base/Agent.h index 062a8ba194..11eb83668a 100644 --- a/native/cocos/base/Agent.h +++ b/native/cocos/base/Agent.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/AutoreleasePool.cpp b/native/cocos/base/AutoreleasePool.cpp index bfd20de611..fac9c64027 100644 --- a/native/cocos/base/AutoreleasePool.cpp +++ b/native/cocos/base/AutoreleasePool.cpp @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/AutoreleasePool.h b/native/cocos/base/AutoreleasePool.h index 2ac1a8aed5..0b899005eb 100644 --- a/native/cocos/base/AutoreleasePool.h +++ b/native/cocos/base/AutoreleasePool.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/CachedArray.h b/native/cocos/base/CachedArray.h index 94b0e43abd..b8fb68ef49 100755 --- a/native/cocos/base/CachedArray.h +++ b/native/cocos/base/CachedArray.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/Config.h b/native/cocos/base/Config.h index e8241653e2..5ed0959cab 100644 --- a/native/cocos/base/Config.h +++ b/native/cocos/base/Config.h @@ -3,7 +3,7 @@ Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2011 Zynga Inc. Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/CoreStd.h b/native/cocos/base/CoreStd.h index d6ac48dcef..fc7fbde76b 100644 --- a/native/cocos/base/CoreStd.h +++ b/native/cocos/base/CoreStd.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/Data.cpp b/native/cocos/base/Data.cpp index 9c2a78ed8b..744a042e92 100644 --- a/native/cocos/base/Data.cpp +++ b/native/cocos/base/Data.cpp @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/Data.h b/native/cocos/base/Data.h index e345e62939..09b7c9386f 100644 --- a/native/cocos/base/Data.h +++ b/native/cocos/base/Data.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/IndexHandle.h b/native/cocos/base/IndexHandle.h index 682b20bad8..f03336a7a8 100644 --- a/native/cocos/base/IndexHandle.h +++ b/native/cocos/base/IndexHandle.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/Locked.h b/native/cocos/base/Locked.h index d15b906720..a5f4c74eb5 100644 --- a/native/cocos/base/Locked.h +++ b/native/cocos/base/Locked.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/Log.cpp b/native/cocos/base/Log.cpp index fbe0e55d7d..eadb460ae3 100755 --- a/native/cocos/base/Log.cpp +++ b/native/cocos/base/Log.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/Log.h b/native/cocos/base/Log.h index 4d6296592d..3c1ec2908f 100755 --- a/native/cocos/base/Log.h +++ b/native/cocos/base/Log.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/Macros.h b/native/cocos/base/Macros.h index 360c62fbdc..f77e463bc3 100644 --- a/native/cocos/base/Macros.h +++ b/native/cocos/base/Macros.h @@ -3,7 +3,7 @@ Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2011 Zynga Inc. Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/Map.h b/native/cocos/base/Map.h index 492336c441..850ffc95bd 100644 --- a/native/cocos/base/Map.h +++ b/native/cocos/base/Map.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/Object.h b/native/cocos/base/Object.h index bef6411e1e..a6dcdf2153 100755 --- a/native/cocos/base/Object.h +++ b/native/cocos/base/Object.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/Random.h b/native/cocos/base/Random.h index 5019bdcaa5..0bca912817 100644 --- a/native/cocos/base/Random.h +++ b/native/cocos/base/Random.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/Ref.cpp b/native/cocos/base/Ref.cpp index ca2c715b73..19619b6c65 100644 --- a/native/cocos/base/Ref.cpp +++ b/native/cocos/base/Ref.cpp @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/Ref.h b/native/cocos/base/Ref.h index d8b023e5d6..065459d49c 100644 --- a/native/cocos/base/Ref.h +++ b/native/cocos/base/Ref.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/Scheduler.cpp b/native/cocos/base/Scheduler.cpp index 1d945ca0be..cae5514c38 100644 --- a/native/cocos/base/Scheduler.cpp +++ b/native/cocos/base/Scheduler.cpp @@ -3,7 +3,7 @@ Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2011 Zynga Inc. Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/Scheduler.h b/native/cocos/base/Scheduler.h index 9da227abb4..a5327156b5 100644 --- a/native/cocos/base/Scheduler.h +++ b/native/cocos/base/Scheduler.h @@ -3,7 +3,7 @@ Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2011 Zynga Inc. Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/StringHandle.cpp b/native/cocos/base/StringHandle.cpp index 109f2d0d67..cf419731a3 100644 --- a/native/cocos/base/StringHandle.cpp +++ b/native/cocos/base/StringHandle.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/StringHandle.h b/native/cocos/base/StringHandle.h index 7cb3caeb40..b7485373ea 100644 --- a/native/cocos/base/StringHandle.h +++ b/native/cocos/base/StringHandle.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/StringPool.h b/native/cocos/base/StringPool.h index 8f47c74674..5af16d7f32 100644 --- a/native/cocos/base/StringPool.h +++ b/native/cocos/base/StringPool.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/StringUtil.cpp b/native/cocos/base/StringUtil.cpp index c7bd037224..e0a5d8089d 100755 --- a/native/cocos/base/StringUtil.cpp +++ b/native/cocos/base/StringUtil.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/StringUtil.h b/native/cocos/base/StringUtil.h index b4d356452e..91394614d5 100755 --- a/native/cocos/base/StringUtil.h +++ b/native/cocos/base/StringUtil.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/ThreadPool.cpp b/native/cocos/base/ThreadPool.cpp index ce482673b6..90c3e0b5a9 100644 --- a/native/cocos/base/ThreadPool.cpp +++ b/native/cocos/base/ThreadPool.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016-2017 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/ThreadPool.h b/native/cocos/base/ThreadPool.h index 9a929a0c0f..356fbb09f5 100644 --- a/native/cocos/base/ThreadPool.h +++ b/native/cocos/base/ThreadPool.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016-2017 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/Timer.cpp b/native/cocos/base/Timer.cpp index d4429c8899..cd3dd3ac31 100644 --- a/native/cocos/base/Timer.cpp +++ b/native/cocos/base/Timer.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "Timer.h" diff --git a/native/cocos/base/Timer.h b/native/cocos/base/Timer.h index 94e8014150..6e4ec981f0 100644 --- a/native/cocos/base/Timer.h +++ b/native/cocos/base/Timer.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/base/TypeDef.h b/native/cocos/base/TypeDef.h index 59a6c8b9c9..a7094505a2 100755 --- a/native/cocos/base/TypeDef.h +++ b/native/cocos/base/TypeDef.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/UTF8.cpp b/native/cocos/base/UTF8.cpp index 7a22549b01..71ca2459ab 100644 --- a/native/cocos/base/UTF8.cpp +++ b/native/cocos/base/UTF8.cpp @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2014 cocos2d-x.org Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/UTF8.h b/native/cocos/base/UTF8.h index 38fe82ddea..b9cecb5ff3 100644 --- a/native/cocos/base/UTF8.h +++ b/native/cocos/base/UTF8.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2014 cocos2d-x.org Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/Utils.cpp b/native/cocos/base/Utils.cpp index b8c1753664..a2891c2efd 100644 --- a/native/cocos/base/Utils.cpp +++ b/native/cocos/base/Utils.cpp @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/Utils.h b/native/cocos/base/Utils.h index c3beda253a..7dacaa5de1 100644 --- a/native/cocos/base/Utils.h +++ b/native/cocos/base/Utils.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/Value.cpp b/native/cocos/base/Value.cpp index e0182f410b..4c57ffe05c 100644 --- a/native/cocos/base/Value.cpp +++ b/native/cocos/base/Value.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/Value.h b/native/cocos/base/Value.h index a43ad953fb..c872c5464a 100644 --- a/native/cocos/base/Value.h +++ b/native/cocos/base/Value.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/Vector.h b/native/cocos/base/Vector.h index 9924482f13..930275f358 100644 --- a/native/cocos/base/Vector.h +++ b/native/cocos/base/Vector.h @@ -2,7 +2,7 @@ Copyright (c) 2010 ForzeField Studios S.L. http://forzefield.com Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/ZipUtils.cpp b/native/cocos/base/ZipUtils.cpp index b949e78f15..b852ffc3fc 100644 --- a/native/cocos/base/ZipUtils.cpp +++ b/native/cocos/base/ZipUtils.cpp @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/ZipUtils.h b/native/cocos/base/ZipUtils.h index e705470473..eb6860aabc 100644 --- a/native/cocos/base/ZipUtils.h +++ b/native/cocos/base/ZipUtils.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/astc.cpp b/native/cocos/base/astc.cpp index c278c388a0..d2d5c1f9e6 100644 --- a/native/cocos/base/astc.cpp +++ b/native/cocos/base/astc.cpp @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/astc.h b/native/cocos/base/astc.h index c14a1e1a06..563d1f1b2e 100644 --- a/native/cocos/base/astc.h +++ b/native/cocos/base/astc.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/base64.cpp b/native/cocos/base/base64.cpp index d1b4ac21c6..c99c5a2689 100644 --- a/native/cocos/base/base64.cpp +++ b/native/cocos/base/base64.cpp @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/base64.h b/native/cocos/base/base64.h index 205af09a83..234d172457 100644 --- a/native/cocos/base/base64.h +++ b/native/cocos/base/base64.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/csscolorparser.cpp b/native/cocos/base/csscolorparser.cpp index 4a5cddd8f6..4fa70dd980 100644 --- a/native/cocos/base/csscolorparser.cpp +++ b/native/cocos/base/csscolorparser.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/csscolorparser.h b/native/cocos/base/csscolorparser.h index a129578849..74526adc4f 100644 --- a/native/cocos/base/csscolorparser.h +++ b/native/cocos/base/csscolorparser.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/etc1.cpp b/native/cocos/base/etc1.cpp index b2dc807ab6..68f4570b40 100644 --- a/native/cocos/base/etc1.cpp +++ b/native/cocos/base/etc1.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/etc1.h b/native/cocos/base/etc1.h index a96a6b245a..829e2d4e73 100644 --- a/native/cocos/base/etc1.h +++ b/native/cocos/base/etc1.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/etc2.cpp b/native/cocos/base/etc2.cpp index f1a43fb63b..4a0d1bc435 100644 --- a/native/cocos/base/etc2.cpp +++ b/native/cocos/base/etc2.cpp @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/etc2.h b/native/cocos/base/etc2.h index 30597bc446..52bb509f90 100644 --- a/native/cocos/base/etc2.h +++ b/native/cocos/base/etc2.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/job-system/JobSystem.h b/native/cocos/base/job-system/JobSystem.h index a66c172ed0..2cc98531a8 100644 --- a/native/cocos/base/job-system/JobSystem.h +++ b/native/cocos/base/job-system/JobSystem.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/job-system/job-system-dummy/DummyJobGraph.cpp b/native/cocos/base/job-system/job-system-dummy/DummyJobGraph.cpp index 26f1db1fb7..2c6f4515fd 100644 --- a/native/cocos/base/job-system/job-system-dummy/DummyJobGraph.cpp +++ b/native/cocos/base/job-system/job-system-dummy/DummyJobGraph.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/job-system/job-system-dummy/DummyJobGraph.h b/native/cocos/base/job-system/job-system-dummy/DummyJobGraph.h index a62b494a34..754656123e 100644 --- a/native/cocos/base/job-system/job-system-dummy/DummyJobGraph.h +++ b/native/cocos/base/job-system/job-system-dummy/DummyJobGraph.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/job-system/job-system-dummy/DummyJobSystem.cpp b/native/cocos/base/job-system/job-system-dummy/DummyJobSystem.cpp index d4e594ba59..b85bef2c1a 100644 --- a/native/cocos/base/job-system/job-system-dummy/DummyJobSystem.cpp +++ b/native/cocos/base/job-system/job-system-dummy/DummyJobSystem.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/job-system/job-system-dummy/DummyJobSystem.h b/native/cocos/base/job-system/job-system-dummy/DummyJobSystem.h index 85fc5fd46e..107178d08d 100644 --- a/native/cocos/base/job-system/job-system-dummy/DummyJobSystem.h +++ b/native/cocos/base/job-system/job-system-dummy/DummyJobSystem.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/job-system/job-system-taskflow/TFJobGraph.cpp b/native/cocos/base/job-system/job-system-taskflow/TFJobGraph.cpp index 01e933700f..d14b27c916 100644 --- a/native/cocos/base/job-system/job-system-taskflow/TFJobGraph.cpp +++ b/native/cocos/base/job-system/job-system-taskflow/TFJobGraph.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/job-system/job-system-taskflow/TFJobGraph.h b/native/cocos/base/job-system/job-system-taskflow/TFJobGraph.h index e3c9a0b181..35b64b85c7 100644 --- a/native/cocos/base/job-system/job-system-taskflow/TFJobGraph.h +++ b/native/cocos/base/job-system/job-system-taskflow/TFJobGraph.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/job-system/job-system-taskflow/TFJobSystem.cpp b/native/cocos/base/job-system/job-system-taskflow/TFJobSystem.cpp index 90dad4c950..b79703f3ad 100644 --- a/native/cocos/base/job-system/job-system-taskflow/TFJobSystem.cpp +++ b/native/cocos/base/job-system/job-system-taskflow/TFJobSystem.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/job-system/job-system-taskflow/TFJobSystem.h b/native/cocos/base/job-system/job-system-taskflow/TFJobSystem.h index 39e7fe0445..be5c4f54d3 100644 --- a/native/cocos/base/job-system/job-system-taskflow/TFJobSystem.h +++ b/native/cocos/base/job-system/job-system-taskflow/TFJobSystem.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/job-system/job-system-tbb/TBBJobGraph.cpp b/native/cocos/base/job-system/job-system-tbb/TBBJobGraph.cpp index 294b5aa0c7..f2a4250782 100644 --- a/native/cocos/base/job-system/job-system-tbb/TBBJobGraph.cpp +++ b/native/cocos/base/job-system/job-system-tbb/TBBJobGraph.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/job-system/job-system-tbb/TBBJobGraph.h b/native/cocos/base/job-system/job-system-tbb/TBBJobGraph.h index c92ad7a7e6..e2aeab1c15 100644 --- a/native/cocos/base/job-system/job-system-tbb/TBBJobGraph.h +++ b/native/cocos/base/job-system/job-system-tbb/TBBJobGraph.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/job-system/job-system-tbb/TBBJobSystem.cpp b/native/cocos/base/job-system/job-system-tbb/TBBJobSystem.cpp index ac2a2a0b19..b36f1d3c0c 100644 --- a/native/cocos/base/job-system/job-system-tbb/TBBJobSystem.cpp +++ b/native/cocos/base/job-system/job-system-tbb/TBBJobSystem.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/job-system/job-system-tbb/TBBJobSystem.h b/native/cocos/base/job-system/job-system-tbb/TBBJobSystem.h index 2f97218f31..5f15a54432 100644 --- a/native/cocos/base/job-system/job-system-tbb/TBBJobSystem.h +++ b/native/cocos/base/job-system/job-system-tbb/TBBJobSystem.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/memory/CallStack.cpp b/native/cocos/base/memory/CallStack.cpp index ba5086478f..c48c65e03d 100644 --- a/native/cocos/base/memory/CallStack.cpp +++ b/native/cocos/base/memory/CallStack.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/memory/CallStack.h b/native/cocos/base/memory/CallStack.h index 31d6d35def..649e27e69f 100644 --- a/native/cocos/base/memory/CallStack.h +++ b/native/cocos/base/memory/CallStack.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/memory/Memory.cpp b/native/cocos/base/memory/Memory.cpp index d5cafdbe3d..a0120155ed 100755 --- a/native/cocos/base/memory/Memory.cpp +++ b/native/cocos/base/memory/Memory.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/memory/Memory.h b/native/cocos/base/memory/Memory.h index dcc5a03e18..f2f5f278ed 100755 --- a/native/cocos/base/memory/Memory.h +++ b/native/cocos/base/memory/Memory.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/memory/MemoryHook.cpp b/native/cocos/base/memory/MemoryHook.cpp index d95b2b5f28..2913e9c65d 100644 --- a/native/cocos/base/memory/MemoryHook.cpp +++ b/native/cocos/base/memory/MemoryHook.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/memory/MemoryHook.h b/native/cocos/base/memory/MemoryHook.h index 6037b67ee8..6fac9b9032 100644 --- a/native/cocos/base/memory/MemoryHook.h +++ b/native/cocos/base/memory/MemoryHook.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/threading/AutoReleasePool-apple.mm b/native/cocos/base/threading/AutoReleasePool-apple.mm index 23216c9a9a..f909684a41 100644 --- a/native/cocos/base/threading/AutoReleasePool-apple.mm +++ b/native/cocos/base/threading/AutoReleasePool-apple.mm @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "AutoReleasePool.h" #import diff --git a/native/cocos/base/threading/AutoReleasePool.cpp b/native/cocos/base/threading/AutoReleasePool.cpp index eb8f0f7016..baac3cd69a 100644 --- a/native/cocos/base/threading/AutoReleasePool.cpp +++ b/native/cocos/base/threading/AutoReleasePool.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "AutoReleasePool.h" diff --git a/native/cocos/base/threading/AutoReleasePool.h b/native/cocos/base/threading/AutoReleasePool.h index 8494d37243..383bc603d9 100644 --- a/native/cocos/base/threading/AutoReleasePool.h +++ b/native/cocos/base/threading/AutoReleasePool.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/base/threading/ConditionVariable.cpp b/native/cocos/base/threading/ConditionVariable.cpp index 6d5058f80f..b1ae710148 100644 --- a/native/cocos/base/threading/ConditionVariable.cpp +++ b/native/cocos/base/threading/ConditionVariable.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/threading/ConditionVariable.h b/native/cocos/base/threading/ConditionVariable.h index 133a16d1b0..5046808d39 100644 --- a/native/cocos/base/threading/ConditionVariable.h +++ b/native/cocos/base/threading/ConditionVariable.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/threading/Event.h b/native/cocos/base/threading/Event.h index c77ebeb524..0f41c935cc 100644 --- a/native/cocos/base/threading/Event.h +++ b/native/cocos/base/threading/Event.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/threading/MessageQueue.cpp b/native/cocos/base/threading/MessageQueue.cpp index 07b90035c6..70fe0db469 100644 --- a/native/cocos/base/threading/MessageQueue.cpp +++ b/native/cocos/base/threading/MessageQueue.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/threading/MessageQueue.h b/native/cocos/base/threading/MessageQueue.h index b186c77257..50144466df 100644 --- a/native/cocos/base/threading/MessageQueue.h +++ b/native/cocos/base/threading/MessageQueue.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/threading/ReadWriteLock.h b/native/cocos/base/threading/ReadWriteLock.h index 3ae1e1b0c3..ae4dcfcde9 100644 --- a/native/cocos/base/threading/ReadWriteLock.h +++ b/native/cocos/base/threading/ReadWriteLock.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/threading/Semaphore.cpp b/native/cocos/base/threading/Semaphore.cpp index a8bba9a375..749d55dd62 100644 --- a/native/cocos/base/threading/Semaphore.cpp +++ b/native/cocos/base/threading/Semaphore.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/threading/Semaphore.h b/native/cocos/base/threading/Semaphore.h index 2e68e950ec..b5a95201f8 100644 --- a/native/cocos/base/threading/Semaphore.h +++ b/native/cocos/base/threading/Semaphore.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/threading/ThreadPool.cpp b/native/cocos/base/threading/ThreadPool.cpp index 3faa6facb5..2e33939fe4 100644 --- a/native/cocos/base/threading/ThreadPool.cpp +++ b/native/cocos/base/threading/ThreadPool.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/threading/ThreadPool.h b/native/cocos/base/threading/ThreadPool.h index 4dc9dc2134..bae735ee79 100644 --- a/native/cocos/base/threading/ThreadPool.h +++ b/native/cocos/base/threading/ThreadPool.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/threading/ThreadSafeCounter.h b/native/cocos/base/threading/ThreadSafeCounter.h index 0e94a901f4..4179882f35 100644 --- a/native/cocos/base/threading/ThreadSafeCounter.h +++ b/native/cocos/base/threading/ThreadSafeCounter.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/threading/ThreadSafeLinearAllocator.cpp b/native/cocos/base/threading/ThreadSafeLinearAllocator.cpp index 456ccaee73..99871bdf1b 100644 --- a/native/cocos/base/threading/ThreadSafeLinearAllocator.cpp +++ b/native/cocos/base/threading/ThreadSafeLinearAllocator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/threading/ThreadSafeLinearAllocator.h b/native/cocos/base/threading/ThreadSafeLinearAllocator.h index 3ea5fc6cca..2f2c074f7f 100644 --- a/native/cocos/base/threading/ThreadSafeLinearAllocator.h +++ b/native/cocos/base/threading/ThreadSafeLinearAllocator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/auto/jsb_audio_auto.cpp b/native/cocos/bindings/auto/jsb_audio_auto.cpp index 1788b4d570..cb7c3b37b6 100644 --- a/native/cocos/bindings/auto/jsb_audio_auto.cpp +++ b/native/cocos/bindings/auto/jsb_audio_auto.cpp @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #include "cocos/bindings/auto/jsb_audio_auto.h" #if (USE_AUDIO > 0) #include "cocos/bindings/manual/jsb_conversions.h" @@ -538,7 +563,7 @@ static bool js_audio_AudioEngine_setFinishCallback(se::State& s) // NOLINT(reada auto lambda = [=](int larg0, const std::string larg1) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(2); @@ -690,7 +715,7 @@ static bool js_audio_AudioEngine_preload(se::State& s) // NOLINT(readability-ide auto lambda = [=](bool larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); diff --git a/native/cocos/bindings/auto/jsb_audio_auto.h b/native/cocos/bindings/auto/jsb_audio_auto.h index f4a1eb72dd..7aabab129a 100644 --- a/native/cocos/bindings/auto/jsb_audio_auto.h +++ b/native/cocos/bindings/auto/jsb_audio_auto.h @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #pragma once #include "base/Config.h" #if (USE_AUDIO > 0) diff --git a/native/cocos/bindings/auto/jsb_cocos_auto.cpp b/native/cocos/bindings/auto/jsb_cocos_auto.cpp index 70ee0c6736..40cdc5f9b4 100644 --- a/native/cocos/bindings/auto/jsb_cocos_auto.cpp +++ b/native/cocos/bindings/auto/jsb_cocos_auto.cpp @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #include "cocos/bindings/auto/jsb_cocos_auto.h" #include "cocos/bindings/manual/jsb_conversions.h" #include "cocos/bindings/manual/jsb_global.h" @@ -1291,7 +1316,7 @@ static bool js_engine_ICanvasRenderingContext2D_setCanvasBufferUpdatedCallback(s auto lambda = [=](const cc::Data & larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); @@ -2069,4 +2094,3 @@ bool register_all_engine(se::Object* obj) js_register_engine_SAXParser(ns); return true; } - diff --git a/native/cocos/bindings/auto/jsb_cocos_auto.h b/native/cocos/bindings/auto/jsb_cocos_auto.h index eff706f4e7..9d8dd7dae4 100644 --- a/native/cocos/bindings/auto/jsb_cocos_auto.h +++ b/native/cocos/bindings/auto/jsb_cocos_auto.h @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #pragma once #include "base/Config.h" #include @@ -145,4 +170,3 @@ bool register_all_engine(se::Object* obj); JSB_REGISTER_OBJECT_TYPE(cc::SAXParser); SE_DECLARE_FUNC(js_engine_SAXParser_init); - diff --git a/native/cocos/bindings/auto/jsb_dragonbones_auto.cpp b/native/cocos/bindings/auto/jsb_dragonbones_auto.cpp index c88dfd71d1..5961fb792c 100644 --- a/native/cocos/bindings/auto/jsb_dragonbones_auto.cpp +++ b/native/cocos/bindings/auto/jsb_dragonbones_auto.cpp @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #include "cocos/bindings/auto/jsb_dragonbones_auto.h" #if USE_DRAGONBONES > 0 #include "cocos/bindings/manual/jsb_conversions.h" @@ -5429,7 +5454,7 @@ static bool js_dragonbones_CCArmatureDisplay_addDBEventListener(se::State& s) // auto lambda = [=](dragonBones::EventObject* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); @@ -5747,7 +5772,7 @@ static bool js_dragonbones_CCArmatureDisplay_removeDBEventListener(se::State& s) auto lambda = [=](dragonBones::EventObject* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); @@ -5858,7 +5883,7 @@ static bool js_dragonbones_CCArmatureDisplay_setDBEventCallback(se::State& s) // auto lambda = [=](dragonBones::EventObject* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); @@ -6449,7 +6474,7 @@ static bool js_dragonbones_CCArmatureCacheDisplay_setDBEventCallback(se::State& auto lambda = [=](dragonBones::EventObject* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); diff --git a/native/cocos/bindings/auto/jsb_dragonbones_auto.h b/native/cocos/bindings/auto/jsb_dragonbones_auto.h index a78f747f96..91d5e65989 100644 --- a/native/cocos/bindings/auto/jsb_dragonbones_auto.h +++ b/native/cocos/bindings/auto/jsb_dragonbones_auto.h @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #pragma once #include "base/Config.h" #if USE_DRAGONBONES > 0 diff --git a/native/cocos/bindings/auto/jsb_editor_support_auto.cpp b/native/cocos/bindings/auto/jsb_editor_support_auto.cpp index ca19de70b0..fbe821cc3e 100644 --- a/native/cocos/bindings/auto/jsb_editor_support_auto.cpp +++ b/native/cocos/bindings/auto/jsb_editor_support_auto.cpp @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #include "cocos/bindings/auto/jsb_editor_support_auto.h" #include "cocos/bindings/manual/jsb_conversions.h" #include "cocos/bindings/manual/jsb_global.h" @@ -147,7 +172,7 @@ static bool js_editor_support_Texture2D_setTexParamCallback(se::State& s) // NOL auto lambda = [=](int larg0, unsigned int larg1, unsigned int larg2, unsigned int larg3, unsigned int larg4) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(5); @@ -262,7 +287,7 @@ static bool js_editor_support_SharedBufferManager_setResizeCallback(se::State& s auto lambda = [=]() -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); @@ -648,4 +673,3 @@ bool register_all_editor_support(se::Object* obj) js_register_editor_support_MiddlewareManager(ns); return true; } - diff --git a/native/cocos/bindings/auto/jsb_editor_support_auto.h b/native/cocos/bindings/auto/jsb_editor_support_auto.h index 1e53355af5..9f4705d21a 100644 --- a/native/cocos/bindings/auto/jsb_editor_support_auto.h +++ b/native/cocos/bindings/auto/jsb_editor_support_auto.h @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #pragma once #include "base/Config.h" #include @@ -54,4 +79,3 @@ SE_DECLARE_FUNC(js_editor_support_MiddlewareManager_getInstance); SE_DECLARE_FUNC(js_editor_support_MiddlewareManager_destroyInstance); SE_DECLARE_FUNC(js_editor_support_MiddlewareManager_generateModuleID); SE_DECLARE_FUNC(js_editor_support_MiddlewareManager_MiddlewareManager); - diff --git a/native/cocos/bindings/auto/jsb_extension_auto.cpp b/native/cocos/bindings/auto/jsb_extension_auto.cpp index e233425cc4..0c86553eea 100644 --- a/native/cocos/bindings/auto/jsb_extension_auto.cpp +++ b/native/cocos/bindings/auto/jsb_extension_auto.cpp @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #include "cocos/bindings/auto/jsb_extension_auto.h" #include "cocos/bindings/manual/jsb_conversions.h" #include "cocos/bindings/manual/jsb_global.h" @@ -948,7 +973,7 @@ static bool js_extension_AssetsManagerEx_setEventCallback(se::State& s) // NOLIN auto lambda = [=](cc::extension::EventAssetsManagerEx* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); @@ -1015,7 +1040,7 @@ static bool js_extension_AssetsManagerEx_setVerifyCallback(se::State& s) // NOLI auto lambda = [=](const std::string larg0, cc::extension::ManifestAsset larg1) -> bool { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(2); @@ -1068,7 +1093,7 @@ static bool js_extension_AssetsManagerEx_setVersionCompareHandle(se::State& s) / auto lambda = [=](const std::string larg0, const std::string larg1) -> int { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(2); @@ -1166,7 +1191,7 @@ static bool js_extension_AssetsManagerEx_constructor(se::State& s) // NOLINT(rea auto lambda = [=](const std::string larg0, const std::string larg1) -> int { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(2); @@ -1278,4 +1303,3 @@ bool register_all_extension(se::Object* obj) js_register_extension_AssetsManagerEx(ns); return true; } - diff --git a/native/cocos/bindings/auto/jsb_extension_auto.h b/native/cocos/bindings/auto/jsb_extension_auto.h index dcfd3d411f..feed21aaaa 100644 --- a/native/cocos/bindings/auto/jsb_extension_auto.h +++ b/native/cocos/bindings/auto/jsb_extension_auto.h @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #pragma once #include "base/Config.h" #include diff --git a/native/cocos/bindings/auto/jsb_gfx_auto.cpp b/native/cocos/bindings/auto/jsb_gfx_auto.cpp index a577298da6..8eba456d1a 100644 --- a/native/cocos/bindings/auto/jsb_gfx_auto.cpp +++ b/native/cocos/bindings/auto/jsb_gfx_auto.cpp @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #include "cocos/bindings/auto/jsb_gfx_auto.h" #include "cocos/bindings/manual/jsb_conversions.h" #include "cocos/bindings/manual/jsb_global.h" @@ -21372,4 +21397,3 @@ bool register_all_gfx(se::Object* obj) js_register_gfx_DeviceManager(ns); return true; } - diff --git a/native/cocos/bindings/auto/jsb_gfx_auto.h b/native/cocos/bindings/auto/jsb_gfx_auto.h index a1db6e319a..ad970158d9 100644 --- a/native/cocos/bindings/auto/jsb_gfx_auto.h +++ b/native/cocos/bindings/auto/jsb_gfx_auto.h @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #pragma once #include "base/Config.h" #include @@ -885,4 +910,3 @@ JSB_REGISTER_OBJECT_TYPE(cc::gfx::DeviceManager); SE_DECLARE_FUNC(js_gfx_DeviceManager_create); SE_DECLARE_FUNC(js_gfx_DeviceManager_destroy); SE_DECLARE_FUNC(js_gfx_DeviceManager_addSurfaceEventListener); - diff --git a/native/cocos/bindings/auto/jsb_network_auto.cpp b/native/cocos/bindings/auto/jsb_network_auto.cpp index 878bf794a7..9d4baf7d81 100644 --- a/native/cocos/bindings/auto/jsb_network_auto.cpp +++ b/native/cocos/bindings/auto/jsb_network_auto.cpp @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #include "cocos/bindings/auto/jsb_network_auto.h" #include "cocos/bindings/manual/jsb_conversions.h" #include "cocos/bindings/manual/jsb_global.h" @@ -232,7 +257,7 @@ static bool js_network_Downloader_setOnTaskProgress(se::State& s) // NOLINT(read auto lambda = [=](const cc::network::DownloadTask & larg0, int64_t larg1, int64_t larg2, int64_t larg3) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(4); @@ -342,4 +367,3 @@ bool register_all_network(se::Object* obj) js_register_network_Downloader(ns); return true; } - diff --git a/native/cocos/bindings/auto/jsb_network_auto.h b/native/cocos/bindings/auto/jsb_network_auto.h index ebca293de1..6c601b8c8a 100644 --- a/native/cocos/bindings/auto/jsb_network_auto.h +++ b/native/cocos/bindings/auto/jsb_network_auto.h @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #pragma once #include "base/Config.h" #include @@ -24,4 +49,3 @@ bool register_all_network(se::Object* obj); JSB_REGISTER_OBJECT_TYPE(cc::network::Downloader); SE_DECLARE_FUNC(js_network_Downloader_setOnTaskProgress); SE_DECLARE_FUNC(js_network_Downloader_Downloader); - diff --git a/native/cocos/bindings/auto/jsb_physics_auto.cpp b/native/cocos/bindings/auto/jsb_physics_auto.cpp index fedd1092fa..fca4c51036 100644 --- a/native/cocos/bindings/auto/jsb_physics_auto.cpp +++ b/native/cocos/bindings/auto/jsb_physics_auto.cpp @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #include "cocos/bindings/auto/jsb_physics_auto.h" #include "cocos/bindings/manual/jsb_conversions.h" #include "cocos/bindings/manual/jsb_global.h" @@ -4840,4 +4865,3 @@ bool register_all_physics(se::Object* obj) js_register_physics_DistanceJoint(ns); return true; } - diff --git a/native/cocos/bindings/auto/jsb_physics_auto.h b/native/cocos/bindings/auto/jsb_physics_auto.h index 9d029c2ffe..adb9d41d15 100644 --- a/native/cocos/bindings/auto/jsb_physics_auto.h +++ b/native/cocos/bindings/auto/jsb_physics_auto.h @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #pragma once #include "base/Config.h" #include @@ -324,4 +349,3 @@ SE_DECLARE_FUNC(js_physics_DistanceJoint_setEnableCollision); SE_DECLARE_FUNC(js_physics_DistanceJoint_setPivotA); SE_DECLARE_FUNC(js_physics_DistanceJoint_setPivotB); SE_DECLARE_FUNC(js_physics_DistanceJoint_DistanceJoint); - diff --git a/native/cocos/bindings/auto/jsb_pipeline_auto.cpp b/native/cocos/bindings/auto/jsb_pipeline_auto.cpp index 2a08ecde5e..a1169d572c 100644 --- a/native/cocos/bindings/auto/jsb_pipeline_auto.cpp +++ b/native/cocos/bindings/auto/jsb_pipeline_auto.cpp @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #include "cocos/bindings/auto/jsb_pipeline_auto.h" #include "cocos/bindings/manual/jsb_conversions.h" #include "cocos/bindings/manual/jsb_global.h" @@ -3244,4 +3269,3 @@ bool register_all_pipeline(se::Object* obj) js_register_pipeline_GeometryRenderer(ns); return true; } - diff --git a/native/cocos/bindings/auto/jsb_pipeline_auto.h b/native/cocos/bindings/auto/jsb_pipeline_auto.h index 983c1a29d0..1167e2470c 100644 --- a/native/cocos/bindings/auto/jsb_pipeline_auto.h +++ b/native/cocos/bindings/auto/jsb_pipeline_auto.h @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #pragma once #include "base/Config.h" #include @@ -281,4 +306,3 @@ bool register_all_pipeline(se::Object* obj); JSB_REGISTER_OBJECT_TYPE(cc::pipeline::GeometryRenderer); SE_DECLARE_FUNC(js_pipeline_GeometryRenderer_GeometryRenderer); - diff --git a/native/cocos/bindings/auto/jsb_scene_auto.cpp b/native/cocos/bindings/auto/jsb_scene_auto.cpp index e8ab264c4c..26022578be 100644 --- a/native/cocos/bindings/auto/jsb_scene_auto.cpp +++ b/native/cocos/bindings/auto/jsb_scene_auto.cpp @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #include "cocos/bindings/auto/jsb_scene_auto.h" #include "cocos/bindings/manual/jsb_conversions.h" #include "cocos/bindings/manual/jsb_global.h" @@ -9468,4 +9493,3 @@ bool register_all_scene(se::Object* obj) js_register_scene_Sphere(ns); return true; } - diff --git a/native/cocos/bindings/auto/jsb_scene_auto.h b/native/cocos/bindings/auto/jsb_scene_auto.h index babd985e18..61c59ba0f0 100644 --- a/native/cocos/bindings/auto/jsb_scene_auto.h +++ b/native/cocos/bindings/auto/jsb_scene_auto.h @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #pragma once #include "base/Config.h" #include @@ -501,4 +526,3 @@ SE_DECLARE_FUNC(js_scene_Sphere_getRadius); SE_DECLARE_FUNC(js_scene_Sphere_setCenter); SE_DECLARE_FUNC(js_scene_Sphere_setRadius); SE_DECLARE_FUNC(js_scene_Sphere_Sphere); - diff --git a/native/cocos/bindings/auto/jsb_spine_auto.cpp b/native/cocos/bindings/auto/jsb_spine_auto.cpp index c2e9323927..f0ef1fbeee 100644 --- a/native/cocos/bindings/auto/jsb_spine_auto.cpp +++ b/native/cocos/bindings/auto/jsb_spine_auto.cpp @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #include "cocos/bindings/auto/jsb_spine_auto.h" #include "cocos/bindings/manual/jsb_conversions.h" #include "cocos/bindings/manual/jsb_global.h" @@ -14264,7 +14289,7 @@ static bool js_spine_SkeletonAnimation_setCompleteListener(se::State& s) // NOLI auto lambda = [=](spine::TrackEntry* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); @@ -14312,7 +14337,7 @@ static bool js_spine_SkeletonAnimation_setDisposeListener(se::State& s) // NOLIN auto lambda = [=](spine::TrackEntry* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); @@ -14403,7 +14428,7 @@ static bool js_spine_SkeletonAnimation_setEndListener(se::State& s) // NOLINT(re auto lambda = [=](spine::TrackEntry* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); @@ -14451,7 +14476,7 @@ static bool js_spine_SkeletonAnimation_setEventListener(se::State& s) // NOLINT( auto lambda = [=](spine::TrackEntry* larg0, spine::Event* larg1) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(2); @@ -14500,7 +14525,7 @@ static bool js_spine_SkeletonAnimation_setInterruptListener(se::State& s) // NOL auto lambda = [=](spine::TrackEntry* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); @@ -14571,7 +14596,7 @@ static bool js_spine_SkeletonAnimation_setStartListener(se::State& s) // NOLINT( auto lambda = [=](spine::TrackEntry* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); @@ -14621,7 +14646,7 @@ static bool js_spine_SkeletonAnimation_setTrackCompleteListener(se::State& s) // auto lambda = [=](spine::TrackEntry* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); @@ -14671,7 +14696,7 @@ static bool js_spine_SkeletonAnimation_setTrackDisposeListener(se::State& s) // auto lambda = [=](spine::TrackEntry* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); @@ -14721,7 +14746,7 @@ static bool js_spine_SkeletonAnimation_setTrackEndListener(se::State& s) // NOLI auto lambda = [=](spine::TrackEntry* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); @@ -14771,7 +14796,7 @@ static bool js_spine_SkeletonAnimation_setTrackEventListener(se::State& s) // NO auto lambda = [=](spine::TrackEntry* larg0, spine::Event* larg1) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(2); @@ -14822,7 +14847,7 @@ static bool js_spine_SkeletonAnimation_setTrackInterruptListener(se::State& s) / auto lambda = [=](spine::TrackEntry* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); @@ -14872,7 +14897,7 @@ static bool js_spine_SkeletonAnimation_setTrackStartListener(se::State& s) // NO auto lambda = [=](spine::TrackEntry* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); @@ -15032,7 +15057,7 @@ static bool js_spine_SkeletonAnimation_ctor(se::State& s) // NOLINT(readability- SE_BIND_SUB_CLS_CTOR(js_spine_SkeletonAnimation_ctor, __jsb_spine_SkeletonAnimation_class, js_spine_SkeletonAnimation_finalize) - + static bool js_spine_SkeletonAnimation_finalize(se::State& s) // NOLINT(readability-identifier-naming) { @@ -15533,7 +15558,7 @@ static bool js_spine_SkeletonCacheAnimation_setCompleteListener(se::State& s) // auto lambda = [=](std::string larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); @@ -15581,7 +15606,7 @@ static bool js_spine_SkeletonCacheAnimation_setEndListener(se::State& s) // NOLI auto lambda = [=](std::string larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); @@ -15697,7 +15722,7 @@ static bool js_spine_SkeletonCacheAnimation_setStartListener(se::State& s) // NO auto lambda = [=](std::string larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); @@ -16049,7 +16074,7 @@ static bool js_spine_SkeletonDataMgr_setDestroyCallback(se::State& s) // NOLINT( auto lambda = [=](int larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); @@ -16209,4 +16234,3 @@ bool register_all_spine(se::Object* obj) js_register_spine_SkeletonDataMgr(ns); return true; } - diff --git a/native/cocos/bindings/auto/jsb_spine_auto.h b/native/cocos/bindings/auto/jsb_spine_auto.h index f93e49071a..8cc805d27f 100644 --- a/native/cocos/bindings/auto/jsb_spine_auto.h +++ b/native/cocos/bindings/auto/jsb_spine_auto.h @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #pragma once #include "base/Config.h" #include @@ -1150,4 +1175,3 @@ JSB_REGISTER_OBJECT_TYPE(spine::SkeletonDataMgr); SE_DECLARE_FUNC(js_spine_SkeletonDataMgr_setDestroyCallback); SE_DECLARE_FUNC(js_spine_SkeletonDataMgr_getInstance); SE_DECLARE_FUNC(js_spine_SkeletonDataMgr_SkeletonDataMgr); - diff --git a/native/cocos/bindings/auto/jsb_video_auto.cpp b/native/cocos/bindings/auto/jsb_video_auto.cpp index 979b9d617f..f04aaf91af 100644 --- a/native/cocos/bindings/auto/jsb_video_auto.cpp +++ b/native/cocos/bindings/auto/jsb_video_auto.cpp @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #include "cocos/bindings/auto/jsb_video_auto.h" #if (USE_VIDEO > 0) #include "cocos/bindings/manual/jsb_conversions.h" @@ -34,7 +59,7 @@ static bool js_video_VideoPlayer_addEventListener(se::State& s) // NOLINT(readab auto lambda = [=]() -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); diff --git a/native/cocos/bindings/auto/jsb_video_auto.h b/native/cocos/bindings/auto/jsb_video_auto.h index 7409e55cb1..1c640690af 100644 --- a/native/cocos/bindings/auto/jsb_video_auto.h +++ b/native/cocos/bindings/auto/jsb_video_auto.h @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #pragma once #include "base/Config.h" #if (USE_VIDEO > 0) diff --git a/native/cocos/bindings/auto/jsb_webview_auto.cpp b/native/cocos/bindings/auto/jsb_webview_auto.cpp index 57f2044559..a07ffdcc91 100644 --- a/native/cocos/bindings/auto/jsb_webview_auto.cpp +++ b/native/cocos/bindings/auto/jsb_webview_auto.cpp @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #include "cocos/bindings/auto/jsb_webview_auto.h" #if USE_WEBVIEW > 0 #include "cocos/bindings/manual/jsb_conversions.h" @@ -383,7 +408,7 @@ static bool js_webview_WebView_setOnDidFailLoading(se::State& s) // NOLINT(reada auto lambda = [=](cc::WebView* larg0, const std::string larg1) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(2); @@ -432,7 +457,7 @@ static bool js_webview_WebView_setOnDidFinishLoading(se::State& s) // NOLINT(rea auto lambda = [=](cc::WebView* larg0, const std::string larg1) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(2); @@ -481,7 +506,7 @@ static bool js_webview_WebView_setOnJSCallback(se::State& s) // NOLINT(readabili auto lambda = [=](cc::WebView* larg0, const std::string larg1) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(2); @@ -530,7 +555,7 @@ static bool js_webview_WebView_setOnShouldStartLoading(se::State& s) // NOLINT(r auto lambda = [=](cc::WebView* larg0, const std::string larg1) -> bool { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(2); diff --git a/native/cocos/bindings/auto/jsb_webview_auto.h b/native/cocos/bindings/auto/jsb_webview_auto.h index 6ed2a2ef48..a19341b01d 100644 --- a/native/cocos/bindings/auto/jsb_webview_auto.h +++ b/native/cocos/bindings/auto/jsb_webview_auto.h @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #pragma once #include "base/Config.h" #if USE_WEBVIEW > 0 diff --git a/native/cocos/bindings/dop/BufferAllocator.cpp b/native/cocos/bindings/dop/BufferAllocator.cpp index a7ba794149..5f8b9f1a0f 100644 --- a/native/cocos/bindings/dop/BufferAllocator.cpp +++ b/native/cocos/bindings/dop/BufferAllocator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/dop/BufferAllocator.h b/native/cocos/bindings/dop/BufferAllocator.h index 1f6bc75e1b..2e70c7ccb6 100644 --- a/native/cocos/bindings/dop/BufferAllocator.h +++ b/native/cocos/bindings/dop/BufferAllocator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/dop/BufferPool.cpp b/native/cocos/bindings/dop/BufferPool.cpp index 262f0af4ec..ccd2f9a73e 100644 --- a/native/cocos/bindings/dop/BufferPool.cpp +++ b/native/cocos/bindings/dop/BufferPool.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/dop/BufferPool.h b/native/cocos/bindings/dop/BufferPool.h index bd914658d9..7bbd039cc2 100644 --- a/native/cocos/bindings/dop/BufferPool.h +++ b/native/cocos/bindings/dop/BufferPool.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/dop/PoolType.h b/native/cocos/bindings/dop/PoolType.h index b03148cba9..3576eecdc8 100644 --- a/native/cocos/bindings/dop/PoolType.h +++ b/native/cocos/bindings/dop/PoolType.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/dop/jsb_dop.cpp b/native/cocos/bindings/dop/jsb_dop.cpp index e0440af432..586a5f8337 100644 --- a/native/cocos/bindings/dop/jsb_dop.cpp +++ b/native/cocos/bindings/dop/jsb_dop.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/dop/jsb_dop.h b/native/cocos/bindings/dop/jsb_dop.h index 062d188d8c..27e6a651d3 100644 --- a/native/cocos/bindings/dop/jsb_dop.h +++ b/native/cocos/bindings/dop/jsb_dop.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/event/CustomEventTypes.h b/native/cocos/bindings/event/CustomEventTypes.h index 582157d90e..e6c014687c 100644 --- a/native/cocos/bindings/event/CustomEventTypes.h +++ b/native/cocos/bindings/event/CustomEventTypes.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/event/EventDispatcher.cpp b/native/cocos/bindings/event/EventDispatcher.cpp index cf110ea6f5..d935ea57d6 100644 --- a/native/cocos/bindings/event/EventDispatcher.cpp +++ b/native/cocos/bindings/event/EventDispatcher.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/event/EventDispatcher.h b/native/cocos/bindings/event/EventDispatcher.h index ff9f0c5394..28e74baa76 100644 --- a/native/cocos/bindings/event/EventDispatcher.h +++ b/native/cocos/bindings/event/EventDispatcher.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/HandleObject.cpp b/native/cocos/bindings/jswrapper/HandleObject.cpp index b4a3f80bc7..f3034254a3 100644 --- a/native/cocos/bindings/jswrapper/HandleObject.cpp +++ b/native/cocos/bindings/jswrapper/HandleObject.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/HandleObject.h b/native/cocos/bindings/jswrapper/HandleObject.h index 1510a56b2b..f55148f5c4 100644 --- a/native/cocos/bindings/jswrapper/HandleObject.h +++ b/native/cocos/bindings/jswrapper/HandleObject.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/MappingUtils.cpp b/native/cocos/bindings/jswrapper/MappingUtils.cpp index 8247b5989c..e103c6c39c 100644 --- a/native/cocos/bindings/jswrapper/MappingUtils.cpp +++ b/native/cocos/bindings/jswrapper/MappingUtils.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/MappingUtils.h b/native/cocos/bindings/jswrapper/MappingUtils.h index 90b70f9d38..5bc1646289 100644 --- a/native/cocos/bindings/jswrapper/MappingUtils.h +++ b/native/cocos/bindings/jswrapper/MappingUtils.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/Object.h b/native/cocos/bindings/jswrapper/Object.h index 48e2e463c4..997e56a330 100644 --- a/native/cocos/bindings/jswrapper/Object.h +++ b/native/cocos/bindings/jswrapper/Object.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/RefCounter.cpp b/native/cocos/bindings/jswrapper/RefCounter.cpp index e1d1840dc0..6f6f105b9f 100644 --- a/native/cocos/bindings/jswrapper/RefCounter.cpp +++ b/native/cocos/bindings/jswrapper/RefCounter.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/RefCounter.h b/native/cocos/bindings/jswrapper/RefCounter.h index 5fe3bc249a..0935087fbe 100644 --- a/native/cocos/bindings/jswrapper/RefCounter.h +++ b/native/cocos/bindings/jswrapper/RefCounter.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/SeApi.h b/native/cocos/bindings/jswrapper/SeApi.h index fb9263d8ee..26ffc11f08 100644 --- a/native/cocos/bindings/jswrapper/SeApi.h +++ b/native/cocos/bindings/jswrapper/SeApi.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/State.cpp b/native/cocos/bindings/jswrapper/State.cpp index 497ac03b3f..8330c13e49 100644 --- a/native/cocos/bindings/jswrapper/State.cpp +++ b/native/cocos/bindings/jswrapper/State.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/State.h b/native/cocos/bindings/jswrapper/State.h index b98b69ca1b..00aae197d7 100644 --- a/native/cocos/bindings/jswrapper/State.h +++ b/native/cocos/bindings/jswrapper/State.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/Value.cpp b/native/cocos/bindings/jswrapper/Value.cpp index 2d70118671..f1a7dfea70 100644 --- a/native/cocos/bindings/jswrapper/Value.cpp +++ b/native/cocos/bindings/jswrapper/Value.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/Value.h b/native/cocos/bindings/jswrapper/Value.h index db996ad805..5a4d3f1788 100644 --- a/native/cocos/bindings/jswrapper/Value.h +++ b/native/cocos/bindings/jswrapper/Value.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/chakracore/Base.h b/native/cocos/bindings/jswrapper/chakracore/Base.h index 4b989c356d..9181283e63 100644 --- a/native/cocos/bindings/jswrapper/chakracore/Base.h +++ b/native/cocos/bindings/jswrapper/chakracore/Base.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/chakracore/Class.cpp b/native/cocos/bindings/jswrapper/chakracore/Class.cpp index 7a2a4a8a96..69c9f4bd4b 100644 --- a/native/cocos/bindings/jswrapper/chakracore/Class.cpp +++ b/native/cocos/bindings/jswrapper/chakracore/Class.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/chakracore/Class.h b/native/cocos/bindings/jswrapper/chakracore/Class.h index 9eca101a9f..b07a3c09b7 100644 --- a/native/cocos/bindings/jswrapper/chakracore/Class.h +++ b/native/cocos/bindings/jswrapper/chakracore/Class.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/chakracore/HelperMacros.h b/native/cocos/bindings/jswrapper/chakracore/HelperMacros.h index 53ad884838..e01c73f9a1 100644 --- a/native/cocos/bindings/jswrapper/chakracore/HelperMacros.h +++ b/native/cocos/bindings/jswrapper/chakracore/HelperMacros.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/chakracore/Object.cpp b/native/cocos/bindings/jswrapper/chakracore/Object.cpp index eac1534729..4523ce4459 100644 --- a/native/cocos/bindings/jswrapper/chakracore/Object.cpp +++ b/native/cocos/bindings/jswrapper/chakracore/Object.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/chakracore/Object.h b/native/cocos/bindings/jswrapper/chakracore/Object.h index 06611f9fb9..7dce0b9f61 100644 --- a/native/cocos/bindings/jswrapper/chakracore/Object.h +++ b/native/cocos/bindings/jswrapper/chakracore/Object.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/chakracore/ScriptEngine.cpp b/native/cocos/bindings/jswrapper/chakracore/ScriptEngine.cpp index 4b93fc14bf..e2339aaa72 100644 --- a/native/cocos/bindings/jswrapper/chakracore/ScriptEngine.cpp +++ b/native/cocos/bindings/jswrapper/chakracore/ScriptEngine.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/chakracore/ScriptEngine.h b/native/cocos/bindings/jswrapper/chakracore/ScriptEngine.h index 9d761e133c..405dfc9ad6 100644 --- a/native/cocos/bindings/jswrapper/chakracore/ScriptEngine.h +++ b/native/cocos/bindings/jswrapper/chakracore/ScriptEngine.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/chakracore/SeApi.h b/native/cocos/bindings/jswrapper/chakracore/SeApi.h index b812e1c781..f5bd3e6dad 100644 --- a/native/cocos/bindings/jswrapper/chakracore/SeApi.h +++ b/native/cocos/bindings/jswrapper/chakracore/SeApi.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/chakracore/Utils.cpp b/native/cocos/bindings/jswrapper/chakracore/Utils.cpp index 69479cc309..6d98812916 100644 --- a/native/cocos/bindings/jswrapper/chakracore/Utils.cpp +++ b/native/cocos/bindings/jswrapper/chakracore/Utils.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/chakracore/Utils.h b/native/cocos/bindings/jswrapper/chakracore/Utils.h index c26e27b26b..b2994a8ace 100644 --- a/native/cocos/bindings/jswrapper/chakracore/Utils.h +++ b/native/cocos/bindings/jswrapper/chakracore/Utils.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/config.cpp b/native/cocos/bindings/jswrapper/config.cpp index 96ac3bdc42..6cafbc1709 100644 --- a/native/cocos/bindings/jswrapper/config.cpp +++ b/native/cocos/bindings/jswrapper/config.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/config.h b/native/cocos/bindings/jswrapper/config.h index db19dc3c10..0b05413123 100644 --- a/native/cocos/bindings/jswrapper/config.h +++ b/native/cocos/bindings/jswrapper/config.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/jsc/Base.h b/native/cocos/bindings/jswrapper/jsc/Base.h index 05ff0e72be..0d29442499 100644 --- a/native/cocos/bindings/jswrapper/jsc/Base.h +++ b/native/cocos/bindings/jswrapper/jsc/Base.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/jsc/Class.cpp b/native/cocos/bindings/jswrapper/jsc/Class.cpp index 5a1af73f5d..ac97ef2c23 100644 --- a/native/cocos/bindings/jswrapper/jsc/Class.cpp +++ b/native/cocos/bindings/jswrapper/jsc/Class.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/jsc/Class.h b/native/cocos/bindings/jswrapper/jsc/Class.h index 78323c1086..7024b268d5 100644 --- a/native/cocos/bindings/jswrapper/jsc/Class.h +++ b/native/cocos/bindings/jswrapper/jsc/Class.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/jsc/EJConvert.h b/native/cocos/bindings/jswrapper/jsc/EJConvert.h index 22a6b2aac3..d7c9a47fbe 100644 --- a/native/cocos/bindings/jswrapper/jsc/EJConvert.h +++ b/native/cocos/bindings/jswrapper/jsc/EJConvert.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/jsc/EJConvertTypedArray.h b/native/cocos/bindings/jswrapper/jsc/EJConvertTypedArray.h index 07c5383766..b2e894e2ae 100644 --- a/native/cocos/bindings/jswrapper/jsc/EJConvertTypedArray.h +++ b/native/cocos/bindings/jswrapper/jsc/EJConvertTypedArray.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/jsc/HelperMacros.h b/native/cocos/bindings/jswrapper/jsc/HelperMacros.h index 979c3deff6..91e526463b 100644 --- a/native/cocos/bindings/jswrapper/jsc/HelperMacros.h +++ b/native/cocos/bindings/jswrapper/jsc/HelperMacros.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/jsc/Object.h b/native/cocos/bindings/jswrapper/jsc/Object.h index f2ad63b005..16b3a79eb2 100644 --- a/native/cocos/bindings/jswrapper/jsc/Object.h +++ b/native/cocos/bindings/jswrapper/jsc/Object.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/jsc/Object.mm b/native/cocos/bindings/jswrapper/jsc/Object.mm index 500f9865b0..356d38616c 100644 --- a/native/cocos/bindings/jswrapper/jsc/Object.mm +++ b/native/cocos/bindings/jswrapper/jsc/Object.mm @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/jsc/PlatformUtils.h b/native/cocos/bindings/jswrapper/jsc/PlatformUtils.h index 3a9c2387e7..f14838906b 100644 --- a/native/cocos/bindings/jswrapper/jsc/PlatformUtils.h +++ b/native/cocos/bindings/jswrapper/jsc/PlatformUtils.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/jsc/PlatformUtils.mm b/native/cocos/bindings/jswrapper/jsc/PlatformUtils.mm index f02132829e..2bff8996d9 100644 --- a/native/cocos/bindings/jswrapper/jsc/PlatformUtils.mm +++ b/native/cocos/bindings/jswrapper/jsc/PlatformUtils.mm @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/jsc/ScriptEngine.h b/native/cocos/bindings/jswrapper/jsc/ScriptEngine.h index 3dc755834d..9d46d98986 100644 --- a/native/cocos/bindings/jswrapper/jsc/ScriptEngine.h +++ b/native/cocos/bindings/jswrapper/jsc/ScriptEngine.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/jsc/ScriptEngine.mm b/native/cocos/bindings/jswrapper/jsc/ScriptEngine.mm index 72be0eb75f..15b8cc7dbd 100644 --- a/native/cocos/bindings/jswrapper/jsc/ScriptEngine.mm +++ b/native/cocos/bindings/jswrapper/jsc/ScriptEngine.mm @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/jsc/SeApi.h b/native/cocos/bindings/jswrapper/jsc/SeApi.h index 77a80f751e..6c8b2c39c5 100644 --- a/native/cocos/bindings/jswrapper/jsc/SeApi.h +++ b/native/cocos/bindings/jswrapper/jsc/SeApi.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/jsc/Utils.cpp b/native/cocos/bindings/jswrapper/jsc/Utils.cpp index a23e712e69..cb0a6b28f1 100644 --- a/native/cocos/bindings/jswrapper/jsc/Utils.cpp +++ b/native/cocos/bindings/jswrapper/jsc/Utils.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/jsc/Utils.h b/native/cocos/bindings/jswrapper/jsc/Utils.h index b1160e6ccf..f219d76177 100644 --- a/native/cocos/bindings/jswrapper/jsc/Utils.h +++ b/native/cocos/bindings/jswrapper/jsc/Utils.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/sm/Base.h b/native/cocos/bindings/jswrapper/sm/Base.h index 8c5ba834c3..3af54ac1d9 100644 --- a/native/cocos/bindings/jswrapper/sm/Base.h +++ b/native/cocos/bindings/jswrapper/sm/Base.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/sm/Class.cpp b/native/cocos/bindings/jswrapper/sm/Class.cpp index c33a9573de..863035bb1e 100644 --- a/native/cocos/bindings/jswrapper/sm/Class.cpp +++ b/native/cocos/bindings/jswrapper/sm/Class.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/sm/Class.h b/native/cocos/bindings/jswrapper/sm/Class.h index c4dad43d9d..8186bca67b 100644 --- a/native/cocos/bindings/jswrapper/sm/Class.h +++ b/native/cocos/bindings/jswrapper/sm/Class.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/sm/HelperMacros.h b/native/cocos/bindings/jswrapper/sm/HelperMacros.h index bc345a961b..dc2926c891 100644 --- a/native/cocos/bindings/jswrapper/sm/HelperMacros.h +++ b/native/cocos/bindings/jswrapper/sm/HelperMacros.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/sm/Object.cpp b/native/cocos/bindings/jswrapper/sm/Object.cpp index 4f754dd011..f8045e395e 100644 --- a/native/cocos/bindings/jswrapper/sm/Object.cpp +++ b/native/cocos/bindings/jswrapper/sm/Object.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/sm/Object.h b/native/cocos/bindings/jswrapper/sm/Object.h index 92bee1afbc..7c102d4cbe 100644 --- a/native/cocos/bindings/jswrapper/sm/Object.h +++ b/native/cocos/bindings/jswrapper/sm/Object.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/sm/ScriptEngine.cpp b/native/cocos/bindings/jswrapper/sm/ScriptEngine.cpp index 9746cdd352..8bc7200b0a 100644 --- a/native/cocos/bindings/jswrapper/sm/ScriptEngine.cpp +++ b/native/cocos/bindings/jswrapper/sm/ScriptEngine.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/sm/ScriptEngine.h b/native/cocos/bindings/jswrapper/sm/ScriptEngine.h index 2830b1dc7c..5233954624 100644 --- a/native/cocos/bindings/jswrapper/sm/ScriptEngine.h +++ b/native/cocos/bindings/jswrapper/sm/ScriptEngine.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/sm/SeApi.h b/native/cocos/bindings/jswrapper/sm/SeApi.h index 77a80f751e..6c8b2c39c5 100644 --- a/native/cocos/bindings/jswrapper/sm/SeApi.h +++ b/native/cocos/bindings/jswrapper/sm/SeApi.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/sm/Utils.cpp b/native/cocos/bindings/jswrapper/sm/Utils.cpp index 1cf35ee4ed..79080dc63f 100644 --- a/native/cocos/bindings/jswrapper/sm/Utils.cpp +++ b/native/cocos/bindings/jswrapper/sm/Utils.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/sm/Utils.h b/native/cocos/bindings/jswrapper/sm/Utils.h index b9f1e484ad..07d51859dc 100644 --- a/native/cocos/bindings/jswrapper/sm/Utils.h +++ b/native/cocos/bindings/jswrapper/sm/Utils.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/v8/Base.h b/native/cocos/bindings/jswrapper/v8/Base.h index 3ca1c92e5d..34d5234a04 100644 --- a/native/cocos/bindings/jswrapper/v8/Base.h +++ b/native/cocos/bindings/jswrapper/v8/Base.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/v8/Class.cpp b/native/cocos/bindings/jswrapper/v8/Class.cpp index e9f1ceaf84..adbb83e0dc 100644 --- a/native/cocos/bindings/jswrapper/v8/Class.cpp +++ b/native/cocos/bindings/jswrapper/v8/Class.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/v8/Class.h b/native/cocos/bindings/jswrapper/v8/Class.h index c703463781..1607bf32b6 100644 --- a/native/cocos/bindings/jswrapper/v8/Class.h +++ b/native/cocos/bindings/jswrapper/v8/Class.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/v8/HelperMacros.cpp b/native/cocos/bindings/jswrapper/v8/HelperMacros.cpp index 2981fda643..2d43d22656 100644 --- a/native/cocos/bindings/jswrapper/v8/HelperMacros.cpp +++ b/native/cocos/bindings/jswrapper/v8/HelperMacros.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/v8/HelperMacros.h b/native/cocos/bindings/jswrapper/v8/HelperMacros.h index df047ae248..5bb3efea75 100644 --- a/native/cocos/bindings/jswrapper/v8/HelperMacros.h +++ b/native/cocos/bindings/jswrapper/v8/HelperMacros.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/v8/MissingSymbols.cpp b/native/cocos/bindings/jswrapper/v8/MissingSymbols.cpp index 595d357af7..2fda7b18ce 100644 --- a/native/cocos/bindings/jswrapper/v8/MissingSymbols.cpp +++ b/native/cocos/bindings/jswrapper/v8/MissingSymbols.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #if SCRIPT_ENGINE_TYPE == SCRIPT_ENGINE_V8 //TODO(PatriceJiang): modify this when OHOS llvm upgrade diff --git a/native/cocos/bindings/jswrapper/v8/MissingSymbols.h b/native/cocos/bindings/jswrapper/v8/MissingSymbols.h index fc92dd989f..5d8cf5b7e4 100644 --- a/native/cocos/bindings/jswrapper/v8/MissingSymbols.h +++ b/native/cocos/bindings/jswrapper/v8/MissingSymbols.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include #include #include diff --git a/native/cocos/bindings/jswrapper/v8/Object.cpp b/native/cocos/bindings/jswrapper/v8/Object.cpp index 072981c307..45149abc68 100644 --- a/native/cocos/bindings/jswrapper/v8/Object.cpp +++ b/native/cocos/bindings/jswrapper/v8/Object.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/v8/Object.h b/native/cocos/bindings/jswrapper/v8/Object.h index ec2a3b5b1e..d867890d20 100644 --- a/native/cocos/bindings/jswrapper/v8/Object.h +++ b/native/cocos/bindings/jswrapper/v8/Object.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/v8/ObjectWrap.cpp b/native/cocos/bindings/jswrapper/v8/ObjectWrap.cpp index 814e1f5f45..555ab03501 100644 --- a/native/cocos/bindings/jswrapper/v8/ObjectWrap.cpp +++ b/native/cocos/bindings/jswrapper/v8/ObjectWrap.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/v8/ObjectWrap.h b/native/cocos/bindings/jswrapper/v8/ObjectWrap.h index eb814a974c..558dcf05b9 100644 --- a/native/cocos/bindings/jswrapper/v8/ObjectWrap.h +++ b/native/cocos/bindings/jswrapper/v8/ObjectWrap.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/v8/ScriptEngine.cpp b/native/cocos/bindings/jswrapper/v8/ScriptEngine.cpp index dbf97e996b..f23179a9d7 100644 --- a/native/cocos/bindings/jswrapper/v8/ScriptEngine.cpp +++ b/native/cocos/bindings/jswrapper/v8/ScriptEngine.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/v8/ScriptEngine.h b/native/cocos/bindings/jswrapper/v8/ScriptEngine.h index 1ce9e007be..1268134c0e 100644 --- a/native/cocos/bindings/jswrapper/v8/ScriptEngine.h +++ b/native/cocos/bindings/jswrapper/v8/ScriptEngine.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/v8/SeApi.h b/native/cocos/bindings/jswrapper/v8/SeApi.h index 8188bb150f..06b2c7f1d6 100644 --- a/native/cocos/bindings/jswrapper/v8/SeApi.h +++ b/native/cocos/bindings/jswrapper/v8/SeApi.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/v8/Utils.cpp b/native/cocos/bindings/jswrapper/v8/Utils.cpp index 44ea8c6422..11b8681710 100644 --- a/native/cocos/bindings/jswrapper/v8/Utils.cpp +++ b/native/cocos/bindings/jswrapper/v8/Utils.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/v8/Utils.h b/native/cocos/bindings/jswrapper/v8/Utils.h index 77b3369506..338afa64b1 100644 --- a/native/cocos/bindings/jswrapper/v8/Utils.h +++ b/native/cocos/bindings/jswrapper/v8/Utils.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/JavaScriptJavaBridge.cpp b/native/cocos/bindings/manual/JavaScriptJavaBridge.cpp index cd7c7fd79b..05249478f7 100644 --- a/native/cocos/bindings/manual/JavaScriptJavaBridge.cpp +++ b/native/cocos/bindings/manual/JavaScriptJavaBridge.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/JavaScriptJavaBridge.h b/native/cocos/bindings/manual/JavaScriptJavaBridge.h index 2066994d43..e13ee61825 100644 --- a/native/cocos/bindings/manual/JavaScriptJavaBridge.h +++ b/native/cocos/bindings/manual/JavaScriptJavaBridge.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/JavaScriptObjCBridge.h b/native/cocos/bindings/manual/JavaScriptObjCBridge.h index e970476579..0125259999 100644 --- a/native/cocos/bindings/manual/JavaScriptObjCBridge.h +++ b/native/cocos/bindings/manual/JavaScriptObjCBridge.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/JavaScriptObjCBridge.mm b/native/cocos/bindings/manual/JavaScriptObjCBridge.mm index 84f50aa0d0..053213cc22 100644 --- a/native/cocos/bindings/manual/JavaScriptObjCBridge.mm +++ b/native/cocos/bindings/manual/JavaScriptObjCBridge.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_classtype.cpp b/native/cocos/bindings/manual/jsb_classtype.cpp index 54c07a2371..9614b1a0e9 100644 --- a/native/cocos/bindings/manual/jsb_classtype.cpp +++ b/native/cocos/bindings/manual/jsb_classtype.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_classtype.h b/native/cocos/bindings/manual/jsb_classtype.h index 3a96b9c7c9..5f8e5ff3ed 100644 --- a/native/cocos/bindings/manual/jsb_classtype.h +++ b/native/cocos/bindings/manual/jsb_classtype.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_cocos_manual.cpp b/native/cocos/bindings/manual/jsb_cocos_manual.cpp index 8bb2c14b45..fe99fdd27e 100644 --- a/native/cocos/bindings/manual/jsb_cocos_manual.cpp +++ b/native/cocos/bindings/manual/jsb_cocos_manual.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_cocos_manual.h b/native/cocos/bindings/manual/jsb_cocos_manual.h index 5e414cf1c8..938d515b0a 100644 --- a/native/cocos/bindings/manual/jsb_cocos_manual.h +++ b/native/cocos/bindings/manual/jsb_cocos_manual.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_conversions.cpp b/native/cocos/bindings/manual/jsb_conversions.cpp index 1e9130403e..dace5f94b2 100644 --- a/native/cocos/bindings/manual/jsb_conversions.cpp +++ b/native/cocos/bindings/manual/jsb_conversions.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_conversions.h b/native/cocos/bindings/manual/jsb_conversions.h index c261e5b2cb..69a05f5afe 100644 --- a/native/cocos/bindings/manual/jsb_conversions.h +++ b/native/cocos/bindings/manual/jsb_conversions.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_dragonbones_manual.cpp b/native/cocos/bindings/manual/jsb_dragonbones_manual.cpp index 2a599ef935..b698d62a87 100644 --- a/native/cocos/bindings/manual/jsb_dragonbones_manual.cpp +++ b/native/cocos/bindings/manual/jsb_dragonbones_manual.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_dragonbones_manual.h b/native/cocos/bindings/manual/jsb_dragonbones_manual.h index d7c3384625..d6178eb503 100644 --- a/native/cocos/bindings/manual/jsb_dragonbones_manual.h +++ b/native/cocos/bindings/manual/jsb_dragonbones_manual.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_extension_manual.cpp b/native/cocos/bindings/manual/jsb_extension_manual.cpp index a62b8504fd..fa372038a6 100644 --- a/native/cocos/bindings/manual/jsb_extension_manual.cpp +++ b/native/cocos/bindings/manual/jsb_extension_manual.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_extension_manual.h b/native/cocos/bindings/manual/jsb_extension_manual.h index a065f6fc17..3182338209 100644 --- a/native/cocos/bindings/manual/jsb_extension_manual.h +++ b/native/cocos/bindings/manual/jsb_extension_manual.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_gfx_manual.cpp b/native/cocos/bindings/manual/jsb_gfx_manual.cpp index 1515eb993e..abb13b684a 100644 --- a/native/cocos/bindings/manual/jsb_gfx_manual.cpp +++ b/native/cocos/bindings/manual/jsb_gfx_manual.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_gfx_manual.h b/native/cocos/bindings/manual/jsb_gfx_manual.h index cbee35c69e..f382768953 100644 --- a/native/cocos/bindings/manual/jsb_gfx_manual.h +++ b/native/cocos/bindings/manual/jsb_gfx_manual.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_global.cpp b/native/cocos/bindings/manual/jsb_global.cpp index a1974d22ed..001beb985b 100644 --- a/native/cocos/bindings/manual/jsb_global.cpp +++ b/native/cocos/bindings/manual/jsb_global.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_global.h b/native/cocos/bindings/manual/jsb_global.h index b1610e28d9..7ccc6d067b 100644 --- a/native/cocos/bindings/manual/jsb_global.h +++ b/native/cocos/bindings/manual/jsb_global.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_global_init.cpp b/native/cocos/bindings/manual/jsb_global_init.cpp index 28e8e62d12..a9f6a54e69 100644 --- a/native/cocos/bindings/manual/jsb_global_init.cpp +++ b/native/cocos/bindings/manual/jsb_global_init.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_global_init.h b/native/cocos/bindings/manual/jsb_global_init.h index 467f1fe5ce..f5698b2d4e 100644 --- a/native/cocos/bindings/manual/jsb_global_init.h +++ b/native/cocos/bindings/manual/jsb_global_init.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_helper.cpp b/native/cocos/bindings/manual/jsb_helper.cpp index 1160a5f5de..c063b98ad1 100644 --- a/native/cocos/bindings/manual/jsb_helper.cpp +++ b/native/cocos/bindings/manual/jsb_helper.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_helper.h b/native/cocos/bindings/manual/jsb_helper.h index 1e43edfb21..3dff2995f7 100644 --- a/native/cocos/bindings/manual/jsb_helper.h +++ b/native/cocos/bindings/manual/jsb_helper.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_module_register.cpp b/native/cocos/bindings/manual/jsb_module_register.cpp index e29d1fbca5..54b6fa5996 100644 --- a/native/cocos/bindings/manual/jsb_module_register.cpp +++ b/native/cocos/bindings/manual/jsb_module_register.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_module_register.h b/native/cocos/bindings/manual/jsb_module_register.h index c0123167d5..e430b8f706 100644 --- a/native/cocos/bindings/manual/jsb_module_register.h +++ b/native/cocos/bindings/manual/jsb_module_register.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_network_manual.cpp b/native/cocos/bindings/manual/jsb_network_manual.cpp index 38479a2e69..cfdb2b7ed2 100644 --- a/native/cocos/bindings/manual/jsb_network_manual.cpp +++ b/native/cocos/bindings/manual/jsb_network_manual.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_network_manual.h b/native/cocos/bindings/manual/jsb_network_manual.h index 7a23e2108e..e859f064d6 100644 --- a/native/cocos/bindings/manual/jsb_network_manual.h +++ b/native/cocos/bindings/manual/jsb_network_manual.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_pipeline_manual.cpp b/native/cocos/bindings/manual/jsb_pipeline_manual.cpp index efd832ba1c..05eb202299 100644 --- a/native/cocos/bindings/manual/jsb_pipeline_manual.cpp +++ b/native/cocos/bindings/manual/jsb_pipeline_manual.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_pipeline_manual.h b/native/cocos/bindings/manual/jsb_pipeline_manual.h index 9fdcedc89b..08a247524d 100644 --- a/native/cocos/bindings/manual/jsb_pipeline_manual.h +++ b/native/cocos/bindings/manual/jsb_pipeline_manual.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_platform.h b/native/cocos/bindings/manual/jsb_platform.h index d2495a14d7..382e50af89 100644 --- a/native/cocos/bindings/manual/jsb_platform.h +++ b/native/cocos/bindings/manual/jsb_platform.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_platform_android.cpp b/native/cocos/bindings/manual/jsb_platform_android.cpp index e1e642d81c..84c495fc61 100644 --- a/native/cocos/bindings/manual/jsb_platform_android.cpp +++ b/native/cocos/bindings/manual/jsb_platform_android.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_platform_ohos.cpp b/native/cocos/bindings/manual/jsb_platform_ohos.cpp index 3872131ade..b720e221f8 100644 --- a/native/cocos/bindings/manual/jsb_platform_ohos.cpp +++ b/native/cocos/bindings/manual/jsb_platform_ohos.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -21,7 +21,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ + #include "jsb_platform.h" #include "cocos/bindings/jswrapper/SeApi.h" diff --git a/native/cocos/bindings/manual/jsb_platfrom_apple.mm b/native/cocos/bindings/manual/jsb_platfrom_apple.mm index dc8dc7dcfc..755fdcbe0a 100644 --- a/native/cocos/bindings/manual/jsb_platfrom_apple.mm +++ b/native/cocos/bindings/manual/jsb_platfrom_apple.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_platfrom_linux.cpp b/native/cocos/bindings/manual/jsb_platfrom_linux.cpp index 2ac6b300da..f5b7da7f10 100644 --- a/native/cocos/bindings/manual/jsb_platfrom_linux.cpp +++ b/native/cocos/bindings/manual/jsb_platfrom_linux.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_platfrom_qnx.cpp b/native/cocos/bindings/manual/jsb_platfrom_qnx.cpp index 2ac6b300da..f5b7da7f10 100644 --- a/native/cocos/bindings/manual/jsb_platfrom_qnx.cpp +++ b/native/cocos/bindings/manual/jsb_platfrom_qnx.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_platfrom_win32.cpp b/native/cocos/bindings/manual/jsb_platfrom_win32.cpp index 6bb9106432..ffe65abd9f 100644 --- a/native/cocos/bindings/manual/jsb_platfrom_win32.cpp +++ b/native/cocos/bindings/manual/jsb_platfrom_win32.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_scene_manual.cpp b/native/cocos/bindings/manual/jsb_scene_manual.cpp index dd5817b567..d36f75410c 100644 --- a/native/cocos/bindings/manual/jsb_scene_manual.cpp +++ b/native/cocos/bindings/manual/jsb_scene_manual.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "jsb_scene_manual.h" #include "bindings/auto/jsb_scene_auto.h" diff --git a/native/cocos/bindings/manual/jsb_scene_manual.h b/native/cocos/bindings/manual/jsb_scene_manual.h index 668820a3d0..7e92175a03 100644 --- a/native/cocos/bindings/manual/jsb_scene_manual.h +++ b/native/cocos/bindings/manual/jsb_scene_manual.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/bindings/manual/jsb_scene_manual_ext.cpp b/native/cocos/bindings/manual/jsb_scene_manual_ext.cpp index 3fb560e3e4..005816064c 100644 --- a/native/cocos/bindings/manual/jsb_scene_manual_ext.cpp +++ b/native/cocos/bindings/manual/jsb_scene_manual_ext.cpp @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #include "bindings/auto/jsb_scene_auto.h" #include "jsb_scene_manual.h" diff --git a/native/cocos/bindings/manual/jsb_socketio.cpp b/native/cocos/bindings/manual/jsb_socketio.cpp index a4ac511d98..28da54042a 100644 --- a/native/cocos/bindings/manual/jsb_socketio.cpp +++ b/native/cocos/bindings/manual/jsb_socketio.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_socketio.h b/native/cocos/bindings/manual/jsb_socketio.h index cbf1808c83..687608684b 100644 --- a/native/cocos/bindings/manual/jsb_socketio.h +++ b/native/cocos/bindings/manual/jsb_socketio.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_spine_manual.cpp b/native/cocos/bindings/manual/jsb_spine_manual.cpp index 0a06f5b3c3..4e7152fa96 100644 --- a/native/cocos/bindings/manual/jsb_spine_manual.cpp +++ b/native/cocos/bindings/manual/jsb_spine_manual.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_spine_manual.h b/native/cocos/bindings/manual/jsb_spine_manual.h index 53cfb0048f..c0d322fa78 100644 --- a/native/cocos/bindings/manual/jsb_spine_manual.h +++ b/native/cocos/bindings/manual/jsb_spine_manual.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_websocket.cpp b/native/cocos/bindings/manual/jsb_websocket.cpp index 5b447ad3e6..1559410c8a 100644 --- a/native/cocos/bindings/manual/jsb_websocket.cpp +++ b/native/cocos/bindings/manual/jsb_websocket.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_websocket.h b/native/cocos/bindings/manual/jsb_websocket.h index 1bdc20dd22..cc0d78c41d 100644 --- a/native/cocos/bindings/manual/jsb_websocket.h +++ b/native/cocos/bindings/manual/jsb_websocket.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_websocket_server.cpp b/native/cocos/bindings/manual/jsb_websocket_server.cpp index 25e5fc1697..023be458a0 100644 --- a/native/cocos/bindings/manual/jsb_websocket_server.cpp +++ b/native/cocos/bindings/manual/jsb_websocket_server.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_websocket_server.h b/native/cocos/bindings/manual/jsb_websocket_server.h index cb703aa311..48ed12ab6a 100644 --- a/native/cocos/bindings/manual/jsb_websocket_server.h +++ b/native/cocos/bindings/manual/jsb_websocket_server.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_xmlhttprequest.cpp b/native/cocos/bindings/manual/jsb_xmlhttprequest.cpp index 21e60f36f9..1a5f8aa6a9 100644 --- a/native/cocos/bindings/manual/jsb_xmlhttprequest.cpp +++ b/native/cocos/bindings/manual/jsb_xmlhttprequest.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_xmlhttprequest.h b/native/cocos/bindings/manual/jsb_xmlhttprequest.h index e89db48772..97aea39b81 100644 --- a/native/cocos/bindings/manual/jsb_xmlhttprequest.h +++ b/native/cocos/bindings/manual/jsb_xmlhttprequest.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/editor-support/IOBuffer.cpp b/native/cocos/editor-support/IOBuffer.cpp index f3d9c0fedb..06de0bbd95 100644 --- a/native/cocos/editor-support/IOBuffer.cpp +++ b/native/cocos/editor-support/IOBuffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/editor-support/IOBuffer.h b/native/cocos/editor-support/IOBuffer.h index 1fc392840a..bfe0d3bf78 100644 --- a/native/cocos/editor-support/IOBuffer.h +++ b/native/cocos/editor-support/IOBuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/editor-support/IOTypedArray.cpp b/native/cocos/editor-support/IOTypedArray.cpp index 68ddfcb841..eb9be6d8a0 100644 --- a/native/cocos/editor-support/IOTypedArray.cpp +++ b/native/cocos/editor-support/IOTypedArray.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/editor-support/IOTypedArray.h b/native/cocos/editor-support/IOTypedArray.h index d5a65af44b..4699d7c0b4 100644 --- a/native/cocos/editor-support/IOTypedArray.h +++ b/native/cocos/editor-support/IOTypedArray.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/editor-support/MeshBuffer.cpp b/native/cocos/editor-support/MeshBuffer.cpp index 0d7a975da1..bb1b17b795 100644 --- a/native/cocos/editor-support/MeshBuffer.cpp +++ b/native/cocos/editor-support/MeshBuffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/editor-support/MeshBuffer.h b/native/cocos/editor-support/MeshBuffer.h index 76066a4188..d2d50b2ef0 100644 --- a/native/cocos/editor-support/MeshBuffer.h +++ b/native/cocos/editor-support/MeshBuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/editor-support/MiddlewareMacro.h b/native/cocos/editor-support/MiddlewareMacro.h index ac7d292081..07bbfef910 100644 --- a/native/cocos/editor-support/MiddlewareMacro.h +++ b/native/cocos/editor-support/MiddlewareMacro.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/editor-support/MiddlewareManager.cpp b/native/cocos/editor-support/MiddlewareManager.cpp index 6bdb396b9a..574b55d02e 100644 --- a/native/cocos/editor-support/MiddlewareManager.cpp +++ b/native/cocos/editor-support/MiddlewareManager.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/editor-support/MiddlewareManager.h b/native/cocos/editor-support/MiddlewareManager.h index 7f3f4ae84b..2c8b0eb8ed 100644 --- a/native/cocos/editor-support/MiddlewareManager.h +++ b/native/cocos/editor-support/MiddlewareManager.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/editor-support/SharedBufferManager.cpp b/native/cocos/editor-support/SharedBufferManager.cpp index d757983c12..a62084d19e 100644 --- a/native/cocos/editor-support/SharedBufferManager.cpp +++ b/native/cocos/editor-support/SharedBufferManager.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/editor-support/SharedBufferManager.h b/native/cocos/editor-support/SharedBufferManager.h index b272fdb3fc..b2b830b31a 100644 --- a/native/cocos/editor-support/SharedBufferManager.h +++ b/native/cocos/editor-support/SharedBufferManager.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/editor-support/TypedArrayPool.cpp b/native/cocos/editor-support/TypedArrayPool.cpp index 5191182f62..baaa912088 100644 --- a/native/cocos/editor-support/TypedArrayPool.cpp +++ b/native/cocos/editor-support/TypedArrayPool.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/editor-support/TypedArrayPool.h b/native/cocos/editor-support/TypedArrayPool.h index 85bebbc780..4ee4065bbf 100644 --- a/native/cocos/editor-support/TypedArrayPool.h +++ b/native/cocos/editor-support/TypedArrayPool.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/editor-support/middleware-adapter.cpp b/native/cocos/editor-support/middleware-adapter.cpp index 2cc426f9ed..adbc6b161c 100644 --- a/native/cocos/editor-support/middleware-adapter.cpp +++ b/native/cocos/editor-support/middleware-adapter.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/editor-support/middleware-adapter.h b/native/cocos/editor-support/middleware-adapter.h index 5dff899a4e..de716362e9 100644 --- a/native/cocos/editor-support/middleware-adapter.h +++ b/native/cocos/editor-support/middleware-adapter.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/engine/BaseEngine.cpp b/native/cocos/engine/BaseEngine.cpp index e0db55ac56..2c13d8a872 100644 --- a/native/cocos/engine/BaseEngine.cpp +++ b/native/cocos/engine/BaseEngine.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/engine/BaseEngine.h b/native/cocos/engine/BaseEngine.h index 55257f5276..4218c9139e 100644 --- a/native/cocos/engine/BaseEngine.h +++ b/native/cocos/engine/BaseEngine.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/engine/Engine.cpp b/native/cocos/engine/Engine.cpp index f905f7bd2e..11eea4ef08 100644 --- a/native/cocos/engine/Engine.cpp +++ b/native/cocos/engine/Engine.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/engine/Engine.h b/native/cocos/engine/Engine.h index 319ae49d57..3f3d97ebd6 100644 --- a/native/cocos/engine/Engine.h +++ b/native/cocos/engine/Engine.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/main/main-ios.mm b/native/cocos/main/main-ios.mm index 0bc826ccd7..c6cb21b4dd 100644 --- a/native/cocos/main/main-ios.mm +++ b/native/cocos/main/main-ios.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include #include "platform/BasePlatform.h" diff --git a/native/cocos/main/main-linux.cpp b/native/cocos/main/main-linux.cpp index 91c465d44a..837108b799 100644 --- a/native/cocos/main/main-linux.cpp +++ b/native/cocos/main/main-linux.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include #include "platform/BasePlatform.h" diff --git a/native/cocos/main/main-mac.mm b/native/cocos/main/main-mac.mm index 4de010d156..da58115bd4 100644 --- a/native/cocos/main/main-mac.mm +++ b/native/cocos/main/main-mac.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include #include "platform/BasePlatform.h" diff --git a/native/cocos/main/main-qnx.cpp b/native/cocos/main/main-qnx.cpp index 91c465d44a..837108b799 100644 --- a/native/cocos/main/main-qnx.cpp +++ b/native/cocos/main/main-qnx.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include #include "platform/BasePlatform.h" diff --git a/native/cocos/main/main-win32.cpp b/native/cocos/main/main-win32.cpp index 9911742d79..f16fa21df3 100644 --- a/native/cocos/main/main-win32.cpp +++ b/native/cocos/main/main-win32.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include #include "platform/BasePlatform.h" diff --git a/native/cocos/network/Downloader-curl.cpp b/native/cocos/network/Downloader-curl.cpp index ea145228a6..36c5838f63 100644 --- a/native/cocos/network/Downloader-curl.cpp +++ b/native/cocos/network/Downloader-curl.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2015-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/network/Downloader-curl.h b/native/cocos/network/Downloader-curl.h index 697959f961..1bd93491d2 100644 --- a/native/cocos/network/Downloader-curl.h +++ b/native/cocos/network/Downloader-curl.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2015-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/network/Downloader-java.cpp b/native/cocos/network/Downloader-java.cpp index 96b99d4d29..b70961b23c 100644 --- a/native/cocos/network/Downloader-java.cpp +++ b/native/cocos/network/Downloader-java.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2015-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/network/Downloader-java.h b/native/cocos/network/Downloader-java.h index 250d4337b3..c036f5df9b 100644 --- a/native/cocos/network/Downloader-java.h +++ b/native/cocos/network/Downloader-java.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2015-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/network/Downloader.cpp b/native/cocos/network/Downloader.cpp index 05a94c986e..b108db6b52 100644 --- a/native/cocos/network/Downloader.cpp +++ b/native/cocos/network/Downloader.cpp @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2015-2016 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/network/Downloader.h b/native/cocos/network/Downloader.h index 99a8fb4853..40d469976c 100644 --- a/native/cocos/network/Downloader.h +++ b/native/cocos/network/Downloader.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2015-2016 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/network/DownloaderImpl-apple.h b/native/cocos/network/DownloaderImpl-apple.h index 97c3ab7222..f3030076a4 100644 --- a/native/cocos/network/DownloaderImpl-apple.h +++ b/native/cocos/network/DownloaderImpl-apple.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2015-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/network/DownloaderImpl-apple.mm b/native/cocos/network/DownloaderImpl-apple.mm index 905cc30490..b38396d7b1 100644 --- a/native/cocos/network/DownloaderImpl-apple.mm +++ b/native/cocos/network/DownloaderImpl-apple.mm @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2015-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/network/DownloaderImpl.h b/native/cocos/network/DownloaderImpl.h index 232262dbc1..a9773550bf 100644 --- a/native/cocos/network/DownloaderImpl.h +++ b/native/cocos/network/DownloaderImpl.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2015-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/network/HttpAsynConnection-apple.h b/native/cocos/network/HttpAsynConnection-apple.h index c9edd71e86..ddb52d34b4 100644 --- a/native/cocos/network/HttpAsynConnection-apple.h +++ b/native/cocos/network/HttpAsynConnection-apple.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/network/HttpClient-apple.mm b/native/cocos/network/HttpClient-apple.mm index 2e70b9abb1..71e0aef75d 100644 --- a/native/cocos/network/HttpClient-apple.mm +++ b/native/cocos/network/HttpClient-apple.mm @@ -2,7 +2,7 @@ Copyright (c) 2012 greathqy Copyright (c) 2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/network/HttpClient-java.cpp b/native/cocos/network/HttpClient-java.cpp index 10de1d4567..71867ab86a 100644 --- a/native/cocos/network/HttpClient-java.cpp +++ b/native/cocos/network/HttpClient-java.cpp @@ -2,7 +2,7 @@ Copyright (c) 2012 greathqy Copyright (c) 2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/network/HttpClient.cpp b/native/cocos/network/HttpClient.cpp index 3c958ec2f9..fe9d4b6874 100644 --- a/native/cocos/network/HttpClient.cpp +++ b/native/cocos/network/HttpClient.cpp @@ -2,7 +2,7 @@ Copyright (c) 2012 greathqy Copyright (c) 2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/network/HttpClient.h b/native/cocos/network/HttpClient.h index b102493ca9..0fdc4d25d5 100644 --- a/native/cocos/network/HttpClient.h +++ b/native/cocos/network/HttpClient.h @@ -2,7 +2,7 @@ Copyright (c) 2012 greathqy Copyright (c) 2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/network/HttpCookie.cpp b/native/cocos/network/HttpCookie.cpp index e200dce638..29b84aec19 100644 --- a/native/cocos/network/HttpCookie.cpp +++ b/native/cocos/network/HttpCookie.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/network/HttpCookie.h b/native/cocos/network/HttpCookie.h index 2dd2b1d639..cff7e059a4 100644 --- a/native/cocos/network/HttpCookie.h +++ b/native/cocos/network/HttpCookie.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/network/HttpRequest.h b/native/cocos/network/HttpRequest.h index ae28776fb2..05999b0c42 100644 --- a/native/cocos/network/HttpRequest.h +++ b/native/cocos/network/HttpRequest.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/network/HttpResponse.h b/native/cocos/network/HttpResponse.h index fd85586626..4ecce0aeab 100644 --- a/native/cocos/network/HttpResponse.h +++ b/native/cocos/network/HttpResponse.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/network/SocketIO.cpp b/native/cocos/network/SocketIO.cpp index 3192aac380..bde5c9e43e 100644 --- a/native/cocos/network/SocketIO.cpp +++ b/native/cocos/network/SocketIO.cpp @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2015 Chris Hannon http://www.channon.us Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/network/SocketIO.h b/native/cocos/network/SocketIO.h index 4ba4a727da..8f9c91e016 100644 --- a/native/cocos/network/SocketIO.h +++ b/native/cocos/network/SocketIO.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2015 Chris Hannon http://www.channon.us Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/network/WebSocket-apple.mm b/native/cocos/network/WebSocket-apple.mm index 8770bc932e..5f0b72f483 100644 --- a/native/cocos/network/WebSocket-apple.mm +++ b/native/cocos/network/WebSocket-apple.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/network/WebSocket-libwebsockets.cpp b/native/cocos/network/WebSocket-libwebsockets.cpp index 36247bb2f0..02231b5165 100644 --- a/native/cocos/network/WebSocket-libwebsockets.cpp +++ b/native/cocos/network/WebSocket-libwebsockets.cpp @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/network/WebSocket.h b/native/cocos/network/WebSocket.h index 7dbcf3ed4f..3f8ebb02d7 100644 --- a/native/cocos/network/WebSocket.h +++ b/native/cocos/network/WebSocket.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/network/WebSocketServer.cpp b/native/cocos/network/WebSocketServer.cpp index 4517d5a5c2..42478176a4 100644 --- a/native/cocos/network/WebSocketServer.cpp +++ b/native/cocos/network/WebSocketServer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/network/WebSocketServer.h b/native/cocos/network/WebSocketServer.h index b90ebe5ab0..1404314b1d 100644 --- a/native/cocos/network/WebSocketServer.h +++ b/native/cocos/network/WebSocketServer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/PhysicsSDK.h b/native/cocos/physics/PhysicsSDK.h index 433e865de6..c8d2a04719 100644 --- a/native/cocos/physics/PhysicsSDK.h +++ b/native/cocos/physics/PhysicsSDK.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/PhysicsSelector.h b/native/cocos/physics/PhysicsSelector.h index 6fdf4ba78d..eca360cd98 100644 --- a/native/cocos/physics/PhysicsSelector.h +++ b/native/cocos/physics/PhysicsSelector.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/PhysX.h b/native/cocos/physics/physx/PhysX.h index f7ed2e8057..db44d4b747 100644 --- a/native/cocos/physics/physx/PhysX.h +++ b/native/cocos/physics/physx/PhysX.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/PhysXEventManager.cpp b/native/cocos/physics/physx/PhysXEventManager.cpp index ae818ab72f..6705c0451d 100644 --- a/native/cocos/physics/physx/PhysXEventManager.cpp +++ b/native/cocos/physics/physx/PhysXEventManager.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/PhysXEventManager.h b/native/cocos/physics/physx/PhysXEventManager.h index 9b1f5695d6..dac1a93098 100644 --- a/native/cocos/physics/physx/PhysXEventManager.h +++ b/native/cocos/physics/physx/PhysXEventManager.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/PhysXFilterShader.cpp b/native/cocos/physics/physx/PhysXFilterShader.cpp index 83b63a5406..f77eb261b6 100644 --- a/native/cocos/physics/physx/PhysXFilterShader.cpp +++ b/native/cocos/physics/physx/PhysXFilterShader.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/PhysXFilterShader.h b/native/cocos/physics/physx/PhysXFilterShader.h index b6fbf50df8..64579c635c 100644 --- a/native/cocos/physics/physx/PhysXFilterShader.h +++ b/native/cocos/physics/physx/PhysXFilterShader.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/PhysXInc.h b/native/cocos/physics/physx/PhysXInc.h index e4bc9a3ef4..805d42d33a 100644 --- a/native/cocos/physics/physx/PhysXInc.h +++ b/native/cocos/physics/physx/PhysXInc.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/PhysXRigidBody.cpp b/native/cocos/physics/physx/PhysXRigidBody.cpp index dcb728e40a..ba1ccbfef1 100644 --- a/native/cocos/physics/physx/PhysXRigidBody.cpp +++ b/native/cocos/physics/physx/PhysXRigidBody.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/PhysXRigidBody.h b/native/cocos/physics/physx/PhysXRigidBody.h index fca5837884..e8543f2c79 100644 --- a/native/cocos/physics/physx/PhysXRigidBody.h +++ b/native/cocos/physics/physx/PhysXRigidBody.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/PhysXSharedBody.cpp b/native/cocos/physics/physx/PhysXSharedBody.cpp index 2b636cb908..d31221f442 100644 --- a/native/cocos/physics/physx/PhysXSharedBody.cpp +++ b/native/cocos/physics/physx/PhysXSharedBody.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/PhysXSharedBody.h b/native/cocos/physics/physx/PhysXSharedBody.h index e14ebc3e66..64350f0db9 100644 --- a/native/cocos/physics/physx/PhysXSharedBody.h +++ b/native/cocos/physics/physx/PhysXSharedBody.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/PhysXUtils.cpp b/native/cocos/physics/physx/PhysXUtils.cpp index 202be7d443..228911d76c 100644 --- a/native/cocos/physics/physx/PhysXUtils.cpp +++ b/native/cocos/physics/physx/PhysXUtils.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/PhysXUtils.h b/native/cocos/physics/physx/PhysXUtils.h index 74300b7beb..7c68300c5d 100644 --- a/native/cocos/physics/physx/PhysXUtils.h +++ b/native/cocos/physics/physx/PhysXUtils.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/PhysXWorld.cpp b/native/cocos/physics/physx/PhysXWorld.cpp index 3f6c6fe144..7ed6f5e84e 100644 --- a/native/cocos/physics/physx/PhysXWorld.cpp +++ b/native/cocos/physics/physx/PhysXWorld.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/PhysXWorld.h b/native/cocos/physics/physx/PhysXWorld.h index 988726d57b..fcd579375a 100644 --- a/native/cocos/physics/physx/PhysXWorld.h +++ b/native/cocos/physics/physx/PhysXWorld.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/joints/PhysXDistance.cpp b/native/cocos/physics/physx/joints/PhysXDistance.cpp index 1b3d8baf50..5ddee2c435 100644 --- a/native/cocos/physics/physx/joints/PhysXDistance.cpp +++ b/native/cocos/physics/physx/joints/PhysXDistance.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/joints/PhysXDistance.h b/native/cocos/physics/physx/joints/PhysXDistance.h index 3372d03d81..180755a92e 100644 --- a/native/cocos/physics/physx/joints/PhysXDistance.h +++ b/native/cocos/physics/physx/joints/PhysXDistance.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/joints/PhysXJoint.cpp b/native/cocos/physics/physx/joints/PhysXJoint.cpp index 4459232290..d3127ac387 100644 --- a/native/cocos/physics/physx/joints/PhysXJoint.cpp +++ b/native/cocos/physics/physx/joints/PhysXJoint.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/joints/PhysXJoint.h b/native/cocos/physics/physx/joints/PhysXJoint.h index 59e4e280e9..b9f5567151 100644 --- a/native/cocos/physics/physx/joints/PhysXJoint.h +++ b/native/cocos/physics/physx/joints/PhysXJoint.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/joints/PhysXRevolute.cpp b/native/cocos/physics/physx/joints/PhysXRevolute.cpp index f34b9c72d1..1e072d620a 100644 --- a/native/cocos/physics/physx/joints/PhysXRevolute.cpp +++ b/native/cocos/physics/physx/joints/PhysXRevolute.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/joints/PhysXRevolute.h b/native/cocos/physics/physx/joints/PhysXRevolute.h index 312297554a..3c6ddf0e9e 100644 --- a/native/cocos/physics/physx/joints/PhysXRevolute.h +++ b/native/cocos/physics/physx/joints/PhysXRevolute.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/shapes/PhysXBox.cpp b/native/cocos/physics/physx/shapes/PhysXBox.cpp index 0bed8f98a0..48c6b23921 100644 --- a/native/cocos/physics/physx/shapes/PhysXBox.cpp +++ b/native/cocos/physics/physx/shapes/PhysXBox.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/shapes/PhysXBox.h b/native/cocos/physics/physx/shapes/PhysXBox.h index 6ed2d13a05..b897ddb56e 100644 --- a/native/cocos/physics/physx/shapes/PhysXBox.h +++ b/native/cocos/physics/physx/shapes/PhysXBox.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/shapes/PhysXCapsule.cpp b/native/cocos/physics/physx/shapes/PhysXCapsule.cpp index ab1bd0624d..d2584de50f 100644 --- a/native/cocos/physics/physx/shapes/PhysXCapsule.cpp +++ b/native/cocos/physics/physx/shapes/PhysXCapsule.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/shapes/PhysXCapsule.h b/native/cocos/physics/physx/shapes/PhysXCapsule.h index 824b3484ee..aaadf2b011 100644 --- a/native/cocos/physics/physx/shapes/PhysXCapsule.h +++ b/native/cocos/physics/physx/shapes/PhysXCapsule.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/shapes/PhysXCone.cpp b/native/cocos/physics/physx/shapes/PhysXCone.cpp index 2b37617b6e..cde77efe7b 100644 --- a/native/cocos/physics/physx/shapes/PhysXCone.cpp +++ b/native/cocos/physics/physx/shapes/PhysXCone.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/shapes/PhysXCone.h b/native/cocos/physics/physx/shapes/PhysXCone.h index 49200c689f..c8e44a211a 100644 --- a/native/cocos/physics/physx/shapes/PhysXCone.h +++ b/native/cocos/physics/physx/shapes/PhysXCone.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/shapes/PhysXCylinder.cpp b/native/cocos/physics/physx/shapes/PhysXCylinder.cpp index f8ad8fa905..5db30393c0 100644 --- a/native/cocos/physics/physx/shapes/PhysXCylinder.cpp +++ b/native/cocos/physics/physx/shapes/PhysXCylinder.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/shapes/PhysXCylinder.h b/native/cocos/physics/physx/shapes/PhysXCylinder.h index 68fac46535..4ecdfc8338 100644 --- a/native/cocos/physics/physx/shapes/PhysXCylinder.h +++ b/native/cocos/physics/physx/shapes/PhysXCylinder.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/shapes/PhysXPlane.cpp b/native/cocos/physics/physx/shapes/PhysXPlane.cpp index 6f4eeb1c05..1db2511e48 100644 --- a/native/cocos/physics/physx/shapes/PhysXPlane.cpp +++ b/native/cocos/physics/physx/shapes/PhysXPlane.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/shapes/PhysXPlane.h b/native/cocos/physics/physx/shapes/PhysXPlane.h index 2615650530..9982d769d3 100644 --- a/native/cocos/physics/physx/shapes/PhysXPlane.h +++ b/native/cocos/physics/physx/shapes/PhysXPlane.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/shapes/PhysXShape.cpp b/native/cocos/physics/physx/shapes/PhysXShape.cpp index 773ffe5d40..ca58f3d6c0 100644 --- a/native/cocos/physics/physx/shapes/PhysXShape.cpp +++ b/native/cocos/physics/physx/shapes/PhysXShape.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/shapes/PhysXShape.h b/native/cocos/physics/physx/shapes/PhysXShape.h index 0797dc8a79..14bb25554d 100644 --- a/native/cocos/physics/physx/shapes/PhysXShape.h +++ b/native/cocos/physics/physx/shapes/PhysXShape.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/shapes/PhysXSphere.cpp b/native/cocos/physics/physx/shapes/PhysXSphere.cpp index bc7f7152e3..eba512dbdf 100644 --- a/native/cocos/physics/physx/shapes/PhysXSphere.cpp +++ b/native/cocos/physics/physx/shapes/PhysXSphere.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/shapes/PhysXSphere.h b/native/cocos/physics/physx/shapes/PhysXSphere.h index 1f1b4cdae9..8a49051228 100644 --- a/native/cocos/physics/physx/shapes/PhysXSphere.h +++ b/native/cocos/physics/physx/shapes/PhysXSphere.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/shapes/PhysXTerrain.cpp b/native/cocos/physics/physx/shapes/PhysXTerrain.cpp index 252bae2ab8..7bb8caa27b 100644 --- a/native/cocos/physics/physx/shapes/PhysXTerrain.cpp +++ b/native/cocos/physics/physx/shapes/PhysXTerrain.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/shapes/PhysXTerrain.h b/native/cocos/physics/physx/shapes/PhysXTerrain.h index dc556f1304..de801a3658 100644 --- a/native/cocos/physics/physx/shapes/PhysXTerrain.h +++ b/native/cocos/physics/physx/shapes/PhysXTerrain.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/shapes/PhysXTrimesh.cpp b/native/cocos/physics/physx/shapes/PhysXTrimesh.cpp index 92f020ff47..19ba92b628 100644 --- a/native/cocos/physics/physx/shapes/PhysXTrimesh.cpp +++ b/native/cocos/physics/physx/shapes/PhysXTrimesh.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/shapes/PhysXTrimesh.h b/native/cocos/physics/physx/shapes/PhysXTrimesh.h index b3f18ea248..08c6f8ae01 100644 --- a/native/cocos/physics/physx/shapes/PhysXTrimesh.h +++ b/native/cocos/physics/physx/shapes/PhysXTrimesh.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/sdk/Joint.cpp b/native/cocos/physics/sdk/Joint.cpp index 7cbf2b23fa..e604450ac3 100644 --- a/native/cocos/physics/sdk/Joint.cpp +++ b/native/cocos/physics/sdk/Joint.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/sdk/Joint.h b/native/cocos/physics/sdk/Joint.h index 9b143a9776..39fc3eedfb 100644 --- a/native/cocos/physics/sdk/Joint.h +++ b/native/cocos/physics/sdk/Joint.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/sdk/RigidBody.cpp b/native/cocos/physics/sdk/RigidBody.cpp index 7d1a25046f..76ae6339e6 100644 --- a/native/cocos/physics/sdk/RigidBody.cpp +++ b/native/cocos/physics/sdk/RigidBody.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/sdk/RigidBody.h b/native/cocos/physics/sdk/RigidBody.h index 216c63286b..6eef8d5fb3 100644 --- a/native/cocos/physics/sdk/RigidBody.h +++ b/native/cocos/physics/sdk/RigidBody.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/sdk/Shape.cpp b/native/cocos/physics/sdk/Shape.cpp index 6b1f153be6..210a6e1bc2 100644 --- a/native/cocos/physics/sdk/Shape.cpp +++ b/native/cocos/physics/sdk/Shape.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/sdk/Shape.h b/native/cocos/physics/sdk/Shape.h index a9309f737b..53d05b45b8 100644 --- a/native/cocos/physics/sdk/Shape.h +++ b/native/cocos/physics/sdk/Shape.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/sdk/World.cpp b/native/cocos/physics/sdk/World.cpp index 95c9bef426..8d0f34e13b 100644 --- a/native/cocos/physics/sdk/World.cpp +++ b/native/cocos/physics/sdk/World.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/sdk/World.h b/native/cocos/physics/sdk/World.h index 46f9260a67..1dabfed72f 100644 --- a/native/cocos/physics/sdk/World.h +++ b/native/cocos/physics/sdk/World.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/spec/IBody.h b/native/cocos/physics/spec/IBody.h index 7b1027a087..7f80794dde 100644 --- a/native/cocos/physics/spec/IBody.h +++ b/native/cocos/physics/spec/IBody.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/spec/IJoint.h b/native/cocos/physics/spec/IJoint.h index 05e6ba388d..981a21da8b 100644 --- a/native/cocos/physics/spec/IJoint.h +++ b/native/cocos/physics/spec/IJoint.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/spec/ILifecycle.h b/native/cocos/physics/spec/ILifecycle.h index de29c9b31f..abd7d2ff48 100644 --- a/native/cocos/physics/spec/ILifecycle.h +++ b/native/cocos/physics/spec/ILifecycle.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/spec/IShape.h b/native/cocos/physics/spec/IShape.h index 48463752a1..eab0156350 100644 --- a/native/cocos/physics/spec/IShape.h +++ b/native/cocos/physics/spec/IShape.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/spec/IWorld.h b/native/cocos/physics/spec/IWorld.h index eb587024ae..990312c97e 100644 --- a/native/cocos/physics/spec/IWorld.h +++ b/native/cocos/physics/spec/IWorld.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/Application.cpp b/native/cocos/platform/Application.cpp index 76b29d8ac4..99cae95f13 100644 --- a/native/cocos/platform/Application.cpp +++ b/native/cocos/platform/Application.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/BasePlatform.cpp b/native/cocos/platform/BasePlatform.cpp index cff2c0c6ef..ca309a45f8 100644 --- a/native/cocos/platform/BasePlatform.cpp +++ b/native/cocos/platform/BasePlatform.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/BasePlatform.h b/native/cocos/platform/BasePlatform.h index 51117ced01..71ae880d8d 100644 --- a/native/cocos/platform/BasePlatform.h +++ b/native/cocos/platform/BasePlatform.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/FileUtils.cpp b/native/cocos/platform/FileUtils.cpp index 88ce89cfe8..9759592a42 100644 --- a/native/cocos/platform/FileUtils.cpp +++ b/native/cocos/platform/FileUtils.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/FileUtils.h b/native/cocos/platform/FileUtils.h index e9aa1603ff..40dd993af3 100644 --- a/native/cocos/platform/FileUtils.h +++ b/native/cocos/platform/FileUtils.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/IEventDispatch.h b/native/cocos/platform/IEventDispatch.h index afade1349a..4e1d9a68c8 100644 --- a/native/cocos/platform/IEventDispatch.h +++ b/native/cocos/platform/IEventDispatch.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/Image.cpp b/native/cocos/platform/Image.cpp index 40a5b33a8b..18f227a465 100644 --- a/native/cocos/platform/Image.cpp +++ b/native/cocos/platform/Image.cpp @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2016-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2016-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/Image.h b/native/cocos/platform/Image.h index 5a43da5f24..bf7c606f1e 100644 --- a/native/cocos/platform/Image.h +++ b/native/cocos/platform/Image.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2016-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2016-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/SAXParser.cpp b/native/cocos/platform/SAXParser.cpp index 6692c2a59f..0afaababa6 100644 --- a/native/cocos/platform/SAXParser.cpp +++ b/native/cocos/platform/SAXParser.cpp @@ -3,7 +3,7 @@ Copyright (c) 2010 cocos2d-x.org Copyright (c) 2013 Martell Malone Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/SAXParser.h b/native/cocos/platform/SAXParser.h index bca9d4bb2b..51983a5024 100644 --- a/native/cocos/platform/SAXParser.h +++ b/native/cocos/platform/SAXParser.h @@ -2,7 +2,7 @@ Copyright (c) 2010 cocos2d-x.org Copyright (c) 2010 Максим Аксенов Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/StdC.h b/native/cocos/platform/StdC.h index 60c6a01d5d..be8b761a0d 100644 --- a/native/cocos/platform/StdC.h +++ b/native/cocos/platform/StdC.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2020 cocos.com Xiamen Yaji Software Co., Ltd. - Copyright (c) undefined-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) undefined-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/UniversalPlatform.cpp b/native/cocos/platform/UniversalPlatform.cpp index 87d0e34cc7..396ed7bfe3 100644 --- a/native/cocos/platform/UniversalPlatform.cpp +++ b/native/cocos/platform/UniversalPlatform.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/UniversalPlatform.h b/native/cocos/platform/UniversalPlatform.h index 0386dffb99..3923be9562 100644 --- a/native/cocos/platform/UniversalPlatform.h +++ b/native/cocos/platform/UniversalPlatform.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/android/AndroidPlatform.cpp b/native/cocos/platform/android/AndroidPlatform.cpp index 2672ee5a05..174e13eefe 100644 --- a/native/cocos/platform/android/AndroidPlatform.cpp +++ b/native/cocos/platform/android/AndroidPlatform.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include #include "platform/android/AndroidPlatform.h" diff --git a/native/cocos/platform/android/AndroidPlatform.h b/native/cocos/platform/android/AndroidPlatform.h index 8b2e95039f..349742f05c 100644 --- a/native/cocos/platform/android/AndroidPlatform.h +++ b/native/cocos/platform/android/AndroidPlatform.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/android/FileUtils-android.cpp b/native/cocos/platform/android/FileUtils-android.cpp index 0dacb73f72..19ed69fb73 100644 --- a/native/cocos/platform/android/FileUtils-android.cpp +++ b/native/cocos/platform/android/FileUtils-android.cpp @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/android/FileUtils-android.h b/native/cocos/platform/android/FileUtils-android.h index 6b69143512..61690357e3 100644 --- a/native/cocos/platform/android/FileUtils-android.h +++ b/native/cocos/platform/android/FileUtils-android.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -23,7 +23,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ + #pragma once #include diff --git a/native/cocos/platform/android/jni/JniCocosActivity.cpp b/native/cocos/platform/android/jni/JniCocosActivity.cpp index a3d37d84ad..2e72db6b50 100644 --- a/native/cocos/platform/android/jni/JniCocosActivity.cpp +++ b/native/cocos/platform/android/jni/JniCocosActivity.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/android/jni/JniCocosActivity.h b/native/cocos/platform/android/jni/JniCocosActivity.h index a7cc3204a5..d4802a62fe 100644 --- a/native/cocos/platform/android/jni/JniCocosActivity.h +++ b/native/cocos/platform/android/jni/JniCocosActivity.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/android/jni/JniCocosSurfaceView.cpp b/native/cocos/platform/android/jni/JniCocosSurfaceView.cpp index 2d140ad230..4c19132b82 100644 --- a/native/cocos/platform/android/jni/JniCocosSurfaceView.cpp +++ b/native/cocos/platform/android/jni/JniCocosSurfaceView.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include #include #include diff --git a/native/cocos/platform/android/modules/Screen.cpp b/native/cocos/platform/android/modules/Screen.cpp index 2bcdd9385c..2eb19a4887 100644 --- a/native/cocos/platform/android/modules/Screen.cpp +++ b/native/cocos/platform/android/modules/Screen.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/android/modules/Screen.h b/native/cocos/platform/android/modules/Screen.h index 7a8c22c529..8b585c77b5 100644 --- a/native/cocos/platform/android/modules/Screen.h +++ b/native/cocos/platform/android/modules/Screen.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/android/modules/System.cpp b/native/cocos/platform/android/modules/System.cpp index 04b91eb6ba..de32552a78 100644 --- a/native/cocos/platform/android/modules/System.cpp +++ b/native/cocos/platform/android/modules/System.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/android/modules/System.h b/native/cocos/platform/android/modules/System.h index e57753398a..13ce70c05a 100644 --- a/native/cocos/platform/android/modules/System.h +++ b/native/cocos/platform/android/modules/System.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/apple/FileUtils-apple.h b/native/cocos/platform/apple/FileUtils-apple.h index ac736fd1d5..24e9115297 100644 --- a/native/cocos/platform/apple/FileUtils-apple.h +++ b/native/cocos/platform/apple/FileUtils-apple.h @@ -2,7 +2,7 @@ Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2011 Zynga Inc. Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/apple/FileUtils-apple.mm b/native/cocos/platform/apple/FileUtils-apple.mm index 506e0b6235..2de2f80953 100644 --- a/native/cocos/platform/apple/FileUtils-apple.mm +++ b/native/cocos/platform/apple/FileUtils-apple.mm @@ -2,7 +2,7 @@ Copyright (c) 2010-2012 cc-x.org Copyright (c) 2011 Zynga Inc. Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/apple/JsbBridge.h b/native/cocos/platform/apple/JsbBridge.h index 0ef3b01110..998f09e7d5 100644 --- a/native/cocos/platform/apple/JsbBridge.h +++ b/native/cocos/platform/apple/JsbBridge.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/apple/JsbBridge.mm b/native/cocos/platform/apple/JsbBridge.mm index 4b954a6522..571c5cf18c 100644 --- a/native/cocos/platform/apple/JsbBridge.mm +++ b/native/cocos/platform/apple/JsbBridge.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/apple/JsbBridgeWrapper.h b/native/cocos/platform/apple/JsbBridgeWrapper.h index 0072fc26dc..8ceb45251f 100644 --- a/native/cocos/platform/apple/JsbBridgeWrapper.h +++ b/native/cocos/platform/apple/JsbBridgeWrapper.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #pragma once #import diff --git a/native/cocos/platform/apple/JsbBridgeWrapper.mm b/native/cocos/platform/apple/JsbBridgeWrapper.mm index afa832cbd2..5077f1fdbb 100644 --- a/native/cocos/platform/apple/JsbBridgeWrapper.mm +++ b/native/cocos/platform/apple/JsbBridgeWrapper.mm @@ -1,5 +1,5 @@ -/*************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. +/**************************************************************************** + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "JsbBridgeWrapper.h" #include #include diff --git a/native/cocos/platform/apple/Reachability.cpp b/native/cocos/platform/apple/Reachability.cpp index 5d4c1fa519..d700e96842 100644 --- a/native/cocos/platform/apple/Reachability.cpp +++ b/native/cocos/platform/apple/Reachability.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/apple/Reachability.h b/native/cocos/platform/apple/Reachability.h index 03ed06fb71..8d5c3948ac 100644 --- a/native/cocos/platform/apple/Reachability.h +++ b/native/cocos/platform/apple/Reachability.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/apple/modules/CanvasRenderingContext2DDelegate.h b/native/cocos/platform/apple/modules/CanvasRenderingContext2DDelegate.h index da7cd5f56a..906815c2a8 100644 --- a/native/cocos/platform/apple/modules/CanvasRenderingContext2DDelegate.h +++ b/native/cocos/platform/apple/modules/CanvasRenderingContext2DDelegate.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/apple/modules/CanvasRenderingContext2DDelegate.mm b/native/cocos/platform/apple/modules/CanvasRenderingContext2DDelegate.mm index b315a63e02..2852d6def0 100644 --- a/native/cocos/platform/apple/modules/CanvasRenderingContext2DDelegate.mm +++ b/native/cocos/platform/apple/modules/CanvasRenderingContext2DDelegate.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/interfaces/OSInterface.cpp b/native/cocos/platform/interfaces/OSInterface.cpp index 67c593d969..2ee677f353 100644 --- a/native/cocos/platform/interfaces/OSInterface.cpp +++ b/native/cocos/platform/interfaces/OSInterface.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/interfaces/OSInterface.h" #include "platform/IEventDispatch.h" diff --git a/native/cocos/platform/interfaces/OSInterface.h b/native/cocos/platform/interfaces/OSInterface.h index 6ec9e03b59..e40f8ae46d 100644 --- a/native/cocos/platform/interfaces/OSInterface.h +++ b/native/cocos/platform/interfaces/OSInterface.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/interfaces/OSInterfaceManager.cpp b/native/cocos/platform/interfaces/OSInterfaceManager.cpp index e69de29bb2..e76bbe7727 100644 --- a/native/cocos/platform/interfaces/OSInterfaceManager.cpp +++ b/native/cocos/platform/interfaces/OSInterfaceManager.cpp @@ -0,0 +1,25 @@ +/**************************************************************************** + Copyright (c) 2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + diff --git a/native/cocos/platform/interfaces/OSInterfaceManager.h b/native/cocos/platform/interfaces/OSInterfaceManager.h index cae284065f..2c1f6a5cc1 100644 --- a/native/cocos/platform/interfaces/OSInterfaceManager.h +++ b/native/cocos/platform/interfaces/OSInterfaceManager.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/interfaces/modules/Device.cpp b/native/cocos/platform/interfaces/modules/Device.cpp index 81091d0b50..2447f78115 100644 --- a/native/cocos/platform/interfaces/modules/Device.cpp +++ b/native/cocos/platform/interfaces/modules/Device.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/interfaces/modules/Device.h" #include "application/ApplicationManager.h" diff --git a/native/cocos/platform/interfaces/modules/Device.h b/native/cocos/platform/interfaces/modules/Device.h index 239f7900c6..487459eb34 100644 --- a/native/cocos/platform/interfaces/modules/Device.h +++ b/native/cocos/platform/interfaces/modules/Device.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/interfaces/modules/IAccelerometer.cpp b/native/cocos/platform/interfaces/modules/IAccelerometer.cpp index 712ec849df..96fc1df3b4 100644 --- a/native/cocos/platform/interfaces/modules/IAccelerometer.cpp +++ b/native/cocos/platform/interfaces/modules/IAccelerometer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/interfaces/modules/IAccelerometer.h b/native/cocos/platform/interfaces/modules/IAccelerometer.h index 61c55fcfea..54a87e8d8d 100644 --- a/native/cocos/platform/interfaces/modules/IAccelerometer.h +++ b/native/cocos/platform/interfaces/modules/IAccelerometer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/interfaces/modules/IBattery.cpp b/native/cocos/platform/interfaces/modules/IBattery.cpp index 306f26dd43..5d36b4f14f 100644 --- a/native/cocos/platform/interfaces/modules/IBattery.cpp +++ b/native/cocos/platform/interfaces/modules/IBattery.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/interfaces/modules/IBattery.h b/native/cocos/platform/interfaces/modules/IBattery.h index 821119391c..b23c4e5c89 100644 --- a/native/cocos/platform/interfaces/modules/IBattery.h +++ b/native/cocos/platform/interfaces/modules/IBattery.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/interfaces/modules/INetwork.cpp b/native/cocos/platform/interfaces/modules/INetwork.cpp index e37be1c470..0d923df096 100644 --- a/native/cocos/platform/interfaces/modules/INetwork.cpp +++ b/native/cocos/platform/interfaces/modules/INetwork.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/interfaces/modules/INetwork.h b/native/cocos/platform/interfaces/modules/INetwork.h index d19e64fa76..ccc7b49c6d 100644 --- a/native/cocos/platform/interfaces/modules/INetwork.h +++ b/native/cocos/platform/interfaces/modules/INetwork.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/interfaces/modules/IScreen.cpp b/native/cocos/platform/interfaces/modules/IScreen.cpp index 0f5078b9b9..a16b7b0f4b 100644 --- a/native/cocos/platform/interfaces/modules/IScreen.cpp +++ b/native/cocos/platform/interfaces/modules/IScreen.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/interfaces/modules/IScreen.h b/native/cocos/platform/interfaces/modules/IScreen.h index 723dfd7860..4b5232cdbd 100644 --- a/native/cocos/platform/interfaces/modules/IScreen.h +++ b/native/cocos/platform/interfaces/modules/IScreen.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/interfaces/modules/ISystem.cpp b/native/cocos/platform/interfaces/modules/ISystem.cpp index b4f3cea001..f9cd42e727 100644 --- a/native/cocos/platform/interfaces/modules/ISystem.cpp +++ b/native/cocos/platform/interfaces/modules/ISystem.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/interfaces/modules/ISystem.h" #if (CC_PLATFORM == CC_PLATFORM_WINDOWS) diff --git a/native/cocos/platform/interfaces/modules/ISystem.h b/native/cocos/platform/interfaces/modules/ISystem.h index b0075ebb56..31b428cdb9 100644 --- a/native/cocos/platform/interfaces/modules/ISystem.h +++ b/native/cocos/platform/interfaces/modules/ISystem.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/interfaces/modules/ISystemWindow.cpp b/native/cocos/platform/interfaces/modules/ISystemWindow.cpp index 7fe7632f2c..339bfe89fb 100644 --- a/native/cocos/platform/interfaces/modules/ISystemWindow.cpp +++ b/native/cocos/platform/interfaces/modules/ISystemWindow.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/interfaces/modules/ISystemWindow.h b/native/cocos/platform/interfaces/modules/ISystemWindow.h index 7428ed3780..3c0eaf919a 100644 --- a/native/cocos/platform/interfaces/modules/ISystemWindow.h +++ b/native/cocos/platform/interfaces/modules/ISystemWindow.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/interfaces/modules/IVibrator.cpp b/native/cocos/platform/interfaces/modules/IVibrator.cpp index af50dc4e31..95be4f227d 100644 --- a/native/cocos/platform/interfaces/modules/IVibrator.cpp +++ b/native/cocos/platform/interfaces/modules/IVibrator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/interfaces/modules/IVibrator.h b/native/cocos/platform/interfaces/modules/IVibrator.h index 3e8a5842f0..fea7fe9342 100644 --- a/native/cocos/platform/interfaces/modules/IVibrator.h +++ b/native/cocos/platform/interfaces/modules/IVibrator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/interfaces/modules/canvas/CanvasRenderingContext2D.cpp b/native/cocos/platform/interfaces/modules/canvas/CanvasRenderingContext2D.cpp index 3d9d136b7a..7fd7a51f13 100644 --- a/native/cocos/platform/interfaces/modules/canvas/CanvasRenderingContext2D.cpp +++ b/native/cocos/platform/interfaces/modules/canvas/CanvasRenderingContext2D.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/interfaces/modules/canvas/CanvasRenderingContext2D.h b/native/cocos/platform/interfaces/modules/canvas/CanvasRenderingContext2D.h index dcbef5589d..ac2502577f 100644 --- a/native/cocos/platform/interfaces/modules/canvas/CanvasRenderingContext2D.h +++ b/native/cocos/platform/interfaces/modules/canvas/CanvasRenderingContext2D.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/interfaces/modules/canvas/ICanvasRenderingContext2D.cpp b/native/cocos/platform/interfaces/modules/canvas/ICanvasRenderingContext2D.cpp index 4312d2380e..d3582aeb7f 100644 --- a/native/cocos/platform/interfaces/modules/canvas/ICanvasRenderingContext2D.cpp +++ b/native/cocos/platform/interfaces/modules/canvas/ICanvasRenderingContext2D.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/interfaces/modules/canvas/ICanvasRenderingContext2D.h" #include "platform/interfaces/modules/canvas/CanvasRenderingContext2D.h" diff --git a/native/cocos/platform/interfaces/modules/canvas/ICanvasRenderingContext2D.h b/native/cocos/platform/interfaces/modules/canvas/ICanvasRenderingContext2D.h index bdb647be32..1687daf918 100644 --- a/native/cocos/platform/interfaces/modules/canvas/ICanvasRenderingContext2D.h +++ b/native/cocos/platform/interfaces/modules/canvas/ICanvasRenderingContext2D.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ios/AppDelegate.h b/native/cocos/platform/ios/AppDelegate.h index 33e29b6a04..f5330f57a6 100644 --- a/native/cocos/platform/ios/AppDelegate.h +++ b/native/cocos/platform/ios/AppDelegate.h @@ -1,19 +1,20 @@ /**************************************************************************** Copyright (c) 2010-2013 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. - - http://www.cocos2d-x.org + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, @@ -22,7 +23,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ + #import @class ViewController; diff --git a/native/cocos/platform/ios/AppDelegate.mm b/native/cocos/platform/ios/AppDelegate.mm index 753036a497..f9e7c4dfa6 100644 --- a/native/cocos/platform/ios/AppDelegate.mm +++ b/native/cocos/platform/ios/AppDelegate.mm @@ -1,19 +1,20 @@ /**************************************************************************** Copyright (c) 2010-2013 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. - http://www.cocos2d-x.org + http://www.cocos.com Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, @@ -22,7 +23,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ + #import "platform/ios/AppDelegate.h" #import "ViewController.h" #import "platform/ios/View.h" diff --git a/native/cocos/platform/ios/IOSPlatform.h b/native/cocos/platform/ios/IOSPlatform.h index e0a5fd4ab2..4f2990798f 100644 --- a/native/cocos/platform/ios/IOSPlatform.h +++ b/native/cocos/platform/ios/IOSPlatform.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ios/IOSPlatform.mm b/native/cocos/platform/ios/IOSPlatform.mm index 7d6c76ef97..03df14ecd4 100644 --- a/native/cocos/platform/ios/IOSPlatform.mm +++ b/native/cocos/platform/ios/IOSPlatform.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ios/View.h b/native/cocos/platform/ios/View.h index 8078e516dc..fa9c9c3dc1 100644 --- a/native/cocos/platform/ios/View.h +++ b/native/cocos/platform/ios/View.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ios/View.mm b/native/cocos/platform/ios/View.mm index 8f30ca881a..c6d2bc36d5 100644 --- a/native/cocos/platform/ios/View.mm +++ b/native/cocos/platform/ios/View.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ios/ViewController.h b/native/cocos/platform/ios/ViewController.h index ae272b780c..3e72a7f56e 100644 --- a/native/cocos/platform/ios/ViewController.h +++ b/native/cocos/platform/ios/ViewController.h @@ -1,20 +1,21 @@ /**************************************************************************** - Copyright (c) 2013 cocos2d-x.org + Copyright (c) 2013 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com - http://www.cocos2d-x.org - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. - + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -22,7 +23,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #import diff --git a/native/cocos/platform/ios/ViewController.mm b/native/cocos/platform/ios/ViewController.mm index f3e4ef6d3d..61741cee6c 100644 --- a/native/cocos/platform/ios/ViewController.mm +++ b/native/cocos/platform/ios/ViewController.mm @@ -1,19 +1,20 @@ /**************************************************************************** - Copyright (c) 2013 cocos2d-x.org + Copyright (c) 2013 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. - http://www.cocos2d-x.org + http://www.cocos.com Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, @@ -23,6 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #import "ViewController.h" #include "cocos/bindings/event/EventDispatcher.h" #include "platform/IEventDispatch.h" diff --git a/native/cocos/platform/ios/modules/Accelerometer.h b/native/cocos/platform/ios/modules/Accelerometer.h index b32b67dfda..83dfe8e135 100644 --- a/native/cocos/platform/ios/modules/Accelerometer.h +++ b/native/cocos/platform/ios/modules/Accelerometer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ios/modules/Accelerometer.mm b/native/cocos/platform/ios/modules/Accelerometer.mm index 437db24834..18d4e68613 100644 --- a/native/cocos/platform/ios/modules/Accelerometer.mm +++ b/native/cocos/platform/ios/modules/Accelerometer.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ios/modules/Battery.h b/native/cocos/platform/ios/modules/Battery.h index 46e802fe00..1f6e1b5f82 100644 --- a/native/cocos/platform/ios/modules/Battery.h +++ b/native/cocos/platform/ios/modules/Battery.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ios/modules/Battery.mm b/native/cocos/platform/ios/modules/Battery.mm index fbc74f2637..2ae8f139ff 100644 --- a/native/cocos/platform/ios/modules/Battery.mm +++ b/native/cocos/platform/ios/modules/Battery.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/ios/modules/Battery.h" #import diff --git a/native/cocos/platform/ios/modules/Network.h b/native/cocos/platform/ios/modules/Network.h index cd5f2d6d5a..bc90dbfb67 100644 --- a/native/cocos/platform/ios/modules/Network.h +++ b/native/cocos/platform/ios/modules/Network.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ios/modules/Network.mm b/native/cocos/platform/ios/modules/Network.mm index 2c3433bf05..93af9da1c2 100644 --- a/native/cocos/platform/ios/modules/Network.mm +++ b/native/cocos/platform/ios/modules/Network.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/ios/modules/Network.h" #include #import diff --git a/native/cocos/platform/ios/modules/Screen.h b/native/cocos/platform/ios/modules/Screen.h index 6b62649702..8972457542 100644 --- a/native/cocos/platform/ios/modules/Screen.h +++ b/native/cocos/platform/ios/modules/Screen.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ios/modules/Screen.mm b/native/cocos/platform/ios/modules/Screen.mm index c9b526b66c..afcb1fed12 100644 --- a/native/cocos/platform/ios/modules/Screen.mm +++ b/native/cocos/platform/ios/modules/Screen.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ios/modules/System.h b/native/cocos/platform/ios/modules/System.h index d27091baec..3974da6be8 100644 --- a/native/cocos/platform/ios/modules/System.h +++ b/native/cocos/platform/ios/modules/System.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ios/modules/System.mm b/native/cocos/platform/ios/modules/System.mm index 7627ae4435..cc5a470b35 100644 --- a/native/cocos/platform/ios/modules/System.mm +++ b/native/cocos/platform/ios/modules/System.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/ios/modules/System.h" #import diff --git a/native/cocos/platform/ios/modules/SystemWindow.h b/native/cocos/platform/ios/modules/SystemWindow.h index ecc0bec72d..0b5b349fb7 100644 --- a/native/cocos/platform/ios/modules/SystemWindow.h +++ b/native/cocos/platform/ios/modules/SystemWindow.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ios/modules/SystemWindow.mm b/native/cocos/platform/ios/modules/SystemWindow.mm index 444b599060..34f78a66cc 100644 --- a/native/cocos/platform/ios/modules/SystemWindow.mm +++ b/native/cocos/platform/ios/modules/SystemWindow.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/ios/modules/SystemWindow.h" #import #include "platform/ios/AppDelegate.h" diff --git a/native/cocos/platform/ios/modules/Vibrator.h b/native/cocos/platform/ios/modules/Vibrator.h index 8a91c91420..87f405192d 100644 --- a/native/cocos/platform/ios/modules/Vibrator.h +++ b/native/cocos/platform/ios/modules/Vibrator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ios/modules/Vibrator.mm b/native/cocos/platform/ios/modules/Vibrator.mm index 052f69c913..76ad44eb68 100644 --- a/native/cocos/platform/ios/modules/Vibrator.mm +++ b/native/cocos/platform/ios/modules/Vibrator.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ios/service/SDKWrapper.h b/native/cocos/platform/ios/service/SDKWrapper.h index 4ab06a2345..974b94803f 100644 --- a/native/cocos/platform/ios/service/SDKWrapper.h +++ b/native/cocos/platform/ios/service/SDKWrapper.h @@ -1,17 +1,18 @@ /**************************************************************************** - Copyright (c) 2017-2020 Xiamen Yaji Software Co., Ltd. - - http://www.cocos2d-x.org + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, @@ -20,7 +21,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ + #import #import NS_ASSUME_NONNULL_BEGIN diff --git a/native/cocos/platform/java/jni/JniCocosKeyCodeHandler.cpp b/native/cocos/platform/java/jni/JniCocosKeyCodeHandler.cpp index 38ddaa368c..05990710df 100644 --- a/native/cocos/platform/java/jni/JniCocosKeyCodeHandler.cpp +++ b/native/cocos/platform/java/jni/JniCocosKeyCodeHandler.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/java/jni/JniHelper.h" #if CC_PLATFORM == CC_PLATFORM_ANDROID #include diff --git a/native/cocos/platform/java/jni/JniCocosOrientationHelper.cpp b/native/cocos/platform/java/jni/JniCocosOrientationHelper.cpp index 341937c9ce..03526e0453 100644 --- a/native/cocos/platform/java/jni/JniCocosOrientationHelper.cpp +++ b/native/cocos/platform/java/jni/JniCocosOrientationHelper.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include #include "cocos/bindings/event/EventDispatcher.h" #include "platform/interfaces/modules/Device.h" diff --git a/native/cocos/platform/java/jni/JniCocosTouchHandler.cpp b/native/cocos/platform/java/jni/JniCocosTouchHandler.cpp index 038b8744f8..4f6ad29000 100644 --- a/native/cocos/platform/java/jni/JniCocosTouchHandler.cpp +++ b/native/cocos/platform/java/jni/JniCocosTouchHandler.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include #include "cocos/bindings/event/EventDispatcher.h" #include "platform/java/jni/JniHelper.h" diff --git a/native/cocos/platform/java/jni/JniHelper.cpp b/native/cocos/platform/java/jni/JniHelper.cpp index 2721523c8f..6e4ad7eb64 100644 --- a/native/cocos/platform/java/jni/JniHelper.cpp +++ b/native/cocos/platform/java/jni/JniHelper.cpp @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -24,6 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/java/jni/JniHelper.h" #if ANDROID #include diff --git a/native/cocos/platform/java/jni/JniHelper.h b/native/cocos/platform/java/jni/JniHelper.h index ed4c1a5a6a..f48b8e89b8 100644 --- a/native/cocos/platform/java/jni/JniHelper.h +++ b/native/cocos/platform/java/jni/JniHelper.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cc-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -24,6 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #pragma once #include diff --git a/native/cocos/platform/java/jni/JniImp.cpp b/native/cocos/platform/java/jni/JniImp.cpp index 3faba86c50..fcabed5dda 100644 --- a/native/cocos/platform/java/jni/JniImp.cpp +++ b/native/cocos/platform/java/jni/JniImp.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/java/jni/JniImp.h b/native/cocos/platform/java/jni/JniImp.h index 31881f7f56..83851ffe8f 100644 --- a/native/cocos/platform/java/jni/JniImp.h +++ b/native/cocos/platform/java/jni/JniImp.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/java/jni/glue/JniNativeGlue.cpp b/native/cocos/platform/java/jni/glue/JniNativeGlue.cpp index a235b63426..3e653d23f3 100644 --- a/native/cocos/platform/java/jni/glue/JniNativeGlue.cpp +++ b/native/cocos/platform/java/jni/glue/JniNativeGlue.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/java/jni/glue/JniNativeGlue.h b/native/cocos/platform/java/jni/glue/JniNativeGlue.h index 6e4b326f29..442f28d353 100644 --- a/native/cocos/platform/java/jni/glue/JniNativeGlue.h +++ b/native/cocos/platform/java/jni/glue/JniNativeGlue.h @@ -1,5 +1,5 @@ /**************************************************************************** -Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #pragma once #include diff --git a/native/cocos/platform/java/jni/glue/MessagePipe.cpp b/native/cocos/platform/java/jni/glue/MessagePipe.cpp index 38d1f75d62..1f6ec0e0d6 100644 --- a/native/cocos/platform/java/jni/glue/MessagePipe.cpp +++ b/native/cocos/platform/java/jni/glue/MessagePipe.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/java/jni/glue/MessagePipe.h" #include #include diff --git a/native/cocos/platform/java/jni/glue/MessagePipe.h b/native/cocos/platform/java/jni/glue/MessagePipe.h index 7674c3fe38..bd6d1594b4 100644 --- a/native/cocos/platform/java/jni/glue/MessagePipe.h +++ b/native/cocos/platform/java/jni/glue/MessagePipe.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/java/jni/log.h b/native/cocos/platform/java/jni/log.h index 1ba285ff90..cf0777aee3 100644 --- a/native/cocos/platform/java/jni/log.h +++ b/native/cocos/platform/java/jni/log.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/java/modules/Accelerometer.cpp b/native/cocos/platform/java/modules/Accelerometer.cpp index c9ff3955c1..c5cc5ff3b4 100644 --- a/native/cocos/platform/java/modules/Accelerometer.cpp +++ b/native/cocos/platform/java/modules/Accelerometer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/java/modules/Accelerometer.h b/native/cocos/platform/java/modules/Accelerometer.h index 50a3c56992..266da13c03 100644 --- a/native/cocos/platform/java/modules/Accelerometer.h +++ b/native/cocos/platform/java/modules/Accelerometer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/java/modules/Battery.cpp b/native/cocos/platform/java/modules/Battery.cpp index 4c0653256d..cd424f0ae4 100644 --- a/native/cocos/platform/java/modules/Battery.cpp +++ b/native/cocos/platform/java/modules/Battery.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/java/modules/Battery.h" #include "platform/java/jni/JniImp.h" diff --git a/native/cocos/platform/java/modules/Battery.h b/native/cocos/platform/java/modules/Battery.h index aa2fb2f5b0..9630940d96 100644 --- a/native/cocos/platform/java/modules/Battery.h +++ b/native/cocos/platform/java/modules/Battery.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/java/modules/CanvasRenderingContext2DDelegate.cpp b/native/cocos/platform/java/modules/CanvasRenderingContext2DDelegate.cpp index 95553ad691..3dfb4e080c 100644 --- a/native/cocos/platform/java/modules/CanvasRenderingContext2DDelegate.cpp +++ b/native/cocos/platform/java/modules/CanvasRenderingContext2DDelegate.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -20,8 +20,8 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - THE SOFTWARE. \ - ****************************************************************************/ + THE SOFTWARE. +****************************************************************************/ #include "platform/java/modules/CanvasRenderingContext2DDelegate.h" diff --git a/native/cocos/platform/java/modules/CanvasRenderingContext2DDelegate.h b/native/cocos/platform/java/modules/CanvasRenderingContext2DDelegate.h index c38af6b1ef..cab938512f 100644 --- a/native/cocos/platform/java/modules/CanvasRenderingContext2DDelegate.h +++ b/native/cocos/platform/java/modules/CanvasRenderingContext2DDelegate.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/java/modules/CommonScreen.cpp b/native/cocos/platform/java/modules/CommonScreen.cpp index 971bab94e4..89a18d5319 100644 --- a/native/cocos/platform/java/modules/CommonScreen.cpp +++ b/native/cocos/platform/java/modules/CommonScreen.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/java/modules/CommonScreen.h b/native/cocos/platform/java/modules/CommonScreen.h index e5a55952e1..5be098d732 100644 --- a/native/cocos/platform/java/modules/CommonScreen.h +++ b/native/cocos/platform/java/modules/CommonScreen.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/java/modules/CommonSystem.cpp b/native/cocos/platform/java/modules/CommonSystem.cpp index 7c4f41cff8..79f21b93a5 100644 --- a/native/cocos/platform/java/modules/CommonSystem.cpp +++ b/native/cocos/platform/java/modules/CommonSystem.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/java/modules/CommonSystem.h b/native/cocos/platform/java/modules/CommonSystem.h index cf8d82fddb..90a90753aa 100644 --- a/native/cocos/platform/java/modules/CommonSystem.h +++ b/native/cocos/platform/java/modules/CommonSystem.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/java/modules/Network.cpp b/native/cocos/platform/java/modules/Network.cpp index 3bfd6a2e88..83d3401a0c 100644 --- a/native/cocos/platform/java/modules/Network.cpp +++ b/native/cocos/platform/java/modules/Network.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/java/modules/Network.h" #include "platform/java/jni/JniImp.h" diff --git a/native/cocos/platform/java/modules/Network.h b/native/cocos/platform/java/modules/Network.h index 9b1ea1b21b..e5559b12e4 100644 --- a/native/cocos/platform/java/modules/Network.h +++ b/native/cocos/platform/java/modules/Network.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/java/modules/SystemWindow.cpp b/native/cocos/platform/java/modules/SystemWindow.cpp index a07cc8f88e..fcc22f28dd 100644 --- a/native/cocos/platform/java/modules/SystemWindow.cpp +++ b/native/cocos/platform/java/modules/SystemWindow.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/java/modules/SystemWindow.h b/native/cocos/platform/java/modules/SystemWindow.h index 58d60e3d9b..a138bdbc95 100644 --- a/native/cocos/platform/java/modules/SystemWindow.h +++ b/native/cocos/platform/java/modules/SystemWindow.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/java/modules/Vibrator.cpp b/native/cocos/platform/java/modules/Vibrator.cpp index f6864085a1..7d1bf8ac46 100644 --- a/native/cocos/platform/java/modules/Vibrator.cpp +++ b/native/cocos/platform/java/modules/Vibrator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/java/modules/Vibrator.h b/native/cocos/platform/java/modules/Vibrator.h index 9a8ea1657d..7f755242df 100644 --- a/native/cocos/platform/java/modules/Vibrator.h +++ b/native/cocos/platform/java/modules/Vibrator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/linux/FileUtils-linux.cpp b/native/cocos/platform/linux/FileUtils-linux.cpp index e811987bd0..2c9b4f4ab4 100644 --- a/native/cocos/platform/linux/FileUtils-linux.cpp +++ b/native/cocos/platform/linux/FileUtils-linux.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "FileUtils-linux.h" #include #include diff --git a/native/cocos/platform/linux/FileUtils-linux.h b/native/cocos/platform/linux/FileUtils-linux.h index b578971ebd..7737f0757c 100644 --- a/native/cocos/platform/linux/FileUtils-linux.h +++ b/native/cocos/platform/linux/FileUtils-linux.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/linux/LinuxPlatform.cpp b/native/cocos/platform/linux/LinuxPlatform.cpp index b3d2bd7185..05d01d70c7 100644 --- a/native/cocos/platform/linux/LinuxPlatform.cpp +++ b/native/cocos/platform/linux/LinuxPlatform.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/linux/LinuxPlatform.h b/native/cocos/platform/linux/LinuxPlatform.h index 231adf8170..da45321831 100644 --- a/native/cocos/platform/linux/LinuxPlatform.h +++ b/native/cocos/platform/linux/LinuxPlatform.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/linux/modules/Accelerometer.cpp b/native/cocos/platform/linux/modules/Accelerometer.cpp index e7ff316690..e3ccff2366 100644 --- a/native/cocos/platform/linux/modules/Accelerometer.cpp +++ b/native/cocos/platform/linux/modules/Accelerometer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/linux/modules/Accelerometer.h b/native/cocos/platform/linux/modules/Accelerometer.h index 50a3c56992..266da13c03 100644 --- a/native/cocos/platform/linux/modules/Accelerometer.h +++ b/native/cocos/platform/linux/modules/Accelerometer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/linux/modules/Battery.cpp b/native/cocos/platform/linux/modules/Battery.cpp index 659bec9e50..6b3f253a51 100644 --- a/native/cocos/platform/linux/modules/Battery.cpp +++ b/native/cocos/platform/linux/modules/Battery.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/linux/modules/Battery.h" namespace cc { diff --git a/native/cocos/platform/linux/modules/Battery.h b/native/cocos/platform/linux/modules/Battery.h index 928cbb038e..9b5ce28660 100644 --- a/native/cocos/platform/linux/modules/Battery.h +++ b/native/cocos/platform/linux/modules/Battery.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/linux/modules/CanvasRenderingContext2DDelegate.cpp b/native/cocos/platform/linux/modules/CanvasRenderingContext2DDelegate.cpp index 9c933c8165..abdb170d2c 100644 --- a/native/cocos/platform/linux/modules/CanvasRenderingContext2DDelegate.cpp +++ b/native/cocos/platform/linux/modules/CanvasRenderingContext2DDelegate.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -20,8 +20,8 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - THE SOFTWARE. \ - ****************************************************************************/ + THE SOFTWARE. +****************************************************************************/ #include "platform/linux/modules/CanvasRenderingContext2DDelegate.h" #include "SDL2/SDL.h" diff --git a/native/cocos/platform/linux/modules/CanvasRenderingContext2DDelegate.h b/native/cocos/platform/linux/modules/CanvasRenderingContext2DDelegate.h index 6f14fbf339..a60c5d5c7b 100644 --- a/native/cocos/platform/linux/modules/CanvasRenderingContext2DDelegate.h +++ b/native/cocos/platform/linux/modules/CanvasRenderingContext2DDelegate.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/linux/modules/Network.cpp b/native/cocos/platform/linux/modules/Network.cpp index 13aa70c2de..fb97724359 100644 --- a/native/cocos/platform/linux/modules/Network.cpp +++ b/native/cocos/platform/linux/modules/Network.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/linux/modules/Network.h" namespace cc { diff --git a/native/cocos/platform/linux/modules/Network.h b/native/cocos/platform/linux/modules/Network.h index cd5f2d6d5a..bc90dbfb67 100644 --- a/native/cocos/platform/linux/modules/Network.h +++ b/native/cocos/platform/linux/modules/Network.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/linux/modules/Screen.cpp b/native/cocos/platform/linux/modules/Screen.cpp index e7b86595e3..cf307ed6cd 100644 --- a/native/cocos/platform/linux/modules/Screen.cpp +++ b/native/cocos/platform/linux/modules/Screen.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/linux/modules/Screen.h b/native/cocos/platform/linux/modules/Screen.h index 06eb7a8c15..995ec19ed4 100644 --- a/native/cocos/platform/linux/modules/Screen.h +++ b/native/cocos/platform/linux/modules/Screen.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/linux/modules/System.cpp b/native/cocos/platform/linux/modules/System.cpp index e6480d8247..37f058da02 100644 --- a/native/cocos/platform/linux/modules/System.cpp +++ b/native/cocos/platform/linux/modules/System.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/linux/modules/System.h b/native/cocos/platform/linux/modules/System.h index 617b45499c..33938ae5c9 100644 --- a/native/cocos/platform/linux/modules/System.h +++ b/native/cocos/platform/linux/modules/System.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/linux/modules/SystemWindow.cpp b/native/cocos/platform/linux/modules/SystemWindow.cpp index ce5cbf846e..3f367d30e5 100644 --- a/native/cocos/platform/linux/modules/SystemWindow.cpp +++ b/native/cocos/platform/linux/modules/SystemWindow.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/linux/modules/SystemWindow.h b/native/cocos/platform/linux/modules/SystemWindow.h index 44b447075d..4d1386ca11 100644 --- a/native/cocos/platform/linux/modules/SystemWindow.h +++ b/native/cocos/platform/linux/modules/SystemWindow.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/linux/modules/Vibrate.cpp b/native/cocos/platform/linux/modules/Vibrate.cpp index c8345f6c13..06067d581b 100644 --- a/native/cocos/platform/linux/modules/Vibrate.cpp +++ b/native/cocos/platform/linux/modules/Vibrate.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/linux/modules/Vibrate.h b/native/cocos/platform/linux/modules/Vibrate.h index f0afad6cbf..32b6007f0b 100644 --- a/native/cocos/platform/linux/modules/Vibrate.h +++ b/native/cocos/platform/linux/modules/Vibrate.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/mac/AppDelegate.h b/native/cocos/platform/mac/AppDelegate.h index 69b6e0f13a..811127f278 100644 --- a/native/cocos/platform/mac/AppDelegate.h +++ b/native/cocos/platform/mac/AppDelegate.h @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #import @interface AppDelegate : NSObject diff --git a/native/cocos/platform/mac/AppDelegate.mm b/native/cocos/platform/mac/AppDelegate.mm index 546ba23a47..b4a973c198 100644 --- a/native/cocos/platform/mac/AppDelegate.mm +++ b/native/cocos/platform/mac/AppDelegate.mm @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #import "AppDelegate.h" #include //#import "Game.h" diff --git a/native/cocos/platform/mac/KeyCodeHelper.cpp b/native/cocos/platform/mac/KeyCodeHelper.cpp index 5b8dd6e45a..78269b9e04 100644 --- a/native/cocos/platform/mac/KeyCodeHelper.cpp +++ b/native/cocos/platform/mac/KeyCodeHelper.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/mac/KeyCodeHelper.h b/native/cocos/platform/mac/KeyCodeHelper.h index cfee0c5a09..03b16fa5a0 100644 --- a/native/cocos/platform/mac/KeyCodeHelper.h +++ b/native/cocos/platform/mac/KeyCodeHelper.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/mac/MacPlatform.h b/native/cocos/platform/mac/MacPlatform.h index 5f6c863175..f54c60594d 100644 --- a/native/cocos/platform/mac/MacPlatform.h +++ b/native/cocos/platform/mac/MacPlatform.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/mac/MacPlatform.mm b/native/cocos/platform/mac/MacPlatform.mm index 859c47b210..68a2677b92 100644 --- a/native/cocos/platform/mac/MacPlatform.mm +++ b/native/cocos/platform/mac/MacPlatform.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/mac/View.h b/native/cocos/platform/mac/View.h index efc77635a2..890da35fb3 100644 --- a/native/cocos/platform/mac/View.h +++ b/native/cocos/platform/mac/View.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/mac/View.mm b/native/cocos/platform/mac/View.mm index bba5f2d103..064ef11491 100644 --- a/native/cocos/platform/mac/View.mm +++ b/native/cocos/platform/mac/View.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/mac/ViewController.h b/native/cocos/platform/mac/ViewController.h index cbb08ca84f..b2451122b4 100644 --- a/native/cocos/platform/mac/ViewController.h +++ b/native/cocos/platform/mac/ViewController.h @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #import #import diff --git a/native/cocos/platform/mac/ViewController.mm b/native/cocos/platform/mac/ViewController.mm index 631658cad6..890256a0a3 100644 --- a/native/cocos/platform/mac/ViewController.mm +++ b/native/cocos/platform/mac/ViewController.mm @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #import "ViewController.h" #import "platform/mac/View.h" diff --git a/native/cocos/platform/mac/modules/Accelerometer.h b/native/cocos/platform/mac/modules/Accelerometer.h index 50a3c56992..266da13c03 100644 --- a/native/cocos/platform/mac/modules/Accelerometer.h +++ b/native/cocos/platform/mac/modules/Accelerometer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/mac/modules/Accelerometer.mm b/native/cocos/platform/mac/modules/Accelerometer.mm index 2866f6d9d4..c728906809 100644 --- a/native/cocos/platform/mac/modules/Accelerometer.mm +++ b/native/cocos/platform/mac/modules/Accelerometer.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/mac/modules/Battery.h b/native/cocos/platform/mac/modules/Battery.h index 46e802fe00..1f6e1b5f82 100644 --- a/native/cocos/platform/mac/modules/Battery.h +++ b/native/cocos/platform/mac/modules/Battery.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/mac/modules/Battery.mm b/native/cocos/platform/mac/modules/Battery.mm index 10f08cbfa2..8256186433 100644 --- a/native/cocos/platform/mac/modules/Battery.mm +++ b/native/cocos/platform/mac/modules/Battery.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/mac/modules/Battery.h" namespace cc { diff --git a/native/cocos/platform/mac/modules/Network.h b/native/cocos/platform/mac/modules/Network.h index cd5f2d6d5a..bc90dbfb67 100644 --- a/native/cocos/platform/mac/modules/Network.h +++ b/native/cocos/platform/mac/modules/Network.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/mac/modules/Network.mm b/native/cocos/platform/mac/modules/Network.mm index dccb1fd46e..a77ec8411d 100644 --- a/native/cocos/platform/mac/modules/Network.mm +++ b/native/cocos/platform/mac/modules/Network.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/mac/modules/Network.h" #import #include diff --git a/native/cocos/platform/mac/modules/Screen.h b/native/cocos/platform/mac/modules/Screen.h index e0a45f827f..3709b2abdc 100644 --- a/native/cocos/platform/mac/modules/Screen.h +++ b/native/cocos/platform/mac/modules/Screen.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/mac/modules/Screen.mm b/native/cocos/platform/mac/modules/Screen.mm index a44de71846..e139783c5b 100644 --- a/native/cocos/platform/mac/modules/Screen.mm +++ b/native/cocos/platform/mac/modules/Screen.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/mac/modules/System.h b/native/cocos/platform/mac/modules/System.h index e6287b9965..e495d7ca62 100644 --- a/native/cocos/platform/mac/modules/System.h +++ b/native/cocos/platform/mac/modules/System.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/mac/modules/System.mm b/native/cocos/platform/mac/modules/System.mm index 5cdb199dbe..24730d0f38 100644 --- a/native/cocos/platform/mac/modules/System.mm +++ b/native/cocos/platform/mac/modules/System.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/mac/modules/System.h" #import diff --git a/native/cocos/platform/mac/modules/SystemWindow.h b/native/cocos/platform/mac/modules/SystemWindow.h index c82e30c314..e089f55d32 100644 --- a/native/cocos/platform/mac/modules/SystemWindow.h +++ b/native/cocos/platform/mac/modules/SystemWindow.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/mac/modules/SystemWindow.mm b/native/cocos/platform/mac/modules/SystemWindow.mm index f9012398f8..bfee8394f7 100644 --- a/native/cocos/platform/mac/modules/SystemWindow.mm +++ b/native/cocos/platform/mac/modules/SystemWindow.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/mac/modules/SystemWindow.h" #import #include "platform/mac/AppDelegate.h" diff --git a/native/cocos/platform/mac/modules/Vibrator.h b/native/cocos/platform/mac/modules/Vibrator.h index 9a8ea1657d..7f755242df 100644 --- a/native/cocos/platform/mac/modules/Vibrator.h +++ b/native/cocos/platform/mac/modules/Vibrator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/mac/modules/Vibrator.mm b/native/cocos/platform/mac/modules/Vibrator.mm index b3b26cee77..a9254c79e9 100644 --- a/native/cocos/platform/mac/modules/Vibrator.mm +++ b/native/cocos/platform/mac/modules/Vibrator.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ohos/FileUtils-ohos.cpp b/native/cocos/platform/ohos/FileUtils-ohos.cpp index 8f05b709fc..8e11b181db 100644 --- a/native/cocos/platform/ohos/FileUtils-ohos.cpp +++ b/native/cocos/platform/ohos/FileUtils-ohos.cpp @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #include "cocos/platform/ohos/FileUtils-ohos.h" #include #include diff --git a/native/cocos/platform/ohos/FileUtils-ohos.h b/native/cocos/platform/ohos/FileUtils-ohos.h index 44390e7349..d276531efa 100644 --- a/native/cocos/platform/ohos/FileUtils-ohos.h +++ b/native/cocos/platform/ohos/FileUtils-ohos.h @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #pragma once //clang-format off #include diff --git a/native/cocos/platform/ohos/OhosPlatform.cpp b/native/cocos/platform/ohos/OhosPlatform.cpp index 915e8e38fe..19f849f792 100644 --- a/native/cocos/platform/ohos/OhosPlatform.cpp +++ b/native/cocos/platform/ohos/OhosPlatform.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ohos/OhosPlatform.h b/native/cocos/platform/ohos/OhosPlatform.h index 3bb1d403c7..bd6d9b7b49 100644 --- a/native/cocos/platform/ohos/OhosPlatform.h +++ b/native/cocos/platform/ohos/OhosPlatform.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ohos/View.cpp b/native/cocos/platform/ohos/View.cpp index 71b0791a7b..5be4defc34 100644 --- a/native/cocos/platform/ohos/View.cpp +++ b/native/cocos/platform/ohos/View.cpp @@ -1,17 +1,18 @@ /**************************************************************************** -Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, @@ -20,7 +21,8 @@ Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ + #include "View.h" #include "cocos/bindings/event/CustomEventTypes.h" #include "cocos/bindings/event/EventDispatcher.h" diff --git a/native/cocos/platform/ohos/View.h b/native/cocos/platform/ohos/View.h index 0f8c4bb516..224d047b88 100644 --- a/native/cocos/platform/ohos/View.h +++ b/native/cocos/platform/ohos/View.h @@ -1,18 +1,19 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. - + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -20,7 +21,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ + #pragma once #include "base/Macros.h" diff --git a/native/cocos/platform/ohos/jni/AbilityConsts.h b/native/cocos/platform/ohos/jni/AbilityConsts.h index 27e3fa953f..984607b21d 100644 --- a/native/cocos/platform/ohos/jni/AbilityConsts.h +++ b/native/cocos/platform/ohos/jni/AbilityConsts.h @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #pragma once #include diff --git a/native/cocos/platform/ohos/jni/JniCocosAbility.cpp b/native/cocos/platform/ohos/jni/JniCocosAbility.cpp index 064a858dbb..5c6e518a72 100644 --- a/native/cocos/platform/ohos/jni/JniCocosAbility.cpp +++ b/native/cocos/platform/ohos/jni/JniCocosAbility.cpp @@ -1,26 +1,28 @@ /**************************************************************************** -Copyright (c) 2020 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. -http://www.cocos2d-x.org + http://www.cocos.com -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. ****************************************************************************/ + #include "platform/ohos/jni/JniCocosAbility.h" #include #include diff --git a/native/cocos/platform/ohos/jni/JniCocosAbility.h b/native/cocos/platform/ohos/jni/JniCocosAbility.h index f40196b834..42f7015f20 100644 --- a/native/cocos/platform/ohos/jni/JniCocosAbility.h +++ b/native/cocos/platform/ohos/jni/JniCocosAbility.h @@ -1,26 +1,28 @@ /**************************************************************************** -Copyright (c) 2020 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. -http://www.cocos2d-x.org + http://www.cocos.com -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. ****************************************************************************/ + #pragma once #include diff --git a/native/cocos/platform/ohos/jni/JniCocosSurfaceView.cpp b/native/cocos/platform/ohos/jni/JniCocosSurfaceView.cpp index 9b576de24c..58b8e86582 100644 --- a/native/cocos/platform/ohos/jni/JniCocosSurfaceView.cpp +++ b/native/cocos/platform/ohos/jni/JniCocosSurfaceView.cpp @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #include #include #include diff --git a/native/cocos/platform/ohos/jni/JniInteraction.cpp b/native/cocos/platform/ohos/jni/JniInteraction.cpp index 6c595ae908..1b5a578aa1 100644 --- a/native/cocos/platform/ohos/jni/JniInteraction.cpp +++ b/native/cocos/platform/ohos/jni/JniInteraction.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ohos/jni/JniNativeGlue.cpp b/native/cocos/platform/ohos/jni/JniNativeGlue.cpp index 4e82b36a08..847de6a23b 100644 --- a/native/cocos/platform/ohos/jni/JniNativeGlue.cpp +++ b/native/cocos/platform/ohos/jni/JniNativeGlue.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ohos/modules/Screen.cpp b/native/cocos/platform/ohos/modules/Screen.cpp index beeffc21fe..2df9b5d9a9 100644 --- a/native/cocos/platform/ohos/modules/Screen.cpp +++ b/native/cocos/platform/ohos/modules/Screen.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ohos/modules/Screen.h b/native/cocos/platform/ohos/modules/Screen.h index 38bd7e620c..6e3005cb27 100644 --- a/native/cocos/platform/ohos/modules/Screen.h +++ b/native/cocos/platform/ohos/modules/Screen.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ohos/modules/System.cpp b/native/cocos/platform/ohos/modules/System.cpp index 5a70ebd3a7..84f29cc4d0 100644 --- a/native/cocos/platform/ohos/modules/System.cpp +++ b/native/cocos/platform/ohos/modules/System.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ohos/modules/System.h b/native/cocos/platform/ohos/modules/System.h index 680a500217..c04654dfd0 100644 --- a/native/cocos/platform/ohos/modules/System.h +++ b/native/cocos/platform/ohos/modules/System.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/qnx/FileUtils-qnx.cpp b/native/cocos/platform/qnx/FileUtils-qnx.cpp index cc1ec54644..866a0553cd 100644 --- a/native/cocos/platform/qnx/FileUtils-qnx.cpp +++ b/native/cocos/platform/qnx/FileUtils-qnx.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "FileUtils-qnx.h" #include #include diff --git a/native/cocos/platform/qnx/FileUtils-qnx.h b/native/cocos/platform/qnx/FileUtils-qnx.h index 640af73ea3..19d344b6b1 100644 --- a/native/cocos/platform/qnx/FileUtils-qnx.h +++ b/native/cocos/platform/qnx/FileUtils-qnx.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/qnx/QNXPlatform.cpp b/native/cocos/platform/qnx/QNXPlatform.cpp index bac44ccb5a..52aa11a0e9 100644 --- a/native/cocos/platform/qnx/QNXPlatform.cpp +++ b/native/cocos/platform/qnx/QNXPlatform.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/qnx/QNXPlatform.h b/native/cocos/platform/qnx/QNXPlatform.h index adac524c2c..996d2d917d 100644 --- a/native/cocos/platform/qnx/QNXPlatform.h +++ b/native/cocos/platform/qnx/QNXPlatform.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/qnx/modules/Accelerometer.cpp b/native/cocos/platform/qnx/modules/Accelerometer.cpp index 9051657131..debefab806 100644 --- a/native/cocos/platform/qnx/modules/Accelerometer.cpp +++ b/native/cocos/platform/qnx/modules/Accelerometer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/qnx/modules/Accelerometer.h b/native/cocos/platform/qnx/modules/Accelerometer.h index 50a3c56992..266da13c03 100644 --- a/native/cocos/platform/qnx/modules/Accelerometer.h +++ b/native/cocos/platform/qnx/modules/Accelerometer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/qnx/modules/Battery.cpp b/native/cocos/platform/qnx/modules/Battery.cpp index 721ef8fb9e..411b31b486 100644 --- a/native/cocos/platform/qnx/modules/Battery.cpp +++ b/native/cocos/platform/qnx/modules/Battery.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/qnx/modules/Battery.h" namespace cc { diff --git a/native/cocos/platform/qnx/modules/Battery.h b/native/cocos/platform/qnx/modules/Battery.h index 928cbb038e..9b5ce28660 100644 --- a/native/cocos/platform/qnx/modules/Battery.h +++ b/native/cocos/platform/qnx/modules/Battery.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/qnx/modules/CanvasRenderingContext2DDelegate.cpp b/native/cocos/platform/qnx/modules/CanvasRenderingContext2DDelegate.cpp index c8c01b63ad..8e179f59d7 100644 --- a/native/cocos/platform/qnx/modules/CanvasRenderingContext2DDelegate.cpp +++ b/native/cocos/platform/qnx/modules/CanvasRenderingContext2DDelegate.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -20,8 +20,8 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - THE SOFTWARE. \ - ****************************************************************************/ + THE SOFTWARE. +****************************************************************************/ #include "platform/qnx/modules/CanvasRenderingContext2DDelegate.h" #include diff --git a/native/cocos/platform/qnx/modules/CanvasRenderingContext2DDelegate.h b/native/cocos/platform/qnx/modules/CanvasRenderingContext2DDelegate.h index 9ef38b251d..167b16c65f 100644 --- a/native/cocos/platform/qnx/modules/CanvasRenderingContext2DDelegate.h +++ b/native/cocos/platform/qnx/modules/CanvasRenderingContext2DDelegate.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/qnx/modules/Network.cpp b/native/cocos/platform/qnx/modules/Network.cpp index 6be5ba1a6e..39a41fee27 100644 --- a/native/cocos/platform/qnx/modules/Network.cpp +++ b/native/cocos/platform/qnx/modules/Network.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/qnx/modules/Network.h" namespace cc { diff --git a/native/cocos/platform/qnx/modules/Network.h b/native/cocos/platform/qnx/modules/Network.h index cd5f2d6d5a..bc90dbfb67 100644 --- a/native/cocos/platform/qnx/modules/Network.h +++ b/native/cocos/platform/qnx/modules/Network.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/qnx/modules/Screen.cpp b/native/cocos/platform/qnx/modules/Screen.cpp index dfd5fb2cc6..cbf1d6599b 100644 --- a/native/cocos/platform/qnx/modules/Screen.cpp +++ b/native/cocos/platform/qnx/modules/Screen.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/qnx/modules/Screen.h b/native/cocos/platform/qnx/modules/Screen.h index 06eb7a8c15..995ec19ed4 100644 --- a/native/cocos/platform/qnx/modules/Screen.h +++ b/native/cocos/platform/qnx/modules/Screen.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/qnx/modules/System.cpp b/native/cocos/platform/qnx/modules/System.cpp index 5806c85508..1c4584177e 100644 --- a/native/cocos/platform/qnx/modules/System.cpp +++ b/native/cocos/platform/qnx/modules/System.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/qnx/modules/System.h b/native/cocos/platform/qnx/modules/System.h index 87e05a1c49..c827a9a3e9 100644 --- a/native/cocos/platform/qnx/modules/System.h +++ b/native/cocos/platform/qnx/modules/System.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/qnx/modules/SystemWindow.cpp b/native/cocos/platform/qnx/modules/SystemWindow.cpp index 0cdbe5ee65..199758ad1d 100644 --- a/native/cocos/platform/qnx/modules/SystemWindow.cpp +++ b/native/cocos/platform/qnx/modules/SystemWindow.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/qnx/modules/SystemWindow.h b/native/cocos/platform/qnx/modules/SystemWindow.h index 44b447075d..4d1386ca11 100644 --- a/native/cocos/platform/qnx/modules/SystemWindow.h +++ b/native/cocos/platform/qnx/modules/SystemWindow.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/qnx/modules/Vibrate.cpp b/native/cocos/platform/qnx/modules/Vibrate.cpp index 47c392dddb..f93322ae4d 100644 --- a/native/cocos/platform/qnx/modules/Vibrate.cpp +++ b/native/cocos/platform/qnx/modules/Vibrate.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/qnx/modules/Vibrate.h b/native/cocos/platform/qnx/modules/Vibrate.h index f0afad6cbf..32b6007f0b 100644 --- a/native/cocos/platform/qnx/modules/Vibrate.h +++ b/native/cocos/platform/qnx/modules/Vibrate.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/win32/FileUtils-win32.cpp b/native/cocos/platform/win32/FileUtils-win32.cpp index c0e631c679..05bba4ddf7 100644 --- a/native/cocos/platform/win32/FileUtils-win32.cpp +++ b/native/cocos/platform/win32/FileUtils-win32.cpp @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/win32/FileUtils-win32.h b/native/cocos/platform/win32/FileUtils-win32.h index dd7c25225b..d9a1ba44fe 100644 --- a/native/cocos/platform/win32/FileUtils-win32.h +++ b/native/cocos/platform/win32/FileUtils-win32.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/win32/SystemGlue.cpp b/native/cocos/platform/win32/SystemGlue.cpp index e69de29bb2..e76bbe7727 100644 --- a/native/cocos/platform/win32/SystemGlue.cpp +++ b/native/cocos/platform/win32/SystemGlue.cpp @@ -0,0 +1,25 @@ +/**************************************************************************** + Copyright (c) 2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + diff --git a/native/cocos/platform/win32/SystemGlue.h b/native/cocos/platform/win32/SystemGlue.h index e69de29bb2..e76bbe7727 100644 --- a/native/cocos/platform/win32/SystemGlue.h +++ b/native/cocos/platform/win32/SystemGlue.h @@ -0,0 +1,25 @@ +/**************************************************************************** + Copyright (c) 2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + diff --git a/native/cocos/platform/win32/Utils-win32.cpp b/native/cocos/platform/win32/Utils-win32.cpp index 99a8e15407..7641f588f9 100644 --- a/native/cocos/platform/win32/Utils-win32.cpp +++ b/native/cocos/platform/win32/Utils-win32.cpp @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/win32/Utils-win32.h b/native/cocos/platform/win32/Utils-win32.h index e594fd81a4..175e890a6b 100644 --- a/native/cocos/platform/win32/Utils-win32.h +++ b/native/cocos/platform/win32/Utils-win32.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/win32/WindowsPlatform.cpp b/native/cocos/platform/win32/WindowsPlatform.cpp index abfe53b3a1..0079460fe4 100644 --- a/native/cocos/platform/win32/WindowsPlatform.cpp +++ b/native/cocos/platform/win32/WindowsPlatform.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/win32/WindowsPlatform.h b/native/cocos/platform/win32/WindowsPlatform.h index 98eb162757..dfd1ce376b 100644 --- a/native/cocos/platform/win32/WindowsPlatform.h +++ b/native/cocos/platform/win32/WindowsPlatform.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/win32/compat/stdint.h b/native/cocos/platform/win32/compat/stdint.h index 504c1fa853..b51b64670b 100644 --- a/native/cocos/platform/win32/compat/stdint.h +++ b/native/cocos/platform/win32/compat/stdint.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/win32/modules/Accelerometer.cpp b/native/cocos/platform/win32/modules/Accelerometer.cpp index cc8aed6e93..941cc1f896 100644 --- a/native/cocos/platform/win32/modules/Accelerometer.cpp +++ b/native/cocos/platform/win32/modules/Accelerometer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/win32/modules/Accelerometer.h b/native/cocos/platform/win32/modules/Accelerometer.h index a760b03564..0f8cda7f26 100644 --- a/native/cocos/platform/win32/modules/Accelerometer.h +++ b/native/cocos/platform/win32/modules/Accelerometer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/win32/modules/Battery.cpp b/native/cocos/platform/win32/modules/Battery.cpp index e1d792c265..97d96a1ceb 100644 --- a/native/cocos/platform/win32/modules/Battery.cpp +++ b/native/cocos/platform/win32/modules/Battery.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/win32/modules/Battery.h" namespace cc { diff --git a/native/cocos/platform/win32/modules/Battery.h b/native/cocos/platform/win32/modules/Battery.h index 5dc4390c5d..d2be61604d 100644 --- a/native/cocos/platform/win32/modules/Battery.h +++ b/native/cocos/platform/win32/modules/Battery.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/win32/modules/CanvasRenderingContext2DDelegate.cpp b/native/cocos/platform/win32/modules/CanvasRenderingContext2DDelegate.cpp index 494eebaaee..3b17318667 100644 --- a/native/cocos/platform/win32/modules/CanvasRenderingContext2DDelegate.cpp +++ b/native/cocos/platform/win32/modules/CanvasRenderingContext2DDelegate.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -20,8 +20,8 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - THE SOFTWARE. \ - ****************************************************************************/ + THE SOFTWARE. +****************************************************************************/ #include "platform/win32/modules/CanvasRenderingContext2DDelegate.h" diff --git a/native/cocos/platform/win32/modules/CanvasRenderingContext2DDelegate.h b/native/cocos/platform/win32/modules/CanvasRenderingContext2DDelegate.h index 4a4be0f599..b6726c9eb2 100644 --- a/native/cocos/platform/win32/modules/CanvasRenderingContext2DDelegate.h +++ b/native/cocos/platform/win32/modules/CanvasRenderingContext2DDelegate.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/win32/modules/Network.cpp b/native/cocos/platform/win32/modules/Network.cpp index 2044071954..5f1c622317 100644 --- a/native/cocos/platform/win32/modules/Network.cpp +++ b/native/cocos/platform/win32/modules/Network.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/win32/modules/Network.h" namespace cc { diff --git a/native/cocos/platform/win32/modules/Network.h b/native/cocos/platform/win32/modules/Network.h index f4bcf5e504..588fcabc80 100644 --- a/native/cocos/platform/win32/modules/Network.h +++ b/native/cocos/platform/win32/modules/Network.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/win32/modules/Screen.cpp b/native/cocos/platform/win32/modules/Screen.cpp index 2637b0e797..b862511430 100644 --- a/native/cocos/platform/win32/modules/Screen.cpp +++ b/native/cocos/platform/win32/modules/Screen.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/win32/modules/Screen.h b/native/cocos/platform/win32/modules/Screen.h index a7b021101f..08fb694f31 100644 --- a/native/cocos/platform/win32/modules/Screen.h +++ b/native/cocos/platform/win32/modules/Screen.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/win32/modules/System.cpp b/native/cocos/platform/win32/modules/System.cpp index da0be1749d..184ca7103e 100644 --- a/native/cocos/platform/win32/modules/System.cpp +++ b/native/cocos/platform/win32/modules/System.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/win32/modules/System.h b/native/cocos/platform/win32/modules/System.h index e6287b9965..e495d7ca62 100644 --- a/native/cocos/platform/win32/modules/System.h +++ b/native/cocos/platform/win32/modules/System.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/win32/modules/SystemWindow.cpp b/native/cocos/platform/win32/modules/SystemWindow.cpp index 16b2ee5421..e2ca544770 100644 --- a/native/cocos/platform/win32/modules/SystemWindow.cpp +++ b/native/cocos/platform/win32/modules/SystemWindow.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/win32/modules/SystemWindow.h b/native/cocos/platform/win32/modules/SystemWindow.h index 44b447075d..4d1386ca11 100644 --- a/native/cocos/platform/win32/modules/SystemWindow.h +++ b/native/cocos/platform/win32/modules/SystemWindow.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/win32/modules/Vibrator.cpp b/native/cocos/platform/win32/modules/Vibrator.cpp index ba6bfeadb3..4ca1bfaf5f 100644 --- a/native/cocos/platform/win32/modules/Vibrator.cpp +++ b/native/cocos/platform/win32/modules/Vibrator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/win32/modules/Vibrator.h b/native/cocos/platform/win32/modules/Vibrator.h index 9a8ea1657d..7f755242df 100644 --- a/native/cocos/platform/win32/modules/Vibrator.h +++ b/native/cocos/platform/win32/modules/Vibrator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/GFXDeviceManager.h b/native/cocos/renderer/GFXDeviceManager.h index 0b224189f0..8f2083d077 100644 --- a/native/cocos/renderer/GFXDeviceManager.h +++ b/native/cocos/renderer/GFXDeviceManager.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/Blackboard.h b/native/cocos/renderer/frame-graph/Blackboard.h index 1de411952c..31dc37f1ff 100644 --- a/native/cocos/renderer/frame-graph/Blackboard.h +++ b/native/cocos/renderer/frame-graph/Blackboard.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/CallbackPass.h b/native/cocos/renderer/frame-graph/CallbackPass.h index f770a94a07..97eb6686a9 100644 --- a/native/cocos/renderer/frame-graph/CallbackPass.h +++ b/native/cocos/renderer/frame-graph/CallbackPass.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/DevicePass.cpp b/native/cocos/renderer/frame-graph/DevicePass.cpp index a15173e668..85f3ce1d00 100644 --- a/native/cocos/renderer/frame-graph/DevicePass.cpp +++ b/native/cocos/renderer/frame-graph/DevicePass.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/DevicePass.h b/native/cocos/renderer/frame-graph/DevicePass.h index 861846dd82..7f5f12e2cb 100644 --- a/native/cocos/renderer/frame-graph/DevicePass.h +++ b/native/cocos/renderer/frame-graph/DevicePass.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/DevicePassResourceTable.cpp b/native/cocos/renderer/frame-graph/DevicePassResourceTable.cpp index 635dde708f..c12732d2ba 100644 --- a/native/cocos/renderer/frame-graph/DevicePassResourceTable.cpp +++ b/native/cocos/renderer/frame-graph/DevicePassResourceTable.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/DevicePassResourceTable.h b/native/cocos/renderer/frame-graph/DevicePassResourceTable.h index 824020234f..b2184ad6e7 100644 --- a/native/cocos/renderer/frame-graph/DevicePassResourceTable.h +++ b/native/cocos/renderer/frame-graph/DevicePassResourceTable.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/FrameGraph.cpp b/native/cocos/renderer/frame-graph/FrameGraph.cpp index 8ce1bc9666..8a605dcfc7 100644 --- a/native/cocos/renderer/frame-graph/FrameGraph.cpp +++ b/native/cocos/renderer/frame-graph/FrameGraph.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/FrameGraph.h b/native/cocos/renderer/frame-graph/FrameGraph.h index 8779913abc..8f1a0bcf5d 100644 --- a/native/cocos/renderer/frame-graph/FrameGraph.h +++ b/native/cocos/renderer/frame-graph/FrameGraph.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/Handle.h b/native/cocos/renderer/frame-graph/Handle.h index 62fb410dc2..da25385e3c 100644 --- a/native/cocos/renderer/frame-graph/Handle.h +++ b/native/cocos/renderer/frame-graph/Handle.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/PassInsertPointManager.cpp b/native/cocos/renderer/frame-graph/PassInsertPointManager.cpp index 1e5f2e3ded..f39000652b 100644 --- a/native/cocos/renderer/frame-graph/PassInsertPointManager.cpp +++ b/native/cocos/renderer/frame-graph/PassInsertPointManager.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/PassInsertPointManager.h b/native/cocos/renderer/frame-graph/PassInsertPointManager.h index c448ea4c61..8d94c166b3 100644 --- a/native/cocos/renderer/frame-graph/PassInsertPointManager.h +++ b/native/cocos/renderer/frame-graph/PassInsertPointManager.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/PassNode.cpp b/native/cocos/renderer/frame-graph/PassNode.cpp index 5822302733..c624b975f7 100644 --- a/native/cocos/renderer/frame-graph/PassNode.cpp +++ b/native/cocos/renderer/frame-graph/PassNode.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/PassNode.h b/native/cocos/renderer/frame-graph/PassNode.h index 404bf07819..fe8208fd54 100644 --- a/native/cocos/renderer/frame-graph/PassNode.h +++ b/native/cocos/renderer/frame-graph/PassNode.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/PassNodeBuilder.cpp b/native/cocos/renderer/frame-graph/PassNodeBuilder.cpp index 1c5d9601ca..bc55250a18 100644 --- a/native/cocos/renderer/frame-graph/PassNodeBuilder.cpp +++ b/native/cocos/renderer/frame-graph/PassNodeBuilder.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/PassNodeBuilder.h b/native/cocos/renderer/frame-graph/PassNodeBuilder.h index daa9099249..a594c14301 100644 --- a/native/cocos/renderer/frame-graph/PassNodeBuilder.h +++ b/native/cocos/renderer/frame-graph/PassNodeBuilder.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/RenderTargetAttachment.h b/native/cocos/renderer/frame-graph/RenderTargetAttachment.h index 706adeee8c..aafe9a0551 100644 --- a/native/cocos/renderer/frame-graph/RenderTargetAttachment.h +++ b/native/cocos/renderer/frame-graph/RenderTargetAttachment.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/Resource.h b/native/cocos/renderer/frame-graph/Resource.h index 4146d0eb64..0cff12ba34 100644 --- a/native/cocos/renderer/frame-graph/Resource.h +++ b/native/cocos/renderer/frame-graph/Resource.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/ResourceAllocator.h b/native/cocos/renderer/frame-graph/ResourceAllocator.h index de4c252510..9645461834 100644 --- a/native/cocos/renderer/frame-graph/ResourceAllocator.h +++ b/native/cocos/renderer/frame-graph/ResourceAllocator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/ResourceEntry.h b/native/cocos/renderer/frame-graph/ResourceEntry.h index e6c5308da3..a128cdbdf3 100644 --- a/native/cocos/renderer/frame-graph/ResourceEntry.h +++ b/native/cocos/renderer/frame-graph/ResourceEntry.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/ResourceNode.h b/native/cocos/renderer/frame-graph/ResourceNode.h index 3776de2b45..e95193a808 100644 --- a/native/cocos/renderer/frame-graph/ResourceNode.h +++ b/native/cocos/renderer/frame-graph/ResourceNode.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/VirtualResource.cpp b/native/cocos/renderer/frame-graph/VirtualResource.cpp index 4484ed2b89..e623e19794 100644 --- a/native/cocos/renderer/frame-graph/VirtualResource.cpp +++ b/native/cocos/renderer/frame-graph/VirtualResource.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/VirtualResource.h b/native/cocos/renderer/frame-graph/VirtualResource.h index bdd4adb134..c45fc092af 100644 --- a/native/cocos/renderer/frame-graph/VirtualResource.h +++ b/native/cocos/renderer/frame-graph/VirtualResource.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/BufferAgent.cpp b/native/cocos/renderer/gfx-agent/BufferAgent.cpp index d561c48004..20d644d1e2 100644 --- a/native/cocos/renderer/gfx-agent/BufferAgent.cpp +++ b/native/cocos/renderer/gfx-agent/BufferAgent.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/BufferAgent.h b/native/cocos/renderer/gfx-agent/BufferAgent.h index 58a794cb92..fc1883778c 100644 --- a/native/cocos/renderer/gfx-agent/BufferAgent.h +++ b/native/cocos/renderer/gfx-agent/BufferAgent.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/CommandBufferAgent.cpp b/native/cocos/renderer/gfx-agent/CommandBufferAgent.cpp index 8461c74183..658f984798 100644 --- a/native/cocos/renderer/gfx-agent/CommandBufferAgent.cpp +++ b/native/cocos/renderer/gfx-agent/CommandBufferAgent.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/CommandBufferAgent.h b/native/cocos/renderer/gfx-agent/CommandBufferAgent.h index d7430b693b..390a5e6858 100644 --- a/native/cocos/renderer/gfx-agent/CommandBufferAgent.h +++ b/native/cocos/renderer/gfx-agent/CommandBufferAgent.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/DescriptorSetAgent.cpp b/native/cocos/renderer/gfx-agent/DescriptorSetAgent.cpp index c15402ab67..9745496494 100644 --- a/native/cocos/renderer/gfx-agent/DescriptorSetAgent.cpp +++ b/native/cocos/renderer/gfx-agent/DescriptorSetAgent.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/DescriptorSetAgent.h b/native/cocos/renderer/gfx-agent/DescriptorSetAgent.h index 709c74ef0b..a1f4ecc525 100644 --- a/native/cocos/renderer/gfx-agent/DescriptorSetAgent.h +++ b/native/cocos/renderer/gfx-agent/DescriptorSetAgent.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/DescriptorSetLayoutAgent.cpp b/native/cocos/renderer/gfx-agent/DescriptorSetLayoutAgent.cpp index 023ae952e2..e618b361b3 100644 --- a/native/cocos/renderer/gfx-agent/DescriptorSetLayoutAgent.cpp +++ b/native/cocos/renderer/gfx-agent/DescriptorSetLayoutAgent.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/DescriptorSetLayoutAgent.h b/native/cocos/renderer/gfx-agent/DescriptorSetLayoutAgent.h index 4f36ab9e12..a5d4a69993 100644 --- a/native/cocos/renderer/gfx-agent/DescriptorSetLayoutAgent.h +++ b/native/cocos/renderer/gfx-agent/DescriptorSetLayoutAgent.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/DeviceAgent.cpp b/native/cocos/renderer/gfx-agent/DeviceAgent.cpp index a524c6056f..9d2e52c3ab 100644 --- a/native/cocos/renderer/gfx-agent/DeviceAgent.cpp +++ b/native/cocos/renderer/gfx-agent/DeviceAgent.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/DeviceAgent.h b/native/cocos/renderer/gfx-agent/DeviceAgent.h index 2e7dd19ccc..d8d0fd3350 100644 --- a/native/cocos/renderer/gfx-agent/DeviceAgent.h +++ b/native/cocos/renderer/gfx-agent/DeviceAgent.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/FramebufferAgent.cpp b/native/cocos/renderer/gfx-agent/FramebufferAgent.cpp index e7ff860e65..69800d3a38 100644 --- a/native/cocos/renderer/gfx-agent/FramebufferAgent.cpp +++ b/native/cocos/renderer/gfx-agent/FramebufferAgent.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/FramebufferAgent.h b/native/cocos/renderer/gfx-agent/FramebufferAgent.h index 683a05bb01..631aa26d58 100644 --- a/native/cocos/renderer/gfx-agent/FramebufferAgent.h +++ b/native/cocos/renderer/gfx-agent/FramebufferAgent.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/InputAssemblerAgent.cpp b/native/cocos/renderer/gfx-agent/InputAssemblerAgent.cpp index d1e5d4c31b..12c36663c4 100644 --- a/native/cocos/renderer/gfx-agent/InputAssemblerAgent.cpp +++ b/native/cocos/renderer/gfx-agent/InputAssemblerAgent.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/InputAssemblerAgent.h b/native/cocos/renderer/gfx-agent/InputAssemblerAgent.h index af1e2e0654..8312f17d9e 100644 --- a/native/cocos/renderer/gfx-agent/InputAssemblerAgent.h +++ b/native/cocos/renderer/gfx-agent/InputAssemblerAgent.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/PipelineLayoutAgent.cpp b/native/cocos/renderer/gfx-agent/PipelineLayoutAgent.cpp index 38026eb0ea..d3df0f5b6d 100644 --- a/native/cocos/renderer/gfx-agent/PipelineLayoutAgent.cpp +++ b/native/cocos/renderer/gfx-agent/PipelineLayoutAgent.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/PipelineLayoutAgent.h b/native/cocos/renderer/gfx-agent/PipelineLayoutAgent.h index 0af707db67..5eb375a6de 100644 --- a/native/cocos/renderer/gfx-agent/PipelineLayoutAgent.h +++ b/native/cocos/renderer/gfx-agent/PipelineLayoutAgent.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/PipelineStateAgent.cpp b/native/cocos/renderer/gfx-agent/PipelineStateAgent.cpp index d71680af7d..dead42c4de 100644 --- a/native/cocos/renderer/gfx-agent/PipelineStateAgent.cpp +++ b/native/cocos/renderer/gfx-agent/PipelineStateAgent.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/PipelineStateAgent.h b/native/cocos/renderer/gfx-agent/PipelineStateAgent.h index 7cb85ea183..7f93398831 100644 --- a/native/cocos/renderer/gfx-agent/PipelineStateAgent.h +++ b/native/cocos/renderer/gfx-agent/PipelineStateAgent.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/QueryPoolAgent.cpp b/native/cocos/renderer/gfx-agent/QueryPoolAgent.cpp index 1299c7b4ed..376d26e387 100644 --- a/native/cocos/renderer/gfx-agent/QueryPoolAgent.cpp +++ b/native/cocos/renderer/gfx-agent/QueryPoolAgent.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/QueryPoolAgent.h b/native/cocos/renderer/gfx-agent/QueryPoolAgent.h index 7efd6b63d2..5e70fe34f3 100644 --- a/native/cocos/renderer/gfx-agent/QueryPoolAgent.h +++ b/native/cocos/renderer/gfx-agent/QueryPoolAgent.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/QueueAgent.cpp b/native/cocos/renderer/gfx-agent/QueueAgent.cpp index 001e3d1a0b..755c8ca308 100644 --- a/native/cocos/renderer/gfx-agent/QueueAgent.cpp +++ b/native/cocos/renderer/gfx-agent/QueueAgent.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/QueueAgent.h b/native/cocos/renderer/gfx-agent/QueueAgent.h index 6ca1259442..674095fa5a 100644 --- a/native/cocos/renderer/gfx-agent/QueueAgent.h +++ b/native/cocos/renderer/gfx-agent/QueueAgent.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/RenderPassAgent.cpp b/native/cocos/renderer/gfx-agent/RenderPassAgent.cpp index 9cace3b941..d500dfb443 100644 --- a/native/cocos/renderer/gfx-agent/RenderPassAgent.cpp +++ b/native/cocos/renderer/gfx-agent/RenderPassAgent.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/RenderPassAgent.h b/native/cocos/renderer/gfx-agent/RenderPassAgent.h index 2f624550f4..4008af1cee 100644 --- a/native/cocos/renderer/gfx-agent/RenderPassAgent.h +++ b/native/cocos/renderer/gfx-agent/RenderPassAgent.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/ShaderAgent.cpp b/native/cocos/renderer/gfx-agent/ShaderAgent.cpp index 682072d3b4..116b1e8d67 100644 --- a/native/cocos/renderer/gfx-agent/ShaderAgent.cpp +++ b/native/cocos/renderer/gfx-agent/ShaderAgent.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/ShaderAgent.h b/native/cocos/renderer/gfx-agent/ShaderAgent.h index 23e3e3f697..c80bcf21d9 100644 --- a/native/cocos/renderer/gfx-agent/ShaderAgent.h +++ b/native/cocos/renderer/gfx-agent/ShaderAgent.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/SwapchainAgent.cpp b/native/cocos/renderer/gfx-agent/SwapchainAgent.cpp index b19f9b2131..b3ba84dcc8 100644 --- a/native/cocos/renderer/gfx-agent/SwapchainAgent.cpp +++ b/native/cocos/renderer/gfx-agent/SwapchainAgent.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/SwapchainAgent.h b/native/cocos/renderer/gfx-agent/SwapchainAgent.h index 44f91a5f49..3ebcb88f5d 100644 --- a/native/cocos/renderer/gfx-agent/SwapchainAgent.h +++ b/native/cocos/renderer/gfx-agent/SwapchainAgent.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/TextureAgent.cpp b/native/cocos/renderer/gfx-agent/TextureAgent.cpp index 21a40b9fbe..1ec350c5fe 100644 --- a/native/cocos/renderer/gfx-agent/TextureAgent.cpp +++ b/native/cocos/renderer/gfx-agent/TextureAgent.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/TextureAgent.h b/native/cocos/renderer/gfx-agent/TextureAgent.h index 4ac2e43fed..a682604a0d 100644 --- a/native/cocos/renderer/gfx-agent/TextureAgent.h +++ b/native/cocos/renderer/gfx-agent/TextureAgent.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXBuffer.cpp b/native/cocos/renderer/gfx-base/GFXBuffer.cpp index 2784cf1042..bbaaecc45a 100644 --- a/native/cocos/renderer/gfx-base/GFXBuffer.cpp +++ b/native/cocos/renderer/gfx-base/GFXBuffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXBuffer.h b/native/cocos/renderer/gfx-base/GFXBuffer.h index df9010851e..2db5a61908 100644 --- a/native/cocos/renderer/gfx-base/GFXBuffer.h +++ b/native/cocos/renderer/gfx-base/GFXBuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXCommandBuffer.cpp b/native/cocos/renderer/gfx-base/GFXCommandBuffer.cpp index 5a1dfe42a6..349a0a01d3 100644 --- a/native/cocos/renderer/gfx-base/GFXCommandBuffer.cpp +++ b/native/cocos/renderer/gfx-base/GFXCommandBuffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXCommandBuffer.h b/native/cocos/renderer/gfx-base/GFXCommandBuffer.h index 96da3307c0..4447510fb7 100644 --- a/native/cocos/renderer/gfx-base/GFXCommandBuffer.h +++ b/native/cocos/renderer/gfx-base/GFXCommandBuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXDef-common.h b/native/cocos/renderer/gfx-base/GFXDef-common.h index ffc66622bf..c2d8f4386b 100644 --- a/native/cocos/renderer/gfx-base/GFXDef-common.h +++ b/native/cocos/renderer/gfx-base/GFXDef-common.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -595,15 +595,15 @@ using ShaderStageFlags = ShaderStageFlagBit; CC_ENUM_BITWISE_OPERATORS(ShaderStageFlagBit); enum class LoadOp : uint32_t { - LOAD, // Load the contents from the fbo from previous - CLEAR, // Clear the fbo - DISCARD, // Ignore writing to the fbo and keep old data + LOAD, // Load the previous content from memory + CLEAR, // Clear the content to a fixed value + DISCARD, // Discard the previous content }; CC_ENUM_CONVERSION_OPERATOR(LoadOp); enum class StoreOp : uint32_t { - STORE, // Write the source to the destination - DISCARD, // Don't write the source to the destination + STORE, // Store the pending content to memory + DISCARD, // Discard the pending content }; CC_ENUM_CONVERSION_OPERATOR(StoreOp); diff --git a/native/cocos/renderer/gfx-base/GFXDef.cpp b/native/cocos/renderer/gfx-base/GFXDef.cpp index 0d8a06772d..adf20cec54 100644 --- a/native/cocos/renderer/gfx-base/GFXDef.cpp +++ b/native/cocos/renderer/gfx-base/GFXDef.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXDef.h b/native/cocos/renderer/gfx-base/GFXDef.h index cb11b8e603..b977350eac 100644 --- a/native/cocos/renderer/gfx-base/GFXDef.h +++ b/native/cocos/renderer/gfx-base/GFXDef.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXDescriptorSet.cpp b/native/cocos/renderer/gfx-base/GFXDescriptorSet.cpp index 7fac26c906..1a235b1266 100644 --- a/native/cocos/renderer/gfx-base/GFXDescriptorSet.cpp +++ b/native/cocos/renderer/gfx-base/GFXDescriptorSet.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXDescriptorSet.h b/native/cocos/renderer/gfx-base/GFXDescriptorSet.h index 8a69f5ecaa..b955fce338 100644 --- a/native/cocos/renderer/gfx-base/GFXDescriptorSet.h +++ b/native/cocos/renderer/gfx-base/GFXDescriptorSet.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXDescriptorSetLayout.cpp b/native/cocos/renderer/gfx-base/GFXDescriptorSetLayout.cpp index c486a84cf0..bc8f549c05 100644 --- a/native/cocos/renderer/gfx-base/GFXDescriptorSetLayout.cpp +++ b/native/cocos/renderer/gfx-base/GFXDescriptorSetLayout.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXDescriptorSetLayout.h b/native/cocos/renderer/gfx-base/GFXDescriptorSetLayout.h index 177cf448d9..e2a8a7a1cf 100644 --- a/native/cocos/renderer/gfx-base/GFXDescriptorSetLayout.h +++ b/native/cocos/renderer/gfx-base/GFXDescriptorSetLayout.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXDevice.cpp b/native/cocos/renderer/gfx-base/GFXDevice.cpp index f5c8944de1..cc872e96bc 100644 --- a/native/cocos/renderer/gfx-base/GFXDevice.cpp +++ b/native/cocos/renderer/gfx-base/GFXDevice.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXDevice.h b/native/cocos/renderer/gfx-base/GFXDevice.h index 06bff789c8..68a36da378 100644 --- a/native/cocos/renderer/gfx-base/GFXDevice.h +++ b/native/cocos/renderer/gfx-base/GFXDevice.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXFramebuffer.cpp b/native/cocos/renderer/gfx-base/GFXFramebuffer.cpp index 8c37c641ab..e1e3c92941 100644 --- a/native/cocos/renderer/gfx-base/GFXFramebuffer.cpp +++ b/native/cocos/renderer/gfx-base/GFXFramebuffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXFramebuffer.h b/native/cocos/renderer/gfx-base/GFXFramebuffer.h index a21be11cd7..8823cb69cd 100644 --- a/native/cocos/renderer/gfx-base/GFXFramebuffer.h +++ b/native/cocos/renderer/gfx-base/GFXFramebuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXInputAssembler.cpp b/native/cocos/renderer/gfx-base/GFXInputAssembler.cpp index bd0975f019..59ed6592e4 100644 --- a/native/cocos/renderer/gfx-base/GFXInputAssembler.cpp +++ b/native/cocos/renderer/gfx-base/GFXInputAssembler.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXInputAssembler.h b/native/cocos/renderer/gfx-base/GFXInputAssembler.h index 4d2871ac79..7268090e83 100644 --- a/native/cocos/renderer/gfx-base/GFXInputAssembler.h +++ b/native/cocos/renderer/gfx-base/GFXInputAssembler.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXObject.cpp b/native/cocos/renderer/gfx-base/GFXObject.cpp index 9a46c1110d..c2651afcb0 100644 --- a/native/cocos/renderer/gfx-base/GFXObject.cpp +++ b/native/cocos/renderer/gfx-base/GFXObject.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXObject.h b/native/cocos/renderer/gfx-base/GFXObject.h index 95561e7f3d..f00f5c981d 100644 --- a/native/cocos/renderer/gfx-base/GFXObject.h +++ b/native/cocos/renderer/gfx-base/GFXObject.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXPipelineLayout.cpp b/native/cocos/renderer/gfx-base/GFXPipelineLayout.cpp index c16fd5545f..529006d49f 100644 --- a/native/cocos/renderer/gfx-base/GFXPipelineLayout.cpp +++ b/native/cocos/renderer/gfx-base/GFXPipelineLayout.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXPipelineLayout.h b/native/cocos/renderer/gfx-base/GFXPipelineLayout.h index c14cdeae19..89efc5b344 100644 --- a/native/cocos/renderer/gfx-base/GFXPipelineLayout.h +++ b/native/cocos/renderer/gfx-base/GFXPipelineLayout.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXPipelineState.cpp b/native/cocos/renderer/gfx-base/GFXPipelineState.cpp index 007761ddc2..28002ef099 100644 --- a/native/cocos/renderer/gfx-base/GFXPipelineState.cpp +++ b/native/cocos/renderer/gfx-base/GFXPipelineState.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXPipelineState.h b/native/cocos/renderer/gfx-base/GFXPipelineState.h index 1b5997388d..f9dec2b116 100644 --- a/native/cocos/renderer/gfx-base/GFXPipelineState.h +++ b/native/cocos/renderer/gfx-base/GFXPipelineState.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXQueryPool.cpp b/native/cocos/renderer/gfx-base/GFXQueryPool.cpp index 835660dfac..795af035e3 100644 --- a/native/cocos/renderer/gfx-base/GFXQueryPool.cpp +++ b/native/cocos/renderer/gfx-base/GFXQueryPool.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXQueryPool.h b/native/cocos/renderer/gfx-base/GFXQueryPool.h index ae00d7fe3d..633895ae2b 100644 --- a/native/cocos/renderer/gfx-base/GFXQueryPool.h +++ b/native/cocos/renderer/gfx-base/GFXQueryPool.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXQueue.cpp b/native/cocos/renderer/gfx-base/GFXQueue.cpp index c3d402f79e..615056b714 100644 --- a/native/cocos/renderer/gfx-base/GFXQueue.cpp +++ b/native/cocos/renderer/gfx-base/GFXQueue.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXQueue.h b/native/cocos/renderer/gfx-base/GFXQueue.h index 0e78bd754e..c7a85728d9 100644 --- a/native/cocos/renderer/gfx-base/GFXQueue.h +++ b/native/cocos/renderer/gfx-base/GFXQueue.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXRenderPass.cpp b/native/cocos/renderer/gfx-base/GFXRenderPass.cpp index 3f28ac9887..09a5d0f8af 100644 --- a/native/cocos/renderer/gfx-base/GFXRenderPass.cpp +++ b/native/cocos/renderer/gfx-base/GFXRenderPass.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXRenderPass.h b/native/cocos/renderer/gfx-base/GFXRenderPass.h index 3f2b865a03..be301f3ba6 100644 --- a/native/cocos/renderer/gfx-base/GFXRenderPass.h +++ b/native/cocos/renderer/gfx-base/GFXRenderPass.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXShader.cpp b/native/cocos/renderer/gfx-base/GFXShader.cpp index 5bd00c5ada..454a5d5667 100644 --- a/native/cocos/renderer/gfx-base/GFXShader.cpp +++ b/native/cocos/renderer/gfx-base/GFXShader.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXShader.h b/native/cocos/renderer/gfx-base/GFXShader.h index aac5b469b2..f7da8d4a65 100644 --- a/native/cocos/renderer/gfx-base/GFXShader.h +++ b/native/cocos/renderer/gfx-base/GFXShader.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXSwapchain.cpp b/native/cocos/renderer/gfx-base/GFXSwapchain.cpp index 623e3a2370..191ac3d118 100644 --- a/native/cocos/renderer/gfx-base/GFXSwapchain.cpp +++ b/native/cocos/renderer/gfx-base/GFXSwapchain.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXSwapchain.h b/native/cocos/renderer/gfx-base/GFXSwapchain.h index 724dbcf566..ee947e0250 100644 --- a/native/cocos/renderer/gfx-base/GFXSwapchain.h +++ b/native/cocos/renderer/gfx-base/GFXSwapchain.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXTexture.cpp b/native/cocos/renderer/gfx-base/GFXTexture.cpp index b1d4011c00..681ba07734 100644 --- a/native/cocos/renderer/gfx-base/GFXTexture.cpp +++ b/native/cocos/renderer/gfx-base/GFXTexture.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXTexture.h b/native/cocos/renderer/gfx-base/GFXTexture.h index 7554042f6d..71cdf8b7dd 100644 --- a/native/cocos/renderer/gfx-base/GFXTexture.h +++ b/native/cocos/renderer/gfx-base/GFXTexture.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/SPIRVUtils.cpp b/native/cocos/renderer/gfx-base/SPIRVUtils.cpp index b6158f33c5..b628737e53 100644 --- a/native/cocos/renderer/gfx-base/SPIRVUtils.cpp +++ b/native/cocos/renderer/gfx-base/SPIRVUtils.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/SPIRVUtils.h b/native/cocos/renderer/gfx-base/SPIRVUtils.h index b9d05033e4..0a7c0fac4b 100644 --- a/native/cocos/renderer/gfx-base/SPIRVUtils.h +++ b/native/cocos/renderer/gfx-base/SPIRVUtils.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/states/GFXGlobalBarrier.cpp b/native/cocos/renderer/gfx-base/states/GFXGlobalBarrier.cpp index da50344ab9..aa64ff1cfb 100644 --- a/native/cocos/renderer/gfx-base/states/GFXGlobalBarrier.cpp +++ b/native/cocos/renderer/gfx-base/states/GFXGlobalBarrier.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/states/GFXGlobalBarrier.h b/native/cocos/renderer/gfx-base/states/GFXGlobalBarrier.h index 663a31aad1..04f5d9bd70 100644 --- a/native/cocos/renderer/gfx-base/states/GFXGlobalBarrier.h +++ b/native/cocos/renderer/gfx-base/states/GFXGlobalBarrier.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/states/GFXSampler.cpp b/native/cocos/renderer/gfx-base/states/GFXSampler.cpp index 4679f49c9c..654e0ca907 100644 --- a/native/cocos/renderer/gfx-base/states/GFXSampler.cpp +++ b/native/cocos/renderer/gfx-base/states/GFXSampler.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/states/GFXSampler.h b/native/cocos/renderer/gfx-base/states/GFXSampler.h index 678be3e034..b68bb184ed 100644 --- a/native/cocos/renderer/gfx-base/states/GFXSampler.h +++ b/native/cocos/renderer/gfx-base/states/GFXSampler.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/states/GFXTextureBarrier.cpp b/native/cocos/renderer/gfx-base/states/GFXTextureBarrier.cpp index f270c01ca3..95411ab356 100644 --- a/native/cocos/renderer/gfx-base/states/GFXTextureBarrier.cpp +++ b/native/cocos/renderer/gfx-base/states/GFXTextureBarrier.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/states/GFXTextureBarrier.h b/native/cocos/renderer/gfx-base/states/GFXTextureBarrier.h index f9c859f790..29157266a4 100644 --- a/native/cocos/renderer/gfx-base/states/GFXTextureBarrier.h +++ b/native/cocos/renderer/gfx-base/states/GFXTextureBarrier.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyBuffer.cpp b/native/cocos/renderer/gfx-empty/EmptyBuffer.cpp index 5e00116335..8522299840 100644 --- a/native/cocos/renderer/gfx-empty/EmptyBuffer.cpp +++ b/native/cocos/renderer/gfx-empty/EmptyBuffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyBuffer.h b/native/cocos/renderer/gfx-empty/EmptyBuffer.h index 1b505b1b3c..6ec30acda0 100644 --- a/native/cocos/renderer/gfx-empty/EmptyBuffer.h +++ b/native/cocos/renderer/gfx-empty/EmptyBuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyCommandBuffer.cpp b/native/cocos/renderer/gfx-empty/EmptyCommandBuffer.cpp index 2225d2575f..e2428369b6 100644 --- a/native/cocos/renderer/gfx-empty/EmptyCommandBuffer.cpp +++ b/native/cocos/renderer/gfx-empty/EmptyCommandBuffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyCommandBuffer.h b/native/cocos/renderer/gfx-empty/EmptyCommandBuffer.h index 7a38a425e2..0e42addc38 100644 --- a/native/cocos/renderer/gfx-empty/EmptyCommandBuffer.h +++ b/native/cocos/renderer/gfx-empty/EmptyCommandBuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyDescriptorSet.cpp b/native/cocos/renderer/gfx-empty/EmptyDescriptorSet.cpp index c1b416c767..f741dbc3cb 100644 --- a/native/cocos/renderer/gfx-empty/EmptyDescriptorSet.cpp +++ b/native/cocos/renderer/gfx-empty/EmptyDescriptorSet.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyDescriptorSet.h b/native/cocos/renderer/gfx-empty/EmptyDescriptorSet.h index 1f426138ce..1af61867a4 100644 --- a/native/cocos/renderer/gfx-empty/EmptyDescriptorSet.h +++ b/native/cocos/renderer/gfx-empty/EmptyDescriptorSet.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyDescriptorSetLayout.cpp b/native/cocos/renderer/gfx-empty/EmptyDescriptorSetLayout.cpp index f67907acf9..98d45d5861 100644 --- a/native/cocos/renderer/gfx-empty/EmptyDescriptorSetLayout.cpp +++ b/native/cocos/renderer/gfx-empty/EmptyDescriptorSetLayout.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyDescriptorSetLayout.h b/native/cocos/renderer/gfx-empty/EmptyDescriptorSetLayout.h index 4d5735945c..a271768fdb 100644 --- a/native/cocos/renderer/gfx-empty/EmptyDescriptorSetLayout.h +++ b/native/cocos/renderer/gfx-empty/EmptyDescriptorSetLayout.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyDevice.cpp b/native/cocos/renderer/gfx-empty/EmptyDevice.cpp index b799f50431..9bc03f1b38 100644 --- a/native/cocos/renderer/gfx-empty/EmptyDevice.cpp +++ b/native/cocos/renderer/gfx-empty/EmptyDevice.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyDevice.h b/native/cocos/renderer/gfx-empty/EmptyDevice.h index 27c352e013..1fd6cd96f3 100644 --- a/native/cocos/renderer/gfx-empty/EmptyDevice.h +++ b/native/cocos/renderer/gfx-empty/EmptyDevice.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyFramebuffer.cpp b/native/cocos/renderer/gfx-empty/EmptyFramebuffer.cpp index b352e948ac..8de3d2a5cb 100644 --- a/native/cocos/renderer/gfx-empty/EmptyFramebuffer.cpp +++ b/native/cocos/renderer/gfx-empty/EmptyFramebuffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyFramebuffer.h b/native/cocos/renderer/gfx-empty/EmptyFramebuffer.h index 0d99fe532e..4afbe926b0 100644 --- a/native/cocos/renderer/gfx-empty/EmptyFramebuffer.h +++ b/native/cocos/renderer/gfx-empty/EmptyFramebuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyInputAssembler.cpp b/native/cocos/renderer/gfx-empty/EmptyInputAssembler.cpp index 9b6d09e2a7..55a5693e33 100644 --- a/native/cocos/renderer/gfx-empty/EmptyInputAssembler.cpp +++ b/native/cocos/renderer/gfx-empty/EmptyInputAssembler.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyInputAssembler.h b/native/cocos/renderer/gfx-empty/EmptyInputAssembler.h index 4cf915c446..1d933ee43b 100644 --- a/native/cocos/renderer/gfx-empty/EmptyInputAssembler.h +++ b/native/cocos/renderer/gfx-empty/EmptyInputAssembler.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyPipelineLayout.cpp b/native/cocos/renderer/gfx-empty/EmptyPipelineLayout.cpp index 7eb88fee98..6b986b22f7 100644 --- a/native/cocos/renderer/gfx-empty/EmptyPipelineLayout.cpp +++ b/native/cocos/renderer/gfx-empty/EmptyPipelineLayout.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyPipelineLayout.h b/native/cocos/renderer/gfx-empty/EmptyPipelineLayout.h index b4c106e550..1e001c8a6a 100644 --- a/native/cocos/renderer/gfx-empty/EmptyPipelineLayout.h +++ b/native/cocos/renderer/gfx-empty/EmptyPipelineLayout.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyPipelineState.cpp b/native/cocos/renderer/gfx-empty/EmptyPipelineState.cpp index dadfe6d173..183fc0efaa 100644 --- a/native/cocos/renderer/gfx-empty/EmptyPipelineState.cpp +++ b/native/cocos/renderer/gfx-empty/EmptyPipelineState.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyPipelineState.h b/native/cocos/renderer/gfx-empty/EmptyPipelineState.h index ebcc309516..6b4c73fc90 100644 --- a/native/cocos/renderer/gfx-empty/EmptyPipelineState.h +++ b/native/cocos/renderer/gfx-empty/EmptyPipelineState.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyQueryPool.cpp b/native/cocos/renderer/gfx-empty/EmptyQueryPool.cpp index 04f4fc5cd1..6ea18d78c9 100644 --- a/native/cocos/renderer/gfx-empty/EmptyQueryPool.cpp +++ b/native/cocos/renderer/gfx-empty/EmptyQueryPool.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyQueryPool.h b/native/cocos/renderer/gfx-empty/EmptyQueryPool.h index 1167590e4b..fdbad9ca77 100644 --- a/native/cocos/renderer/gfx-empty/EmptyQueryPool.h +++ b/native/cocos/renderer/gfx-empty/EmptyQueryPool.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyQueue.cpp b/native/cocos/renderer/gfx-empty/EmptyQueue.cpp index 2a0a0c9ed4..aecfeac741 100644 --- a/native/cocos/renderer/gfx-empty/EmptyQueue.cpp +++ b/native/cocos/renderer/gfx-empty/EmptyQueue.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyQueue.h b/native/cocos/renderer/gfx-empty/EmptyQueue.h index 9f69f127e9..b2407a2779 100644 --- a/native/cocos/renderer/gfx-empty/EmptyQueue.h +++ b/native/cocos/renderer/gfx-empty/EmptyQueue.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyRenderPass.cpp b/native/cocos/renderer/gfx-empty/EmptyRenderPass.cpp index b9f17fb79d..0d3672554c 100644 --- a/native/cocos/renderer/gfx-empty/EmptyRenderPass.cpp +++ b/native/cocos/renderer/gfx-empty/EmptyRenderPass.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyRenderPass.h b/native/cocos/renderer/gfx-empty/EmptyRenderPass.h index 96e0c6cf83..7e28ab11f2 100644 --- a/native/cocos/renderer/gfx-empty/EmptyRenderPass.h +++ b/native/cocos/renderer/gfx-empty/EmptyRenderPass.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyShader.cpp b/native/cocos/renderer/gfx-empty/EmptyShader.cpp index 47f6f0a91a..369764cb2c 100644 --- a/native/cocos/renderer/gfx-empty/EmptyShader.cpp +++ b/native/cocos/renderer/gfx-empty/EmptyShader.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyShader.h b/native/cocos/renderer/gfx-empty/EmptyShader.h index a42aaa6f3d..721081115c 100644 --- a/native/cocos/renderer/gfx-empty/EmptyShader.h +++ b/native/cocos/renderer/gfx-empty/EmptyShader.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptySwapchain.cpp b/native/cocos/renderer/gfx-empty/EmptySwapchain.cpp index fe469b92cb..d116be1fa5 100644 --- a/native/cocos/renderer/gfx-empty/EmptySwapchain.cpp +++ b/native/cocos/renderer/gfx-empty/EmptySwapchain.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptySwapchain.h b/native/cocos/renderer/gfx-empty/EmptySwapchain.h index 456e201842..2b90fd7091 100644 --- a/native/cocos/renderer/gfx-empty/EmptySwapchain.h +++ b/native/cocos/renderer/gfx-empty/EmptySwapchain.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyTexture.cpp b/native/cocos/renderer/gfx-empty/EmptyTexture.cpp index a10d59b0c2..2566b2c11e 100644 --- a/native/cocos/renderer/gfx-empty/EmptyTexture.cpp +++ b/native/cocos/renderer/gfx-empty/EmptyTexture.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyTexture.h b/native/cocos/renderer/gfx-empty/EmptyTexture.h index ac7dde2545..1b71ecf3c5 100644 --- a/native/cocos/renderer/gfx-empty/EmptyTexture.h +++ b/native/cocos/renderer/gfx-empty/EmptyTexture.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles-common/GLESCommandPool.h b/native/cocos/renderer/gfx-gles-common/GLESCommandPool.h index a23e19ccf7..0ad27f211f 100644 --- a/native/cocos/renderer/gfx-gles-common/GLESCommandPool.h +++ b/native/cocos/renderer/gfx-gles-common/GLESCommandPool.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles-common/eglw.cpp b/native/cocos/renderer/gfx-gles-common/eglw.cpp index 065fbc90e6..7ac2b6ae86 100644 --- a/native/cocos/renderer/gfx-gles-common/eglw.cpp +++ b/native/cocos/renderer/gfx-gles-common/eglw.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles-common/eglw.h b/native/cocos/renderer/gfx-gles-common/eglw.h index 42ec4192d5..7b2defb3df 100644 --- a/native/cocos/renderer/gfx-gles-common/eglw.h +++ b/native/cocos/renderer/gfx-gles-common/eglw.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles-common/gles2w.cpp b/native/cocos/renderer/gfx-gles-common/gles2w.cpp index b0ca875426..52a3696747 100644 --- a/native/cocos/renderer/gfx-gles-common/gles2w.cpp +++ b/native/cocos/renderer/gfx-gles-common/gles2w.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles-common/gles2w.h b/native/cocos/renderer/gfx-gles-common/gles2w.h index 3453c21503..d2c8c869a1 100644 --- a/native/cocos/renderer/gfx-gles-common/gles2w.h +++ b/native/cocos/renderer/gfx-gles-common/gles2w.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles-common/gles3w.cpp b/native/cocos/renderer/gfx-gles-common/gles3w.cpp index 08db6516b3..52e8816479 100644 --- a/native/cocos/renderer/gfx-gles-common/gles3w.cpp +++ b/native/cocos/renderer/gfx-gles-common/gles3w.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles-common/gles3w.h b/native/cocos/renderer/gfx-gles-common/gles3w.h index 24264d88dd..08e1a3c276 100644 --- a/native/cocos/renderer/gfx-gles-common/gles3w.h +++ b/native/cocos/renderer/gfx-gles-common/gles3w.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2Buffer.cpp b/native/cocos/renderer/gfx-gles2/GLES2Buffer.cpp index b6d6d5a657..4f93016da8 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Buffer.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2Buffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2Buffer.h b/native/cocos/renderer/gfx-gles2/GLES2Buffer.h index 04a8f621ef..c97aaaa583 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Buffer.h +++ b/native/cocos/renderer/gfx-gles2/GLES2Buffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2CommandBuffer.cpp b/native/cocos/renderer/gfx-gles2/GLES2CommandBuffer.cpp index af8ba8679a..418f8533e7 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2CommandBuffer.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2CommandBuffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2CommandBuffer.h b/native/cocos/renderer/gfx-gles2/GLES2CommandBuffer.h index ad5a337650..1d6656e282 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2CommandBuffer.h +++ b/native/cocos/renderer/gfx-gles2/GLES2CommandBuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2Commands.cpp b/native/cocos/renderer/gfx-gles2/GLES2Commands.cpp index 955f37c096..95d1b239ed 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Commands.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2Commands.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2Commands.h b/native/cocos/renderer/gfx-gles2/GLES2Commands.h index 8297f7436b..8048abf5bc 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Commands.h +++ b/native/cocos/renderer/gfx-gles2/GLES2Commands.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2DescriptorSet.cpp b/native/cocos/renderer/gfx-gles2/GLES2DescriptorSet.cpp index 0706fb8144..0797bb7751 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2DescriptorSet.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2DescriptorSet.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2DescriptorSet.h b/native/cocos/renderer/gfx-gles2/GLES2DescriptorSet.h index bf9e19bfd3..884b4d1e3f 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2DescriptorSet.h +++ b/native/cocos/renderer/gfx-gles2/GLES2DescriptorSet.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2DescriptorSetLayout.cpp b/native/cocos/renderer/gfx-gles2/GLES2DescriptorSetLayout.cpp index d6a1640f89..1f5f9863a1 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2DescriptorSetLayout.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2DescriptorSetLayout.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2DescriptorSetLayout.h b/native/cocos/renderer/gfx-gles2/GLES2DescriptorSetLayout.h index 709211c1eb..bf234fc695 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2DescriptorSetLayout.h +++ b/native/cocos/renderer/gfx-gles2/GLES2DescriptorSetLayout.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2Device.cpp b/native/cocos/renderer/gfx-gles2/GLES2Device.cpp index 7487dfdd0a..335c2b5700 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Device.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2Device.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2Device.h b/native/cocos/renderer/gfx-gles2/GLES2Device.h index 0cb8cdf631..ecd96bf70a 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Device.h +++ b/native/cocos/renderer/gfx-gles2/GLES2Device.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2Framebuffer.cpp b/native/cocos/renderer/gfx-gles2/GLES2Framebuffer.cpp index bf3ab697f8..a7aec18905 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Framebuffer.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2Framebuffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2Framebuffer.h b/native/cocos/renderer/gfx-gles2/GLES2Framebuffer.h index d28dfaf7da..7d781cd05b 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Framebuffer.h +++ b/native/cocos/renderer/gfx-gles2/GLES2Framebuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2GPUContext.cpp b/native/cocos/renderer/gfx-gles2/GLES2GPUContext.cpp index a75a09d411..49b1cfd397 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2GPUContext.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2GPUContext.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2GPUObjects.h b/native/cocos/renderer/gfx-gles2/GLES2GPUObjects.h index df9fb22823..303c0b7d25 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2GPUObjects.h +++ b/native/cocos/renderer/gfx-gles2/GLES2GPUObjects.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2InputAssembler.cpp b/native/cocos/renderer/gfx-gles2/GLES2InputAssembler.cpp index 05bdf06f28..af8b8d823c 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2InputAssembler.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2InputAssembler.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2InputAssembler.h b/native/cocos/renderer/gfx-gles2/GLES2InputAssembler.h index f76feca56a..ff91984104 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2InputAssembler.h +++ b/native/cocos/renderer/gfx-gles2/GLES2InputAssembler.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2PipelineLayout.cpp b/native/cocos/renderer/gfx-gles2/GLES2PipelineLayout.cpp index e978a09406..1fc0092368 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2PipelineLayout.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2PipelineLayout.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2PipelineLayout.h b/native/cocos/renderer/gfx-gles2/GLES2PipelineLayout.h index 355261113a..e7a58732dc 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2PipelineLayout.h +++ b/native/cocos/renderer/gfx-gles2/GLES2PipelineLayout.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2PipelineState.cpp b/native/cocos/renderer/gfx-gles2/GLES2PipelineState.cpp index d46029ad3a..c6d0b3c511 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2PipelineState.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2PipelineState.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2PipelineState.h b/native/cocos/renderer/gfx-gles2/GLES2PipelineState.h index 384b3d5ea4..19507a2205 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2PipelineState.h +++ b/native/cocos/renderer/gfx-gles2/GLES2PipelineState.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2PrimaryCommandBuffer.cpp b/native/cocos/renderer/gfx-gles2/GLES2PrimaryCommandBuffer.cpp index bcb1adfb0b..728add88f0 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2PrimaryCommandBuffer.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2PrimaryCommandBuffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2PrimaryCommandBuffer.h b/native/cocos/renderer/gfx-gles2/GLES2PrimaryCommandBuffer.h index 936488cd71..ab532c6d73 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2PrimaryCommandBuffer.h +++ b/native/cocos/renderer/gfx-gles2/GLES2PrimaryCommandBuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2QueryPool.cpp b/native/cocos/renderer/gfx-gles2/GLES2QueryPool.cpp index e2016259f1..967dbcda43 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2QueryPool.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2QueryPool.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2QueryPool.h b/native/cocos/renderer/gfx-gles2/GLES2QueryPool.h index 1bd7fde540..79747b9572 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2QueryPool.h +++ b/native/cocos/renderer/gfx-gles2/GLES2QueryPool.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2Queue.cpp b/native/cocos/renderer/gfx-gles2/GLES2Queue.cpp index bd1e95a8ef..14b60614a7 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Queue.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2Queue.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2Queue.h b/native/cocos/renderer/gfx-gles2/GLES2Queue.h index 6675fe3907..a02e6f133c 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Queue.h +++ b/native/cocos/renderer/gfx-gles2/GLES2Queue.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2RenderPass.cpp b/native/cocos/renderer/gfx-gles2/GLES2RenderPass.cpp index 4daba28854..751a5f5fbc 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2RenderPass.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2RenderPass.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2RenderPass.h b/native/cocos/renderer/gfx-gles2/GLES2RenderPass.h index 0eb3b22fec..ba2e31e87f 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2RenderPass.h +++ b/native/cocos/renderer/gfx-gles2/GLES2RenderPass.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2Shader.cpp b/native/cocos/renderer/gfx-gles2/GLES2Shader.cpp index d817b7564f..706412d4cb 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Shader.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2Shader.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2Shader.h b/native/cocos/renderer/gfx-gles2/GLES2Shader.h index 0e35336075..18431c9465 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Shader.h +++ b/native/cocos/renderer/gfx-gles2/GLES2Shader.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2Std.cpp b/native/cocos/renderer/gfx-gles2/GLES2Std.cpp index 432486de89..9ff19756a0 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Std.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2Std.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2Std.h b/native/cocos/renderer/gfx-gles2/GLES2Std.h index 214779b3ef..25c1b0ad40 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Std.h +++ b/native/cocos/renderer/gfx-gles2/GLES2Std.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2Swapchain.cpp b/native/cocos/renderer/gfx-gles2/GLES2Swapchain.cpp index 4d0370ce8d..f5baefa306 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Swapchain.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2Swapchain.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2Swapchain.h b/native/cocos/renderer/gfx-gles2/GLES2Swapchain.h index 704a7cc0b7..9c2c426804 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Swapchain.h +++ b/native/cocos/renderer/gfx-gles2/GLES2Swapchain.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2Texture.cpp b/native/cocos/renderer/gfx-gles2/GLES2Texture.cpp index 6c282db8dd..521be04bb3 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Texture.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2Texture.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2Texture.h b/native/cocos/renderer/gfx-gles2/GLES2Texture.h index 3b2bbc0e45..855b68f969 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Texture.h +++ b/native/cocos/renderer/gfx-gles2/GLES2Texture.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2Wrangler.cpp b/native/cocos/renderer/gfx-gles2/GLES2Wrangler.cpp index 248004d0fd..631a3e851c 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Wrangler.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2Wrangler.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2Wrangler.h b/native/cocos/renderer/gfx-gles2/GLES2Wrangler.h index 88c524763e..7ac0a591c8 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Wrangler.h +++ b/native/cocos/renderer/gfx-gles2/GLES2Wrangler.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/states/GLES2Sampler.cpp b/native/cocos/renderer/gfx-gles2/states/GLES2Sampler.cpp index 82ff2cfd35..9e80cd1e86 100644 --- a/native/cocos/renderer/gfx-gles2/states/GLES2Sampler.cpp +++ b/native/cocos/renderer/gfx-gles2/states/GLES2Sampler.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/states/GLES2Sampler.h b/native/cocos/renderer/gfx-gles2/states/GLES2Sampler.h index efe99dea96..433790b60a 100644 --- a/native/cocos/renderer/gfx-gles2/states/GLES2Sampler.h +++ b/native/cocos/renderer/gfx-gles2/states/GLES2Sampler.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3Buffer.cpp b/native/cocos/renderer/gfx-gles3/GLES3Buffer.cpp index c23e3ec213..bb7ebeae4d 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Buffer.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3Buffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3Buffer.h b/native/cocos/renderer/gfx-gles3/GLES3Buffer.h index 1835b3051e..7509e835fe 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Buffer.h +++ b/native/cocos/renderer/gfx-gles3/GLES3Buffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3CommandBuffer.cpp b/native/cocos/renderer/gfx-gles3/GLES3CommandBuffer.cpp index e85ca86ae9..6288fd1aca 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3CommandBuffer.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3CommandBuffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3CommandBuffer.h b/native/cocos/renderer/gfx-gles3/GLES3CommandBuffer.h index 927a5fefa7..e8899b913b 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3CommandBuffer.h +++ b/native/cocos/renderer/gfx-gles3/GLES3CommandBuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3Commands.cpp b/native/cocos/renderer/gfx-gles3/GLES3Commands.cpp index 21c2df7013..595d8f89ec 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Commands.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3Commands.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3Commands.h b/native/cocos/renderer/gfx-gles3/GLES3Commands.h index 68315c6462..9296292689 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Commands.h +++ b/native/cocos/renderer/gfx-gles3/GLES3Commands.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3DescriptorSet.cpp b/native/cocos/renderer/gfx-gles3/GLES3DescriptorSet.cpp index 678df0dc28..56260d66ea 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3DescriptorSet.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3DescriptorSet.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3DescriptorSet.h b/native/cocos/renderer/gfx-gles3/GLES3DescriptorSet.h index bb6edec95a..52b8f4e7f6 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3DescriptorSet.h +++ b/native/cocos/renderer/gfx-gles3/GLES3DescriptorSet.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3DescriptorSetLayout.cpp b/native/cocos/renderer/gfx-gles3/GLES3DescriptorSetLayout.cpp index 61f67a517e..573a67faf3 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3DescriptorSetLayout.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3DescriptorSetLayout.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3DescriptorSetLayout.h b/native/cocos/renderer/gfx-gles3/GLES3DescriptorSetLayout.h index b99e8d729a..fa3cad9ba0 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3DescriptorSetLayout.h +++ b/native/cocos/renderer/gfx-gles3/GLES3DescriptorSetLayout.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3Device.cpp b/native/cocos/renderer/gfx-gles3/GLES3Device.cpp index 1863ad40d0..c851c638ec 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Device.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3Device.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3Device.h b/native/cocos/renderer/gfx-gles3/GLES3Device.h index db19feb9ab..fb57bbd0d5 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Device.h +++ b/native/cocos/renderer/gfx-gles3/GLES3Device.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3Framebuffer.cpp b/native/cocos/renderer/gfx-gles3/GLES3Framebuffer.cpp index 8b0faa86b4..bee7e2d026 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Framebuffer.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3Framebuffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3Framebuffer.h b/native/cocos/renderer/gfx-gles3/GLES3Framebuffer.h index 30dac5e3de..9a7bbe0472 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Framebuffer.h +++ b/native/cocos/renderer/gfx-gles3/GLES3Framebuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3GPUContext.cpp b/native/cocos/renderer/gfx-gles3/GLES3GPUContext.cpp index 1bed8c17b3..a181178837 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3GPUContext.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3GPUContext.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3GPUObjects.h b/native/cocos/renderer/gfx-gles3/GLES3GPUObjects.h index ae84953e2f..751ad9c56f 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3GPUObjects.h +++ b/native/cocos/renderer/gfx-gles3/GLES3GPUObjects.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3InputAssembler.cpp b/native/cocos/renderer/gfx-gles3/GLES3InputAssembler.cpp index f02a8608e3..44defe028d 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3InputAssembler.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3InputAssembler.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3InputAssembler.h b/native/cocos/renderer/gfx-gles3/GLES3InputAssembler.h index 521395a0d5..0116f6447f 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3InputAssembler.h +++ b/native/cocos/renderer/gfx-gles3/GLES3InputAssembler.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3PipelineLayout.cpp b/native/cocos/renderer/gfx-gles3/GLES3PipelineLayout.cpp index 8f620e7617..0f731b6bc1 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3PipelineLayout.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3PipelineLayout.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3PipelineLayout.h b/native/cocos/renderer/gfx-gles3/GLES3PipelineLayout.h index 84a591e3f7..1f70adf2b3 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3PipelineLayout.h +++ b/native/cocos/renderer/gfx-gles3/GLES3PipelineLayout.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3PipelineState.cpp b/native/cocos/renderer/gfx-gles3/GLES3PipelineState.cpp index 68d4873c35..2394ab0548 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3PipelineState.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3PipelineState.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3PipelineState.h b/native/cocos/renderer/gfx-gles3/GLES3PipelineState.h index d2ab126432..66a744c2f0 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3PipelineState.h +++ b/native/cocos/renderer/gfx-gles3/GLES3PipelineState.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3PrimaryCommandBuffer.cpp b/native/cocos/renderer/gfx-gles3/GLES3PrimaryCommandBuffer.cpp index 6bc6bc3bf5..33c750ffdc 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3PrimaryCommandBuffer.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3PrimaryCommandBuffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3PrimaryCommandBuffer.h b/native/cocos/renderer/gfx-gles3/GLES3PrimaryCommandBuffer.h index affadcc6e1..1076c346ef 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3PrimaryCommandBuffer.h +++ b/native/cocos/renderer/gfx-gles3/GLES3PrimaryCommandBuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3QueryPool.cpp b/native/cocos/renderer/gfx-gles3/GLES3QueryPool.cpp index 69f402b5fb..c34bc11c80 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3QueryPool.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3QueryPool.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3QueryPool.h b/native/cocos/renderer/gfx-gles3/GLES3QueryPool.h index 8e176d2bd7..69b22d4a52 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3QueryPool.h +++ b/native/cocos/renderer/gfx-gles3/GLES3QueryPool.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3Queue.cpp b/native/cocos/renderer/gfx-gles3/GLES3Queue.cpp index 095ca09f3b..8f17077428 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Queue.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3Queue.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3Queue.h b/native/cocos/renderer/gfx-gles3/GLES3Queue.h index 457f9a57bb..3c1cfb40a8 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Queue.h +++ b/native/cocos/renderer/gfx-gles3/GLES3Queue.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3RenderPass.cpp b/native/cocos/renderer/gfx-gles3/GLES3RenderPass.cpp index a448fad75b..bcff8236ea 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3RenderPass.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3RenderPass.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3RenderPass.h b/native/cocos/renderer/gfx-gles3/GLES3RenderPass.h index cf2f3717c7..3576fa1cd2 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3RenderPass.h +++ b/native/cocos/renderer/gfx-gles3/GLES3RenderPass.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3Shader.cpp b/native/cocos/renderer/gfx-gles3/GLES3Shader.cpp index f73189e196..5eb427aabe 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Shader.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3Shader.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3Shader.h b/native/cocos/renderer/gfx-gles3/GLES3Shader.h index 6d77db49ce..3ba44ee5bc 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Shader.h +++ b/native/cocos/renderer/gfx-gles3/GLES3Shader.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3Std.cpp b/native/cocos/renderer/gfx-gles3/GLES3Std.cpp index 86ee1990ac..7349af5692 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Std.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3Std.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3Std.h b/native/cocos/renderer/gfx-gles3/GLES3Std.h index 4b7e0d4002..80f511f601 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Std.h +++ b/native/cocos/renderer/gfx-gles3/GLES3Std.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3Swapchain.cpp b/native/cocos/renderer/gfx-gles3/GLES3Swapchain.cpp index 27a36cb6c8..335e51ab11 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Swapchain.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3Swapchain.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3Swapchain.h b/native/cocos/renderer/gfx-gles3/GLES3Swapchain.h index 2c8ee22ef4..2a9f8d3c15 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Swapchain.h +++ b/native/cocos/renderer/gfx-gles3/GLES3Swapchain.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3Texture.cpp b/native/cocos/renderer/gfx-gles3/GLES3Texture.cpp index 660ea0bd34..5167b68b9b 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Texture.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3Texture.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3Texture.h b/native/cocos/renderer/gfx-gles3/GLES3Texture.h index b4475de813..1650ab8749 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Texture.h +++ b/native/cocos/renderer/gfx-gles3/GLES3Texture.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3Wrangler.cpp b/native/cocos/renderer/gfx-gles3/GLES3Wrangler.cpp index 82af16a4bd..7bb588b671 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Wrangler.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3Wrangler.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3Wrangler.h b/native/cocos/renderer/gfx-gles3/GLES3Wrangler.h index fc6b817ac0..479024ebb9 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Wrangler.h +++ b/native/cocos/renderer/gfx-gles3/GLES3Wrangler.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/states/GLES3GlobalBarrier.cpp b/native/cocos/renderer/gfx-gles3/states/GLES3GlobalBarrier.cpp index 7e3a2d34da..113368e164 100644 --- a/native/cocos/renderer/gfx-gles3/states/GLES3GlobalBarrier.cpp +++ b/native/cocos/renderer/gfx-gles3/states/GLES3GlobalBarrier.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/states/GLES3GlobalBarrier.h b/native/cocos/renderer/gfx-gles3/states/GLES3GlobalBarrier.h index 8541ed6030..630e257a8d 100644 --- a/native/cocos/renderer/gfx-gles3/states/GLES3GlobalBarrier.h +++ b/native/cocos/renderer/gfx-gles3/states/GLES3GlobalBarrier.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/states/GLES3Sampler.cpp b/native/cocos/renderer/gfx-gles3/states/GLES3Sampler.cpp index c8cf2f5eba..f8b4c8ae9a 100644 --- a/native/cocos/renderer/gfx-gles3/states/GLES3Sampler.cpp +++ b/native/cocos/renderer/gfx-gles3/states/GLES3Sampler.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/states/GLES3Sampler.h b/native/cocos/renderer/gfx-gles3/states/GLES3Sampler.h index 497052d6c1..05e571fb76 100644 --- a/native/cocos/renderer/gfx-gles3/states/GLES3Sampler.h +++ b/native/cocos/renderer/gfx-gles3/states/GLES3Sampler.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLBuffer.h b/native/cocos/renderer/gfx-metal/MTLBuffer.h index a9b769e929..9fec646d60 100644 --- a/native/cocos/renderer/gfx-metal/MTLBuffer.h +++ b/native/cocos/renderer/gfx-metal/MTLBuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLBuffer.mm b/native/cocos/renderer/gfx-metal/MTLBuffer.mm index f9b374df3f..294a163376 100644 --- a/native/cocos/renderer/gfx-metal/MTLBuffer.mm +++ b/native/cocos/renderer/gfx-metal/MTLBuffer.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLCommandBuffer.h b/native/cocos/renderer/gfx-metal/MTLCommandBuffer.h index c12b48e903..d63d39a3a1 100644 --- a/native/cocos/renderer/gfx-metal/MTLCommandBuffer.h +++ b/native/cocos/renderer/gfx-metal/MTLCommandBuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLCommandBuffer.mm b/native/cocos/renderer/gfx-metal/MTLCommandBuffer.mm index c317623b4e..8798280152 100644 --- a/native/cocos/renderer/gfx-metal/MTLCommandBuffer.mm +++ b/native/cocos/renderer/gfx-metal/MTLCommandBuffer.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLCommandEncoder.h b/native/cocos/renderer/gfx-metal/MTLCommandEncoder.h index 47b63aca80..b90c483e28 100644 --- a/native/cocos/renderer/gfx-metal/MTLCommandEncoder.h +++ b/native/cocos/renderer/gfx-metal/MTLCommandEncoder.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLComputeCommandEncoder.h b/native/cocos/renderer/gfx-metal/MTLComputeCommandEncoder.h index 956e04c143..87d10b58e3 100644 --- a/native/cocos/renderer/gfx-metal/MTLComputeCommandEncoder.h +++ b/native/cocos/renderer/gfx-metal/MTLComputeCommandEncoder.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLConfig.h b/native/cocos/renderer/gfx-metal/MTLConfig.h index 2161f691e2..79f66e5cc7 100644 --- a/native/cocos/renderer/gfx-metal/MTLConfig.h +++ b/native/cocos/renderer/gfx-metal/MTLConfig.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLDescriptorSet.h b/native/cocos/renderer/gfx-metal/MTLDescriptorSet.h index 1aaa29730d..0d3dd8fd9a 100644 --- a/native/cocos/renderer/gfx-metal/MTLDescriptorSet.h +++ b/native/cocos/renderer/gfx-metal/MTLDescriptorSet.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLDescriptorSet.mm b/native/cocos/renderer/gfx-metal/MTLDescriptorSet.mm index 312c50c3a6..6f7cb7588c 100644 --- a/native/cocos/renderer/gfx-metal/MTLDescriptorSet.mm +++ b/native/cocos/renderer/gfx-metal/MTLDescriptorSet.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLDescriptorSetLayout.h b/native/cocos/renderer/gfx-metal/MTLDescriptorSetLayout.h index 8bb6076730..7b565ccab2 100644 --- a/native/cocos/renderer/gfx-metal/MTLDescriptorSetLayout.h +++ b/native/cocos/renderer/gfx-metal/MTLDescriptorSetLayout.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLDescriptorSetLayout.mm b/native/cocos/renderer/gfx-metal/MTLDescriptorSetLayout.mm index 086290ba35..ea536d8eb7 100644 --- a/native/cocos/renderer/gfx-metal/MTLDescriptorSetLayout.mm +++ b/native/cocos/renderer/gfx-metal/MTLDescriptorSetLayout.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLDevice.h b/native/cocos/renderer/gfx-metal/MTLDevice.h index 9c17ca7ce0..8b195c5498 100644 --- a/native/cocos/renderer/gfx-metal/MTLDevice.h +++ b/native/cocos/renderer/gfx-metal/MTLDevice.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLDevice.mm b/native/cocos/renderer/gfx-metal/MTLDevice.mm index bb4c694de4..b9f8bffbb6 100644 --- a/native/cocos/renderer/gfx-metal/MTLDevice.mm +++ b/native/cocos/renderer/gfx-metal/MTLDevice.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLFramebuffer.h b/native/cocos/renderer/gfx-metal/MTLFramebuffer.h index 769bd9c473..8c699f7a78 100644 --- a/native/cocos/renderer/gfx-metal/MTLFramebuffer.h +++ b/native/cocos/renderer/gfx-metal/MTLFramebuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLFramebuffer.mm b/native/cocos/renderer/gfx-metal/MTLFramebuffer.mm index 52c1007b06..8a0f5bb888 100644 --- a/native/cocos/renderer/gfx-metal/MTLFramebuffer.mm +++ b/native/cocos/renderer/gfx-metal/MTLFramebuffer.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLGPUObjects.h b/native/cocos/renderer/gfx-metal/MTLGPUObjects.h index 7d18dab249..7c8d543a9a 100644 --- a/native/cocos/renderer/gfx-metal/MTLGPUObjects.h +++ b/native/cocos/renderer/gfx-metal/MTLGPUObjects.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLInputAssembler.h b/native/cocos/renderer/gfx-metal/MTLInputAssembler.h index 229b2fa010..8cdf277f50 100644 --- a/native/cocos/renderer/gfx-metal/MTLInputAssembler.h +++ b/native/cocos/renderer/gfx-metal/MTLInputAssembler.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLInputAssembler.mm b/native/cocos/renderer/gfx-metal/MTLInputAssembler.mm index b11221bc2e..bce1897302 100644 --- a/native/cocos/renderer/gfx-metal/MTLInputAssembler.mm +++ b/native/cocos/renderer/gfx-metal/MTLInputAssembler.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLPipelineLayout.h b/native/cocos/renderer/gfx-metal/MTLPipelineLayout.h index ea7b7c83de..6e4d2e31eb 100644 --- a/native/cocos/renderer/gfx-metal/MTLPipelineLayout.h +++ b/native/cocos/renderer/gfx-metal/MTLPipelineLayout.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLPipelineLayout.mm b/native/cocos/renderer/gfx-metal/MTLPipelineLayout.mm index f0213310e9..3c06ec6224 100644 --- a/native/cocos/renderer/gfx-metal/MTLPipelineLayout.mm +++ b/native/cocos/renderer/gfx-metal/MTLPipelineLayout.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLPipelineState.h b/native/cocos/renderer/gfx-metal/MTLPipelineState.h index 244f9e103e..d4690614fa 100644 --- a/native/cocos/renderer/gfx-metal/MTLPipelineState.h +++ b/native/cocos/renderer/gfx-metal/MTLPipelineState.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLPipelineState.mm b/native/cocos/renderer/gfx-metal/MTLPipelineState.mm index 3567fd25df..c8e0e32d77 100644 --- a/native/cocos/renderer/gfx-metal/MTLPipelineState.mm +++ b/native/cocos/renderer/gfx-metal/MTLPipelineState.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLQueryPool.h b/native/cocos/renderer/gfx-metal/MTLQueryPool.h index 3452505d79..c938eeb84b 100644 --- a/native/cocos/renderer/gfx-metal/MTLQueryPool.h +++ b/native/cocos/renderer/gfx-metal/MTLQueryPool.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLQueryPool.mm b/native/cocos/renderer/gfx-metal/MTLQueryPool.mm index 90a67247a3..ea089388b9 100644 --- a/native/cocos/renderer/gfx-metal/MTLQueryPool.mm +++ b/native/cocos/renderer/gfx-metal/MTLQueryPool.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLQueue.h b/native/cocos/renderer/gfx-metal/MTLQueue.h index 8b71d3e3b7..21e9812eed 100644 --- a/native/cocos/renderer/gfx-metal/MTLQueue.h +++ b/native/cocos/renderer/gfx-metal/MTLQueue.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLQueue.mm b/native/cocos/renderer/gfx-metal/MTLQueue.mm index 58afd2980a..a28a4b59c4 100644 --- a/native/cocos/renderer/gfx-metal/MTLQueue.mm +++ b/native/cocos/renderer/gfx-metal/MTLQueue.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLRenderCommandEncoder.h b/native/cocos/renderer/gfx-metal/MTLRenderCommandEncoder.h index 3986888b4c..42e10dfa3d 100644 --- a/native/cocos/renderer/gfx-metal/MTLRenderCommandEncoder.h +++ b/native/cocos/renderer/gfx-metal/MTLRenderCommandEncoder.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLRenderPass.h b/native/cocos/renderer/gfx-metal/MTLRenderPass.h index c6c372dde9..fd4e8e5cf4 100644 --- a/native/cocos/renderer/gfx-metal/MTLRenderPass.h +++ b/native/cocos/renderer/gfx-metal/MTLRenderPass.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLRenderPass.mm b/native/cocos/renderer/gfx-metal/MTLRenderPass.mm index 4aebbc6abd..ed3c2c8f53 100644 --- a/native/cocos/renderer/gfx-metal/MTLRenderPass.mm +++ b/native/cocos/renderer/gfx-metal/MTLRenderPass.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLSampler.h b/native/cocos/renderer/gfx-metal/MTLSampler.h index fa48565774..7432e5e0f4 100644 --- a/native/cocos/renderer/gfx-metal/MTLSampler.h +++ b/native/cocos/renderer/gfx-metal/MTLSampler.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLSampler.mm b/native/cocos/renderer/gfx-metal/MTLSampler.mm index a456e69fdd..5efa7e5a67 100644 --- a/native/cocos/renderer/gfx-metal/MTLSampler.mm +++ b/native/cocos/renderer/gfx-metal/MTLSampler.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLSemaphore.h b/native/cocos/renderer/gfx-metal/MTLSemaphore.h index 339e57cf3e..5b59da724b 100644 --- a/native/cocos/renderer/gfx-metal/MTLSemaphore.h +++ b/native/cocos/renderer/gfx-metal/MTLSemaphore.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLShader.h b/native/cocos/renderer/gfx-metal/MTLShader.h index 832bd330b5..2effd043c6 100644 --- a/native/cocos/renderer/gfx-metal/MTLShader.h +++ b/native/cocos/renderer/gfx-metal/MTLShader.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLShader.mm b/native/cocos/renderer/gfx-metal/MTLShader.mm index 102e4115a5..5d5b0aec8e 100644 --- a/native/cocos/renderer/gfx-metal/MTLShader.mm +++ b/native/cocos/renderer/gfx-metal/MTLShader.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLStd.cpp b/native/cocos/renderer/gfx-metal/MTLStd.cpp index aaf694197e..945e12b151 100644 --- a/native/cocos/renderer/gfx-metal/MTLStd.cpp +++ b/native/cocos/renderer/gfx-metal/MTLStd.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLStd.h b/native/cocos/renderer/gfx-metal/MTLStd.h index 4c4a92a5a1..7644dc2f6f 100644 --- a/native/cocos/renderer/gfx-metal/MTLStd.h +++ b/native/cocos/renderer/gfx-metal/MTLStd.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLSwapchain.h b/native/cocos/renderer/gfx-metal/MTLSwapchain.h index 76ba92719c..8b424c8dc6 100644 --- a/native/cocos/renderer/gfx-metal/MTLSwapchain.h +++ b/native/cocos/renderer/gfx-metal/MTLSwapchain.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLSwapchain.mm b/native/cocos/renderer/gfx-metal/MTLSwapchain.mm index 6cea11e57c..3ffc9d0a0c 100644 --- a/native/cocos/renderer/gfx-metal/MTLSwapchain.mm +++ b/native/cocos/renderer/gfx-metal/MTLSwapchain.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #import "../gfx-base/GFXDef-common.h" #import "MTLSwapchain.h" #if CC_PLATFORM == CC_PLATFORM_MAC_OSX diff --git a/native/cocos/renderer/gfx-metal/MTLTexture.h b/native/cocos/renderer/gfx-metal/MTLTexture.h index 1b998e737f..511e3eb6d3 100644 --- a/native/cocos/renderer/gfx-metal/MTLTexture.h +++ b/native/cocos/renderer/gfx-metal/MTLTexture.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLTexture.mm b/native/cocos/renderer/gfx-metal/MTLTexture.mm index eac5ebcc53..1455c6c85e 100644 --- a/native/cocos/renderer/gfx-metal/MTLTexture.mm +++ b/native/cocos/renderer/gfx-metal/MTLTexture.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLUtils.h b/native/cocos/renderer/gfx-metal/MTLUtils.h index 49981f26f5..99512f8c2d 100644 --- a/native/cocos/renderer/gfx-metal/MTLUtils.h +++ b/native/cocos/renderer/gfx-metal/MTLUtils.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLUtils.mm b/native/cocos/renderer/gfx-metal/MTLUtils.mm index 92f6564481..98fb2f4b13 100644 --- a/native/cocos/renderer/gfx-metal/MTLUtils.mm +++ b/native/cocos/renderer/gfx-metal/MTLUtils.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/BufferValidator.cpp b/native/cocos/renderer/gfx-validator/BufferValidator.cpp index 854c866837..11a4d13691 100644 --- a/native/cocos/renderer/gfx-validator/BufferValidator.cpp +++ b/native/cocos/renderer/gfx-validator/BufferValidator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/BufferValidator.h b/native/cocos/renderer/gfx-validator/BufferValidator.h index bf8ddbc4a6..d9b2676ecd 100644 --- a/native/cocos/renderer/gfx-validator/BufferValidator.h +++ b/native/cocos/renderer/gfx-validator/BufferValidator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/CommandBufferValidator.cpp b/native/cocos/renderer/gfx-validator/CommandBufferValidator.cpp index 55cdbae47b..e3cf37924e 100644 --- a/native/cocos/renderer/gfx-validator/CommandBufferValidator.cpp +++ b/native/cocos/renderer/gfx-validator/CommandBufferValidator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/CommandBufferValidator.h b/native/cocos/renderer/gfx-validator/CommandBufferValidator.h index e65e009f40..7b6fb0472f 100644 --- a/native/cocos/renderer/gfx-validator/CommandBufferValidator.h +++ b/native/cocos/renderer/gfx-validator/CommandBufferValidator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/DescriptorSetLayoutValidator.cpp b/native/cocos/renderer/gfx-validator/DescriptorSetLayoutValidator.cpp index bfb8bff2b0..7db3944e12 100644 --- a/native/cocos/renderer/gfx-validator/DescriptorSetLayoutValidator.cpp +++ b/native/cocos/renderer/gfx-validator/DescriptorSetLayoutValidator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/DescriptorSetLayoutValidator.h b/native/cocos/renderer/gfx-validator/DescriptorSetLayoutValidator.h index 2ddd04c505..ff9035e463 100644 --- a/native/cocos/renderer/gfx-validator/DescriptorSetLayoutValidator.h +++ b/native/cocos/renderer/gfx-validator/DescriptorSetLayoutValidator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/DescriptorSetValidator.cpp b/native/cocos/renderer/gfx-validator/DescriptorSetValidator.cpp index 9c89b8b682..85edfb58ac 100644 --- a/native/cocos/renderer/gfx-validator/DescriptorSetValidator.cpp +++ b/native/cocos/renderer/gfx-validator/DescriptorSetValidator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/DescriptorSetValidator.h b/native/cocos/renderer/gfx-validator/DescriptorSetValidator.h index 8d5a25204f..bbc24a94e8 100644 --- a/native/cocos/renderer/gfx-validator/DescriptorSetValidator.h +++ b/native/cocos/renderer/gfx-validator/DescriptorSetValidator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/DeviceValidator.cpp b/native/cocos/renderer/gfx-validator/DeviceValidator.cpp index 5b221498c6..8ebd14c4b6 100644 --- a/native/cocos/renderer/gfx-validator/DeviceValidator.cpp +++ b/native/cocos/renderer/gfx-validator/DeviceValidator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/DeviceValidator.h b/native/cocos/renderer/gfx-validator/DeviceValidator.h index 0a1eeaa22f..2fe7027fd2 100644 --- a/native/cocos/renderer/gfx-validator/DeviceValidator.h +++ b/native/cocos/renderer/gfx-validator/DeviceValidator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/FramebufferValidator.cpp b/native/cocos/renderer/gfx-validator/FramebufferValidator.cpp index 28006647c8..03f96653bb 100644 --- a/native/cocos/renderer/gfx-validator/FramebufferValidator.cpp +++ b/native/cocos/renderer/gfx-validator/FramebufferValidator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/FramebufferValidator.h b/native/cocos/renderer/gfx-validator/FramebufferValidator.h index a69f3049e3..2611d67bc1 100644 --- a/native/cocos/renderer/gfx-validator/FramebufferValidator.h +++ b/native/cocos/renderer/gfx-validator/FramebufferValidator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/InputAssemblerValidator.cpp b/native/cocos/renderer/gfx-validator/InputAssemblerValidator.cpp index 3bd7c3533e..88bdd8f8a5 100644 --- a/native/cocos/renderer/gfx-validator/InputAssemblerValidator.cpp +++ b/native/cocos/renderer/gfx-validator/InputAssemblerValidator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/InputAssemblerValidator.h b/native/cocos/renderer/gfx-validator/InputAssemblerValidator.h index cb2419d69f..5dbf967a41 100644 --- a/native/cocos/renderer/gfx-validator/InputAssemblerValidator.h +++ b/native/cocos/renderer/gfx-validator/InputAssemblerValidator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/PipelineLayoutValidator.cpp b/native/cocos/renderer/gfx-validator/PipelineLayoutValidator.cpp index e75fa9e5ff..df17ddd57d 100644 --- a/native/cocos/renderer/gfx-validator/PipelineLayoutValidator.cpp +++ b/native/cocos/renderer/gfx-validator/PipelineLayoutValidator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/PipelineLayoutValidator.h b/native/cocos/renderer/gfx-validator/PipelineLayoutValidator.h index 60dc5e9342..fc76ea2250 100644 --- a/native/cocos/renderer/gfx-validator/PipelineLayoutValidator.h +++ b/native/cocos/renderer/gfx-validator/PipelineLayoutValidator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/PipelineStateValidator.cpp b/native/cocos/renderer/gfx-validator/PipelineStateValidator.cpp index f0542c2059..77f4390fd5 100644 --- a/native/cocos/renderer/gfx-validator/PipelineStateValidator.cpp +++ b/native/cocos/renderer/gfx-validator/PipelineStateValidator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/PipelineStateValidator.h b/native/cocos/renderer/gfx-validator/PipelineStateValidator.h index 12e54fca00..309152a16e 100644 --- a/native/cocos/renderer/gfx-validator/PipelineStateValidator.h +++ b/native/cocos/renderer/gfx-validator/PipelineStateValidator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/QueryPoolValidator.cpp b/native/cocos/renderer/gfx-validator/QueryPoolValidator.cpp index 0db46e0259..b53e35d145 100644 --- a/native/cocos/renderer/gfx-validator/QueryPoolValidator.cpp +++ b/native/cocos/renderer/gfx-validator/QueryPoolValidator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/QueryPoolValidator.h b/native/cocos/renderer/gfx-validator/QueryPoolValidator.h index 3165673f1f..853648c62b 100644 --- a/native/cocos/renderer/gfx-validator/QueryPoolValidator.h +++ b/native/cocos/renderer/gfx-validator/QueryPoolValidator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/QueueValidator.cpp b/native/cocos/renderer/gfx-validator/QueueValidator.cpp index 3d353b8012..daf6c0ff79 100644 --- a/native/cocos/renderer/gfx-validator/QueueValidator.cpp +++ b/native/cocos/renderer/gfx-validator/QueueValidator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/QueueValidator.h b/native/cocos/renderer/gfx-validator/QueueValidator.h index 402340a601..3acef2a602 100644 --- a/native/cocos/renderer/gfx-validator/QueueValidator.h +++ b/native/cocos/renderer/gfx-validator/QueueValidator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/RenderPassValidator.cpp b/native/cocos/renderer/gfx-validator/RenderPassValidator.cpp index afbc7de906..030d7dd463 100644 --- a/native/cocos/renderer/gfx-validator/RenderPassValidator.cpp +++ b/native/cocos/renderer/gfx-validator/RenderPassValidator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/RenderPassValidator.h b/native/cocos/renderer/gfx-validator/RenderPassValidator.h index 6f097faf5a..5f3082918d 100644 --- a/native/cocos/renderer/gfx-validator/RenderPassValidator.h +++ b/native/cocos/renderer/gfx-validator/RenderPassValidator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/ShaderValidator.cpp b/native/cocos/renderer/gfx-validator/ShaderValidator.cpp index a183adc7d8..62074cfd68 100644 --- a/native/cocos/renderer/gfx-validator/ShaderValidator.cpp +++ b/native/cocos/renderer/gfx-validator/ShaderValidator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/ShaderValidator.h b/native/cocos/renderer/gfx-validator/ShaderValidator.h index aa997947c1..b9af0fde57 100644 --- a/native/cocos/renderer/gfx-validator/ShaderValidator.h +++ b/native/cocos/renderer/gfx-validator/ShaderValidator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/SwapchainValidator.cpp b/native/cocos/renderer/gfx-validator/SwapchainValidator.cpp index 3341b22a13..1d83146f9a 100644 --- a/native/cocos/renderer/gfx-validator/SwapchainValidator.cpp +++ b/native/cocos/renderer/gfx-validator/SwapchainValidator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/SwapchainValidator.h b/native/cocos/renderer/gfx-validator/SwapchainValidator.h index 6a3a145a43..a8d086b6eb 100644 --- a/native/cocos/renderer/gfx-validator/SwapchainValidator.h +++ b/native/cocos/renderer/gfx-validator/SwapchainValidator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/TextureValidator.cpp b/native/cocos/renderer/gfx-validator/TextureValidator.cpp index eca9ebdda9..65c8640d57 100644 --- a/native/cocos/renderer/gfx-validator/TextureValidator.cpp +++ b/native/cocos/renderer/gfx-validator/TextureValidator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/TextureValidator.h b/native/cocos/renderer/gfx-validator/TextureValidator.h index fbcb87b0e9..c9c95ed936 100644 --- a/native/cocos/renderer/gfx-validator/TextureValidator.h +++ b/native/cocos/renderer/gfx-validator/TextureValidator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/ValidationUtils.cpp b/native/cocos/renderer/gfx-validator/ValidationUtils.cpp index 5b394b9645..d64577515b 100644 --- a/native/cocos/renderer/gfx-validator/ValidationUtils.cpp +++ b/native/cocos/renderer/gfx-validator/ValidationUtils.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/ValidationUtils.h b/native/cocos/renderer/gfx-validator/ValidationUtils.h index b38ed65081..04bd575a58 100644 --- a/native/cocos/renderer/gfx-validator/ValidationUtils.h +++ b/native/cocos/renderer/gfx-validator/ValidationUtils.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKBuffer.cpp b/native/cocos/renderer/gfx-vulkan/VKBuffer.cpp index 8619e6b9cc..39dfd33e97 100644 --- a/native/cocos/renderer/gfx-vulkan/VKBuffer.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKBuffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKBuffer.h b/native/cocos/renderer/gfx-vulkan/VKBuffer.h index 8aa7113029..441449c611 100644 --- a/native/cocos/renderer/gfx-vulkan/VKBuffer.h +++ b/native/cocos/renderer/gfx-vulkan/VKBuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKCommandBuffer.cpp b/native/cocos/renderer/gfx-vulkan/VKCommandBuffer.cpp index 985f0f495a..e9c7fc9e43 100644 --- a/native/cocos/renderer/gfx-vulkan/VKCommandBuffer.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKCommandBuffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKCommandBuffer.h b/native/cocos/renderer/gfx-vulkan/VKCommandBuffer.h index 785b6a56dc..886a396c52 100644 --- a/native/cocos/renderer/gfx-vulkan/VKCommandBuffer.h +++ b/native/cocos/renderer/gfx-vulkan/VKCommandBuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKCommands.cpp b/native/cocos/renderer/gfx-vulkan/VKCommands.cpp index 047d0a0587..4b9d5feae1 100644 --- a/native/cocos/renderer/gfx-vulkan/VKCommands.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKCommands.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKCommands.h b/native/cocos/renderer/gfx-vulkan/VKCommands.h index 9bca940d8c..933acbe01a 100644 --- a/native/cocos/renderer/gfx-vulkan/VKCommands.h +++ b/native/cocos/renderer/gfx-vulkan/VKCommands.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKDescriptorSet.cpp b/native/cocos/renderer/gfx-vulkan/VKDescriptorSet.cpp index bce83d2975..c4ecb14b0e 100644 --- a/native/cocos/renderer/gfx-vulkan/VKDescriptorSet.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKDescriptorSet.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKDescriptorSet.h b/native/cocos/renderer/gfx-vulkan/VKDescriptorSet.h index 74a38e7e99..b7b8a8e57e 100644 --- a/native/cocos/renderer/gfx-vulkan/VKDescriptorSet.h +++ b/native/cocos/renderer/gfx-vulkan/VKDescriptorSet.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKDescriptorSetLayout.cpp b/native/cocos/renderer/gfx-vulkan/VKDescriptorSetLayout.cpp index 7cf6313c73..bdb63a0661 100644 --- a/native/cocos/renderer/gfx-vulkan/VKDescriptorSetLayout.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKDescriptorSetLayout.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKDescriptorSetLayout.h b/native/cocos/renderer/gfx-vulkan/VKDescriptorSetLayout.h index 801da2e9f3..73dddbcd1e 100644 --- a/native/cocos/renderer/gfx-vulkan/VKDescriptorSetLayout.h +++ b/native/cocos/renderer/gfx-vulkan/VKDescriptorSetLayout.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKDevice.cpp b/native/cocos/renderer/gfx-vulkan/VKDevice.cpp index b2b64dd31e..8badeefd1d 100644 --- a/native/cocos/renderer/gfx-vulkan/VKDevice.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKDevice.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKDevice.h b/native/cocos/renderer/gfx-vulkan/VKDevice.h index 715d9a0dbe..f09b5c5adf 100644 --- a/native/cocos/renderer/gfx-vulkan/VKDevice.h +++ b/native/cocos/renderer/gfx-vulkan/VKDevice.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKFramebuffer.cpp b/native/cocos/renderer/gfx-vulkan/VKFramebuffer.cpp index 3d63a8b830..2c9bb9231b 100644 --- a/native/cocos/renderer/gfx-vulkan/VKFramebuffer.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKFramebuffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKFramebuffer.h b/native/cocos/renderer/gfx-vulkan/VKFramebuffer.h index 3b49cfaaef..156d29417a 100644 --- a/native/cocos/renderer/gfx-vulkan/VKFramebuffer.h +++ b/native/cocos/renderer/gfx-vulkan/VKFramebuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKGPUContext.cpp b/native/cocos/renderer/gfx-vulkan/VKGPUContext.cpp index 82d2ba077e..59c2f53651 100644 --- a/native/cocos/renderer/gfx-vulkan/VKGPUContext.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKGPUContext.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKGPUObjects.h b/native/cocos/renderer/gfx-vulkan/VKGPUObjects.h index 65ef3bd57a..a95f29b8e0 100644 --- a/native/cocos/renderer/gfx-vulkan/VKGPUObjects.h +++ b/native/cocos/renderer/gfx-vulkan/VKGPUObjects.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKInputAssembler.cpp b/native/cocos/renderer/gfx-vulkan/VKInputAssembler.cpp index 3fa6bfa69a..175c9b2fb2 100644 --- a/native/cocos/renderer/gfx-vulkan/VKInputAssembler.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKInputAssembler.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKInputAssembler.h b/native/cocos/renderer/gfx-vulkan/VKInputAssembler.h index 3ef7b3b339..f6d1e4eb12 100644 --- a/native/cocos/renderer/gfx-vulkan/VKInputAssembler.h +++ b/native/cocos/renderer/gfx-vulkan/VKInputAssembler.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKPipelineLayout.cpp b/native/cocos/renderer/gfx-vulkan/VKPipelineLayout.cpp index d3cffc5510..575bc743e3 100644 --- a/native/cocos/renderer/gfx-vulkan/VKPipelineLayout.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKPipelineLayout.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKPipelineLayout.h b/native/cocos/renderer/gfx-vulkan/VKPipelineLayout.h index df6016b54a..3f2b765ff5 100644 --- a/native/cocos/renderer/gfx-vulkan/VKPipelineLayout.h +++ b/native/cocos/renderer/gfx-vulkan/VKPipelineLayout.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKPipelineState.cpp b/native/cocos/renderer/gfx-vulkan/VKPipelineState.cpp index c74182ec5f..5328e08834 100644 --- a/native/cocos/renderer/gfx-vulkan/VKPipelineState.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKPipelineState.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKPipelineState.h b/native/cocos/renderer/gfx-vulkan/VKPipelineState.h index ea9c1ce7d6..3147bb4bbc 100644 --- a/native/cocos/renderer/gfx-vulkan/VKPipelineState.h +++ b/native/cocos/renderer/gfx-vulkan/VKPipelineState.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKQueryPool.cpp b/native/cocos/renderer/gfx-vulkan/VKQueryPool.cpp index 13c27fbe58..879d8a41d8 100644 --- a/native/cocos/renderer/gfx-vulkan/VKQueryPool.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKQueryPool.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKQueryPool.h b/native/cocos/renderer/gfx-vulkan/VKQueryPool.h index 559c35313c..a5fff32da0 100644 --- a/native/cocos/renderer/gfx-vulkan/VKQueryPool.h +++ b/native/cocos/renderer/gfx-vulkan/VKQueryPool.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKQueue.cpp b/native/cocos/renderer/gfx-vulkan/VKQueue.cpp index 522a4e7003..09bc6d7202 100644 --- a/native/cocos/renderer/gfx-vulkan/VKQueue.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKQueue.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKQueue.h b/native/cocos/renderer/gfx-vulkan/VKQueue.h index 1d9d21fe7a..83b637398b 100644 --- a/native/cocos/renderer/gfx-vulkan/VKQueue.h +++ b/native/cocos/renderer/gfx-vulkan/VKQueue.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKRenderPass.cpp b/native/cocos/renderer/gfx-vulkan/VKRenderPass.cpp index a74df8fc06..c33ab82cf0 100644 --- a/native/cocos/renderer/gfx-vulkan/VKRenderPass.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKRenderPass.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKRenderPass.h b/native/cocos/renderer/gfx-vulkan/VKRenderPass.h index 8b6b33ebcf..45b71f5ccd 100644 --- a/native/cocos/renderer/gfx-vulkan/VKRenderPass.h +++ b/native/cocos/renderer/gfx-vulkan/VKRenderPass.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKShader.cpp b/native/cocos/renderer/gfx-vulkan/VKShader.cpp index 3dca39c09a..85a7edc1fa 100644 --- a/native/cocos/renderer/gfx-vulkan/VKShader.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKShader.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKShader.h b/native/cocos/renderer/gfx-vulkan/VKShader.h index 70acbc32eb..e33df32750 100644 --- a/native/cocos/renderer/gfx-vulkan/VKShader.h +++ b/native/cocos/renderer/gfx-vulkan/VKShader.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKStd.cpp b/native/cocos/renderer/gfx-vulkan/VKStd.cpp index 1fd9a74a38..09dda236ba 100644 --- a/native/cocos/renderer/gfx-vulkan/VKStd.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKStd.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKStd.h b/native/cocos/renderer/gfx-vulkan/VKStd.h index d65dd00963..b7e0e17975 100644 --- a/native/cocos/renderer/gfx-vulkan/VKStd.h +++ b/native/cocos/renderer/gfx-vulkan/VKStd.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKSwapchain.cpp b/native/cocos/renderer/gfx-vulkan/VKSwapchain.cpp index 83f7a03b3f..bb34c3f1d3 100644 --- a/native/cocos/renderer/gfx-vulkan/VKSwapchain.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKSwapchain.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKSwapchain.h b/native/cocos/renderer/gfx-vulkan/VKSwapchain.h index c2216d4a2f..f86b2c0f64 100644 --- a/native/cocos/renderer/gfx-vulkan/VKSwapchain.h +++ b/native/cocos/renderer/gfx-vulkan/VKSwapchain.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKTexture.cpp b/native/cocos/renderer/gfx-vulkan/VKTexture.cpp index 677e956b65..3ecbda6a5f 100644 --- a/native/cocos/renderer/gfx-vulkan/VKTexture.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKTexture.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKTexture.h b/native/cocos/renderer/gfx-vulkan/VKTexture.h index 8ada991c93..1935c81651 100644 --- a/native/cocos/renderer/gfx-vulkan/VKTexture.h +++ b/native/cocos/renderer/gfx-vulkan/VKTexture.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKUtils.cpp b/native/cocos/renderer/gfx-vulkan/VKUtils.cpp index 7e52adda89..8915fb4300 100644 --- a/native/cocos/renderer/gfx-vulkan/VKUtils.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKUtils.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKUtils.h b/native/cocos/renderer/gfx-vulkan/VKUtils.h index c4c19983d1..6edfa7ff1f 100644 --- a/native/cocos/renderer/gfx-vulkan/VKUtils.h +++ b/native/cocos/renderer/gfx-vulkan/VKUtils.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/states/VKGlobalBarrier.cpp b/native/cocos/renderer/gfx-vulkan/states/VKGlobalBarrier.cpp index 025bb4334b..2a37f04e02 100644 --- a/native/cocos/renderer/gfx-vulkan/states/VKGlobalBarrier.cpp +++ b/native/cocos/renderer/gfx-vulkan/states/VKGlobalBarrier.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/states/VKGlobalBarrier.h b/native/cocos/renderer/gfx-vulkan/states/VKGlobalBarrier.h index cc6f0eabc4..2de9bf048b 100644 --- a/native/cocos/renderer/gfx-vulkan/states/VKGlobalBarrier.h +++ b/native/cocos/renderer/gfx-vulkan/states/VKGlobalBarrier.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/states/VKSampler.cpp b/native/cocos/renderer/gfx-vulkan/states/VKSampler.cpp index 580f4e9843..f728f264de 100644 --- a/native/cocos/renderer/gfx-vulkan/states/VKSampler.cpp +++ b/native/cocos/renderer/gfx-vulkan/states/VKSampler.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/states/VKSampler.h b/native/cocos/renderer/gfx-vulkan/states/VKSampler.h index 0262bc3a42..51be3041d2 100644 --- a/native/cocos/renderer/gfx-vulkan/states/VKSampler.h +++ b/native/cocos/renderer/gfx-vulkan/states/VKSampler.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/states/VKTextureBarrier.cpp b/native/cocos/renderer/gfx-vulkan/states/VKTextureBarrier.cpp index 874d6e1851..aa1fdb916e 100644 --- a/native/cocos/renderer/gfx-vulkan/states/VKTextureBarrier.cpp +++ b/native/cocos/renderer/gfx-vulkan/states/VKTextureBarrier.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/states/VKTextureBarrier.h b/native/cocos/renderer/gfx-vulkan/states/VKTextureBarrier.h index d4f964b8f7..47eb1fe3e6 100644 --- a/native/cocos/renderer/gfx-vulkan/states/VKTextureBarrier.h +++ b/native/cocos/renderer/gfx-vulkan/states/VKTextureBarrier.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/BatchedBuffer.cpp b/native/cocos/renderer/pipeline/BatchedBuffer.cpp index 7e644b3ad7..730811a9e3 100644 --- a/native/cocos/renderer/pipeline/BatchedBuffer.cpp +++ b/native/cocos/renderer/pipeline/BatchedBuffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/BatchedBuffer.h b/native/cocos/renderer/pipeline/BatchedBuffer.h index d49c0220e5..c50a70d127 100644 --- a/native/cocos/renderer/pipeline/BatchedBuffer.h +++ b/native/cocos/renderer/pipeline/BatchedBuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/ClusterLightCulling.cpp b/native/cocos/renderer/pipeline/ClusterLightCulling.cpp index a32bd80d17..57b998c02c 100644 --- a/native/cocos/renderer/pipeline/ClusterLightCulling.cpp +++ b/native/cocos/renderer/pipeline/ClusterLightCulling.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/ClusterLightCulling.h b/native/cocos/renderer/pipeline/ClusterLightCulling.h index 2cc4a616a9..3255265b94 100644 --- a/native/cocos/renderer/pipeline/ClusterLightCulling.h +++ b/native/cocos/renderer/pipeline/ClusterLightCulling.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #pragma once #include "cocos/renderer/gfx-base/GFXDef.h" diff --git a/native/cocos/renderer/pipeline/Define.cpp b/native/cocos/renderer/pipeline/Define.cpp index fd65fc993c..13053cf5fa 100644 --- a/native/cocos/renderer/pipeline/Define.cpp +++ b/native/cocos/renderer/pipeline/Define.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/Define.h b/native/cocos/renderer/pipeline/Define.h index 6102f078be..437b7b6ddc 100644 --- a/native/cocos/renderer/pipeline/Define.h +++ b/native/cocos/renderer/pipeline/Define.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/Enum.h b/native/cocos/renderer/pipeline/Enum.h index 88624a631d..8470212eaa 100644 --- a/native/cocos/renderer/pipeline/Enum.h +++ b/native/cocos/renderer/pipeline/Enum.h @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #pragma once enum class CommonInsertPoint { diff --git a/native/cocos/renderer/pipeline/GeometryRenderer.cpp b/native/cocos/renderer/pipeline/GeometryRenderer.cpp index 5b697b1905..c931e69422 100644 --- a/native/cocos/renderer/pipeline/GeometryRenderer.cpp +++ b/native/cocos/renderer/pipeline/GeometryRenderer.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "GeometryRenderer.h" #include diff --git a/native/cocos/renderer/pipeline/GeometryRenderer.h b/native/cocos/renderer/pipeline/GeometryRenderer.h index 7bc029f0c3..87aad7e6c1 100644 --- a/native/cocos/renderer/pipeline/GeometryRenderer.h +++ b/native/cocos/renderer/pipeline/GeometryRenderer.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/renderer/pipeline/GlobalDescriptorSetManager.cpp b/native/cocos/renderer/pipeline/GlobalDescriptorSetManager.cpp index f58d8fabab..7e75433b0d 100644 --- a/native/cocos/renderer/pipeline/GlobalDescriptorSetManager.cpp +++ b/native/cocos/renderer/pipeline/GlobalDescriptorSetManager.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/GlobalDescriptorSetManager.h b/native/cocos/renderer/pipeline/GlobalDescriptorSetManager.h index 506f33596e..9e498099e8 100644 --- a/native/cocos/renderer/pipeline/GlobalDescriptorSetManager.h +++ b/native/cocos/renderer/pipeline/GlobalDescriptorSetManager.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/InstancedBuffer.cpp b/native/cocos/renderer/pipeline/InstancedBuffer.cpp index c8e048d959..1746271090 100644 --- a/native/cocos/renderer/pipeline/InstancedBuffer.cpp +++ b/native/cocos/renderer/pipeline/InstancedBuffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/InstancedBuffer.h b/native/cocos/renderer/pipeline/InstancedBuffer.h index c344c8f321..f86c97f353 100644 --- a/native/cocos/renderer/pipeline/InstancedBuffer.h +++ b/native/cocos/renderer/pipeline/InstancedBuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/PipelineSceneData.cpp b/native/cocos/renderer/pipeline/PipelineSceneData.cpp index d386f2c466..e98bf3c7bb 100644 --- a/native/cocos/renderer/pipeline/PipelineSceneData.cpp +++ b/native/cocos/renderer/pipeline/PipelineSceneData.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/PipelineSceneData.h b/native/cocos/renderer/pipeline/PipelineSceneData.h index e1d2b63e1f..26824fa528 100644 --- a/native/cocos/renderer/pipeline/PipelineSceneData.h +++ b/native/cocos/renderer/pipeline/PipelineSceneData.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/PipelineStateManager.cpp b/native/cocos/renderer/pipeline/PipelineStateManager.cpp index ab23e17100..e6bed0e2f9 100644 --- a/native/cocos/renderer/pipeline/PipelineStateManager.cpp +++ b/native/cocos/renderer/pipeline/PipelineStateManager.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/PipelineStateManager.h b/native/cocos/renderer/pipeline/PipelineStateManager.h index 26339d417d..00970e9fc7 100644 --- a/native/cocos/renderer/pipeline/PipelineStateManager.h +++ b/native/cocos/renderer/pipeline/PipelineStateManager.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/PipelineUBO.cpp b/native/cocos/renderer/pipeline/PipelineUBO.cpp index 5167f8e1d5..6514c27c5d 100644 --- a/native/cocos/renderer/pipeline/PipelineUBO.cpp +++ b/native/cocos/renderer/pipeline/PipelineUBO.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/PipelineUBO.h b/native/cocos/renderer/pipeline/PipelineUBO.h index 9a1b17c47d..489da6ee49 100644 --- a/native/cocos/renderer/pipeline/PipelineUBO.h +++ b/native/cocos/renderer/pipeline/PipelineUBO.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/PlanarShadowQueue.cpp b/native/cocos/renderer/pipeline/PlanarShadowQueue.cpp index 838d3b851c..0d7fec80f0 100644 --- a/native/cocos/renderer/pipeline/PlanarShadowQueue.cpp +++ b/native/cocos/renderer/pipeline/PlanarShadowQueue.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/PlanarShadowQueue.h b/native/cocos/renderer/pipeline/PlanarShadowQueue.h index 1e79d1dcab..b3a9f9a7cf 100644 --- a/native/cocos/renderer/pipeline/PlanarShadowQueue.h +++ b/native/cocos/renderer/pipeline/PlanarShadowQueue.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/RenderAdditiveLightQueue.cpp b/native/cocos/renderer/pipeline/RenderAdditiveLightQueue.cpp index 27f7ef2a64..d3de2f5ec7 100644 --- a/native/cocos/renderer/pipeline/RenderAdditiveLightQueue.cpp +++ b/native/cocos/renderer/pipeline/RenderAdditiveLightQueue.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/RenderAdditiveLightQueue.h b/native/cocos/renderer/pipeline/RenderAdditiveLightQueue.h index 283bf90e1e..054db409e7 100644 --- a/native/cocos/renderer/pipeline/RenderAdditiveLightQueue.h +++ b/native/cocos/renderer/pipeline/RenderAdditiveLightQueue.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/RenderBatchedQueue.cpp b/native/cocos/renderer/pipeline/RenderBatchedQueue.cpp index c1736cebb6..cd978b401f 100644 --- a/native/cocos/renderer/pipeline/RenderBatchedQueue.cpp +++ b/native/cocos/renderer/pipeline/RenderBatchedQueue.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/RenderBatchedQueue.h b/native/cocos/renderer/pipeline/RenderBatchedQueue.h index daa1029cc6..220be8873f 100644 --- a/native/cocos/renderer/pipeline/RenderBatchedQueue.h +++ b/native/cocos/renderer/pipeline/RenderBatchedQueue.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/RenderFlow.cpp b/native/cocos/renderer/pipeline/RenderFlow.cpp index a6b750c3a3..7ddb415c8f 100644 --- a/native/cocos/renderer/pipeline/RenderFlow.cpp +++ b/native/cocos/renderer/pipeline/RenderFlow.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/RenderFlow.h b/native/cocos/renderer/pipeline/RenderFlow.h index 6e064c65b3..8cca303011 100644 --- a/native/cocos/renderer/pipeline/RenderFlow.h +++ b/native/cocos/renderer/pipeline/RenderFlow.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/RenderInstancedQueue.cpp b/native/cocos/renderer/pipeline/RenderInstancedQueue.cpp index 48bc640746..fd730cad9b 100644 --- a/native/cocos/renderer/pipeline/RenderInstancedQueue.cpp +++ b/native/cocos/renderer/pipeline/RenderInstancedQueue.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/RenderInstancedQueue.h b/native/cocos/renderer/pipeline/RenderInstancedQueue.h index 4269ebaccc..93bc759697 100644 --- a/native/cocos/renderer/pipeline/RenderInstancedQueue.h +++ b/native/cocos/renderer/pipeline/RenderInstancedQueue.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/RenderPipeline.cpp b/native/cocos/renderer/pipeline/RenderPipeline.cpp index 5b780e8f9e..8f60c4ab1e 100644 --- a/native/cocos/renderer/pipeline/RenderPipeline.cpp +++ b/native/cocos/renderer/pipeline/RenderPipeline.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/RenderPipeline.h b/native/cocos/renderer/pipeline/RenderPipeline.h index 52194df440..60a88776dd 100644 --- a/native/cocos/renderer/pipeline/RenderPipeline.h +++ b/native/cocos/renderer/pipeline/RenderPipeline.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/RenderQueue.cpp b/native/cocos/renderer/pipeline/RenderQueue.cpp index be0e47f976..1cb5669bf6 100644 --- a/native/cocos/renderer/pipeline/RenderQueue.cpp +++ b/native/cocos/renderer/pipeline/RenderQueue.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/RenderQueue.h b/native/cocos/renderer/pipeline/RenderQueue.h index 676ba7548a..e6372f46e7 100644 --- a/native/cocos/renderer/pipeline/RenderQueue.h +++ b/native/cocos/renderer/pipeline/RenderQueue.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/RenderStage.cpp b/native/cocos/renderer/pipeline/RenderStage.cpp index c2cba49538..933bf82c08 100644 --- a/native/cocos/renderer/pipeline/RenderStage.cpp +++ b/native/cocos/renderer/pipeline/RenderStage.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/RenderStage.h b/native/cocos/renderer/pipeline/RenderStage.h index 00e3bbe484..ebfaf0e6d8 100644 --- a/native/cocos/renderer/pipeline/RenderStage.h +++ b/native/cocos/renderer/pipeline/RenderStage.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/SceneCulling.cpp b/native/cocos/renderer/pipeline/SceneCulling.cpp index e90cc92f0c..9d9f722c88 100644 --- a/native/cocos/renderer/pipeline/SceneCulling.cpp +++ b/native/cocos/renderer/pipeline/SceneCulling.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/SceneCulling.h b/native/cocos/renderer/pipeline/SceneCulling.h index e8e9c3901c..ed8928be2d 100644 --- a/native/cocos/renderer/pipeline/SceneCulling.h +++ b/native/cocos/renderer/pipeline/SceneCulling.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/ShadowMapBatchedQueue.cpp b/native/cocos/renderer/pipeline/ShadowMapBatchedQueue.cpp index 4e9c268050..e72851916c 100644 --- a/native/cocos/renderer/pipeline/ShadowMapBatchedQueue.cpp +++ b/native/cocos/renderer/pipeline/ShadowMapBatchedQueue.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/ShadowMapBatchedQueue.h b/native/cocos/renderer/pipeline/ShadowMapBatchedQueue.h index fcb90d478a..377a3be262 100644 --- a/native/cocos/renderer/pipeline/ShadowMapBatchedQueue.h +++ b/native/cocos/renderer/pipeline/ShadowMapBatchedQueue.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/UIPhase.cpp b/native/cocos/renderer/pipeline/UIPhase.cpp index e87b91a184..4013e2e12a 100644 --- a/native/cocos/renderer/pipeline/UIPhase.cpp +++ b/native/cocos/renderer/pipeline/UIPhase.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/UIPhase.h b/native/cocos/renderer/pipeline/UIPhase.h index 7ef52d89bd..e57be56e36 100644 --- a/native/cocos/renderer/pipeline/UIPhase.h +++ b/native/cocos/renderer/pipeline/UIPhase.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/forward/ForwardFlow.cpp b/native/cocos/renderer/pipeline/forward/ForwardFlow.cpp index b47784aa0c..e60fae7538 100644 --- a/native/cocos/renderer/pipeline/forward/ForwardFlow.cpp +++ b/native/cocos/renderer/pipeline/forward/ForwardFlow.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/forward/ForwardFlow.h b/native/cocos/renderer/pipeline/forward/ForwardFlow.h index 096fc15765..ca26b0d32b 100644 --- a/native/cocos/renderer/pipeline/forward/ForwardFlow.h +++ b/native/cocos/renderer/pipeline/forward/ForwardFlow.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/forward/ForwardPipeline.cpp b/native/cocos/renderer/pipeline/forward/ForwardPipeline.cpp index bb982170c8..9ffc249786 100644 --- a/native/cocos/renderer/pipeline/forward/ForwardPipeline.cpp +++ b/native/cocos/renderer/pipeline/forward/ForwardPipeline.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/forward/ForwardPipeline.h b/native/cocos/renderer/pipeline/forward/ForwardPipeline.h index 45e6ca217f..1e2cd24890 100644 --- a/native/cocos/renderer/pipeline/forward/ForwardPipeline.h +++ b/native/cocos/renderer/pipeline/forward/ForwardPipeline.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/forward/ForwardStage.cpp b/native/cocos/renderer/pipeline/forward/ForwardStage.cpp index f254e38737..6006783aaf 100644 --- a/native/cocos/renderer/pipeline/forward/ForwardStage.cpp +++ b/native/cocos/renderer/pipeline/forward/ForwardStage.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/forward/ForwardStage.h b/native/cocos/renderer/pipeline/forward/ForwardStage.h index 789e22fdf9..bcf7352d06 100644 --- a/native/cocos/renderer/pipeline/forward/ForwardStage.h +++ b/native/cocos/renderer/pipeline/forward/ForwardStage.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/helper/DefineMap.cpp b/native/cocos/renderer/pipeline/helper/DefineMap.cpp index da98818eb6..a4b4063434 100644 --- a/native/cocos/renderer/pipeline/helper/DefineMap.cpp +++ b/native/cocos/renderer/pipeline/helper/DefineMap.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/helper/DefineMap.h b/native/cocos/renderer/pipeline/helper/DefineMap.h index 20ac0f9874..42da62b698 100644 --- a/native/cocos/renderer/pipeline/helper/DefineMap.h +++ b/native/cocos/renderer/pipeline/helper/DefineMap.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/helper/Utils.h b/native/cocos/renderer/pipeline/helper/Utils.h index 1e821c1705..309d17108e 100644 --- a/native/cocos/renderer/pipeline/helper/Utils.h +++ b/native/cocos/renderer/pipeline/helper/Utils.h @@ -1,88 +1,88 @@ -/**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. - - http://www.cocos.com - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated engine source code (the "Software"), a limited, - worldwide, royalty-free, non-assignable, revocable and non-exclusive license - to use Cocos Creator solely to develop games on your target platforms. You shall - not use Cocos Creator software for developing other software or tools that's - used for developing games. You are not granted to publish, distribute, - sublicense, and/or sell copies of Cocos Creator. - - The software or tools in this License Agreement are licensed, not sold. - Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - THE SOFTWARE. -****************************************************************************/ - -#pragma once - -#include "../PipelineStateManager.h" -#include "gfx-base/GFXCommandBuffer.h" -#include "gfx-base/GFXDef-common.h" -#include "gfx-base/GFXDef.h" -#include "gfx-base/GFXSwapchain.h" -#include "pipeline/Define.h" -#include "scene/Model.h" -#include "scene/SubModel.h" -#include "scene/Camera.h" - -namespace cc { -namespace pipeline { - -inline void srgbToLinear(gfx::Color *out, const gfx::Color &gamma) { - out->x = gamma.x * gamma.x; - out->y = gamma.y * gamma.y; - out->z = gamma.z * gamma.z; -} - -inline void linearToSrgb(gfx::Color *out, const gfx::Color &linear) { - out->x = std::sqrt(linear.x); - out->y = std::sqrt(linear.y); - out->z = std::sqrt(linear.z); -} - -extern const scene::Camera *profilerCamera; - -inline void decideProfilerCamera(const vector &cameras) { - for (int i = static_cast(cameras.size() - 1); i >= 0; --i) { - if (cameras[i]->window->swapchain) { - profilerCamera = cameras[i]; - return; - } - } - profilerCamera = nullptr; -} - -inline void renderProfiler(gfx::RenderPass *renderPass, gfx::CommandBuffer *cmdBuff, scene::Model *profiler, const scene::Camera *camera) { - if (profiler && profiler->getEnabled() && camera == profilerCamera) { - auto *submodel = profiler->getSubModels()[0]; - auto *pass = submodel->getPass(0); - auto *ia = submodel->getInputAssembler(); - auto *pso = PipelineStateManager::getOrCreatePipelineState(pass, submodel->getShader(0), ia, renderPass); - - gfx::Viewport profilerViewport; - gfx::Rect profilerScissor; - profilerViewport.width = profilerScissor.width = camera->window->getWidth(); - profilerViewport.height = profilerScissor.height = camera->window->getHeight(); - cmdBuff->setViewport(profilerViewport); - cmdBuff->setScissor(profilerScissor); - - cmdBuff->bindPipelineState(pso); - cmdBuff->bindDescriptorSet(materialSet, pass->getDescriptorSet()); - cmdBuff->bindDescriptorSet(localSet, submodel->getDescriptorSet()); - cmdBuff->bindInputAssembler(ia); - cmdBuff->draw(ia); - } -} - -} // namespace pipeline -} // namespace cc +/**************************************************************************** + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + +#pragma once + +#include "../PipelineStateManager.h" +#include "gfx-base/GFXCommandBuffer.h" +#include "gfx-base/GFXDef-common.h" +#include "gfx-base/GFXDef.h" +#include "gfx-base/GFXSwapchain.h" +#include "pipeline/Define.h" +#include "scene/Model.h" +#include "scene/SubModel.h" +#include "scene/Camera.h" + +namespace cc { +namespace pipeline { + +inline void srgbToLinear(gfx::Color *out, const gfx::Color &gamma) { + out->x = gamma.x * gamma.x; + out->y = gamma.y * gamma.y; + out->z = gamma.z * gamma.z; +} + +inline void linearToSrgb(gfx::Color *out, const gfx::Color &linear) { + out->x = std::sqrt(linear.x); + out->y = std::sqrt(linear.y); + out->z = std::sqrt(linear.z); +} + +extern const scene::Camera *profilerCamera; + +inline void decideProfilerCamera(const vector &cameras) { + for (int i = static_cast(cameras.size() - 1); i >= 0; --i) { + if (cameras[i]->window->swapchain) { + profilerCamera = cameras[i]; + return; + } + } + profilerCamera = nullptr; +} + +inline void renderProfiler(gfx::RenderPass *renderPass, gfx::CommandBuffer *cmdBuff, scene::Model *profiler, const scene::Camera *camera) { + if (profiler && profiler->getEnabled() && camera == profilerCamera) { + auto *submodel = profiler->getSubModels()[0]; + auto *pass = submodel->getPass(0); + auto *ia = submodel->getInputAssembler(); + auto *pso = PipelineStateManager::getOrCreatePipelineState(pass, submodel->getShader(0), ia, renderPass); + + gfx::Viewport profilerViewport; + gfx::Rect profilerScissor; + profilerViewport.width = profilerScissor.width = camera->window->getWidth(); + profilerViewport.height = profilerScissor.height = camera->window->getHeight(); + cmdBuff->setViewport(profilerViewport); + cmdBuff->setScissor(profilerScissor); + + cmdBuff->bindPipelineState(pso); + cmdBuff->bindDescriptorSet(materialSet, pass->getDescriptorSet()); + cmdBuff->bindDescriptorSet(localSet, submodel->getDescriptorSet()); + cmdBuff->bindInputAssembler(ia); + cmdBuff->draw(ia); + } +} + +} // namespace pipeline +} // namespace cc diff --git a/native/cocos/renderer/pipeline/shadow/ShadowFlow.cpp b/native/cocos/renderer/pipeline/shadow/ShadowFlow.cpp index f792175915..d3ea3d30ed 100644 --- a/native/cocos/renderer/pipeline/shadow/ShadowFlow.cpp +++ b/native/cocos/renderer/pipeline/shadow/ShadowFlow.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/shadow/ShadowFlow.h b/native/cocos/renderer/pipeline/shadow/ShadowFlow.h index b9b2e61c99..e5fca96c3e 100644 --- a/native/cocos/renderer/pipeline/shadow/ShadowFlow.h +++ b/native/cocos/renderer/pipeline/shadow/ShadowFlow.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/shadow/ShadowStage.cpp b/native/cocos/renderer/pipeline/shadow/ShadowStage.cpp index a37d791b12..76ce2bb59a 100644 --- a/native/cocos/renderer/pipeline/shadow/ShadowStage.cpp +++ b/native/cocos/renderer/pipeline/shadow/ShadowStage.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/shadow/ShadowStage.h b/native/cocos/renderer/pipeline/shadow/ShadowStage.h index 5cf5fb3b27..9fbf6b9e67 100644 --- a/native/cocos/renderer/pipeline/shadow/ShadowStage.h +++ b/native/cocos/renderer/pipeline/shadow/ShadowStage.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/scene/AABB.cpp b/native/cocos/scene/AABB.cpp index cbdbe7af66..80d55c4217 100644 --- a/native/cocos/scene/AABB.cpp +++ b/native/cocos/scene/AABB.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "AABB.h" diff --git a/native/cocos/scene/AABB.h b/native/cocos/scene/AABB.h index 8f2be0b001..2798849dc9 100644 --- a/native/cocos/scene/AABB.h +++ b/native/cocos/scene/AABB.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/scene/BakedSkinningModel.cpp b/native/cocos/scene/BakedSkinningModel.cpp index 638b29260f..0fd4130c8e 100644 --- a/native/cocos/scene/BakedSkinningModel.cpp +++ b/native/cocos/scene/BakedSkinningModel.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ + #include "scene/BakedSkinningModel.h" #include "scene/RenderScene.h" diff --git a/native/cocos/scene/BakedSkinningModel.h b/native/cocos/scene/BakedSkinningModel.h index 0849ee586b..8fa27c12dc 100644 --- a/native/cocos/scene/BakedSkinningModel.h +++ b/native/cocos/scene/BakedSkinningModel.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/scene/BaseNode.cpp b/native/cocos/scene/BaseNode.cpp index bead4ea801..91bc3ef30c 100644 --- a/native/cocos/scene/BaseNode.cpp +++ b/native/cocos/scene/BaseNode.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "scene/BaseNode.h" diff --git a/native/cocos/scene/BaseNode.h b/native/cocos/scene/BaseNode.h index 12151006df..777770e56d 100644 --- a/native/cocos/scene/BaseNode.h +++ b/native/cocos/scene/BaseNode.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once #include diff --git a/native/cocos/scene/Camera.h b/native/cocos/scene/Camera.h index 8ea61afd92..b554220045 100644 --- a/native/cocos/scene/Camera.h +++ b/native/cocos/scene/Camera.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/scene/Define.cpp b/native/cocos/scene/Define.cpp index 16b183278d..8e36e6d032 100644 --- a/native/cocos/scene/Define.cpp +++ b/native/cocos/scene/Define.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "scene/Define.h" diff --git a/native/cocos/scene/Define.h b/native/cocos/scene/Define.h index b992fca0c6..055434ad3a 100644 --- a/native/cocos/scene/Define.h +++ b/native/cocos/scene/Define.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/scene/DirectionalLight.cpp b/native/cocos/scene/DirectionalLight.cpp index 14953eb18b..64927eee75 100644 --- a/native/cocos/scene/DirectionalLight.cpp +++ b/native/cocos/scene/DirectionalLight.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "scene/DirectionalLight.h" diff --git a/native/cocos/scene/DirectionalLight.h b/native/cocos/scene/DirectionalLight.h index e0d30ae95b..c181f183c1 100644 --- a/native/cocos/scene/DirectionalLight.h +++ b/native/cocos/scene/DirectionalLight.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/scene/DrawBatch2D.h b/native/cocos/scene/DrawBatch2D.h index 42a453406d..38bcbf2bf3 100644 --- a/native/cocos/scene/DrawBatch2D.h +++ b/native/cocos/scene/DrawBatch2D.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/scene/Frustum.cpp b/native/cocos/scene/Frustum.cpp index 939a4e617a..175d2be22a 100644 --- a/native/cocos/scene/Frustum.cpp +++ b/native/cocos/scene/Frustum.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "scene/Frustum.h" #include "scene/Define.h" diff --git a/native/cocos/scene/Frustum.h b/native/cocos/scene/Frustum.h index 7c99541a7c..286c2a9f13 100644 --- a/native/cocos/scene/Frustum.h +++ b/native/cocos/scene/Frustum.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/scene/Light.cpp b/native/cocos/scene/Light.cpp index 864a623c2c..20a3debdf1 100644 --- a/native/cocos/scene/Light.cpp +++ b/native/cocos/scene/Light.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "scene/Light.h" diff --git a/native/cocos/scene/Light.h b/native/cocos/scene/Light.h index c7c319b3d7..4068569e1d 100644 --- a/native/cocos/scene/Light.h +++ b/native/cocos/scene/Light.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/scene/Model.cpp b/native/cocos/scene/Model.cpp index 336e38642d..44391cfc9a 100644 --- a/native/cocos/scene/Model.cpp +++ b/native/cocos/scene/Model.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ + #include "scene/Model.h" #include "renderer/pipeline/Define.h" #include "renderer/pipeline/RenderPipeline.h" diff --git a/native/cocos/scene/Model.h b/native/cocos/scene/Model.h index 80c877e4f8..00b0e0dd7a 100644 --- a/native/cocos/scene/Model.h +++ b/native/cocos/scene/Model.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/scene/MorphModel.h b/native/cocos/scene/MorphModel.h index 78482e4bb1..e853ed8b4b 100644 --- a/native/cocos/scene/MorphModel.h +++ b/native/cocos/scene/MorphModel.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/scene/Node.cpp b/native/cocos/scene/Node.cpp index 8e9ba4be0d..cd17e85419 100644 --- a/native/cocos/scene/Node.cpp +++ b/native/cocos/scene/Node.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "scene/Node.h" #include "scene/Define.h" diff --git a/native/cocos/scene/Node.h b/native/cocos/scene/Node.h index 5c44472750..b6c60a47c4 100644 --- a/native/cocos/scene/Node.h +++ b/native/cocos/scene/Node.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/scene/Octree.cpp b/native/cocos/scene/Octree.cpp index fad5b39cf2..5b1eb6d144 100644 --- a/native/cocos/scene/Octree.cpp +++ b/native/cocos/scene/Octree.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "Octree.h" #include diff --git a/native/cocos/scene/Octree.h b/native/cocos/scene/Octree.h index 4b1d5bb525..4b43d748f2 100644 --- a/native/cocos/scene/Octree.h +++ b/native/cocos/scene/Octree.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/scene/Pass.cpp b/native/cocos/scene/Pass.cpp index 793d7076b3..3d7a116b07 100644 --- a/native/cocos/scene/Pass.cpp +++ b/native/cocos/scene/Pass.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "scene/Pass.h" diff --git a/native/cocos/scene/Pass.h b/native/cocos/scene/Pass.h index 8ec8037465..4a4ba40243 100644 --- a/native/cocos/scene/Pass.h +++ b/native/cocos/scene/Pass.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/scene/RenderScene.cpp b/native/cocos/scene/RenderScene.cpp index 6221c6a074..4ba6a7cb16 100644 --- a/native/cocos/scene/RenderScene.cpp +++ b/native/cocos/scene/RenderScene.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "scene/RenderScene.h" #include diff --git a/native/cocos/scene/RenderScene.h b/native/cocos/scene/RenderScene.h index 77224d8023..da4ea6e970 100644 --- a/native/cocos/scene/RenderScene.h +++ b/native/cocos/scene/RenderScene.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/scene/RenderWindow.h b/native/cocos/scene/RenderWindow.h index 1616dbbde1..446a48f301 100644 --- a/native/cocos/scene/RenderWindow.h +++ b/native/cocos/scene/RenderWindow.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/scene/Scene.cpp b/native/cocos/scene/Scene.cpp index d2eae55041..bdfe738739 100644 --- a/native/cocos/scene/Scene.cpp +++ b/native/cocos/scene/Scene.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ namespace cc { namespace scene { diff --git a/native/cocos/scene/Scene.h b/native/cocos/scene/Scene.h index 418d481cea..0770fb683e 100644 --- a/native/cocos/scene/Scene.h +++ b/native/cocos/scene/Scene.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once #include "scene/BaseNode.h" diff --git a/native/cocos/scene/SkinningModel.cpp b/native/cocos/scene/SkinningModel.cpp index 4a787ef56f..3e5c04291f 100644 --- a/native/cocos/scene/SkinningModel.cpp +++ b/native/cocos/scene/SkinningModel.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "scene/SkinningModel.h" #include diff --git a/native/cocos/scene/SkinningModel.h b/native/cocos/scene/SkinningModel.h index d2ef643c98..11d4adde75 100644 --- a/native/cocos/scene/SkinningModel.h +++ b/native/cocos/scene/SkinningModel.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/scene/Sphere.cpp b/native/cocos/scene/Sphere.cpp index fd70a75f73..1c41080c39 100644 --- a/native/cocos/scene/Sphere.cpp +++ b/native/cocos/scene/Sphere.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "scene/Sphere.h" #include diff --git a/native/cocos/scene/Sphere.h b/native/cocos/scene/Sphere.h index 5b45e6c501..af280f6a71 100644 --- a/native/cocos/scene/Sphere.h +++ b/native/cocos/scene/Sphere.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/scene/SphereLight.cpp b/native/cocos/scene/SphereLight.cpp index 44ac9d1bf8..3f593a6989 100644 --- a/native/cocos/scene/SphereLight.cpp +++ b/native/cocos/scene/SphereLight.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "scene/SphereLight.h" diff --git a/native/cocos/scene/SphereLight.h b/native/cocos/scene/SphereLight.h index b0f805a2cd..9233874a0f 100644 --- a/native/cocos/scene/SphereLight.h +++ b/native/cocos/scene/SphereLight.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/scene/SpotLight.cpp b/native/cocos/scene/SpotLight.cpp index 59bfcdfffa..2a6460d9e1 100644 --- a/native/cocos/scene/SpotLight.cpp +++ b/native/cocos/scene/SpotLight.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "scene/SpotLight.h" diff --git a/native/cocos/scene/SpotLight.h b/native/cocos/scene/SpotLight.h index 72120b02b2..9d659f2b36 100644 --- a/native/cocos/scene/SpotLight.h +++ b/native/cocos/scene/SpotLight.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/scene/SubModel.cpp b/native/cocos/scene/SubModel.cpp index d7838d1c83..44eb31b1f6 100644 --- a/native/cocos/scene/SubModel.cpp +++ b/native/cocos/scene/SubModel.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -21,7 +21,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ + #include "scene/SubModel.h" #include "scene/Pass.h" diff --git a/native/cocos/scene/SubModel.h b/native/cocos/scene/SubModel.h index 788133263f..f643364be0 100644 --- a/native/cocos/scene/SubModel.h +++ b/native/cocos/scene/SubModel.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/storage/local-storage/LocalStorage-android.cpp b/native/cocos/storage/local-storage/LocalStorage-android.cpp index 298fabda39..0bd4c0f4af 100644 --- a/native/cocos/storage/local-storage/LocalStorage-android.cpp +++ b/native/cocos/storage/local-storage/LocalStorage-android.cpp @@ -3,7 +3,7 @@ Copyright (c) 2013 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologic Inc. Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/storage/local-storage/LocalStorage.cpp b/native/cocos/storage/local-storage/LocalStorage.cpp index cca1455087..fa43b9d5ee 100644 --- a/native/cocos/storage/local-storage/LocalStorage.cpp +++ b/native/cocos/storage/local-storage/LocalStorage.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/storage/local-storage/LocalStorage.h b/native/cocos/storage/local-storage/LocalStorage.h index 0d59daf174..33815b2f2b 100644 --- a/native/cocos/storage/local-storage/LocalStorage.h +++ b/native/cocos/storage/local-storage/LocalStorage.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2012 Zynga Inc. Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/ui/edit-box/EditBox-android.cpp b/native/cocos/ui/edit-box/EditBox-android.cpp index 92f089295f..2949d3313b 100644 --- a/native/cocos/ui/edit-box/EditBox-android.cpp +++ b/native/cocos/ui/edit-box/EditBox-android.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/ui/edit-box/EditBox-ios.mm b/native/cocos/ui/edit-box/EditBox-ios.mm index 10aa9deb39..11995bfcc5 100644 --- a/native/cocos/ui/edit-box/EditBox-ios.mm +++ b/native/cocos/ui/edit-box/EditBox-ios.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/ui/edit-box/EditBox-linux.cpp b/native/cocos/ui/edit-box/EditBox-linux.cpp index 183d88b234..42060fc5a8 100644 --- a/native/cocos/ui/edit-box/EditBox-linux.cpp +++ b/native/cocos/ui/edit-box/EditBox-linux.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/ui/edit-box/EditBox-mac.mm b/native/cocos/ui/edit-box/EditBox-mac.mm index 4ebcaa02c3..d5ffe4a8de 100644 --- a/native/cocos/ui/edit-box/EditBox-mac.mm +++ b/native/cocos/ui/edit-box/EditBox-mac.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/ui/edit-box/EditBox-ohos.cpp b/native/cocos/ui/edit-box/EditBox-ohos.cpp index 4c6619fb36..202acd808f 100644 --- a/native/cocos/ui/edit-box/EditBox-ohos.cpp +++ b/native/cocos/ui/edit-box/EditBox-ohos.cpp @@ -1,18 +1,19 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. - + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -20,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "EditBox.h" #include "cocos/bindings/event/EventDispatcher.h" diff --git a/native/cocos/ui/edit-box/EditBox-win32.cpp b/native/cocos/ui/edit-box/EditBox-win32.cpp index cd5b43ec12..1a46575fd7 100644 --- a/native/cocos/ui/edit-box/EditBox-win32.cpp +++ b/native/cocos/ui/edit-box/EditBox-win32.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/ui/edit-box/EditBox.h b/native/cocos/ui/edit-box/EditBox.h index e7ce51c451..17e10b83c9 100644 --- a/native/cocos/ui/edit-box/EditBox.h +++ b/native/cocos/ui/edit-box/EditBox.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/ui/videoplayer/VideoPlayer-ios.mm b/native/cocos/ui/videoplayer/VideoPlayer-ios.mm index a3570b4d07..e58d0d4556 100644 --- a/native/cocos/ui/videoplayer/VideoPlayer-ios.mm +++ b/native/cocos/ui/videoplayer/VideoPlayer-ios.mm @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2016-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2016-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/ui/videoplayer/VideoPlayer-java.cpp b/native/cocos/ui/videoplayer/VideoPlayer-java.cpp index 57468f284b..80e1c504b7 100644 --- a/native/cocos/ui/videoplayer/VideoPlayer-java.cpp +++ b/native/cocos/ui/videoplayer/VideoPlayer-java.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014 Chukong Technologies Inc. - Copyright (c) undefined-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) undefined-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/ui/videoplayer/VideoPlayer.h b/native/cocos/ui/videoplayer/VideoPlayer.h index 0cf1d0e43d..c0da99eab9 100644 --- a/native/cocos/ui/videoplayer/VideoPlayer.h +++ b/native/cocos/ui/videoplayer/VideoPlayer.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2016-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2016-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/ui/webview/WebView-inl.h b/native/cocos/ui/webview/WebView-inl.h index 85fa5e57dc..ac304afe59 100644 --- a/native/cocos/ui/webview/WebView-inl.h +++ b/native/cocos/ui/webview/WebView-inl.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/ui/webview/WebView.h b/native/cocos/ui/webview/WebView.h index 434fd74915..61036f7b17 100644 --- a/native/cocos/ui/webview/WebView.h +++ b/native/cocos/ui/webview/WebView.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/ui/webview/WebViewImpl-android.cpp b/native/cocos/ui/webview/WebViewImpl-android.cpp index e1053dcd89..d89fde6db3 100644 --- a/native/cocos/ui/webview/WebViewImpl-android.cpp +++ b/native/cocos/ui/webview/WebViewImpl-android.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/ui/webview/WebViewImpl-ios.h b/native/cocos/ui/webview/WebViewImpl-ios.h index 6af385e3d7..1740d4ae20 100644 --- a/native/cocos/ui/webview/WebViewImpl-ios.h +++ b/native/cocos/ui/webview/WebViewImpl-ios.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/ui/webview/WebViewImpl-ios.mm b/native/cocos/ui/webview/WebViewImpl-ios.mm index 4df43f36f7..aa0a374be8 100644 --- a/native/cocos/ui/webview/WebViewImpl-ios.mm +++ b/native/cocos/ui/webview/WebViewImpl-ios.mm @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/ui/webview/WebViewImpl-java.h b/native/cocos/ui/webview/WebViewImpl-java.h index ed8371749d..6562816686 100644 --- a/native/cocos/ui/webview/WebViewImpl-java.h +++ b/native/cocos/ui/webview/WebViewImpl-java.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/ui/webview/WebViewImpl-ohos.cpp b/native/cocos/ui/webview/WebViewImpl-ohos.cpp index ef40514544..1e853ab1a6 100644 --- a/native/cocos/ui/webview/WebViewImpl-ohos.cpp +++ b/native/cocos/ui/webview/WebViewImpl-ohos.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/tools/license-upgrader/generate.js b/native/tools/license-upgrader/generate.js index 15f2fe449b..7f0d4b96b8 100644 --- a/native/tools/license-upgrader/generate.js +++ b/native/tools/license-upgrader/generate.js @@ -56,6 +56,7 @@ const genHeader = (history) => { const headerRE = /\/\*{5,}.*?\*{5,}\/\s*/s; const ownerRE = /^\s*Copyright\s*\(c\)\s*([0-9]+)(?:-([0-9]+))?\s*(.*)/gm; +const skippingRE = /\bOGRE\b/; const curYear = new Date().getFullYear(); const companyName = 'Xiamen Yaji Software Co., Ltd.'; const update = (path) => { @@ -69,6 +70,7 @@ const update = (path) => { const headerCap = content.match(headerRE); if (headerCap) { content = content.slice(headerCap.index + headerCap[0].length); + if (skippingRE.test(headerCap[0])) { return; } // extract let ownerCap = ownerRE.exec(headerCap[0]); while (ownerCap) { From 464cc90bcc48886978b433bb0edf719e8b5071a5 Mon Sep 17 00:00:00 2001 From: Yun Hsiao Wu Date: Mon, 24 Jan 2022 18:33:01 +0800 Subject: [PATCH 44/45] JSB generation keeps licenses, fixed (#4212) --- native/tools/bindings-generator/generator.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/native/tools/bindings-generator/generator.py b/native/tools/bindings-generator/generator.py index 9b70aae8fc..7461bca797 100755 --- a/native/tools/bindings-generator/generator.py +++ b/native/tools/bindings-generator/generator.py @@ -1706,10 +1706,12 @@ class Generator(object): implLicense = '' licensePattern = re.compile('\/\*{5,}.*?\*{5,}\/\s*', re.S) - with open(headfilepath, 'a+') as headReader: + with io.open(headfilepath, 'a+', newline="\n") as headReader: + headReader.seek(0) headMatch = licensePattern.search(headReader.read()) if headMatch: headLicense = headMatch.group() - with open(implfilepath, 'a+') as implReader: + with io.open(implfilepath, 'a+', newline="\n") as implReader: + implReader.seek(0) implMatch = licensePattern.search(implReader.read()) if implMatch: implLicense = implMatch.group() From 77097c0dcb00ed5a598a1b74903c32d811b1949b Mon Sep 17 00:00:00 2001 From: Cocos Robot <48829427+cocos-robot@users.noreply.github.com> Date: Tue, 25 Jan 2022 10:18:01 +0800 Subject: [PATCH 45/45] [ci skip][AUTO]: Automated genbindings update: 1c989f87f4cb90d1534103ef7032f7a4f7de7dcb (#4212) (#4215) Co-authored-by: cocos-robot --- native/cocos/bindings/auto/jsb_audio_auto.cpp | 282 +- native/cocos/bindings/auto/jsb_audio_auto.h | 12 +- native/cocos/bindings/auto/jsb_cocos_auto.cpp | 614 +- native/cocos/bindings/auto/jsb_cocos_auto.h | 25 +- .../bindings/auto/jsb_dragonbones_auto.cpp | 1822 ++--- .../bindings/auto/jsb_dragonbones_auto.h | 64 +- .../bindings/auto/jsb_editor_support_auto.cpp | 199 +- .../bindings/auto/jsb_editor_support_auto.h | 11 +- .../bindings/auto/jsb_extension_auto.cpp | 454 +- .../cocos/bindings/auto/jsb_extension_auto.h | 9 +- native/cocos/bindings/auto/jsb_gfx_auto.cpp | 6014 +++++++++-------- native/cocos/bindings/auto/jsb_gfx_auto.h | 385 +- .../cocos/bindings/auto/jsb_network_auto.cpp | 116 +- native/cocos/bindings/auto/jsb_network_auto.h | 11 +- .../cocos/bindings/auto/jsb_physics_auto.cpp | 2459 +++---- native/cocos/bindings/auto/jsb_physics_auto.h | 135 +- .../cocos/bindings/auto/jsb_pipeline_auto.cpp | 914 +-- .../cocos/bindings/auto/jsb_pipeline_auto.h | 93 +- native/cocos/bindings/auto/jsb_scene_auto.cpp | 2551 +++---- native/cocos/bindings/auto/jsb_scene_auto.h | 156 +- native/cocos/bindings/auto/jsb_spine_auto.cpp | 5187 +++++++------- native/cocos/bindings/auto/jsb_spine_auto.h | 117 +- native/cocos/bindings/auto/jsb_video_auto.cpp | 123 +- native/cocos/bindings/auto/jsb_video_auto.h | 10 +- .../cocos/bindings/auto/jsb_webview_auto.cpp | 246 +- native/cocos/bindings/auto/jsb_webview_auto.h | 10 +- 26 files changed, 11274 insertions(+), 10745 deletions(-) diff --git a/native/cocos/bindings/auto/jsb_audio_auto.cpp b/native/cocos/bindings/auto/jsb_audio_auto.cpp index 2c62ffb7fb..10c1d481d6 100644 --- a/native/cocos/bindings/auto/jsb_audio_auto.cpp +++ b/native/cocos/bindings/auto/jsb_audio_auto.cpp @@ -25,19 +25,19 @@ #include "cocos/bindings/auto/jsb_audio_auto.h" #if (USE_AUDIO > 0) - #include "audio/include/AudioEngine.h" - #include "cocos/bindings/manual/jsb_conversions.h" - #include "cocos/bindings/manual/jsb_global.h" +#include "cocos/bindings/manual/jsb_conversions.h" +#include "cocos/bindings/manual/jsb_global.h" +#include "audio/include/AudioEngine.h" - #ifndef JSB_ALLOC - #define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) - #endif +#ifndef JSB_ALLOC +#define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) +#endif - #ifndef JSB_FREE - #define JSB_FREE(ptr) delete ptr - #endif +#ifndef JSB_FREE +#define JSB_FREE(ptr) delete ptr +#endif se::Object* __jsb_cc_AudioProfile_proto = nullptr; -se::Class* __jsb_cc_AudioProfile_class = nullptr; +se::Class* __jsb_cc_AudioProfile_class = nullptr; static bool js_audio_AudioProfile_get_name(se::State& s) // NOLINT(readability-identifier-naming) { @@ -45,7 +45,7 @@ static bool js_audio_AudioProfile_get_name(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_audio_AudioProfile_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -56,7 +56,7 @@ SE_BIND_PROP_GET(js_audio_AudioProfile_get_name) static bool js_audio_AudioProfile_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_audio_AudioProfile_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -72,7 +72,7 @@ static bool js_audio_AudioProfile_get_maxInstances(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_audio_AudioProfile_get_maxInstances : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxInstances, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxInstances, s.thisObject(), s.rval()); @@ -83,7 +83,7 @@ SE_BIND_PROP_GET(js_audio_AudioProfile_get_maxInstances) static bool js_audio_AudioProfile_set_maxInstances(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_audio_AudioProfile_set_maxInstances : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -99,7 +99,7 @@ static bool js_audio_AudioProfile_get_minDelay(se::State& s) // NOLINT(readabili SE_PRECONDITION2(cobj, false, "js_audio_AudioProfile_get_minDelay : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->minDelay, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->minDelay, s.thisObject(), s.rval()); @@ -110,7 +110,7 @@ SE_BIND_PROP_GET(js_audio_AudioProfile_get_minDelay) static bool js_audio_AudioProfile_set_minDelay(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_audio_AudioProfile_set_minDelay : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -131,10 +131,13 @@ static bool js_audio_AudioProfile_constructor(se::State& s) // NOLINT(readabilit } SE_BIND_CTOR(js_audio_AudioProfile_constructor, __jsb_cc_AudioProfile_class, js_cc_AudioProfile_finalize) + + static bool js_cc_AudioProfile_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -161,13 +164,13 @@ bool js_register_audio_AudioProfile(se::Object* obj) // NOLINT(readability-ident return true; } se::Object* __jsb_cc_AudioEngine_proto = nullptr; -se::Class* __jsb_cc_AudioEngine_class = nullptr; +se::Class* __jsb_cc_AudioEngine_class = nullptr; static bool js_audio_AudioEngine_lazyInit(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cc::AudioEngine::lazyInit(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -183,7 +186,7 @@ SE_BIND_FUNC(js_audio_AudioEngine_lazyInit) static bool js_audio_AudioEngine_end(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cc::AudioEngine::end(); return true; @@ -195,9 +198,9 @@ SE_BIND_FUNC(js_audio_AudioEngine_end) static bool js_audio_AudioEngine_getDefaultProfile(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::AudioProfile* result = cc::AudioEngine::getDefaultProfile(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -212,9 +215,9 @@ SE_BIND_FUNC(js_audio_AudioEngine_getDefaultProfile) static bool js_audio_AudioEngine_play2d(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -227,7 +230,7 @@ static bool js_audio_AudioEngine_play2d(se::State& s) // NOLINT(readability-iden } if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); ok &= sevalue_to_native(args[1], &arg1, nullptr); SE_PRECONDITION2(ok, false, "js_audio_AudioEngine_play2d : Error processing arguments"); @@ -239,8 +242,8 @@ static bool js_audio_AudioEngine_play2d(se::State& s) // NOLINT(readability-iden } if (argc == 3) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); ok &= sevalue_to_native(args[1], &arg1, nullptr); ok &= sevalue_to_native(args[2], &arg2, nullptr); @@ -252,9 +255,9 @@ static bool js_audio_AudioEngine_play2d(se::State& s) // NOLINT(readability-iden return true; } if (argc == 4) { - HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; HolderType arg3 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); ok &= sevalue_to_native(args[1], &arg1, nullptr); @@ -274,11 +277,11 @@ SE_BIND_FUNC(js_audio_AudioEngine_play2d) static bool js_audio_AudioEngine_setLoop(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); ok &= sevalue_to_native(args[1], &arg1, nullptr); @@ -293,9 +296,9 @@ SE_BIND_FUNC(js_audio_AudioEngine_setLoop) static bool js_audio_AudioEngine_isLoop(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -313,11 +316,11 @@ SE_BIND_FUNC(js_audio_AudioEngine_isLoop) static bool js_audio_AudioEngine_setVolume(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); ok &= sevalue_to_native(args[1], &arg1, nullptr); @@ -332,9 +335,9 @@ SE_BIND_FUNC(js_audio_AudioEngine_setVolume) static bool js_audio_AudioEngine_getVolume(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -352,9 +355,9 @@ SE_BIND_FUNC(js_audio_AudioEngine_getVolume) static bool js_audio_AudioEngine_pause(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -370,7 +373,7 @@ SE_BIND_FUNC(js_audio_AudioEngine_pause) static bool js_audio_AudioEngine_pauseAll(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cc::AudioEngine::pauseAll(); return true; @@ -382,9 +385,9 @@ SE_BIND_FUNC(js_audio_AudioEngine_pauseAll) static bool js_audio_AudioEngine_resume(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -400,7 +403,7 @@ SE_BIND_FUNC(js_audio_AudioEngine_resume) static bool js_audio_AudioEngine_resumeAll(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cc::AudioEngine::resumeAll(); return true; @@ -412,9 +415,9 @@ SE_BIND_FUNC(js_audio_AudioEngine_resumeAll) static bool js_audio_AudioEngine_stop(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -430,7 +433,7 @@ SE_BIND_FUNC(js_audio_AudioEngine_stop) static bool js_audio_AudioEngine_stopAll(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cc::AudioEngine::stopAll(); return true; @@ -442,11 +445,11 @@ SE_BIND_FUNC(js_audio_AudioEngine_stopAll) static bool js_audio_AudioEngine_setCurrentTime(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); ok &= sevalue_to_native(args[1], &arg1, nullptr); @@ -464,9 +467,9 @@ SE_BIND_FUNC(js_audio_AudioEngine_setCurrentTime) static bool js_audio_AudioEngine_getCurrentTime(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -484,9 +487,9 @@ SE_BIND_FUNC(js_audio_AudioEngine_getCurrentTime) static bool js_audio_AudioEngine_getDuration(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -504,9 +507,9 @@ SE_BIND_FUNC(js_audio_AudioEngine_getDuration) static bool js_audio_AudioEngine_getDurationFromFile(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -524,9 +527,9 @@ SE_BIND_FUNC(js_audio_AudioEngine_getDurationFromFile) static bool js_audio_AudioEngine_getState(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -544,40 +547,44 @@ SE_BIND_FUNC(js_audio_AudioEngine_getState) static bool js_audio_AudioEngine_setFinishCallback(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; - HolderType, true> arg1 = {}; + HolderType arg0 = {}; + HolderType, true> arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); do { - if (args[1].isObject() && args[1].toObject()->isFunction()) { + if (args[1].isObject() && args[1].toObject()->isFunction()) + { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[1]); jsFunc.toObject()->root(); auto lambda = [=](int larg0, const std::string larg1) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(2); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); ok &= nativevalue_to_se(larg1, args[1], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg1.data = lambda; - } else { + } + else + { arg1.data = nullptr; } - } while (false); + } while(false) + ; SE_PRECONDITION2(ok, false, "js_audio_AudioEngine_setFinishCallback : Error processing arguments"); cc::AudioEngine::setFinishCallback(arg0.value(), arg1.value()); return true; @@ -589,9 +596,9 @@ SE_BIND_FUNC(js_audio_AudioEngine_setFinishCallback) static bool js_audio_AudioEngine_getMaxAudioInstance(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cc::AudioEngine::getMaxAudioInstance(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -606,9 +613,9 @@ SE_BIND_FUNC(js_audio_AudioEngine_getMaxAudioInstance) static bool js_audio_AudioEngine_setMaxAudioInstance(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -626,9 +633,9 @@ SE_BIND_FUNC(js_audio_AudioEngine_setMaxAudioInstance) static bool js_audio_AudioEngine_uncache(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -644,7 +651,7 @@ SE_BIND_FUNC(js_audio_AudioEngine_uncache) static bool js_audio_AudioEngine_uncacheAll(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cc::AudioEngine::uncacheAll(); return true; @@ -656,17 +663,14 @@ SE_BIND_FUNC(js_audio_AudioEngine_uncacheAll) static bool js_audio_AudioEngine_getProfile(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cc::AudioProfile* result = cc::AudioEngine::getProfile(arg0.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_audio_AudioEngine_getProfile : Error processing arguments"); @@ -678,10 +682,7 @@ static bool js_audio_AudioEngine_getProfile(se::State& s) // NOLINT(readability- if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cc::AudioProfile* result = cc::AudioEngine::getProfile(arg0.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_audio_AudioEngine_getProfile : Error processing arguments"); @@ -696,48 +697,46 @@ SE_BIND_FUNC(js_audio_AudioEngine_getProfile) static bool js_audio_AudioEngine_preload(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); do { if (argc == 2) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } - HolderType, true> arg1 = {}; + if (!ok) { ok = true; break; } + HolderType, true> arg1 = {}; do { - if (args[1].isObject() && args[1].toObject()->isFunction()) { + if (args[1].isObject() && args[1].toObject()->isFunction()) + { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[1]); jsFunc.toObject()->root(); auto lambda = [=](bool larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg1.data = lambda; - } else { + } + else + { arg1.data = nullptr; } - } while (false); - if (!ok) { - ok = true; - break; - } + } while(false) + ; + if (!ok) { ok = true; break; } cc::AudioEngine::preload(arg0.value(), arg1.value()); return true; } @@ -746,10 +745,7 @@ static bool js_audio_AudioEngine_preload(se::State& s) // NOLINT(readability-ide if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cc::AudioEngine::preload(arg0.value()); return true; } @@ -761,9 +757,9 @@ SE_BIND_FUNC(js_audio_AudioEngine_preload) static bool js_audio_AudioEngine_getPlayingAudioCount(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cc::AudioEngine::getPlayingAudioCount(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -778,9 +774,9 @@ SE_BIND_FUNC(js_audio_AudioEngine_getPlayingAudioCount) static bool js_audio_AudioEngine_setEnabled(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -795,9 +791,9 @@ SE_BIND_FUNC(js_audio_AudioEngine_setEnabled) static bool js_audio_AudioEngine_isEnabled(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cc::AudioEngine::isEnabled(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -810,6 +806,8 @@ static bool js_audio_AudioEngine_isEnabled(se::State& s) // NOLINT(readability-i } SE_BIND_FUNC(js_audio_AudioEngine_isEnabled) + + bool js_register_audio_AudioEngine(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("AudioEngine", obj, nullptr, nullptr); @@ -852,10 +850,12 @@ bool js_register_audio_AudioEngine(se::Object* obj) // NOLINT(readability-identi se::ScriptEngine::getInstance()->clearException(); return true; } -bool register_all_audio(se::Object* obj) { +bool register_all_audio(se::Object* obj) +{ // Get the ns se::Value nsVal; - if (!obj->getProperty("jsb", &nsVal)) { + if (!obj->getProperty("jsb", &nsVal)) + { se::HandleObject jsobj(se::Object::createPlainObject()); nsVal.setObject(jsobj); obj->setProperty("jsb", nsVal); diff --git a/native/cocos/bindings/auto/jsb_audio_auto.h b/native/cocos/bindings/auto/jsb_audio_auto.h index 32d313db38..7aabab129a 100644 --- a/native/cocos/bindings/auto/jsb_audio_auto.h +++ b/native/cocos/bindings/auto/jsb_audio_auto.h @@ -26,13 +26,13 @@ #pragma once #include "base/Config.h" #if (USE_AUDIO > 0) - #include - #include "cocos/audio/include/AudioEngine.h" - #include "cocos/bindings/jswrapper/SeApi.h" - #include "cocos/bindings/manual/jsb_conversions.h" +#include +#include "cocos/bindings/jswrapper/SeApi.h" +#include "cocos/bindings/manual/jsb_conversions.h" +#include "cocos/audio/include/AudioEngine.h" extern se::Object* __jsb_cc_AudioProfile_proto; -extern se::Class* __jsb_cc_AudioProfile_class; +extern se::Class* __jsb_cc_AudioProfile_class; bool js_register_cc_AudioProfile(se::Object* obj); bool register_all_audio(se::Object* obj); @@ -41,7 +41,7 @@ JSB_REGISTER_OBJECT_TYPE(cc::AudioProfile); SE_DECLARE_FUNC(js_audio_AudioProfile_AudioProfile); extern se::Object* __jsb_cc_AudioEngine_proto; -extern se::Class* __jsb_cc_AudioEngine_class; +extern se::Class* __jsb_cc_AudioEngine_class; bool js_register_cc_AudioEngine(se::Object* obj); bool register_all_audio(se::Object* obj); diff --git a/native/cocos/bindings/auto/jsb_cocos_auto.cpp b/native/cocos/bindings/auto/jsb_cocos_auto.cpp index 33789fb6ef..15d669cdb7 100644 --- a/native/cocos/bindings/auto/jsb_cocos_auto.cpp +++ b/native/cocos/bindings/auto/jsb_cocos_auto.cpp @@ -24,31 +24,31 @@ ****************************************************************************/ #include "cocos/bindings/auto/jsb_cocos_auto.h" -#include "bindings/event/EventDispatcher.h" #include "cocos/bindings/manual/jsb_conversions.h" #include "cocos/bindings/manual/jsb_global.h" #include "platform/FileUtils.h" -#include "platform/SAXParser.h" -#include "platform/interfaces/modules/Device.h" +#include "bindings/event/EventDispatcher.h" #include "platform/interfaces/modules/canvas/CanvasRenderingContext2D.h" +#include "platform/interfaces/modules/Device.h" +#include "platform/SAXParser.h" #ifndef JSB_ALLOC - #define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) +#define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) #endif #ifndef JSB_FREE - #define JSB_FREE(ptr) delete ptr +#define JSB_FREE(ptr) delete ptr #endif se::Object* __jsb_cc_FileUtils_proto = nullptr; -se::Class* __jsb_cc_FileUtils_class = nullptr; +se::Class* __jsb_cc_FileUtils_class = nullptr; static bool js_engine_FileUtils_addSearchPath(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_addSearchPath : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -58,7 +58,7 @@ static bool js_engine_FileUtils_addSearchPath(se::State& s) // NOLINT(readabilit } if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_engine_FileUtils_addSearchPath : Error processing arguments"); @@ -74,9 +74,9 @@ static bool js_engine_FileUtils_createDirectory(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_createDirectory : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -96,9 +96,9 @@ static bool js_engine_FileUtils_fullPathForFilename(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_fullPathForFilename : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -118,9 +118,9 @@ static bool js_engine_FileUtils_fullPathFromRelativeFile(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_fullPathFromRelativeFile : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -142,9 +142,9 @@ static bool js_engine_FileUtils_getDataFromFile(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_getDataFromFile : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -164,9 +164,9 @@ static bool js_engine_FileUtils_getDefaultResourceRootPath(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_getDefaultResourceRootPath : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::string& result = cobj->getDefaultResourceRootPath(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -183,9 +183,9 @@ static bool js_engine_FileUtils_getFileExtension(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_getFileExtension : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -205,9 +205,9 @@ static bool js_engine_FileUtils_getFileSize(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_getFileSize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -227,9 +227,9 @@ static bool js_engine_FileUtils_getOriginalSearchPaths(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_getOriginalSearchPaths : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getOriginalSearchPaths(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -246,9 +246,9 @@ static bool js_engine_FileUtils_getSearchPaths(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_getSearchPaths : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getSearchPaths(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -265,9 +265,9 @@ static bool js_engine_FileUtils_getStringFromFile(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_getStringFromFile : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -287,9 +287,9 @@ static bool js_engine_FileUtils_getSuitableFOpen(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_getSuitableFOpen : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -309,12 +309,12 @@ static bool js_engine_FileUtils_getValueMapFromData(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_getValueMapFromData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_engine_FileUtils_getValueMapFromData : Error processing arguments"); @@ -333,9 +333,9 @@ static bool js_engine_FileUtils_getValueMapFromFile(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_getValueMapFromFile : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -355,9 +355,9 @@ static bool js_engine_FileUtils_getValueVectorFromFile(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_getValueVectorFromFile : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -377,9 +377,9 @@ static bool js_engine_FileUtils_getWritablePath(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_getWritablePath : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { std::string result = cobj->getWritablePath(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -396,9 +396,9 @@ static bool js_engine_FileUtils_isAbsolutePath(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_isAbsolutePath : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -418,9 +418,9 @@ static bool js_engine_FileUtils_isDirectoryExist(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_isDirectoryExist : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -440,9 +440,9 @@ static bool js_engine_FileUtils_isFileExist(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_isFileExist : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -462,9 +462,9 @@ static bool js_engine_FileUtils_listFiles(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_listFiles : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -485,7 +485,7 @@ static bool js_engine_FileUtils_purgeCachedEntries(se::State& s) // NOLINT(reada auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_purgeCachedEntries : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->purgeCachedEntries(); return true; @@ -499,9 +499,9 @@ static bool js_engine_FileUtils_removeDirectory(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_removeDirectory : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -521,9 +521,9 @@ static bool js_engine_FileUtils_removeFile(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_removeFile : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -541,33 +541,27 @@ SE_BIND_FUNC(js_engine_FileUtils_removeFile) static bool js_engine_FileUtils_renameFile(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_renameFile : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2( cobj, false, "js_engine_FileUtils_renameFile : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } bool result = cobj->renameFile(arg0.value(), arg1.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_engine_FileUtils_renameFile : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while (false); + } while(false); do { if (argc == 3) { @@ -576,27 +570,18 @@ static bool js_engine_FileUtils_renameFile(se::State& s) // NOLINT(readability-i HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } bool result = cobj->renameFile(arg0.value(), arg1.value(), arg2.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_engine_FileUtils_renameFile : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while (false); + } while(false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -607,9 +592,9 @@ static bool js_engine_FileUtils_setDefaultResourceRootPath(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_setDefaultResourceRootPath : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -626,9 +611,9 @@ static bool js_engine_FileUtils_setSearchPaths(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_setSearchPaths : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType, true> arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -645,9 +630,9 @@ static bool js_engine_FileUtils_setWritablePath(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_setWritablePath : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -664,11 +649,11 @@ static bool js_engine_FileUtils_writeDataToFile(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_writeDataToFile : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -688,9 +673,9 @@ static bool js_engine_FileUtils_writeStringToFile(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_writeStringToFile : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -712,12 +697,12 @@ static bool js_engine_FileUtils_writeToFile(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_writeToFile : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType, true> arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_engine_FileUtils_writeToFile : Error processing arguments"); @@ -736,12 +721,12 @@ static bool js_engine_FileUtils_writeValueMapToFile(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_writeValueMapToFile : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType, true> arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_engine_FileUtils_writeValueMapToFile : Error processing arguments"); @@ -760,12 +745,12 @@ static bool js_engine_FileUtils_writeValueVectorToFile(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_writeValueVectorToFile : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType, true> arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_engine_FileUtils_writeValueVectorToFile : Error processing arguments"); @@ -782,9 +767,9 @@ SE_BIND_FUNC(js_engine_FileUtils_writeValueVectorToFile) static bool js_engine_FileUtils_getInstance(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::FileUtils* result = cc::FileUtils::getInstance(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -799,9 +784,9 @@ SE_BIND_FUNC(js_engine_FileUtils_getInstance) static bool js_engine_FileUtils_setDelegate(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -816,9 +801,9 @@ SE_BIND_FUNC(js_engine_FileUtils_setDelegate) static bool js_engine_FileUtils_normalizePath(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -836,9 +821,9 @@ SE_BIND_FUNC(js_engine_FileUtils_normalizePath) static bool js_engine_FileUtils_getFileDir(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -854,10 +839,12 @@ static bool js_engine_FileUtils_getFileDir(se::State& s) // NOLINT(readability-i } SE_BIND_FUNC(js_engine_FileUtils_getFileDir) + static bool js_cc_FileUtils_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -917,7 +904,9 @@ bool js_register_engine_FileUtils(se::Object* obj) // NOLINT(readability-identif return true; } se::Object* __jsb_cc_OSInterface_proto = nullptr; -se::Class* __jsb_cc_OSInterface_class = nullptr; +se::Class* __jsb_cc_OSInterface_class = nullptr; + + bool js_register_engine_OSInterface(se::Object* obj) // NOLINT(readability-identifier-naming) { @@ -933,17 +922,17 @@ bool js_register_engine_OSInterface(se::Object* obj) // NOLINT(readability-ident return true; } se::Object* __jsb_cc_ICanvasGradient_proto = nullptr; -se::Class* __jsb_cc_ICanvasGradient_class = nullptr; +se::Class* __jsb_cc_ICanvasGradient_class = nullptr; static bool js_engine_ICanvasGradient_addColorStop(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasGradient_addColorStop : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -956,6 +945,8 @@ static bool js_engine_ICanvasGradient_addColorStop(se::State& s) // NOLINT(reada } SE_BIND_FUNC(js_engine_ICanvasGradient_addColorStop) + + bool js_register_engine_ICanvasGradient(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("ICanvasGradient", obj, nullptr, nullptr); @@ -971,14 +962,14 @@ bool js_register_engine_ICanvasGradient(se::Object* obj) // NOLINT(readability-i return true; } se::Object* __jsb_cc_ICanvasRenderingContext2D_proto = nullptr; -se::Class* __jsb_cc_ICanvasRenderingContext2D_class = nullptr; +se::Class* __jsb_cc_ICanvasRenderingContext2D_class = nullptr; static bool js_engine_ICanvasRenderingContext2D_beginPath(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_beginPath : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->beginPath(); return true; @@ -992,9 +983,9 @@ static bool js_engine_ICanvasRenderingContext2D_clearRect(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_clearRect : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 4) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -1018,7 +1009,7 @@ static bool js_engine_ICanvasRenderingContext2D_closePath(se::State& s) // NOLIN auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_closePath : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->closePath(); return true; @@ -1032,9 +1023,9 @@ static bool js_engine_ICanvasRenderingContext2D_createLinearGradient(se::State& { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_createLinearGradient : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 4) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -1061,7 +1052,7 @@ static bool js_engine_ICanvasRenderingContext2D_fill(se::State& s) // NOLINT(rea auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_fill : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->fill(); return true; @@ -1075,15 +1066,15 @@ static bool js_engine_ICanvasRenderingContext2D_fillImageData(se::State& s) // N { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_fillImageData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 5) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; - HolderType arg4 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; + HolderType arg4 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -1102,9 +1093,9 @@ static bool js_engine_ICanvasRenderingContext2D_fillRect(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_fillRect : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 4) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -1127,14 +1118,14 @@ static bool js_engine_ICanvasRenderingContext2D_fillText(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_fillText : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 4) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -1152,9 +1143,9 @@ static bool js_engine_ICanvasRenderingContext2D_lineTo(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_lineTo : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -1173,9 +1164,9 @@ static bool js_engine_ICanvasRenderingContext2D_measureText(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_measureText : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1195,9 +1186,9 @@ static bool js_engine_ICanvasRenderingContext2D_moveTo(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_moveTo : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -1216,9 +1207,9 @@ static bool js_engine_ICanvasRenderingContext2D_rect(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_rect : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 4) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -1242,7 +1233,7 @@ static bool js_engine_ICanvasRenderingContext2D_restore(se::State& s) // NOLINT( auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_restore : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->restore(); return true; @@ -1256,9 +1247,9 @@ static bool js_engine_ICanvasRenderingContext2D_rotate(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_rotate : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1276,7 +1267,7 @@ static bool js_engine_ICanvasRenderingContext2D_save(se::State& s) // NOLINT(rea auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_save : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->save(); return true; @@ -1290,9 +1281,9 @@ static bool js_engine_ICanvasRenderingContext2D_scale(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_scale : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -1311,37 +1302,41 @@ static bool js_engine_ICanvasRenderingContext2D_setCanvasBufferUpdatedCallback(s { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_setCanvasBufferUpdatedCallback : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) { + if (args[0].isObject() && args[0].toObject()->isFunction()) + { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); - auto lambda = [=](const cc::Data& larg0) -> void { + auto lambda = [=](const cc::Data & larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } else { + } + else + { arg0.data = nullptr; } - } while (false); + } while(false) + ; SE_PRECONDITION2(ok, false, "js_engine_ICanvasRenderingContext2D_setCanvasBufferUpdatedCallback : Error processing arguments"); cobj->setCanvasBufferUpdatedCallback(arg0.value()); return true; @@ -1355,9 +1350,9 @@ static bool js_engine_ICanvasRenderingContext2D_setFillStyle(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_setFillStyle : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1374,9 +1369,9 @@ static bool js_engine_ICanvasRenderingContext2D_setFont(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_setFont : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1393,9 +1388,9 @@ static bool js_engine_ICanvasRenderingContext2D_setGlobalCompositeOperation(se:: { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_setGlobalCompositeOperation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1412,9 +1407,9 @@ static bool js_engine_ICanvasRenderingContext2D_setHeight(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_setHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1431,9 +1426,9 @@ static bool js_engine_ICanvasRenderingContext2D_setLineCap(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_setLineCap : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1450,9 +1445,9 @@ static bool js_engine_ICanvasRenderingContext2D_setLineJoin(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_setLineJoin : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1469,9 +1464,9 @@ static bool js_engine_ICanvasRenderingContext2D_setLineWidth(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_setLineWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1488,9 +1483,9 @@ static bool js_engine_ICanvasRenderingContext2D_setStrokeStyle(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_setStrokeStyle : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1507,9 +1502,9 @@ static bool js_engine_ICanvasRenderingContext2D_setTextAlign(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_setTextAlign : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1526,9 +1521,9 @@ static bool js_engine_ICanvasRenderingContext2D_setTextBaseline(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_setTextBaseline : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1545,9 +1540,9 @@ static bool js_engine_ICanvasRenderingContext2D_setTransform(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_setTransform : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 6) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -1574,9 +1569,9 @@ static bool js_engine_ICanvasRenderingContext2D_setWidth(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_setWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1594,7 +1589,7 @@ static bool js_engine_ICanvasRenderingContext2D_stroke(se::State& s) // NOLINT(r auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_stroke : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->stroke(); return true; @@ -1608,14 +1603,14 @@ static bool js_engine_ICanvasRenderingContext2D_strokeText(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_strokeText : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 4) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -1633,9 +1628,9 @@ static bool js_engine_ICanvasRenderingContext2D_transform(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_transform : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 6) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -1662,9 +1657,9 @@ static bool js_engine_ICanvasRenderingContext2D_translate(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_translate : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -1679,6 +1674,8 @@ static bool js_engine_ICanvasRenderingContext2D_translate(se::State& s) // NOLIN } SE_BIND_FUNC(js_engine_ICanvasRenderingContext2D_translate) + + bool js_register_engine_ICanvasRenderingContext2D(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("ICanvasRenderingContext2D", obj, __jsb_cc_OSInterface_proto, nullptr); @@ -1726,7 +1723,7 @@ bool js_register_engine_ICanvasRenderingContext2D(se::Object* obj) // NOLINT(rea return true; } se::Object* __jsb_cc_CanvasGradient_proto = nullptr; -se::Class* __jsb_cc_CanvasGradient_class = nullptr; +se::Class* __jsb_cc_CanvasGradient_class = nullptr; SE_DECLARE_FINALIZE_FUNC(js_cc_CanvasGradient_finalize) @@ -1739,10 +1736,13 @@ static bool js_engine_CanvasGradient_constructor(se::State& s) // NOLINT(readabi } SE_BIND_CTOR(js_engine_CanvasGradient_constructor, __jsb_cc_CanvasGradient_class, js_cc_CanvasGradient_finalize) + + static bool js_cc_CanvasGradient_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -1766,16 +1766,16 @@ bool js_register_engine_CanvasGradient(se::Object* obj) // NOLINT(readability-id return true; } se::Object* __jsb_cc_CanvasRenderingContext2D_proto = nullptr; -se::Class* __jsb_cc_CanvasRenderingContext2D_class = nullptr; +se::Class* __jsb_cc_CanvasRenderingContext2D_class = nullptr; SE_DECLARE_FINALIZE_FUNC(js_cc_CanvasRenderingContext2D_finalize) static bool js_engine_CanvasRenderingContext2D_constructor(se::State& s) // NOLINT(readability-identifier-naming) constructor.c { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - float arg0 = 0; - float arg1 = 0; + CC_UNUSED bool ok = true; + const auto& args = s.args(); + float arg0 = 0; + float arg1 = 0; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_engine_CanvasRenderingContext2D_constructor : Error processing arguments"); @@ -1786,10 +1786,13 @@ static bool js_engine_CanvasRenderingContext2D_constructor(se::State& s) // NOLI } SE_BIND_CTOR(js_engine_CanvasRenderingContext2D_constructor, __jsb_cc_CanvasRenderingContext2D_class, js_cc_CanvasRenderingContext2D_finalize) + + static bool js_cc_CanvasRenderingContext2D_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -1813,13 +1816,13 @@ bool js_register_engine_CanvasRenderingContext2D(se::Object* obj) // NOLINT(read return true; } se::Object* __jsb_cc_Device_proto = nullptr; -se::Class* __jsb_cc_Device_class = nullptr; +se::Class* __jsb_cc_Device_class = nullptr; static bool js_engine_Device_getDPI(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cc::Device::getDPI(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1834,9 +1837,9 @@ SE_BIND_FUNC(js_engine_Device_getDPI) static bool js_engine_Device_getDevicePixelRatio(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cc::Device::getDevicePixelRatio(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1851,9 +1854,9 @@ SE_BIND_FUNC(js_engine_Device_getDevicePixelRatio) static bool js_engine_Device_setAccelerometerEnabled(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -1868,9 +1871,9 @@ SE_BIND_FUNC(js_engine_Device_setAccelerometerEnabled) static bool js_engine_Device_setAccelerometerInterval(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -1885,9 +1888,9 @@ SE_BIND_FUNC(js_engine_Device_setAccelerometerInterval) static bool js_engine_Device_getDeviceOrientation(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cc::Device::getDeviceOrientation()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1902,9 +1905,9 @@ SE_BIND_FUNC(js_engine_Device_getDeviceOrientation) static bool js_engine_Device_getDeviceModel(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { std::string result = cc::Device::getDeviceModel(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1919,9 +1922,9 @@ SE_BIND_FUNC(js_engine_Device_getDeviceModel) static bool js_engine_Device_setKeepScreenOn(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -1936,9 +1939,9 @@ SE_BIND_FUNC(js_engine_Device_setKeepScreenOn) static bool js_engine_Device_vibrate(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -1953,9 +1956,9 @@ SE_BIND_FUNC(js_engine_Device_vibrate) static bool js_engine_Device_getBatteryLevel(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cc::Device::getBatteryLevel(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1970,9 +1973,9 @@ SE_BIND_FUNC(js_engine_Device_getBatteryLevel) static bool js_engine_Device_getNetworkType(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cc::Device::getNetworkType()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1987,9 +1990,9 @@ SE_BIND_FUNC(js_engine_Device_getNetworkType) static bool js_engine_Device_getSafeAreaEdge(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::Vec4 result = cc::Device::getSafeAreaEdge(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2002,6 +2005,8 @@ static bool js_engine_Device_getSafeAreaEdge(se::State& s) // NOLINT(readability } SE_BIND_FUNC(js_engine_Device_getSafeAreaEdge) + + bool js_register_engine_Device(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("Device", obj, nullptr, nullptr); @@ -2027,15 +2032,15 @@ bool js_register_engine_Device(se::Object* obj) // NOLINT(readability-identifier return true; } se::Object* __jsb_cc_SAXParser_proto = nullptr; -se::Class* __jsb_cc_SAXParser_class = nullptr; +se::Class* __jsb_cc_SAXParser_class = nullptr; static bool js_engine_SAXParser_init(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_SAXParser_init : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2051,6 +2056,8 @@ static bool js_engine_SAXParser_init(se::State& s) // NOLINT(readability-identif } SE_BIND_FUNC(js_engine_SAXParser_init) + + bool js_register_engine_SAXParser(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("PlistParser", obj, nullptr, nullptr); @@ -2065,10 +2072,12 @@ bool js_register_engine_SAXParser(se::Object* obj) // NOLINT(readability-identif se::ScriptEngine::getInstance()->clearException(); return true; } -bool register_all_engine(se::Object* obj) { +bool register_all_engine(se::Object* obj) +{ // Get the ns se::Value nsVal; - if (!obj->getProperty("jsb", &nsVal)) { + if (!obj->getProperty("jsb", &nsVal)) + { se::HandleObject jsobj(se::Object::createPlainObject()); nsVal.setObject(jsobj); obj->setProperty("jsb", nsVal); @@ -2085,3 +2094,4 @@ bool register_all_engine(se::Object* obj) { js_register_engine_SAXParser(ns); return true; } + diff --git a/native/cocos/bindings/auto/jsb_cocos_auto.h b/native/cocos/bindings/auto/jsb_cocos_auto.h index f55fc3bc67..c6024ee335 100644 --- a/native/cocos/bindings/auto/jsb_cocos_auto.h +++ b/native/cocos/bindings/auto/jsb_cocos_auto.h @@ -24,18 +24,18 @@ ****************************************************************************/ #pragma once -#include #include "base/Config.h" -#include "cocos/bindings/event/EventDispatcher.h" +#include #include "cocos/bindings/jswrapper/SeApi.h" #include "cocos/bindings/manual/jsb_conversions.h" #include "cocos/platform/FileUtils.h" -#include "cocos/platform/SAXParser.h" -#include "cocos/platform/interfaces/modules/Device.h" +#include "cocos/bindings/event/EventDispatcher.h" #include "cocos/platform/interfaces/modules/canvas/CanvasRenderingContext2D.h" +#include "cocos/platform/interfaces/modules/Device.h" +#include "cocos/platform/SAXParser.h" extern se::Object* __jsb_cc_FileUtils_proto; -extern se::Class* __jsb_cc_FileUtils_class; +extern se::Class* __jsb_cc_FileUtils_class; bool js_register_cc_FileUtils(se::Object* obj); bool register_all_engine(se::Object* obj); @@ -79,7 +79,7 @@ SE_DECLARE_FUNC(js_engine_FileUtils_normalizePath); SE_DECLARE_FUNC(js_engine_FileUtils_getFileDir); extern se::Object* __jsb_cc_OSInterface_proto; -extern se::Class* __jsb_cc_OSInterface_class; +extern se::Class* __jsb_cc_OSInterface_class; bool js_register_cc_OSInterface(se::Object* obj); bool register_all_engine(se::Object* obj); @@ -87,7 +87,7 @@ bool register_all_engine(se::Object* obj); JSB_REGISTER_OBJECT_TYPE(cc::OSInterface); extern se::Object* __jsb_cc_ICanvasGradient_proto; -extern se::Class* __jsb_cc_ICanvasGradient_class; +extern se::Class* __jsb_cc_ICanvasGradient_class; bool js_register_cc_ICanvasGradient(se::Object* obj); bool register_all_engine(se::Object* obj); @@ -96,7 +96,7 @@ JSB_REGISTER_OBJECT_TYPE(cc::ICanvasGradient); SE_DECLARE_FUNC(js_engine_ICanvasGradient_addColorStop); extern se::Object* __jsb_cc_ICanvasRenderingContext2D_proto; -extern se::Class* __jsb_cc_ICanvasRenderingContext2D_class; +extern se::Class* __jsb_cc_ICanvasRenderingContext2D_class; bool js_register_cc_ICanvasRenderingContext2D(se::Object* obj); bool register_all_engine(se::Object* obj); @@ -126,7 +126,7 @@ SE_DECLARE_FUNC(js_engine_ICanvasRenderingContext2D_transform); SE_DECLARE_FUNC(js_engine_ICanvasRenderingContext2D_translate); extern se::Object* __jsb_cc_CanvasGradient_proto; -extern se::Class* __jsb_cc_CanvasGradient_class; +extern se::Class* __jsb_cc_CanvasGradient_class; bool js_register_cc_CanvasGradient(se::Object* obj); bool register_all_engine(se::Object* obj); @@ -135,7 +135,7 @@ JSB_REGISTER_OBJECT_TYPE(cc::CanvasGradient); SE_DECLARE_FUNC(js_engine_CanvasGradient_CanvasGradient); extern se::Object* __jsb_cc_CanvasRenderingContext2D_proto; -extern se::Class* __jsb_cc_CanvasRenderingContext2D_class; +extern se::Class* __jsb_cc_CanvasRenderingContext2D_class; bool js_register_cc_CanvasRenderingContext2D(se::Object* obj); bool register_all_engine(se::Object* obj); @@ -144,7 +144,7 @@ JSB_REGISTER_OBJECT_TYPE(cc::CanvasRenderingContext2D); SE_DECLARE_FUNC(js_engine_CanvasRenderingContext2D_CanvasRenderingContext2D); extern se::Object* __jsb_cc_Device_proto; -extern se::Class* __jsb_cc_Device_class; +extern se::Class* __jsb_cc_Device_class; bool js_register_cc_Device(se::Object* obj); bool register_all_engine(se::Object* obj); @@ -163,10 +163,11 @@ SE_DECLARE_FUNC(js_engine_Device_getNetworkType); SE_DECLARE_FUNC(js_engine_Device_getSafeAreaEdge); extern se::Object* __jsb_cc_SAXParser_proto; -extern se::Class* __jsb_cc_SAXParser_class; +extern se::Class* __jsb_cc_SAXParser_class; bool js_register_cc_SAXParser(se::Object* obj); bool register_all_engine(se::Object* obj); JSB_REGISTER_OBJECT_TYPE(cc::SAXParser); SE_DECLARE_FUNC(js_engine_SAXParser_init); + diff --git a/native/cocos/bindings/auto/jsb_dragonbones_auto.cpp b/native/cocos/bindings/auto/jsb_dragonbones_auto.cpp index 76807098ff..7229a0bf5c 100644 --- a/native/cocos/bindings/auto/jsb_dragonbones_auto.cpp +++ b/native/cocos/bindings/auto/jsb_dragonbones_auto.cpp @@ -25,26 +25,26 @@ #include "cocos/bindings/auto/jsb_dragonbones_auto.h" #if USE_DRAGONBONES > 0 - #include "cocos/bindings/manual/jsb_conversions.h" - #include "cocos/bindings/manual/jsb_global.h" - #include "editor-support/dragonbones-creator-support/CCDragonBonesHeaders.h" +#include "cocos/bindings/manual/jsb_conversions.h" +#include "cocos/bindings/manual/jsb_global.h" +#include "editor-support/dragonbones-creator-support/CCDragonBonesHeaders.h" - #ifndef JSB_ALLOC - #define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) - #endif +#ifndef JSB_ALLOC +#define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) +#endif - #ifndef JSB_FREE - #define JSB_FREE(ptr) delete ptr - #endif +#ifndef JSB_FREE +#define JSB_FREE(ptr) delete ptr +#endif se::Object* __jsb_dragonBones_BaseObject_proto = nullptr; -se::Class* __jsb_dragonBones_BaseObject_class = nullptr; +se::Class* __jsb_dragonBones_BaseObject_class = nullptr; static bool js_dragonbones_BaseObject_returnToPool(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BaseObject_returnToPool : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->returnToPool(); return true; @@ -56,11 +56,11 @@ SE_BIND_FUNC(js_dragonbones_BaseObject_returnToPool) static bool js_dragonbones_BaseObject_setMaxCount(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); ok &= sevalue_to_native(args[1], &arg1, nullptr); @@ -75,9 +75,9 @@ SE_BIND_FUNC(js_dragonbones_BaseObject_setMaxCount) static bool js_dragonbones_BaseObject_clearPool(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::BaseObject::clearPool(); return true; @@ -94,6 +94,8 @@ static bool js_dragonbones_BaseObject_clearPool(se::State& s) // NOLINT(readabil } SE_BIND_FUNC(js_dragonbones_BaseObject_clearPool) + + bool js_register_dragonbones_BaseObject(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("BaseObject", obj, nullptr, nullptr); @@ -111,14 +113,14 @@ bool js_register_dragonbones_BaseObject(se::Object* obj) // NOLINT(readability-i return true; } se::Object* __jsb_dragonBones_Rectangle_proto = nullptr; -se::Class* __jsb_dragonBones_Rectangle_class = nullptr; +se::Class* __jsb_dragonBones_Rectangle_class = nullptr; static bool js_dragonbones_Rectangle_clear(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Rectangle_clear : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->clear(); return true; @@ -139,10 +141,13 @@ static bool js_dragonbones_Rectangle_constructor(se::State& s) // NOLINT(readabi } SE_BIND_CTOR(js_dragonbones_Rectangle_constructor, __jsb_dragonBones_Rectangle_class, js_dragonBones_Rectangle_finalize) + + static bool js_dragonBones_Rectangle_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -167,7 +172,7 @@ bool js_register_dragonbones_Rectangle(se::Object* obj) // NOLINT(readability-id return true; } se::Object* __jsb_dragonBones_Matrix_proto = nullptr; -se::Class* __jsb_dragonBones_Matrix_class = nullptr; +se::Class* __jsb_dragonBones_Matrix_class = nullptr; static bool js_dragonbones_Matrix_get_a(se::State& s) // NOLINT(readability-identifier-naming) { @@ -175,7 +180,7 @@ static bool js_dragonbones_Matrix_get_a(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_dragonbones_Matrix_get_a : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->a, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->a, s.thisObject(), s.rval()); @@ -186,7 +191,7 @@ SE_BIND_PROP_GET(js_dragonbones_Matrix_get_a) static bool js_dragonbones_Matrix_set_a(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Matrix_set_a : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -202,7 +207,7 @@ static bool js_dragonbones_Matrix_get_b(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_dragonbones_Matrix_get_b : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->b, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->b, s.thisObject(), s.rval()); @@ -213,7 +218,7 @@ SE_BIND_PROP_GET(js_dragonbones_Matrix_get_b) static bool js_dragonbones_Matrix_set_b(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Matrix_set_b : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -229,7 +234,7 @@ static bool js_dragonbones_Matrix_get_c(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_dragonbones_Matrix_get_c : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->c, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->c, s.thisObject(), s.rval()); @@ -240,7 +245,7 @@ SE_BIND_PROP_GET(js_dragonbones_Matrix_get_c) static bool js_dragonbones_Matrix_set_c(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Matrix_set_c : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -256,7 +261,7 @@ static bool js_dragonbones_Matrix_get_d(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_dragonbones_Matrix_get_d : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->d, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->d, s.thisObject(), s.rval()); @@ -267,7 +272,7 @@ SE_BIND_PROP_GET(js_dragonbones_Matrix_get_d) static bool js_dragonbones_Matrix_set_d(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Matrix_set_d : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -283,7 +288,7 @@ static bool js_dragonbones_Matrix_get_tx(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_dragonbones_Matrix_get_tx : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->tx, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->tx, s.thisObject(), s.rval()); @@ -294,7 +299,7 @@ SE_BIND_PROP_GET(js_dragonbones_Matrix_get_tx) static bool js_dragonbones_Matrix_set_tx(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Matrix_set_tx : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -310,7 +315,7 @@ static bool js_dragonbones_Matrix_get_ty(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_dragonbones_Matrix_get_ty : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->ty, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->ty, s.thisObject(), s.rval()); @@ -321,7 +326,7 @@ SE_BIND_PROP_GET(js_dragonbones_Matrix_get_ty) static bool js_dragonbones_Matrix_set_ty(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Matrix_set_ty : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -331,6 +336,8 @@ static bool js_dragonbones_Matrix_set_ty(se::State& s) // NOLINT(readability-ide } SE_BIND_PROP_SET(js_dragonbones_Matrix_set_ty) + + bool js_register_dragonbones_Matrix(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("Matrix", obj, nullptr, nullptr); @@ -351,13 +358,13 @@ bool js_register_dragonbones_Matrix(se::Object* obj) // NOLINT(readability-ident return true; } se::Object* __jsb_dragonBones_Transform_proto = nullptr; -se::Class* __jsb_dragonBones_Transform_class = nullptr; +se::Class* __jsb_dragonBones_Transform_class = nullptr; static bool js_dragonbones_Transform_normalizeRadian(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -379,7 +386,7 @@ static bool js_dragonbones_Transform_get_x(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_dragonbones_Transform_get_x : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->x, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->x, s.thisObject(), s.rval()); @@ -390,7 +397,7 @@ SE_BIND_PROP_GET(js_dragonbones_Transform_get_x) static bool js_dragonbones_Transform_set_x(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Transform_set_x : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -406,7 +413,7 @@ static bool js_dragonbones_Transform_get_y(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_dragonbones_Transform_get_y : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->y, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->y, s.thisObject(), s.rval()); @@ -417,7 +424,7 @@ SE_BIND_PROP_GET(js_dragonbones_Transform_get_y) static bool js_dragonbones_Transform_set_y(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Transform_set_y : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -433,7 +440,7 @@ static bool js_dragonbones_Transform_get_skew(se::State& s) // NOLINT(readabilit SE_PRECONDITION2(cobj, false, "js_dragonbones_Transform_get_skew : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->skew, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->skew, s.thisObject(), s.rval()); @@ -444,7 +451,7 @@ SE_BIND_PROP_GET(js_dragonbones_Transform_get_skew) static bool js_dragonbones_Transform_set_skew(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Transform_set_skew : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -460,7 +467,7 @@ static bool js_dragonbones_Transform_get_rotation(se::State& s) // NOLINT(readab SE_PRECONDITION2(cobj, false, "js_dragonbones_Transform_get_rotation : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->rotation, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->rotation, s.thisObject(), s.rval()); @@ -471,7 +478,7 @@ SE_BIND_PROP_GET(js_dragonbones_Transform_get_rotation) static bool js_dragonbones_Transform_set_rotation(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Transform_set_rotation : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -487,7 +494,7 @@ static bool js_dragonbones_Transform_get_scaleX(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_dragonbones_Transform_get_scaleX : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->scaleX, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->scaleX, s.thisObject(), s.rval()); @@ -498,7 +505,7 @@ SE_BIND_PROP_GET(js_dragonbones_Transform_get_scaleX) static bool js_dragonbones_Transform_set_scaleX(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Transform_set_scaleX : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -514,7 +521,7 @@ static bool js_dragonbones_Transform_get_scaleY(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_dragonbones_Transform_get_scaleY : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->scaleY, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->scaleY, s.thisObject(), s.rval()); @@ -525,7 +532,7 @@ SE_BIND_PROP_GET(js_dragonbones_Transform_get_scaleY) static bool js_dragonbones_Transform_set_scaleY(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Transform_set_scaleY : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -535,6 +542,8 @@ static bool js_dragonbones_Transform_set_scaleY(se::State& s) // NOLINT(readabil } SE_BIND_PROP_SET(js_dragonbones_Transform_set_scaleY) + + bool js_register_dragonbones_Transform(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("Transform", obj, nullptr, nullptr); @@ -556,15 +565,15 @@ bool js_register_dragonbones_Transform(se::Object* obj) // NOLINT(readability-id return true; } se::Object* __jsb_dragonBones_TextureAtlasData_proto = nullptr; -se::Class* __jsb_dragonBones_TextureAtlasData_class = nullptr; +se::Class* __jsb_dragonBones_TextureAtlasData_class = nullptr; static bool js_dragonbones_TextureAtlasData_addTexture(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_TextureAtlasData_addTexture : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -581,9 +590,9 @@ static bool js_dragonbones_TextureAtlasData_createTexture(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_TextureAtlasData_createTexture : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::TextureData* result = cobj->createTexture(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -600,9 +609,9 @@ static bool js_dragonbones_TextureAtlasData_getTexture(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_TextureAtlasData_getTexture : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -624,7 +633,7 @@ static bool js_dragonbones_TextureAtlasData_get_name(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_dragonbones_TextureAtlasData_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -635,7 +644,7 @@ SE_BIND_PROP_GET(js_dragonbones_TextureAtlasData_get_name) static bool js_dragonbones_TextureAtlasData_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_TextureAtlasData_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -645,6 +654,8 @@ static bool js_dragonbones_TextureAtlasData_set_name(se::State& s) // NOLINT(rea } SE_BIND_PROP_SET(js_dragonbones_TextureAtlasData_set_name) + + bool js_register_dragonbones_TextureAtlasData(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("TextureAtlasData", obj, __jsb_dragonBones_BaseObject_proto, nullptr); @@ -663,15 +674,15 @@ bool js_register_dragonbones_TextureAtlasData(se::Object* obj) // NOLINT(readabi return true; } se::Object* __jsb_dragonBones_TextureData_proto = nullptr; -se::Class* __jsb_dragonBones_TextureData_class = nullptr; +se::Class* __jsb_dragonBones_TextureData_class = nullptr; static bool js_dragonbones_TextureData_getFrame(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_TextureData_getFrame : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const dragonBones::Rectangle* result = cobj->getFrame(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -688,9 +699,9 @@ static bool js_dragonbones_TextureData_getParent(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_TextureData_getParent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const dragonBones::TextureAtlasData* result = cobj->getParent(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -707,9 +718,9 @@ static bool js_dragonbones_TextureData_getRegion(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_TextureData_getRegion : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Rectangle* result = cobj->getRegion(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -726,9 +737,9 @@ static bool js_dragonbones_TextureData_setFrame(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_TextureData_setFrame : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -745,9 +756,9 @@ static bool js_dragonbones_TextureData_setParent(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_TextureData_setParent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -762,9 +773,9 @@ SE_BIND_FUNC(js_dragonbones_TextureData_setParent) static bool js_dragonbones_TextureData_createRectangle(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Rectangle* result = dragonBones::TextureData::createRectangle(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -777,6 +788,8 @@ static bool js_dragonbones_TextureData_createRectangle(se::State& s) // NOLINT(r } SE_BIND_FUNC(js_dragonbones_TextureData_createRectangle) + + bool js_register_dragonbones_TextureData(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("TextureData", obj, __jsb_dragonBones_BaseObject_proto, nullptr); @@ -797,15 +810,15 @@ bool js_register_dragonbones_TextureData(se::Object* obj) // NOLINT(readability- return true; } se::Object* __jsb_dragonBones_ArmatureData_proto = nullptr; -se::Class* __jsb_dragonBones_ArmatureData_class = nullptr; +se::Class* __jsb_dragonBones_ArmatureData_class = nullptr; static bool js_dragonbones_ArmatureData_getAABB(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_getAABB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Rectangle* result = cobj->getAABB(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -822,9 +835,9 @@ static bool js_dragonbones_ArmatureData_getAnimation(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_getAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -844,9 +857,9 @@ static bool js_dragonbones_ArmatureData_getAnimationNames(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_getAnimationNames : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getAnimationNames(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -863,9 +876,9 @@ static bool js_dragonbones_ArmatureData_getBone(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_getBone : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -885,9 +898,9 @@ static bool js_dragonbones_ArmatureData_getDefaultAnimation(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_getDefaultAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::AnimationData* result = cobj->getDefaultAnimation(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -904,9 +917,9 @@ static bool js_dragonbones_ArmatureData_getDefaultSkin(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_getDefaultSkin : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::SkinData* result = cobj->getDefaultSkin(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -923,9 +936,9 @@ static bool js_dragonbones_ArmatureData_getMesh(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_getMesh : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -949,9 +962,9 @@ static bool js_dragonbones_ArmatureData_getParent(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_getParent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const dragonBones::DragonBonesData* result = cobj->getParent(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -968,9 +981,9 @@ static bool js_dragonbones_ArmatureData_getSkin(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_getSkin : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -990,9 +1003,9 @@ static bool js_dragonbones_ArmatureData_getSlot(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_getSlot : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1012,9 +1025,9 @@ static bool js_dragonbones_ArmatureData_getType(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_getType : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getType(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1031,9 +1044,9 @@ static bool js_dragonbones_ArmatureData_setDefaultAnimation(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_setDefaultAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1050,9 +1063,9 @@ static bool js_dragonbones_ArmatureData_setDefaultSkin(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_setDefaultSkin : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1069,9 +1082,9 @@ static bool js_dragonbones_ArmatureData_setParent(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_setParent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1088,9 +1101,9 @@ static bool js_dragonbones_ArmatureData_setType(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_setType : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1108,7 +1121,7 @@ static bool js_dragonbones_ArmatureData_sortBones(se::State& s) // NOLINT(readab auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_sortBones : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->sortBones(); return true; @@ -1124,7 +1137,7 @@ static bool js_dragonbones_ArmatureData_get_frameRate(se::State& s) // NOLINT(re SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_get_frameRate : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->frameRate, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->frameRate, s.thisObject(), s.rval()); @@ -1135,7 +1148,7 @@ SE_BIND_PROP_GET(js_dragonbones_ArmatureData_get_frameRate) static bool js_dragonbones_ArmatureData_set_frameRate(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_set_frameRate : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1151,7 +1164,7 @@ static bool js_dragonbones_ArmatureData_get_name(se::State& s) // NOLINT(readabi SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -1162,7 +1175,7 @@ SE_BIND_PROP_GET(js_dragonbones_ArmatureData_get_name) static bool js_dragonbones_ArmatureData_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1172,6 +1185,8 @@ static bool js_dragonbones_ArmatureData_set_name(se::State& s) // NOLINT(readabi } SE_BIND_PROP_SET(js_dragonbones_ArmatureData_set_name) + + bool js_register_dragonbones_ArmatureData(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("ArmatureData", obj, __jsb_dragonBones_BaseObject_proto, nullptr); @@ -1204,15 +1219,15 @@ bool js_register_dragonbones_ArmatureData(se::Object* obj) // NOLINT(readability return true; } se::Object* __jsb_dragonBones_BoneData_proto = nullptr; -se::Class* __jsb_dragonBones_BoneData_class = nullptr; +se::Class* __jsb_dragonBones_BoneData_class = nullptr; static bool js_dragonbones_BoneData_getParent(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BoneData_getParent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const dragonBones::BoneData* result = cobj->getParent(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1229,9 +1244,9 @@ static bool js_dragonbones_BoneData_getTransfrom(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BoneData_getTransfrom : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Transform* result = cobj->getTransfrom(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1248,9 +1263,9 @@ static bool js_dragonbones_BoneData_setParent(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BoneData_setParent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1269,7 +1284,7 @@ static bool js_dragonbones_BoneData_get_name(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_dragonbones_BoneData_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -1280,7 +1295,7 @@ SE_BIND_PROP_GET(js_dragonbones_BoneData_get_name) static bool js_dragonbones_BoneData_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BoneData_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1296,7 +1311,7 @@ static bool js_dragonbones_BoneData_get_parent(se::State& s) // NOLINT(readabili SE_PRECONDITION2(cobj, false, "js_dragonbones_BoneData_get_parent : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->parent, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->parent, s.thisObject(), s.rval()); @@ -1307,7 +1322,7 @@ SE_BIND_PROP_GET(js_dragonbones_BoneData_get_parent) static bool js_dragonbones_BoneData_set_parent(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BoneData_set_parent : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1317,6 +1332,8 @@ static bool js_dragonbones_BoneData_set_parent(se::State& s) // NOLINT(readabili } SE_BIND_PROP_SET(js_dragonbones_BoneData_set_parent) + + bool js_register_dragonbones_BoneData(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("BoneData", obj, __jsb_dragonBones_BaseObject_proto, nullptr); @@ -1336,15 +1353,15 @@ bool js_register_dragonbones_BoneData(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_dragonBones_SlotData_proto = nullptr; -se::Class* __jsb_dragonBones_SlotData_class = nullptr; +se::Class* __jsb_dragonBones_SlotData_class = nullptr; static bool js_dragonbones_SlotData_getBlendMode(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_SlotData_getBlendMode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getBlendMode(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1361,9 +1378,9 @@ static bool js_dragonbones_SlotData_getParent(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_SlotData_getParent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const dragonBones::BoneData* result = cobj->getParent(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1380,9 +1397,9 @@ static bool js_dragonbones_SlotData_setBlendMode(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_SlotData_setBlendMode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1399,9 +1416,9 @@ static bool js_dragonbones_SlotData_setParent(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_SlotData_setParent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1420,7 +1437,7 @@ static bool js_dragonbones_SlotData_get_name(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_dragonbones_SlotData_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -1431,7 +1448,7 @@ SE_BIND_PROP_GET(js_dragonbones_SlotData_get_name) static bool js_dragonbones_SlotData_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_SlotData_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1447,7 +1464,7 @@ static bool js_dragonbones_SlotData_get_parent(se::State& s) // NOLINT(readabili SE_PRECONDITION2(cobj, false, "js_dragonbones_SlotData_get_parent : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->parent, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->parent, s.thisObject(), s.rval()); @@ -1458,7 +1475,7 @@ SE_BIND_PROP_GET(js_dragonbones_SlotData_get_parent) static bool js_dragonbones_SlotData_set_parent(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_SlotData_set_parent : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1468,6 +1485,8 @@ static bool js_dragonbones_SlotData_set_parent(se::State& s) // NOLINT(readabili } SE_BIND_PROP_SET(js_dragonbones_SlotData_set_parent) + + bool js_register_dragonbones_SlotData(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("SlotData", obj, __jsb_dragonBones_BaseObject_proto, nullptr); @@ -1488,15 +1507,15 @@ bool js_register_dragonbones_SlotData(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_dragonBones_DragonBonesData_proto = nullptr; -se::Class* __jsb_dragonBones_DragonBonesData_class = nullptr; +se::Class* __jsb_dragonBones_DragonBonesData_class = nullptr; static bool js_dragonbones_DragonBonesData_addArmature(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_DragonBonesData_addArmature : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1513,9 +1532,9 @@ static bool js_dragonbones_DragonBonesData_getArmature(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_DragonBonesData_getArmature : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1535,9 +1554,9 @@ static bool js_dragonbones_DragonBonesData_getArmatureNames(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_DragonBonesData_getArmatureNames : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getArmatureNames(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1554,9 +1573,9 @@ static bool js_dragonbones_DragonBonesData_getFrameIndices(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_DragonBonesData_getFrameIndices : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { std::vector* result = cobj->getFrameIndices(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1575,7 +1594,7 @@ static bool js_dragonbones_DragonBonesData_get_name(se::State& s) // NOLINT(read SE_PRECONDITION2(cobj, false, "js_dragonbones_DragonBonesData_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -1586,7 +1605,7 @@ SE_BIND_PROP_GET(js_dragonbones_DragonBonesData_get_name) static bool js_dragonbones_DragonBonesData_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_DragonBonesData_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1596,6 +1615,8 @@ static bool js_dragonbones_DragonBonesData_set_name(se::State& s) // NOLINT(read } SE_BIND_PROP_SET(js_dragonbones_DragonBonesData_set_name) + + bool js_register_dragonbones_DragonBonesData(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("DragonBonesData", obj, __jsb_dragonBones_BaseObject_proto, nullptr); @@ -1615,7 +1636,7 @@ bool js_register_dragonbones_DragonBonesData(se::Object* obj) // NOLINT(readabil return true; } se::Object* __jsb_dragonBones_SkinData_proto = nullptr; -se::Class* __jsb_dragonBones_SkinData_class = nullptr; +se::Class* __jsb_dragonBones_SkinData_class = nullptr; static bool js_dragonbones_SkinData_get_name(se::State& s) // NOLINT(readability-identifier-naming) { @@ -1623,7 +1644,7 @@ static bool js_dragonbones_SkinData_get_name(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_dragonbones_SkinData_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -1634,7 +1655,7 @@ SE_BIND_PROP_GET(js_dragonbones_SkinData_get_name) static bool js_dragonbones_SkinData_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_SkinData_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1644,6 +1665,8 @@ static bool js_dragonbones_SkinData_set_name(se::State& s) // NOLINT(readability } SE_BIND_PROP_SET(js_dragonbones_SkinData_set_name) + + bool js_register_dragonbones_SkinData(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("SkinData", obj, __jsb_dragonBones_BaseObject_proto, nullptr); @@ -1659,15 +1682,15 @@ bool js_register_dragonbones_SkinData(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_dragonBones_AnimationData_proto = nullptr; -se::Class* __jsb_dragonBones_AnimationData_class = nullptr; +se::Class* __jsb_dragonBones_AnimationData_class = nullptr; static bool js_dragonbones_AnimationData_getBoneCachedFrameIndices(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationData_getBoneCachedFrameIndices : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1687,9 +1710,9 @@ static bool js_dragonbones_AnimationData_getParent(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationData_getParent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::ArmatureData* result = cobj->getParent(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1706,9 +1729,9 @@ static bool js_dragonbones_AnimationData_getSlotCachedFrameIndices(se::State& s) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationData_getSlotCachedFrameIndices : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1728,9 +1751,9 @@ static bool js_dragonbones_AnimationData_getZOrderTimeline(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationData_getZOrderTimeline : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::TimelineData* result = cobj->getZOrderTimeline(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1747,9 +1770,9 @@ static bool js_dragonbones_AnimationData_setParent(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationData_setParent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1768,7 +1791,7 @@ static bool js_dragonbones_AnimationData_get_frameCount(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationData_get_frameCount : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->frameCount, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->frameCount, s.thisObject(), s.rval()); @@ -1779,7 +1802,7 @@ SE_BIND_PROP_GET(js_dragonbones_AnimationData_get_frameCount) static bool js_dragonbones_AnimationData_set_frameCount(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationData_set_frameCount : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1795,7 +1818,7 @@ static bool js_dragonbones_AnimationData_get_playTimes(se::State& s) // NOLINT(r SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationData_get_playTimes : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->playTimes, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->playTimes, s.thisObject(), s.rval()); @@ -1806,7 +1829,7 @@ SE_BIND_PROP_GET(js_dragonbones_AnimationData_get_playTimes) static bool js_dragonbones_AnimationData_set_playTimes(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationData_set_playTimes : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1822,7 +1845,7 @@ static bool js_dragonbones_AnimationData_get_duration(se::State& s) // NOLINT(re SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationData_get_duration : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->duration, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->duration, s.thisObject(), s.rval()); @@ -1833,7 +1856,7 @@ SE_BIND_PROP_GET(js_dragonbones_AnimationData_get_duration) static bool js_dragonbones_AnimationData_set_duration(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationData_set_duration : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1849,7 +1872,7 @@ static bool js_dragonbones_AnimationData_get_fadeInTime(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationData_get_fadeInTime : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->fadeInTime, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->fadeInTime, s.thisObject(), s.rval()); @@ -1860,7 +1883,7 @@ SE_BIND_PROP_GET(js_dragonbones_AnimationData_get_fadeInTime) static bool js_dragonbones_AnimationData_set_fadeInTime(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationData_set_fadeInTime : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1876,7 +1899,7 @@ static bool js_dragonbones_AnimationData_get_name(se::State& s) // NOLINT(readab SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationData_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -1887,7 +1910,7 @@ SE_BIND_PROP_GET(js_dragonbones_AnimationData_get_name) static bool js_dragonbones_AnimationData_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationData_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1897,6 +1920,8 @@ static bool js_dragonbones_AnimationData_set_name(se::State& s) // NOLINT(readab } SE_BIND_PROP_SET(js_dragonbones_AnimationData_set_name) + + bool js_register_dragonbones_AnimationData(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("AnimationData", obj, nullptr, nullptr); @@ -1921,15 +1946,15 @@ bool js_register_dragonbones_AnimationData(se::Object* obj) // NOLINT(readabilit return true; } se::Object* __jsb_dragonBones_Armature_proto = nullptr; -se::Class* __jsb_dragonBones_Armature_class = nullptr; +se::Class* __jsb_dragonBones_Armature_class = nullptr; static bool js_dragonbones_Armature__addBone(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature__addBone : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1946,9 +1971,9 @@ static bool js_dragonbones_Armature__addSlot(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature__addSlot : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1965,12 +1990,12 @@ static bool js_dragonbones_Armature__bufferAction(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature__bufferAction : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_Armature__bufferAction : Error processing arguments"); @@ -1986,9 +2011,9 @@ static bool js_dragonbones_Armature_advanceTime(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_advanceTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2005,9 +2030,9 @@ static bool js_dragonbones_Armature_containsPoint(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_containsPoint : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -2030,7 +2055,7 @@ static bool js_dragonbones_Armature_dispose(se::State& s) // NOLINT(readability- auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_dispose : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->dispose(); return true; @@ -2044,9 +2069,9 @@ static bool js_dragonbones_Armature_getAnimation(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_getAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Animation* result = cobj->getAnimation(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2063,9 +2088,9 @@ static bool js_dragonbones_Armature_getArmatureData(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_getArmatureData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const dragonBones::ArmatureData* result = cobj->getArmatureData(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2082,9 +2107,9 @@ static bool js_dragonbones_Armature_getBone(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_getBone : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2104,9 +2129,9 @@ static bool js_dragonbones_Armature_getCacheFrameRate(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_getCacheFrameRate : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getCacheFrameRate(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2123,9 +2148,9 @@ static bool js_dragonbones_Armature_getClock(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_getClock : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::WorldClock* result = cobj->getClock(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2142,9 +2167,9 @@ static bool js_dragonbones_Armature_getEventDispatcher(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_getEventDispatcher : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::IEventDispatcher* result = cobj->getEventDispatcher(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2161,9 +2186,9 @@ static bool js_dragonbones_Armature_getFlipX(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_getFlipX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getFlipX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2180,9 +2205,9 @@ static bool js_dragonbones_Armature_getFlipY(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_getFlipY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getFlipY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2199,9 +2224,9 @@ static bool js_dragonbones_Armature_getName(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_getName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::string& result = cobj->getName(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2218,9 +2243,9 @@ static bool js_dragonbones_Armature_getParent(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_getParent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Slot* result = cobj->getParent(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2237,9 +2262,9 @@ static bool js_dragonbones_Armature_getProxy(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_getProxy : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::IArmatureProxy* result = cobj->getProxy(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2256,9 +2281,9 @@ static bool js_dragonbones_Armature_getSlot(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_getSlot : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2278,9 +2303,9 @@ static bool js_dragonbones_Armature_invalidUpdate(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_invalidUpdate : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cobj->invalidUpdate(); return true; @@ -2294,7 +2319,7 @@ static bool js_dragonbones_Armature_invalidUpdate(se::State& s) // NOLINT(readab } if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_Armature_invalidUpdate : Error processing arguments"); @@ -2311,7 +2336,7 @@ static bool js_dragonbones_Armature_render(se::State& s) // NOLINT(readability-i auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_render : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->render(); return true; @@ -2325,9 +2350,9 @@ static bool js_dragonbones_Armature_setCacheFrameRate(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_setCacheFrameRate : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2344,9 +2369,9 @@ static bool js_dragonbones_Armature_setClock(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_setClock : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2363,9 +2388,9 @@ static bool js_dragonbones_Armature_setFlipX(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_setFlipX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2382,9 +2407,9 @@ static bool js_dragonbones_Armature_setFlipY(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_setFlipY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2397,6 +2422,8 @@ static bool js_dragonbones_Armature_setFlipY(se::State& s) // NOLINT(readability } SE_BIND_FUNC(js_dragonbones_Armature_setFlipY) + + bool js_register_dragonbones_Armature(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("Armature", obj, __jsb_dragonBones_BaseObject_proto, nullptr); @@ -2435,15 +2462,15 @@ bool js_register_dragonbones_Armature(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_dragonBones_TransformObject_proto = nullptr; -se::Class* __jsb_dragonBones_TransformObject_class = nullptr; +se::Class* __jsb_dragonBones_TransformObject_class = nullptr; static bool js_dragonbones_TransformObject_getArmature(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_TransformObject_getArmature : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Armature* result = cobj->getArmature(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2460,9 +2487,9 @@ static bool js_dragonbones_TransformObject_getGlobal(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_TransformObject_getGlobal : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Transform* result = cobj->getGlobal(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2479,9 +2506,9 @@ static bool js_dragonbones_TransformObject_getGlobalTransformMatrix(se::State& s { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_TransformObject_getGlobalTransformMatrix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Matrix* result = cobj->getGlobalTransformMatrix(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2498,9 +2525,9 @@ static bool js_dragonbones_TransformObject_getOffset(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_TransformObject_getOffset : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Transform* result = cobj->getOffset(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2517,9 +2544,9 @@ static bool js_dragonbones_TransformObject_getOrigin(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_TransformObject_getOrigin : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const dragonBones::Transform* result = cobj->getOrigin(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2537,7 +2564,7 @@ static bool js_dragonbones_TransformObject_updateGlobalTransform(se::State& s) / auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_TransformObject_updateGlobalTransform : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->updateGlobalTransform(); return true; @@ -2547,6 +2574,8 @@ static bool js_dragonbones_TransformObject_updateGlobalTransform(se::State& s) / } SE_BIND_FUNC(js_dragonbones_TransformObject_updateGlobalTransform) + + bool js_register_dragonbones_TransformObject(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("TransformObject", obj, __jsb_dragonBones_BaseObject_proto, nullptr); @@ -2567,15 +2596,15 @@ bool js_register_dragonbones_TransformObject(se::Object* obj) // NOLINT(readabil return true; } se::Object* __jsb_dragonBones_AnimationState_proto = nullptr; -se::Class* __jsb_dragonBones_AnimationState_class = nullptr; +se::Class* __jsb_dragonBones_AnimationState_class = nullptr; static bool js_dragonbones_AnimationState_addBoneMask(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_addBoneMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2585,7 +2614,7 @@ static bool js_dragonbones_AnimationState_addBoneMask(se::State& s) // NOLINT(re } if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_AnimationState_addBoneMask : Error processing arguments"); @@ -2601,9 +2630,9 @@ static bool js_dragonbones_AnimationState_advanceTime(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_advanceTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -2622,9 +2651,9 @@ static bool js_dragonbones_AnimationState_containsBoneMask(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_containsBoneMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2644,9 +2673,9 @@ static bool js_dragonbones_AnimationState_fadeOut(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_fadeOut : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2656,7 +2685,7 @@ static bool js_dragonbones_AnimationState_fadeOut(se::State& s) // NOLINT(readab } if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_AnimationState_fadeOut : Error processing arguments"); @@ -2672,9 +2701,9 @@ static bool js_dragonbones_AnimationState_getAnimationData(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_getAnimationData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const dragonBones::AnimationData* result = cobj->getAnimationData(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2691,9 +2720,9 @@ static bool js_dragonbones_AnimationState_getCurrentPlayTimes(se::State& s) // N { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_getCurrentPlayTimes : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getCurrentPlayTimes(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2710,9 +2739,9 @@ static bool js_dragonbones_AnimationState_getCurrentTime(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_getCurrentTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getCurrentTime(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2729,9 +2758,9 @@ static bool js_dragonbones_AnimationState_getName(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_getName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::string& result = cobj->getName(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2748,9 +2777,9 @@ static bool js_dragonbones_AnimationState_getTotalTime(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_getTotalTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getTotalTime(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2767,9 +2796,9 @@ static bool js_dragonbones_AnimationState_isCompleted(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_isCompleted : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isCompleted(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2786,9 +2815,9 @@ static bool js_dragonbones_AnimationState_isFadeComplete(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_isFadeComplete : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isFadeComplete(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2805,9 +2834,9 @@ static bool js_dragonbones_AnimationState_isFadeIn(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_isFadeIn : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isFadeIn(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2824,9 +2853,9 @@ static bool js_dragonbones_AnimationState_isFadeOut(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_isFadeOut : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isFadeOut(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2843,9 +2872,9 @@ static bool js_dragonbones_AnimationState_isPlaying(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_isPlaying : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isPlaying(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2863,7 +2892,7 @@ static bool js_dragonbones_AnimationState_play(se::State& s) // NOLINT(readabili auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_play : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->play(); return true; @@ -2878,7 +2907,7 @@ static bool js_dragonbones_AnimationState_removeAllBoneMask(se::State& s) // NOL auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_removeAllBoneMask : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->removeAllBoneMask(); return true; @@ -2892,9 +2921,9 @@ static bool js_dragonbones_AnimationState_removeBoneMask(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_removeBoneMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2904,7 +2933,7 @@ static bool js_dragonbones_AnimationState_removeBoneMask(se::State& s) // NOLINT } if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_AnimationState_removeBoneMask : Error processing arguments"); @@ -2920,9 +2949,9 @@ static bool js_dragonbones_AnimationState_setCurrentTime(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_setCurrentTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2940,7 +2969,7 @@ static bool js_dragonbones_AnimationState_stop(se::State& s) // NOLINT(readabili auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_stop : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->stop(); return true; @@ -2956,7 +2985,7 @@ static bool js_dragonbones_AnimationState_get_additiveBlending(se::State& s) // SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_get_additiveBlending : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->additiveBlending, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->additiveBlending, s.thisObject(), s.rval()); @@ -2967,7 +2996,7 @@ SE_BIND_PROP_GET(js_dragonbones_AnimationState_get_additiveBlending) static bool js_dragonbones_AnimationState_set_additiveBlending(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_set_additiveBlending : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2983,7 +3012,7 @@ static bool js_dragonbones_AnimationState_get_displayControl(se::State& s) // NO SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_get_displayControl : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->displayControl, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->displayControl, s.thisObject(), s.rval()); @@ -2994,7 +3023,7 @@ SE_BIND_PROP_GET(js_dragonbones_AnimationState_get_displayControl) static bool js_dragonbones_AnimationState_set_displayControl(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_set_displayControl : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3010,7 +3039,7 @@ static bool js_dragonbones_AnimationState_get_playTimes(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_get_playTimes : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->playTimes, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->playTimes, s.thisObject(), s.rval()); @@ -3021,7 +3050,7 @@ SE_BIND_PROP_GET(js_dragonbones_AnimationState_get_playTimes) static bool js_dragonbones_AnimationState_set_playTimes(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_set_playTimes : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3037,7 +3066,7 @@ static bool js_dragonbones_AnimationState_get_timeScale(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_get_timeScale : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->timeScale, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->timeScale, s.thisObject(), s.rval()); @@ -3048,7 +3077,7 @@ SE_BIND_PROP_GET(js_dragonbones_AnimationState_get_timeScale) static bool js_dragonbones_AnimationState_set_timeScale(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_set_timeScale : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3064,7 +3093,7 @@ static bool js_dragonbones_AnimationState_get_weight(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_get_weight : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->weight, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->weight, s.thisObject(), s.rval()); @@ -3075,7 +3104,7 @@ SE_BIND_PROP_GET(js_dragonbones_AnimationState_get_weight) static bool js_dragonbones_AnimationState_set_weight(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_set_weight : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3091,7 +3120,7 @@ static bool js_dragonbones_AnimationState_get_autoFadeOutTime(se::State& s) // N SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_get_autoFadeOutTime : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->autoFadeOutTime, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->autoFadeOutTime, s.thisObject(), s.rval()); @@ -3102,7 +3131,7 @@ SE_BIND_PROP_GET(js_dragonbones_AnimationState_get_autoFadeOutTime) static bool js_dragonbones_AnimationState_set_autoFadeOutTime(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_set_autoFadeOutTime : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3118,7 +3147,7 @@ static bool js_dragonbones_AnimationState_get_fadeTotalTime(se::State& s) // NOL SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_get_fadeTotalTime : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->fadeTotalTime, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->fadeTotalTime, s.thisObject(), s.rval()); @@ -3129,7 +3158,7 @@ SE_BIND_PROP_GET(js_dragonbones_AnimationState_get_fadeTotalTime) static bool js_dragonbones_AnimationState_set_fadeTotalTime(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_set_fadeTotalTime : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3145,7 +3174,7 @@ static bool js_dragonbones_AnimationState_get_name(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -3156,7 +3185,7 @@ SE_BIND_PROP_GET(js_dragonbones_AnimationState_get_name) static bool js_dragonbones_AnimationState_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3166,6 +3195,8 @@ static bool js_dragonbones_AnimationState_set_name(se::State& s) // NOLINT(reada } SE_BIND_PROP_SET(js_dragonbones_AnimationState_set_name) + + bool js_register_dragonbones_AnimationState(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("AnimationState", obj, __jsb_dragonBones_BaseObject_proto, nullptr); @@ -3207,15 +3238,15 @@ bool js_register_dragonbones_AnimationState(se::Object* obj) // NOLINT(readabili return true; } se::Object* __jsb_dragonBones_Bone_proto = nullptr; -se::Class* __jsb_dragonBones_Bone_class = nullptr; +se::Class* __jsb_dragonBones_Bone_class = nullptr; static bool js_dragonbones_Bone_contains(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Bone_contains : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3235,9 +3266,9 @@ static bool js_dragonbones_Bone_getBoneData(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Bone_getBoneData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const dragonBones::BoneData* result = cobj->getBoneData(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3254,9 +3285,9 @@ static bool js_dragonbones_Bone_getName(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Bone_getName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::string& result = cobj->getName(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3273,9 +3304,9 @@ static bool js_dragonbones_Bone_getOffsetMode(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Bone_getOffsetMode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getOffsetMode(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3292,9 +3323,9 @@ static bool js_dragonbones_Bone_getParent(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Bone_getParent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Bone* result = cobj->getParent(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3311,9 +3342,9 @@ static bool js_dragonbones_Bone_getVisible(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Bone_getVisible : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getVisible(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3330,12 +3361,12 @@ static bool js_dragonbones_Bone_init(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Bone_init : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_Bone_init : Error processing arguments"); @@ -3352,7 +3383,7 @@ static bool js_dragonbones_Bone_invalidUpdate(se::State& s) // NOLINT(readabilit auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Bone_invalidUpdate : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->invalidUpdate(); return true; @@ -3366,9 +3397,9 @@ static bool js_dragonbones_Bone_setOffsetMode(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Bone_setOffsetMode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3385,9 +3416,9 @@ static bool js_dragonbones_Bone_setVisible(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Bone_setVisible : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3404,9 +3435,9 @@ static bool js_dragonbones_Bone_update(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Bone_update : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3424,7 +3455,7 @@ static bool js_dragonbones_Bone_updateByConstraint(se::State& s) // NOLINT(reada auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Bone_updateByConstraint : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->updateByConstraint(); return true; @@ -3434,6 +3465,8 @@ static bool js_dragonbones_Bone_updateByConstraint(se::State& s) // NOLINT(reada } SE_BIND_FUNC(js_dragonbones_Bone_updateByConstraint) + + bool js_register_dragonbones_Bone(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("Bone", obj, __jsb_dragonBones_TransformObject_proto, nullptr); @@ -3460,15 +3493,15 @@ bool js_register_dragonbones_Bone(se::Object* obj) // NOLINT(readability-identif return true; } se::Object* __jsb_dragonBones_Slot_proto = nullptr; -se::Class* __jsb_dragonBones_Slot_class = nullptr; +se::Class* __jsb_dragonBones_Slot_class = nullptr; static bool js_dragonbones_Slot__setZorder(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Slot__setZorder : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3489,7 +3522,7 @@ static bool js_dragonbones_Slot__updateColor(se::State& s) // NOLINT(readability auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Slot__updateColor : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->_updateColor(); return true; @@ -3503,9 +3536,9 @@ static bool js_dragonbones_Slot_containsPoint(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Slot_containsPoint : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -3527,9 +3560,9 @@ static bool js_dragonbones_Slot_getBoundingBoxData(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Slot_getBoundingBoxData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::BoundingBoxData* result = cobj->getBoundingBoxData(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3546,9 +3579,9 @@ static bool js_dragonbones_Slot_getChildArmature(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Slot_getChildArmature : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Armature* result = cobj->getChildArmature(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3565,9 +3598,9 @@ static bool js_dragonbones_Slot_getName(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Slot_getName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::string& result = cobj->getName(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3584,9 +3617,9 @@ static bool js_dragonbones_Slot_getParent(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Slot_getParent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Bone* result = cobj->getParent(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3603,9 +3636,9 @@ static bool js_dragonbones_Slot_getSlotData(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Slot_getSlotData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const dragonBones::SlotData* result = cobj->getSlotData(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3622,9 +3655,9 @@ static bool js_dragonbones_Slot_getVisible(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Slot_getVisible : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getVisible(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3642,7 +3675,7 @@ static bool js_dragonbones_Slot_invalidUpdate(se::State& s) // NOLINT(readabilit auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Slot_invalidUpdate : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->invalidUpdate(); return true; @@ -3656,9 +3689,9 @@ static bool js_dragonbones_Slot_setChildArmature(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Slot_setChildArmature : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3675,9 +3708,9 @@ static bool js_dragonbones_Slot_setVisible(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Slot_setVisible : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3694,9 +3727,9 @@ static bool js_dragonbones_Slot_update(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Slot_update : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3714,7 +3747,7 @@ static bool js_dragonbones_Slot_updateTransformAndMatrix(se::State& s) // NOLINT auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Slot_updateTransformAndMatrix : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->updateTransformAndMatrix(); return true; @@ -3730,7 +3763,7 @@ static bool js_dragonbones_Slot_get_displayController(se::State& s) // NOLINT(re SE_PRECONDITION2(cobj, false, "js_dragonbones_Slot_get_displayController : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->displayController, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->displayController, s.thisObject(), s.rval()); @@ -3741,7 +3774,7 @@ SE_BIND_PROP_GET(js_dragonbones_Slot_get_displayController) static bool js_dragonbones_Slot_set_displayController(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Slot_set_displayController : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3757,7 +3790,7 @@ static bool js_dragonbones_Slot_get__zOrder(se::State& s) // NOLINT(readability- SE_PRECONDITION2(cobj, false, "js_dragonbones_Slot_get__zOrder : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->_zOrder, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->_zOrder, s.thisObject(), s.rval()); @@ -3768,7 +3801,7 @@ SE_BIND_PROP_GET(js_dragonbones_Slot_get__zOrder) static bool js_dragonbones_Slot_set__zOrder(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Slot_set__zOrder : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3778,6 +3811,8 @@ static bool js_dragonbones_Slot_set__zOrder(se::State& s) // NOLINT(readability- } SE_BIND_PROP_SET(js_dragonbones_Slot_set__zOrder) + + bool js_register_dragonbones_Slot(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("Slot", obj, __jsb_dragonBones_TransformObject_proto, nullptr); @@ -3808,15 +3843,15 @@ bool js_register_dragonbones_Slot(se::Object* obj) // NOLINT(readability-identif return true; } se::Object* __jsb_dragonBones_WorldClock_proto = nullptr; -se::Class* __jsb_dragonBones_WorldClock_class = nullptr; +se::Class* __jsb_dragonBones_WorldClock_class = nullptr; static bool js_dragonbones_WorldClock_advanceTime(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_WorldClock_advanceTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3834,7 +3869,7 @@ static bool js_dragonbones_WorldClock_clear(se::State& s) // NOLINT(readability- auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_WorldClock_clear : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->clear(); return true; @@ -3848,9 +3883,9 @@ static bool js_dragonbones_WorldClock_getClock(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_WorldClock_getClock : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::WorldClock* result = cobj->getClock(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3868,7 +3903,7 @@ static bool js_dragonbones_WorldClock_render(se::State& s) // NOLINT(readability auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_WorldClock_render : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->render(); return true; @@ -3882,9 +3917,9 @@ static bool js_dragonbones_WorldClock_setClock(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_WorldClock_setClock : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3899,9 +3934,9 @@ SE_BIND_FUNC(js_dragonbones_WorldClock_setClock) static bool js_dragonbones_WorldClock_getStaticClock(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::WorldClock* result = dragonBones::WorldClock::getStaticClock(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3914,6 +3949,8 @@ static bool js_dragonbones_WorldClock_getStaticClock(se::State& s) // NOLINT(rea } SE_BIND_FUNC(js_dragonbones_WorldClock_getStaticClock) + + bool js_register_dragonbones_WorldClock(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("WorldClock", obj, nullptr, nullptr); @@ -3934,15 +3971,15 @@ bool js_register_dragonbones_WorldClock(se::Object* obj) // NOLINT(readability-i return true; } se::Object* __jsb_dragonBones_Animation_proto = nullptr; -se::Class* __jsb_dragonBones_Animation_class = nullptr; +se::Class* __jsb_dragonBones_Animation_class = nullptr; static bool js_dragonbones_Animation_advanceTime(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_advanceTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3959,9 +3996,9 @@ static bool js_dragonbones_Animation_fadeIn(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_fadeIn : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3974,7 +4011,7 @@ static bool js_dragonbones_Animation_fadeIn(se::State& s) // NOLINT(readability- } if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_Animation_fadeIn : Error processing arguments"); @@ -3986,8 +4023,8 @@ static bool js_dragonbones_Animation_fadeIn(se::State& s) // NOLINT(readability- } if (argc == 3) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -4000,9 +4037,9 @@ static bool js_dragonbones_Animation_fadeIn(se::State& s) // NOLINT(readability- } if (argc == 4) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -4016,9 +4053,9 @@ static bool js_dragonbones_Animation_fadeIn(se::State& s) // NOLINT(readability- } if (argc == 5) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; HolderType arg4 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -4033,11 +4070,11 @@ static bool js_dragonbones_Animation_fadeIn(se::State& s) // NOLINT(readability- return true; } if (argc == 6) { - HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; - HolderType arg4 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; + HolderType arg4 = {}; HolderType arg5 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -4061,9 +4098,9 @@ static bool js_dragonbones_Animation_getAnimationNames(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_getAnimationNames : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getAnimationNames(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4080,9 +4117,9 @@ static bool js_dragonbones_Animation_getLastAnimationName(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_getLastAnimationName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::string& result = cobj->getLastAnimationName(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4099,9 +4136,9 @@ static bool js_dragonbones_Animation_getLastAnimationState(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_getLastAnimationState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::AnimationState* result = cobj->getLastAnimationState(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4118,9 +4155,9 @@ static bool js_dragonbones_Animation_getState(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_getState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4140,9 +4177,9 @@ static bool js_dragonbones_Animation_gotoAndPlayByFrame(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_gotoAndPlayByFrame : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4154,7 +4191,7 @@ static bool js_dragonbones_Animation_gotoAndPlayByFrame(se::State& s) // NOLINT( return true; } if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -4166,9 +4203,9 @@ static bool js_dragonbones_Animation_gotoAndPlayByFrame(se::State& s) // NOLINT( return true; } if (argc == 3) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -4188,9 +4225,9 @@ static bool js_dragonbones_Animation_gotoAndPlayByProgress(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_gotoAndPlayByProgress : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4203,7 +4240,7 @@ static bool js_dragonbones_Animation_gotoAndPlayByProgress(se::State& s) // NOLI } if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_Animation_gotoAndPlayByProgress : Error processing arguments"); @@ -4215,8 +4252,8 @@ static bool js_dragonbones_Animation_gotoAndPlayByProgress(se::State& s) // NOLI } if (argc == 3) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -4236,9 +4273,9 @@ static bool js_dragonbones_Animation_gotoAndPlayByTime(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_gotoAndPlayByTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4251,7 +4288,7 @@ static bool js_dragonbones_Animation_gotoAndPlayByTime(se::State& s) // NOLINT(r } if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_Animation_gotoAndPlayByTime : Error processing arguments"); @@ -4263,8 +4300,8 @@ static bool js_dragonbones_Animation_gotoAndPlayByTime(se::State& s) // NOLINT(r } if (argc == 3) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -4284,9 +4321,9 @@ static bool js_dragonbones_Animation_gotoAndStopByFrame(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_gotoAndStopByFrame : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4298,7 +4335,7 @@ static bool js_dragonbones_Animation_gotoAndStopByFrame(se::State& s) // NOLINT( return true; } if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -4318,9 +4355,9 @@ static bool js_dragonbones_Animation_gotoAndStopByProgress(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_gotoAndStopByProgress : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4333,7 +4370,7 @@ static bool js_dragonbones_Animation_gotoAndStopByProgress(se::State& s) // NOLI } if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_Animation_gotoAndStopByProgress : Error processing arguments"); @@ -4352,9 +4389,9 @@ static bool js_dragonbones_Animation_gotoAndStopByTime(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_gotoAndStopByTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4367,7 +4404,7 @@ static bool js_dragonbones_Animation_gotoAndStopByTime(se::State& s) // NOLINT(r } if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_Animation_gotoAndStopByTime : Error processing arguments"); @@ -4386,9 +4423,9 @@ static bool js_dragonbones_Animation_hasAnimation(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_hasAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4408,9 +4445,9 @@ static bool js_dragonbones_Animation_init(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_init : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4427,9 +4464,9 @@ static bool js_dragonbones_Animation_isCompleted(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_isCompleted : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isCompleted(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4446,9 +4483,9 @@ static bool js_dragonbones_Animation_isPlaying(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_isPlaying : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isPlaying(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4465,9 +4502,9 @@ static bool js_dragonbones_Animation_play(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_play : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::AnimationState* result = cobj->play(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4487,7 +4524,7 @@ static bool js_dragonbones_Animation_play(se::State& s) // NOLINT(readability-id } if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_Animation_play : Error processing arguments"); @@ -4507,7 +4544,7 @@ static bool js_dragonbones_Animation_reset(se::State& s) // NOLINT(readability-i auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_reset : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->reset(); return true; @@ -4521,9 +4558,9 @@ static bool js_dragonbones_Animation_stop(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_stop : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4542,7 +4579,7 @@ static bool js_dragonbones_Animation_get_timeScale(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_get_timeScale : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->timeScale, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->timeScale, s.thisObject(), s.rval()); @@ -4553,7 +4590,7 @@ SE_BIND_PROP_GET(js_dragonbones_Animation_get_timeScale) static bool js_dragonbones_Animation_set_timeScale(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_set_timeScale : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4563,6 +4600,8 @@ static bool js_dragonbones_Animation_set_timeScale(se::State& s) // NOLINT(reada } SE_BIND_PROP_SET(js_dragonbones_Animation_set_timeScale) + + bool js_register_dragonbones_Animation(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("Animation", obj, __jsb_dragonBones_BaseObject_proto, nullptr); @@ -4597,15 +4636,15 @@ bool js_register_dragonbones_Animation(se::Object* obj) // NOLINT(readability-id return true; } se::Object* __jsb_dragonBones_EventObject_proto = nullptr; -se::Class* __jsb_dragonBones_EventObject_class = nullptr; +se::Class* __jsb_dragonBones_EventObject_class = nullptr; static bool js_dragonbones_EventObject_getAnimationState(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_EventObject_getAnimationState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::AnimationState* result = cobj->getAnimationState(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4622,9 +4661,9 @@ static bool js_dragonbones_EventObject_getArmature(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_EventObject_getArmature : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Armature* result = cobj->getArmature(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4641,9 +4680,9 @@ static bool js_dragonbones_EventObject_getBone(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_EventObject_getBone : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Bone* result = cobj->getBone(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4660,9 +4699,9 @@ static bool js_dragonbones_EventObject_getSlot(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_EventObject_getSlot : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Slot* result = cobj->getSlot(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4681,7 +4720,7 @@ static bool js_dragonbones_EventObject_get_type(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_dragonbones_EventObject_get_type : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->type, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->type, s.thisObject(), s.rval()); @@ -4692,7 +4731,7 @@ SE_BIND_PROP_GET(js_dragonbones_EventObject_get_type) static bool js_dragonbones_EventObject_set_type(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_EventObject_set_type : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4708,7 +4747,7 @@ static bool js_dragonbones_EventObject_get_name(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_dragonbones_EventObject_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -4719,7 +4758,7 @@ SE_BIND_PROP_GET(js_dragonbones_EventObject_get_name) static bool js_dragonbones_EventObject_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_EventObject_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4735,7 +4774,7 @@ static bool js_dragonbones_EventObject_get_armature(se::State& s) // NOLINT(read SE_PRECONDITION2(cobj, false, "js_dragonbones_EventObject_get_armature : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->armature, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->armature, s.thisObject(), s.rval()); @@ -4746,7 +4785,7 @@ SE_BIND_PROP_GET(js_dragonbones_EventObject_get_armature) static bool js_dragonbones_EventObject_set_armature(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_EventObject_set_armature : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4762,7 +4801,7 @@ static bool js_dragonbones_EventObject_get_bone(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_dragonbones_EventObject_get_bone : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->bone, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->bone, s.thisObject(), s.rval()); @@ -4773,7 +4812,7 @@ SE_BIND_PROP_GET(js_dragonbones_EventObject_get_bone) static bool js_dragonbones_EventObject_set_bone(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_EventObject_set_bone : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4789,7 +4828,7 @@ static bool js_dragonbones_EventObject_get_slot(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_dragonbones_EventObject_get_slot : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->slot, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->slot, s.thisObject(), s.rval()); @@ -4800,7 +4839,7 @@ SE_BIND_PROP_GET(js_dragonbones_EventObject_get_slot) static bool js_dragonbones_EventObject_set_slot(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_EventObject_set_slot : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4816,7 +4855,7 @@ static bool js_dragonbones_EventObject_get_animationState(se::State& s) // NOLIN SE_PRECONDITION2(cobj, false, "js_dragonbones_EventObject_get_animationState : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->animationState, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->animationState, s.thisObject(), s.rval()); @@ -4827,7 +4866,7 @@ SE_BIND_PROP_GET(js_dragonbones_EventObject_get_animationState) static bool js_dragonbones_EventObject_set_animationState(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_EventObject_set_animationState : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4837,6 +4876,8 @@ static bool js_dragonbones_EventObject_set_animationState(se::State& s) // NOLIN } SE_BIND_PROP_SET(js_dragonbones_EventObject_set_animationState) + + bool js_register_dragonbones_EventObject(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("EventObject", obj, __jsb_dragonBones_BaseObject_proto, nullptr); @@ -4861,15 +4902,15 @@ bool js_register_dragonbones_EventObject(se::Object* obj) // NOLINT(readability- return true; } se::Object* __jsb_dragonBones_BaseFactory_proto = nullptr; -se::Class* __jsb_dragonBones_BaseFactory_class = nullptr; +se::Class* __jsb_dragonBones_BaseFactory_class = nullptr; static bool js_dragonbones_BaseFactory_addDragonBonesData(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BaseFactory_addDragonBonesData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4879,7 +4920,7 @@ static bool js_dragonbones_BaseFactory_addDragonBonesData(se::State& s) // NOLIN } if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_BaseFactory_addDragonBonesData : Error processing arguments"); @@ -4895,9 +4936,9 @@ static bool js_dragonbones_BaseFactory_addTextureAtlasData(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BaseFactory_addTextureAtlasData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4907,7 +4948,7 @@ static bool js_dragonbones_BaseFactory_addTextureAtlasData(se::State& s) // NOLI } if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_BaseFactory_addTextureAtlasData : Error processing arguments"); @@ -4923,9 +4964,9 @@ static bool js_dragonbones_BaseFactory_buildArmature(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BaseFactory_buildArmature : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4987,12 +5028,12 @@ static bool js_dragonbones_BaseFactory_changeSkin(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BaseFactory_changeSkin : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { - HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; HolderType, true> arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -5013,9 +5054,9 @@ static bool js_dragonbones_BaseFactory_clear(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BaseFactory_clear : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cobj->clear(); return true; @@ -5036,9 +5077,9 @@ static bool js_dragonbones_BaseFactory_getArmatureData(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BaseFactory_getArmatureData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5070,9 +5111,9 @@ static bool js_dragonbones_BaseFactory_getClock(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BaseFactory_getClock : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::WorldClock* result = cobj->getClock(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5089,9 +5130,9 @@ static bool js_dragonbones_BaseFactory_getDragonBonesData(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BaseFactory_getDragonBonesData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5111,9 +5152,9 @@ static bool js_dragonbones_BaseFactory_parseDragonBonesData(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BaseFactory_parseDragonBonesData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5126,7 +5167,7 @@ static bool js_dragonbones_BaseFactory_parseDragonBonesData(se::State& s) // NOL } if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_BaseFactory_parseDragonBonesData : Error processing arguments"); @@ -5138,8 +5179,8 @@ static bool js_dragonbones_BaseFactory_parseDragonBonesData(se::State& s) // NOL } if (argc == 3) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -5159,9 +5200,9 @@ static bool js_dragonbones_BaseFactory_removeDragonBonesData(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BaseFactory_removeDragonBonesData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5171,7 +5212,7 @@ static bool js_dragonbones_BaseFactory_removeDragonBonesData(se::State& s) // NO } if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_BaseFactory_removeDragonBonesData : Error processing arguments"); @@ -5187,9 +5228,9 @@ static bool js_dragonbones_BaseFactory_removeTextureAtlasData(se::State& s) // N { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BaseFactory_removeTextureAtlasData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5199,7 +5240,7 @@ static bool js_dragonbones_BaseFactory_removeTextureAtlasData(se::State& s) // N } if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_BaseFactory_removeTextureAtlasData : Error processing arguments"); @@ -5215,11 +5256,11 @@ static bool js_dragonbones_BaseFactory_replaceAnimation(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BaseFactory_replaceAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -5231,9 +5272,9 @@ static bool js_dragonbones_BaseFactory_replaceAnimation(se::State& s) // NOLINT( return true; } if (argc == 3) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -5253,13 +5294,13 @@ static bool js_dragonbones_BaseFactory_replaceSkin(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BaseFactory_replaceSkin : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 4) { - HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; HolderType, true> arg3 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -5281,14 +5322,14 @@ static bool js_dragonbones_BaseFactory_replaceSlotDisplay(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BaseFactory_replaceSlotDisplay : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 5) { - HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; HolderType arg4 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -5303,12 +5344,12 @@ static bool js_dragonbones_BaseFactory_replaceSlotDisplay(se::State& s) // NOLIN return true; } if (argc == 6) { - HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; HolderType arg4 = {}; - HolderType arg5 = {}; + HolderType arg5 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -5327,6 +5368,8 @@ static bool js_dragonbones_BaseFactory_replaceSlotDisplay(se::State& s) // NOLIN } SE_BIND_FUNC(js_dragonbones_BaseFactory_replaceSlotDisplay) + + bool js_register_dragonbones_BaseFactory(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("BaseFactory", obj, nullptr, nullptr); @@ -5355,14 +5398,14 @@ bool js_register_dragonbones_BaseFactory(se::Object* obj) // NOLINT(readability- return true; } se::Object* __jsb_dragonBones_CCSlot_proto = nullptr; -se::Class* __jsb_dragonBones_CCSlot_class = nullptr; +se::Class* __jsb_dragonBones_CCSlot_class = nullptr; static bool js_dragonbones_CCSlot_updateWorldMatrix(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCSlot_updateWorldMatrix : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->updateWorldMatrix(); return true; @@ -5372,6 +5415,8 @@ static bool js_dragonbones_CCSlot_updateWorldMatrix(se::State& s) // NOLINT(read } SE_BIND_FUNC(js_dragonbones_CCSlot_updateWorldMatrix) + + bool js_register_dragonbones_CCSlot(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("CCSlot", obj, __jsb_dragonBones_Slot_proto, nullptr); @@ -5387,45 +5432,49 @@ bool js_register_dragonbones_CCSlot(se::Object* obj) // NOLINT(readability-ident return true; } se::Object* __jsb_dragonBones_CCArmatureDisplay_proto = nullptr; -se::Class* __jsb_dragonBones_CCArmatureDisplay_class = nullptr; +se::Class* __jsb_dragonBones_CCArmatureDisplay_class = nullptr; static bool js_dragonbones_CCArmatureDisplay_addDBEventListener(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_addDBEventListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; - HolderType, true> arg1 = {}; + HolderType arg0 = {}; + HolderType, true> arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); do { - if (args[1].isObject() && args[1].toObject()->isFunction()) { + if (args[1].isObject() && args[1].toObject()->isFunction()) + { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[1]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](dragonBones::EventObject* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg1.data = lambda; - } else { + } + else + { arg1.data = nullptr; } - } while (false); + } while(false) + ; SE_PRECONDITION2(ok, false, "js_dragonbones_CCArmatureDisplay_addDBEventListener : Error processing arguments"); cobj->addDBEventListener(arg0.value(), arg1.value()); return true; @@ -5439,9 +5488,9 @@ static bool js_dragonbones_CCArmatureDisplay_getArmature(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_getArmature : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Armature* result = cobj->getArmature(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5458,9 +5507,9 @@ static bool js_dragonbones_CCArmatureDisplay_convertToRootSpace(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_convertToRootSpace : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -5483,7 +5532,7 @@ static bool js_dragonbones_CCArmatureDisplay_dbClear(se::State& s) // NOLINT(rea auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_dbClear : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->dbClear(); return true; @@ -5497,9 +5546,9 @@ static bool js_dragonbones_CCArmatureDisplay_dbInit(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_dbInit : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5517,7 +5566,7 @@ static bool js_dragonbones_CCArmatureDisplay_dbRender(se::State& s) // NOLINT(re auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_dbRender : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->dbRender(); return true; @@ -5532,7 +5581,7 @@ static bool js_dragonbones_CCArmatureDisplay_dbUpdate(se::State& s) // NOLINT(re auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_dbUpdate : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->dbUpdate(); return true; @@ -5546,11 +5595,11 @@ static bool js_dragonbones_CCArmatureDisplay_dispatchDBEvent(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_dispatchDBEvent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -5567,9 +5616,9 @@ static bool js_dragonbones_CCArmatureDisplay_dispose(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_dispose : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cobj->dispose(); return true; @@ -5590,9 +5639,9 @@ static bool js_dragonbones_CCArmatureDisplay_getAnimation(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_getAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Animation* result = cobj->getAnimation(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5609,9 +5658,9 @@ static bool js_dragonbones_CCArmatureDisplay_getDebugData(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_getDebugData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { se::Object* result = cobj->getDebugData(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5628,9 +5677,9 @@ static bool js_dragonbones_CCArmatureDisplay_getParamsBuffer(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_getParamsBuffer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { se::Object* result = cobj->getParamsBuffer(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5647,9 +5696,9 @@ static bool js_dragonbones_CCArmatureDisplay_getRootDisplay(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_getRootDisplay : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::CCArmatureDisplay* result = cobj->getRootDisplay(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5666,9 +5715,9 @@ static bool js_dragonbones_CCArmatureDisplay_getSharedBufferOffset(se::State& s) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_getSharedBufferOffset : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { se::Object* result = cobj->getSharedBufferOffset(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5685,9 +5734,9 @@ static bool js_dragonbones_CCArmatureDisplay_hasDBEventListener(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_hasDBEventListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5707,39 +5756,43 @@ static bool js_dragonbones_CCArmatureDisplay_removeDBEventListener(se::State& s) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_removeDBEventListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; - HolderType, true> arg1 = {}; + HolderType arg0 = {}; + HolderType, true> arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); do { - if (args[1].isObject() && args[1].toObject()->isFunction()) { + if (args[1].isObject() && args[1].toObject()->isFunction()) + { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[1]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](dragonBones::EventObject* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg1.data = lambda; - } else { + } + else + { arg1.data = nullptr; } - } while (false); + } while(false) + ; SE_PRECONDITION2(ok, false, "js_dragonbones_CCArmatureDisplay_removeDBEventListener : Error processing arguments"); cobj->removeDBEventListener(arg0.value(), arg1.value()); return true; @@ -5753,9 +5806,9 @@ static bool js_dragonbones_CCArmatureDisplay_setAttachEnabled(se::State& s) // N { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_setAttachEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5772,9 +5825,9 @@ static bool js_dragonbones_CCArmatureDisplay_setBatchEnabled(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_setBatchEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5791,9 +5844,9 @@ static bool js_dragonbones_CCArmatureDisplay_setColor(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_setColor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 4) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -5816,37 +5869,41 @@ static bool js_dragonbones_CCArmatureDisplay_setDBEventCallback(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_setDBEventCallback : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, false> arg0 = {}; + HolderType, false> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) { + if (args[0].isObject() && args[0].toObject()->isFunction()) + { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](dragonBones::EventObject* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } else { + } + else + { arg0.data = nullptr; } - } while (false); + } while(false) + ; SE_PRECONDITION2(ok, false, "js_dragonbones_CCArmatureDisplay_setDBEventCallback : Error processing arguments"); cobj->setDBEventCallback(arg0.value()); return true; @@ -5860,9 +5917,9 @@ static bool js_dragonbones_CCArmatureDisplay_setDebugBonesEnabled(se::State& s) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_setDebugBonesEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5879,9 +5936,9 @@ static bool js_dragonbones_CCArmatureDisplay_setOpacityModifyRGB(se::State& s) / { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_setOpacityModifyRGB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5896,9 +5953,9 @@ SE_BIND_FUNC(js_dragonbones_CCArmatureDisplay_setOpacityModifyRGB) static bool js_dragonbones_CCArmatureDisplay_create(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = dragonBones::CCArmatureDisplay::create(); result->retain(); @@ -5922,9 +5979,11 @@ static bool js_dragonbones_CCArmatureDisplay_constructor(se::State& s) // NOLINT } SE_BIND_CTOR(js_dragonbones_CCArmatureDisplay_constructor, __jsb_dragonBones_CCArmatureDisplay_class, js_dragonBones_CCArmatureDisplay_finalize) + + static bool js_dragonBones_CCArmatureDisplay_finalize(se::State& s) // NOLINT(readability-identifier-naming) { - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj =SE_THIS_OBJECT(s); cobj->release(); return true; } @@ -5968,15 +6027,15 @@ bool js_register_dragonbones_CCArmatureDisplay(se::Object* obj) // NOLINT(readab return true; } se::Object* __jsb_dragonBones_ArmatureCacheMgr_proto = nullptr; -se::Class* __jsb_dragonBones_ArmatureCacheMgr_class = nullptr; +se::Class* __jsb_dragonBones_ArmatureCacheMgr_class = nullptr; static bool js_dragonbones_ArmatureCacheMgr_buildArmatureCache(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureCacheMgr_buildArmatureCache : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -6000,9 +6059,9 @@ static bool js_dragonbones_ArmatureCacheMgr_removeArmatureCache(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureCacheMgr_removeArmatureCache : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6017,9 +6076,9 @@ SE_BIND_FUNC(js_dragonbones_ArmatureCacheMgr_removeArmatureCache) static bool js_dragonbones_ArmatureCacheMgr_getInstance(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::ArmatureCacheMgr* result = dragonBones::ArmatureCacheMgr::getInstance(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6035,7 +6094,7 @@ SE_BIND_FUNC(js_dragonbones_ArmatureCacheMgr_getInstance) static bool js_dragonbones_ArmatureCacheMgr_destroyInstance(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { dragonBones::ArmatureCacheMgr::destroyInstance(); return true; @@ -6045,10 +6104,12 @@ static bool js_dragonbones_ArmatureCacheMgr_destroyInstance(se::State& s) // NOL } SE_BIND_FUNC(js_dragonbones_ArmatureCacheMgr_destroyInstance) + static bool js_dragonBones_ArmatureCacheMgr_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -6076,15 +6137,15 @@ bool js_register_dragonbones_ArmatureCacheMgr(se::Object* obj) // NOLINT(readabi return true; } se::Object* __jsb_dragonBones_CCArmatureCacheDisplay_proto = nullptr; -se::Class* __jsb_dragonBones_CCArmatureCacheDisplay_class = nullptr; +se::Class* __jsb_dragonBones_CCArmatureCacheDisplay_class = nullptr; static bool js_dragonbones_CCArmatureCacheDisplay_addDBEventListener(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_addDBEventListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6101,9 +6162,9 @@ static bool js_dragonbones_CCArmatureCacheDisplay_getArmature(se::State& s) // N { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_getArmature : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Armature* result = cobj->getArmature(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6121,7 +6182,7 @@ static bool js_dragonbones_CCArmatureCacheDisplay_beginSchedule(se::State& s) // auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_beginSchedule : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->beginSchedule(); return true; @@ -6135,11 +6196,11 @@ static bool js_dragonbones_CCArmatureCacheDisplay_dispatchDBEvent(se::State& s) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_dispatchDBEvent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -6157,7 +6218,7 @@ static bool js_dragonbones_CCArmatureCacheDisplay_dispose(se::State& s) // NOLIN auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_dispose : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->dispose(); return true; @@ -6171,9 +6232,9 @@ static bool js_dragonbones_CCArmatureCacheDisplay_getAnimation(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_getAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Animation* result = cobj->getAnimation(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6190,9 +6251,9 @@ static bool js_dragonbones_CCArmatureCacheDisplay_getParamsBuffer(se::State& s) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_getParamsBuffer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { se::Object* result = cobj->getParamsBuffer(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6209,9 +6270,9 @@ static bool js_dragonbones_CCArmatureCacheDisplay_getSharedBufferOffset(se::Stat { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_getSharedBufferOffset : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { se::Object* result = cobj->getSharedBufferOffset(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6228,9 +6289,9 @@ static bool js_dragonbones_CCArmatureCacheDisplay_getTimeScale(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_getTimeScale : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getTimeScale(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6248,7 +6309,7 @@ static bool js_dragonbones_CCArmatureCacheDisplay_onDisable(se::State& s) // NOL auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_onDisable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDisable(); return true; @@ -6263,7 +6324,7 @@ static bool js_dragonbones_CCArmatureCacheDisplay_onEnable(se::State& s) // NOLI auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_onEnable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onEnable(); return true; @@ -6277,12 +6338,12 @@ static bool js_dragonbones_CCArmatureCacheDisplay_playAnimation(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_playAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_CCArmatureCacheDisplay_playAnimation : Error processing arguments"); @@ -6298,9 +6359,9 @@ static bool js_dragonbones_CCArmatureCacheDisplay_removeDBEventListener(se::Stat { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_removeDBEventListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6317,9 +6378,9 @@ static bool js_dragonbones_CCArmatureCacheDisplay_render(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_render : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6336,9 +6397,9 @@ static bool js_dragonbones_CCArmatureCacheDisplay_setAttachEnabled(se::State& s) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_setAttachEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6355,9 +6416,9 @@ static bool js_dragonbones_CCArmatureCacheDisplay_setBatchEnabled(se::State& s) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_setBatchEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6374,9 +6435,9 @@ static bool js_dragonbones_CCArmatureCacheDisplay_setColor(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_setColor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 4) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -6399,37 +6460,41 @@ static bool js_dragonbones_CCArmatureCacheDisplay_setDBEventCallback(se::State& { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_setDBEventCallback : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, false> arg0 = {}; + HolderType, false> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) { + if (args[0].isObject() && args[0].toObject()->isFunction()) + { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](dragonBones::EventObject* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } else { + } + else + { arg0.data = nullptr; } - } while (false); + } while(false) + ; SE_PRECONDITION2(ok, false, "js_dragonbones_CCArmatureCacheDisplay_setDBEventCallback : Error processing arguments"); cobj->setDBEventCallback(arg0.value()); return true; @@ -6443,9 +6508,9 @@ static bool js_dragonbones_CCArmatureCacheDisplay_setOpacityModifyRGB(se::State& { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_setOpacityModifyRGB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6462,9 +6527,9 @@ static bool js_dragonbones_CCArmatureCacheDisplay_setTimeScale(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_setTimeScale : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6482,7 +6547,7 @@ static bool js_dragonbones_CCArmatureCacheDisplay_stopSchedule(se::State& s) // auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_stopSchedule : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->stopSchedule(); return true; @@ -6496,9 +6561,9 @@ static bool js_dragonbones_CCArmatureCacheDisplay_update(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_update : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6516,7 +6581,7 @@ static bool js_dragonbones_CCArmatureCacheDisplay_updateAllAnimationCache(se::St auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_updateAllAnimationCache : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->updateAllAnimationCache(); return true; @@ -6530,9 +6595,9 @@ static bool js_dragonbones_CCArmatureCacheDisplay_updateAnimationCache(se::State { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_updateAnimationCache : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6549,12 +6614,12 @@ SE_DECLARE_FINALIZE_FUNC(js_dragonBones_CCArmatureCacheDisplay_finalize) static bool js_dragonbones_CCArmatureCacheDisplay_constructor(se::State& s) // NOLINT(readability-identifier-naming) constructor.c { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - std::string arg0; - std::string arg1; - std::string arg2; - bool arg3; + CC_UNUSED bool ok = true; + const auto& args = s.args(); + std::string arg0; + std::string arg1; + std::string arg2; + bool arg3; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -6566,9 +6631,11 @@ static bool js_dragonbones_CCArmatureCacheDisplay_constructor(se::State& s) // N } SE_BIND_CTOR(js_dragonbones_CCArmatureCacheDisplay_constructor, __jsb_dragonBones_CCArmatureCacheDisplay_class, js_dragonBones_CCArmatureCacheDisplay_finalize) + + static bool js_dragonBones_CCArmatureCacheDisplay_finalize(se::State& s) // NOLINT(readability-identifier-naming) { - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj =SE_THIS_OBJECT(s); cobj->release(); return true; } @@ -6613,15 +6680,15 @@ bool js_register_dragonbones_CCArmatureCacheDisplay(se::Object* obj) // NOLINT(r return true; } se::Object* __jsb_dragonBones_CCFactory_proto = nullptr; -se::Class* __jsb_dragonBones_CCFactory_class = nullptr; +se::Class* __jsb_dragonBones_CCFactory_class = nullptr; static bool js_dragonbones_CCFactory_add(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCFactory_add : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6638,9 +6705,9 @@ static bool js_dragonbones_CCFactory_buildArmatureDisplay(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCFactory_buildArmatureDisplay : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6702,9 +6769,9 @@ static bool js_dragonbones_CCFactory_getDragonBones(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCFactory_getDragonBones : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::DragonBones* result = cobj->getDragonBones(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6721,9 +6788,9 @@ static bool js_dragonbones_CCFactory_getSoundEventManager(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCFactory_getSoundEventManager : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::CCArmatureDisplay* result = cobj->getSoundEventManager(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6740,12 +6807,12 @@ static bool js_dragonbones_CCFactory_getTextureAtlasDataByIndex(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCFactory_getTextureAtlasDataByIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_CCFactory_getTextureAtlasDataByIndex : Error processing arguments"); @@ -6764,9 +6831,9 @@ static bool js_dragonbones_CCFactory_getTimeScale(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCFactory_getTimeScale : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getTimeScale(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6783,9 +6850,9 @@ static bool js_dragonbones_CCFactory_parseDragonBonesDataByPath(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCFactory_parseDragonBonesDataByPath : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6811,7 +6878,7 @@ static bool js_dragonbones_CCFactory_parseDragonBonesDataByPath(se::State& s) // if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -6831,9 +6898,9 @@ static bool js_dragonbones_CCFactory_remove(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCFactory_remove : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6850,9 +6917,9 @@ static bool js_dragonbones_CCFactory_removeDragonBonesDataByUUID(se::State& s) / { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCFactory_removeDragonBonesDataByUUID : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6862,7 +6929,7 @@ static bool js_dragonbones_CCFactory_removeDragonBonesDataByUUID(se::State& s) / } if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_CCFactory_removeDragonBonesDataByUUID : Error processing arguments"); @@ -6878,12 +6945,12 @@ static bool js_dragonbones_CCFactory_removeTextureAtlasDataByIndex(se::State& s) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCFactory_removeTextureAtlasDataByIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_CCFactory_removeTextureAtlasDataByIndex : Error processing arguments"); @@ -6899,9 +6966,9 @@ static bool js_dragonbones_CCFactory_render(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCFactory_render : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6918,9 +6985,9 @@ static bool js_dragonbones_CCFactory_setTimeScale(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCFactory_setTimeScale : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6938,7 +7005,7 @@ static bool js_dragonbones_CCFactory_stopSchedule(se::State& s) // NOLINT(readab auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCFactory_stopSchedule : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->stopSchedule(); return true; @@ -6952,9 +7019,9 @@ static bool js_dragonbones_CCFactory_update(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCFactory_update : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6969,9 +7036,9 @@ SE_BIND_FUNC(js_dragonbones_CCFactory_update) static bool js_dragonbones_CCFactory_isInit(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = dragonBones::CCFactory::isInit(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6986,9 +7053,9 @@ SE_BIND_FUNC(js_dragonbones_CCFactory_isInit) static bool js_dragonbones_CCFactory_getFactory(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::CCFactory* result = dragonBones::CCFactory::getFactory(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7004,7 +7071,7 @@ SE_BIND_FUNC(js_dragonbones_CCFactory_getFactory) static bool js_dragonbones_CCFactory_destroyFactory(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { dragonBones::CCFactory::destroyFactory(); return true; @@ -7016,9 +7083,9 @@ SE_BIND_FUNC(js_dragonbones_CCFactory_destroyFactory) static bool js_dragonbones_CCFactory_getClock(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::WorldClock* result = dragonBones::CCFactory::getClock(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7042,10 +7109,13 @@ static bool js_dragonbones_CCFactory_constructor(se::State& s) // NOLINT(readabi } SE_BIND_CTOR(js_dragonbones_CCFactory_constructor, __jsb_dragonBones_CCFactory_class, js_dragonBones_CCFactory_finalize) + + static bool js_dragonBones_CCFactory_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -7087,7 +7157,9 @@ bool js_register_dragonbones_CCFactory(se::Object* obj) // NOLINT(readability-id return true; } se::Object* __jsb_dragonBones_CCTextureAtlasData_proto = nullptr; -se::Class* __jsb_dragonBones_CCTextureAtlasData_class = nullptr; +se::Class* __jsb_dragonBones_CCTextureAtlasData_class = nullptr; + + bool js_register_dragonbones_CCTextureAtlasData(se::Object* obj) // NOLINT(readability-identifier-naming) { @@ -7103,7 +7175,9 @@ bool js_register_dragonbones_CCTextureAtlasData(se::Object* obj) // NOLINT(reada return true; } se::Object* __jsb_dragonBones_CCTextureData_proto = nullptr; -se::Class* __jsb_dragonBones_CCTextureData_class = nullptr; +se::Class* __jsb_dragonBones_CCTextureData_class = nullptr; + + bool js_register_dragonbones_CCTextureData(se::Object* obj) // NOLINT(readability-identifier-naming) { @@ -7118,10 +7192,12 @@ bool js_register_dragonbones_CCTextureData(se::Object* obj) // NOLINT(readabilit se::ScriptEngine::getInstance()->clearException(); return true; } -bool register_all_dragonbones(se::Object* obj) { +bool register_all_dragonbones(se::Object* obj) +{ // Get the ns se::Value nsVal; - if (!obj->getProperty("dragonBones", &nsVal)) { + if (!obj->getProperty("dragonBones", &nsVal)) + { se::HandleObject jsobj(se::Object::createPlainObject()); nsVal.setObject(jsobj); obj->setProperty("dragonBones", nsVal); diff --git a/native/cocos/bindings/auto/jsb_dragonbones_auto.h b/native/cocos/bindings/auto/jsb_dragonbones_auto.h index 9fedf064b7..91d5e65989 100644 --- a/native/cocos/bindings/auto/jsb_dragonbones_auto.h +++ b/native/cocos/bindings/auto/jsb_dragonbones_auto.h @@ -26,13 +26,13 @@ #pragma once #include "base/Config.h" #if USE_DRAGONBONES > 0 - #include - #include "cocos/bindings/jswrapper/SeApi.h" - #include "cocos/bindings/manual/jsb_conversions.h" - #include "cocos/editor-support/dragonbones-creator-support/CCDragonBonesHeaders.h" +#include +#include "cocos/bindings/jswrapper/SeApi.h" +#include "cocos/bindings/manual/jsb_conversions.h" +#include "cocos/editor-support/dragonbones-creator-support/CCDragonBonesHeaders.h" extern se::Object* __jsb_dragonBones_BaseObject_proto; -extern se::Class* __jsb_dragonBones_BaseObject_class; +extern se::Class* __jsb_dragonBones_BaseObject_class; bool js_register_dragonBones_BaseObject(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -43,7 +43,7 @@ SE_DECLARE_FUNC(js_dragonbones_BaseObject_setMaxCount); SE_DECLARE_FUNC(js_dragonbones_BaseObject_clearPool); extern se::Object* __jsb_dragonBones_Rectangle_proto; -extern se::Class* __jsb_dragonBones_Rectangle_class; +extern se::Class* __jsb_dragonBones_Rectangle_class; bool js_register_dragonBones_Rectangle(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -53,7 +53,7 @@ SE_DECLARE_FUNC(js_dragonbones_Rectangle_clear); SE_DECLARE_FUNC(js_dragonbones_Rectangle_Rectangle); extern se::Object* __jsb_dragonBones_Matrix_proto; -extern se::Class* __jsb_dragonBones_Matrix_class; +extern se::Class* __jsb_dragonBones_Matrix_class; bool js_register_dragonBones_Matrix(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -61,7 +61,7 @@ bool register_all_dragonbones(se::Object* obj); JSB_REGISTER_OBJECT_TYPE(dragonBones::Matrix); extern se::Object* __jsb_dragonBones_Transform_proto; -extern se::Class* __jsb_dragonBones_Transform_class; +extern se::Class* __jsb_dragonBones_Transform_class; bool js_register_dragonBones_Transform(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -70,7 +70,7 @@ JSB_REGISTER_OBJECT_TYPE(dragonBones::Transform); SE_DECLARE_FUNC(js_dragonbones_Transform_normalizeRadian); extern se::Object* __jsb_dragonBones_TextureAtlasData_proto; -extern se::Class* __jsb_dragonBones_TextureAtlasData_class; +extern se::Class* __jsb_dragonBones_TextureAtlasData_class; bool js_register_dragonBones_TextureAtlasData(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -81,7 +81,7 @@ SE_DECLARE_FUNC(js_dragonbones_TextureAtlasData_createTexture); SE_DECLARE_FUNC(js_dragonbones_TextureAtlasData_getTexture); extern se::Object* __jsb_dragonBones_TextureData_proto; -extern se::Class* __jsb_dragonBones_TextureData_class; +extern se::Class* __jsb_dragonBones_TextureData_class; bool js_register_dragonBones_TextureData(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -95,7 +95,7 @@ SE_DECLARE_FUNC(js_dragonbones_TextureData_setParent); SE_DECLARE_FUNC(js_dragonbones_TextureData_createRectangle); extern se::Object* __jsb_dragonBones_ArmatureData_proto; -extern se::Class* __jsb_dragonBones_ArmatureData_class; +extern se::Class* __jsb_dragonBones_ArmatureData_class; bool js_register_dragonBones_ArmatureData(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -119,7 +119,7 @@ SE_DECLARE_FUNC(js_dragonbones_ArmatureData_setType); SE_DECLARE_FUNC(js_dragonbones_ArmatureData_sortBones); extern se::Object* __jsb_dragonBones_BoneData_proto; -extern se::Class* __jsb_dragonBones_BoneData_class; +extern se::Class* __jsb_dragonBones_BoneData_class; bool js_register_dragonBones_BoneData(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -130,7 +130,7 @@ SE_DECLARE_FUNC(js_dragonbones_BoneData_getTransfrom); SE_DECLARE_FUNC(js_dragonbones_BoneData_setParent); extern se::Object* __jsb_dragonBones_SlotData_proto; -extern se::Class* __jsb_dragonBones_SlotData_class; +extern se::Class* __jsb_dragonBones_SlotData_class; bool js_register_dragonBones_SlotData(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -142,7 +142,7 @@ SE_DECLARE_FUNC(js_dragonbones_SlotData_setBlendMode); SE_DECLARE_FUNC(js_dragonbones_SlotData_setParent); extern se::Object* __jsb_dragonBones_DragonBonesData_proto; -extern se::Class* __jsb_dragonBones_DragonBonesData_class; +extern se::Class* __jsb_dragonBones_DragonBonesData_class; bool js_register_dragonBones_DragonBonesData(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -154,7 +154,7 @@ SE_DECLARE_FUNC(js_dragonbones_DragonBonesData_getArmatureNames); SE_DECLARE_FUNC(js_dragonbones_DragonBonesData_getFrameIndices); extern se::Object* __jsb_dragonBones_SkinData_proto; -extern se::Class* __jsb_dragonBones_SkinData_class; +extern se::Class* __jsb_dragonBones_SkinData_class; bool js_register_dragonBones_SkinData(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -162,7 +162,7 @@ bool register_all_dragonbones(se::Object* obj); JSB_REGISTER_OBJECT_TYPE(dragonBones::SkinData); extern se::Object* __jsb_dragonBones_AnimationData_proto; -extern se::Class* __jsb_dragonBones_AnimationData_class; +extern se::Class* __jsb_dragonBones_AnimationData_class; bool js_register_dragonBones_AnimationData(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -175,7 +175,7 @@ SE_DECLARE_FUNC(js_dragonbones_AnimationData_getZOrderTimeline); SE_DECLARE_FUNC(js_dragonbones_AnimationData_setParent); extern se::Object* __jsb_dragonBones_Armature_proto; -extern se::Class* __jsb_dragonBones_Armature_class; +extern se::Class* __jsb_dragonBones_Armature_class; bool js_register_dragonBones_Armature(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -207,7 +207,7 @@ SE_DECLARE_FUNC(js_dragonbones_Armature_setFlipX); SE_DECLARE_FUNC(js_dragonbones_Armature_setFlipY); extern se::Object* __jsb_dragonBones_TransformObject_proto; -extern se::Class* __jsb_dragonBones_TransformObject_class; +extern se::Class* __jsb_dragonBones_TransformObject_class; bool js_register_dragonBones_TransformObject(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -221,7 +221,7 @@ SE_DECLARE_FUNC(js_dragonbones_TransformObject_getOrigin); SE_DECLARE_FUNC(js_dragonbones_TransformObject_updateGlobalTransform); extern se::Object* __jsb_dragonBones_AnimationState_proto; -extern se::Class* __jsb_dragonBones_AnimationState_class; +extern se::Class* __jsb_dragonBones_AnimationState_class; bool js_register_dragonBones_AnimationState(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -248,7 +248,7 @@ SE_DECLARE_FUNC(js_dragonbones_AnimationState_setCurrentTime); SE_DECLARE_FUNC(js_dragonbones_AnimationState_stop); extern se::Object* __jsb_dragonBones_Bone_proto; -extern se::Class* __jsb_dragonBones_Bone_class; +extern se::Class* __jsb_dragonBones_Bone_class; bool js_register_dragonBones_Bone(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -268,7 +268,7 @@ SE_DECLARE_FUNC(js_dragonbones_Bone_update); SE_DECLARE_FUNC(js_dragonbones_Bone_updateByConstraint); extern se::Object* __jsb_dragonBones_Slot_proto; -extern se::Class* __jsb_dragonBones_Slot_class; +extern se::Class* __jsb_dragonBones_Slot_class; bool js_register_dragonBones_Slot(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -290,7 +290,7 @@ SE_DECLARE_FUNC(js_dragonbones_Slot_update); SE_DECLARE_FUNC(js_dragonbones_Slot_updateTransformAndMatrix); extern se::Object* __jsb_dragonBones_WorldClock_proto; -extern se::Class* __jsb_dragonBones_WorldClock_class; +extern se::Class* __jsb_dragonBones_WorldClock_class; bool js_register_dragonBones_WorldClock(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -304,7 +304,7 @@ SE_DECLARE_FUNC(js_dragonbones_WorldClock_setClock); SE_DECLARE_FUNC(js_dragonbones_WorldClock_getStaticClock); extern se::Object* __jsb_dragonBones_Animation_proto; -extern se::Class* __jsb_dragonBones_Animation_class; +extern se::Class* __jsb_dragonBones_Animation_class; bool js_register_dragonBones_Animation(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -331,7 +331,7 @@ SE_DECLARE_FUNC(js_dragonbones_Animation_reset); SE_DECLARE_FUNC(js_dragonbones_Animation_stop); extern se::Object* __jsb_dragonBones_EventObject_proto; -extern se::Class* __jsb_dragonBones_EventObject_class; +extern se::Class* __jsb_dragonBones_EventObject_class; bool js_register_dragonBones_EventObject(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -343,7 +343,7 @@ SE_DECLARE_FUNC(js_dragonbones_EventObject_getBone); SE_DECLARE_FUNC(js_dragonbones_EventObject_getSlot); extern se::Object* __jsb_dragonBones_BaseFactory_proto; -extern se::Class* __jsb_dragonBones_BaseFactory_class; +extern se::Class* __jsb_dragonBones_BaseFactory_class; bool js_register_dragonBones_BaseFactory(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -365,7 +365,7 @@ SE_DECLARE_FUNC(js_dragonbones_BaseFactory_replaceSkin); SE_DECLARE_FUNC(js_dragonbones_BaseFactory_replaceSlotDisplay); extern se::Object* __jsb_dragonBones_CCSlot_proto; -extern se::Class* __jsb_dragonBones_CCSlot_class; +extern se::Class* __jsb_dragonBones_CCSlot_class; bool js_register_dragonBones_CCSlot(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -374,7 +374,7 @@ JSB_REGISTER_OBJECT_TYPE(dragonBones::CCSlot); SE_DECLARE_FUNC(js_dragonbones_CCSlot_updateWorldMatrix); extern se::Object* __jsb_dragonBones_CCArmatureDisplay_proto; -extern se::Class* __jsb_dragonBones_CCArmatureDisplay_class; +extern se::Class* __jsb_dragonBones_CCArmatureDisplay_class; bool js_register_dragonBones_CCArmatureDisplay(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -406,7 +406,7 @@ SE_DECLARE_FUNC(js_dragonbones_CCArmatureDisplay_create); SE_DECLARE_FUNC(js_dragonbones_CCArmatureDisplay_CCArmatureDisplay); extern se::Object* __jsb_dragonBones_ArmatureCacheMgr_proto; -extern se::Class* __jsb_dragonBones_ArmatureCacheMgr_class; +extern se::Class* __jsb_dragonBones_ArmatureCacheMgr_class; bool js_register_dragonBones_ArmatureCacheMgr(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -418,7 +418,7 @@ SE_DECLARE_FUNC(js_dragonbones_ArmatureCacheMgr_getInstance); SE_DECLARE_FUNC(js_dragonbones_ArmatureCacheMgr_destroyInstance); extern se::Object* __jsb_dragonBones_CCArmatureCacheDisplay_proto; -extern se::Class* __jsb_dragonBones_CCArmatureCacheDisplay_class; +extern se::Class* __jsb_dragonBones_CCArmatureCacheDisplay_class; bool js_register_dragonBones_CCArmatureCacheDisplay(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -451,7 +451,7 @@ SE_DECLARE_FUNC(js_dragonbones_CCArmatureCacheDisplay_updateAnimationCache); SE_DECLARE_FUNC(js_dragonbones_CCArmatureCacheDisplay_CCArmatureCacheDisplay); extern se::Object* __jsb_dragonBones_CCFactory_proto; -extern se::Class* __jsb_dragonBones_CCFactory_class; +extern se::Class* __jsb_dragonBones_CCFactory_class; bool js_register_dragonBones_CCFactory(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -478,7 +478,7 @@ SE_DECLARE_FUNC(js_dragonbones_CCFactory_getClock); SE_DECLARE_FUNC(js_dragonbones_CCFactory_CCFactory); extern se::Object* __jsb_dragonBones_CCTextureAtlasData_proto; -extern se::Class* __jsb_dragonBones_CCTextureAtlasData_class; +extern se::Class* __jsb_dragonBones_CCTextureAtlasData_class; bool js_register_dragonBones_CCTextureAtlasData(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -486,7 +486,7 @@ bool register_all_dragonbones(se::Object* obj); JSB_REGISTER_OBJECT_TYPE(dragonBones::CCTextureAtlasData); extern se::Object* __jsb_dragonBones_CCTextureData_proto; -extern se::Class* __jsb_dragonBones_CCTextureData_class; +extern se::Class* __jsb_dragonBones_CCTextureData_class; bool js_register_dragonBones_CCTextureData(se::Object* obj); bool register_all_dragonbones(se::Object* obj); diff --git a/native/cocos/bindings/auto/jsb_editor_support_auto.cpp b/native/cocos/bindings/auto/jsb_editor_support_auto.cpp index ef5a594d0f..2a9cc00dea 100644 --- a/native/cocos/bindings/auto/jsb_editor_support_auto.cpp +++ b/native/cocos/bindings/auto/jsb_editor_support_auto.cpp @@ -26,27 +26,27 @@ #include "cocos/bindings/auto/jsb_editor_support_auto.h" #include "cocos/bindings/manual/jsb_conversions.h" #include "cocos/bindings/manual/jsb_global.h" +#include "editor-support/middleware-adapter.h" #include "editor-support/MiddlewareManager.h" #include "editor-support/SharedBufferManager.h" -#include "editor-support/middleware-adapter.h" #ifndef JSB_ALLOC - #define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) +#define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) #endif #ifndef JSB_FREE - #define JSB_FREE(ptr) delete ptr +#define JSB_FREE(ptr) delete ptr #endif se::Object* __jsb_cc_middleware_Texture2D_proto = nullptr; -se::Class* __jsb_cc_middleware_Texture2D_class = nullptr; +se::Class* __jsb_cc_middleware_Texture2D_class = nullptr; static bool js_editor_support_Texture2D_getPixelsHigh(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_editor_support_Texture2D_getPixelsHigh : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getPixelsHigh(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -63,9 +63,9 @@ static bool js_editor_support_Texture2D_getPixelsWide(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_editor_support_Texture2D_getPixelsWide : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getPixelsWide(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -82,9 +82,9 @@ static bool js_editor_support_Texture2D_getRealTextureIndex(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_editor_support_Texture2D_getRealTextureIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getRealTextureIndex(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -101,9 +101,9 @@ static bool js_editor_support_Texture2D_setPixelsHigh(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_editor_support_Texture2D_setPixelsHigh : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -120,9 +120,9 @@ static bool js_editor_support_Texture2D_setPixelsWide(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_editor_support_Texture2D_setPixelsWide : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -139,9 +139,9 @@ static bool js_editor_support_Texture2D_setRealTextureIndex(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_editor_support_Texture2D_setRealTextureIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -158,20 +158,21 @@ static bool js_editor_support_Texture2D_setTexParamCallback(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_editor_support_Texture2D_setTexParamCallback : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) { + if (args[0].isObject() && args[0].toObject()->isFunction()) + { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](int larg0, unsigned int larg1, unsigned int larg2, unsigned int larg3, unsigned int larg4) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(5); @@ -180,19 +181,22 @@ static bool js_editor_support_Texture2D_setTexParamCallback(se::State& s) // NOL ok &= nativevalue_to_se(larg2, args[2], nullptr /*ctx*/); ok &= nativevalue_to_se(larg3, args[3], nullptr /*ctx*/); ok &= nativevalue_to_se(larg4, args[4], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } else { + } + else + { arg0.data = nullptr; } - } while (false); + } while(false) + ; SE_PRECONDITION2(ok, false, "js_editor_support_Texture2D_setTexParamCallback : Error processing arguments"); cobj->setTexParamCallback(arg0.value()); return true; @@ -212,9 +216,11 @@ static bool js_editor_support_Texture2D_constructor(se::State& s) // NOLINT(read } SE_BIND_CTOR(js_editor_support_Texture2D_constructor, __jsb_cc_middleware_Texture2D_class, js_cc_middleware_Texture2D_finalize) + + static bool js_cc_middleware_Texture2D_finalize(se::State& s) // NOLINT(readability-identifier-naming) { - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj =SE_THIS_OBJECT(s); cobj->release(); return true; } @@ -242,15 +248,15 @@ bool js_register_editor_support_Texture2D(se::Object* obj) // NOLINT(readability return true; } se::Object* __jsb_cc_middleware_SharedBufferManager_proto = nullptr; -se::Class* __jsb_cc_middleware_SharedBufferManager_class = nullptr; +se::Class* __jsb_cc_middleware_SharedBufferManager_class = nullptr; static bool js_editor_support_SharedBufferManager_getSharedBuffer(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_editor_support_SharedBufferManager_getSharedBuffer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { se::Object* result = cobj->getSharedBuffer(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -267,33 +273,37 @@ static bool js_editor_support_SharedBufferManager_setResizeCallback(se::State& s { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_editor_support_SharedBufferManager_setResizeCallback : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, false> arg0 = {}; + HolderType, false> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) { + if (args[0].isObject() && args[0].toObject()->isFunction()) + { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=]() -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - - se::Value rval; + + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(se::EmptyValueArray, thisObj, &rval); + bool succeed = funcObj->call(se::EmptyValueArray, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } else { + } + else + { arg0.data = nullptr; } - } while (false); + } while(false) + ; SE_PRECONDITION2(ok, false, "js_editor_support_SharedBufferManager_setResizeCallback : Error processing arguments"); cobj->setResizeCallback(arg0.value()); return true; @@ -307,8 +317,8 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_middleware_SharedBufferManager_finalize) static bool js_editor_support_SharedBufferManager_constructor(se::State& s) // NOLINT(readability-identifier-naming) constructor.c { - CC_UNUSED bool ok = true; - const auto& args = s.args(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); se::Object::TypedArrayType arg0; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); SE_PRECONDITION2(ok, false, "js_editor_support_SharedBufferManager_constructor : Error processing arguments"); @@ -319,10 +329,13 @@ static bool js_editor_support_SharedBufferManager_constructor(se::State& s) // N } SE_BIND_CTOR(js_editor_support_SharedBufferManager_constructor, __jsb_cc_middleware_SharedBufferManager_class, js_cc_middleware_SharedBufferManager_finalize) + + static bool js_cc_middleware_SharedBufferManager_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -348,15 +361,15 @@ bool js_register_editor_support_SharedBufferManager(se::Object* obj) // NOLINT(r return true; } se::Object* __jsb_cc_middleware_MiddlewareManager_proto = nullptr; -se::Class* __jsb_cc_middleware_MiddlewareManager_class = nullptr; +se::Class* __jsb_cc_middleware_MiddlewareManager_class = nullptr; static bool js_editor_support_MiddlewareManager_getAttachInfoMgr(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_editor_support_MiddlewareManager_getAttachInfoMgr : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::middleware::SharedBufferManager* result = cobj->getAttachInfoMgr(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -373,9 +386,9 @@ static bool js_editor_support_MiddlewareManager_getBufferCount(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_editor_support_MiddlewareManager_getBufferCount : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -395,9 +408,9 @@ static bool js_editor_support_MiddlewareManager_getIBTypedArray(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_editor_support_MiddlewareManager_getIBTypedArray : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -419,11 +432,11 @@ static bool js_editor_support_MiddlewareManager_getIBTypedArrayLength(se::State& { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_editor_support_MiddlewareManager_getIBTypedArrayLength : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -443,9 +456,9 @@ static bool js_editor_support_MiddlewareManager_getRenderInfoMgr(se::State& s) / { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_editor_support_MiddlewareManager_getRenderInfoMgr : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::middleware::SharedBufferManager* result = cobj->getRenderInfoMgr(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -462,9 +475,9 @@ static bool js_editor_support_MiddlewareManager_getVBTypedArray(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_editor_support_MiddlewareManager_getVBTypedArray : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -486,11 +499,11 @@ static bool js_editor_support_MiddlewareManager_getVBTypedArrayLength(se::State& { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_editor_support_MiddlewareManager_getVBTypedArrayLength : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -510,9 +523,9 @@ static bool js_editor_support_MiddlewareManager_render(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_editor_support_MiddlewareManager_render : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -529,9 +542,9 @@ static bool js_editor_support_MiddlewareManager_update(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_editor_support_MiddlewareManager_update : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -546,9 +559,9 @@ SE_BIND_FUNC(js_editor_support_MiddlewareManager_update) static bool js_editor_support_MiddlewareManager_getInstance(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::middleware::MiddlewareManager* result = cc::middleware::MiddlewareManager::getInstance(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -564,7 +577,7 @@ SE_BIND_FUNC(js_editor_support_MiddlewareManager_getInstance) static bool js_editor_support_MiddlewareManager_destroyInstance(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cc::middleware::MiddlewareManager::destroyInstance(); return true; @@ -576,9 +589,9 @@ SE_BIND_FUNC(js_editor_support_MiddlewareManager_destroyInstance) static bool js_editor_support_MiddlewareManager_generateModuleID(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { uint8_t result = cc::middleware::MiddlewareManager::generateModuleID(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -602,10 +615,13 @@ static bool js_editor_support_MiddlewareManager_constructor(se::State& s) // NOL } SE_BIND_CTOR(js_editor_support_MiddlewareManager_constructor, __jsb_cc_middleware_MiddlewareManager_class, js_cc_middleware_MiddlewareManager_finalize) + + static bool js_cc_middleware_MiddlewareManager_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -640,10 +656,12 @@ bool js_register_editor_support_MiddlewareManager(se::Object* obj) // NOLINT(rea se::ScriptEngine::getInstance()->clearException(); return true; } -bool register_all_editor_support(se::Object* obj) { +bool register_all_editor_support(se::Object* obj) +{ // Get the ns se::Value nsVal; - if (!obj->getProperty("middleware", &nsVal)) { + if (!obj->getProperty("middleware", &nsVal)) + { se::HandleObject jsobj(se::Object::createPlainObject()); nsVal.setObject(jsobj); obj->setProperty("middleware", nsVal); @@ -655,3 +673,4 @@ bool register_all_editor_support(se::Object* obj) { js_register_editor_support_MiddlewareManager(ns); return true; } + diff --git a/native/cocos/bindings/auto/jsb_editor_support_auto.h b/native/cocos/bindings/auto/jsb_editor_support_auto.h index c0ec756cc1..d991bc84c3 100644 --- a/native/cocos/bindings/auto/jsb_editor_support_auto.h +++ b/native/cocos/bindings/auto/jsb_editor_support_auto.h @@ -24,16 +24,16 @@ ****************************************************************************/ #pragma once -#include #include "base/Config.h" +#include #include "cocos/bindings/jswrapper/SeApi.h" #include "cocos/bindings/manual/jsb_conversions.h" +#include "cocos/editor-support/middleware-adapter.h" #include "cocos/editor-support/MiddlewareManager.h" #include "cocos/editor-support/SharedBufferManager.h" -#include "cocos/editor-support/middleware-adapter.h" extern se::Object* __jsb_cc_middleware_Texture2D_proto; -extern se::Class* __jsb_cc_middleware_Texture2D_class; +extern se::Class* __jsb_cc_middleware_Texture2D_class; bool js_register_cc_middleware_Texture2D(se::Object* obj); bool register_all_editor_support(se::Object* obj); @@ -49,7 +49,7 @@ SE_DECLARE_FUNC(js_editor_support_Texture2D_setTexParamCallback); SE_DECLARE_FUNC(js_editor_support_Texture2D_Texture2D); extern se::Object* __jsb_cc_middleware_SharedBufferManager_proto; -extern se::Class* __jsb_cc_middleware_SharedBufferManager_class; +extern se::Class* __jsb_cc_middleware_SharedBufferManager_class; bool js_register_cc_middleware_SharedBufferManager(se::Object* obj); bool register_all_editor_support(se::Object* obj); @@ -60,7 +60,7 @@ SE_DECLARE_FUNC(js_editor_support_SharedBufferManager_setResizeCallback); SE_DECLARE_FUNC(js_editor_support_SharedBufferManager_SharedBufferManager); extern se::Object* __jsb_cc_middleware_MiddlewareManager_proto; -extern se::Class* __jsb_cc_middleware_MiddlewareManager_class; +extern se::Class* __jsb_cc_middleware_MiddlewareManager_class; bool js_register_cc_middleware_MiddlewareManager(se::Object* obj); bool register_all_editor_support(se::Object* obj); @@ -79,3 +79,4 @@ SE_DECLARE_FUNC(js_editor_support_MiddlewareManager_getInstance); SE_DECLARE_FUNC(js_editor_support_MiddlewareManager_destroyInstance); SE_DECLARE_FUNC(js_editor_support_MiddlewareManager_generateModuleID); SE_DECLARE_FUNC(js_editor_support_MiddlewareManager_MiddlewareManager); + diff --git a/native/cocos/bindings/auto/jsb_extension_auto.cpp b/native/cocos/bindings/auto/jsb_extension_auto.cpp index d9d9079040..ec8f12378c 100644 --- a/native/cocos/bindings/auto/jsb_extension_auto.cpp +++ b/native/cocos/bindings/auto/jsb_extension_auto.cpp @@ -29,22 +29,22 @@ #include "extensions/cocos-ext.h" #ifndef JSB_ALLOC - #define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) +#define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) #endif #ifndef JSB_FREE - #define JSB_FREE(ptr) delete ptr +#define JSB_FREE(ptr) delete ptr #endif se::Object* __jsb_cc_extension_EventAssetsManagerEx_proto = nullptr; -se::Class* __jsb_cc_extension_EventAssetsManagerEx_class = nullptr; +se::Class* __jsb_cc_extension_EventAssetsManagerEx_class = nullptr; static bool js_extension_EventAssetsManagerEx_getAssetId(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_EventAssetsManagerEx_getAssetId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { std::string result = cobj->getAssetId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -61,9 +61,9 @@ static bool js_extension_EventAssetsManagerEx_getAssetsManagerEx(se::State& s) / { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_EventAssetsManagerEx_getAssetsManagerEx : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::extension::AssetsManagerEx* result = cobj->getAssetsManagerEx(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -80,9 +80,9 @@ static bool js_extension_EventAssetsManagerEx_getCURLECode(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_EventAssetsManagerEx_getCURLECode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getCURLECode(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -99,9 +99,9 @@ static bool js_extension_EventAssetsManagerEx_getCURLMCode(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_EventAssetsManagerEx_getCURLMCode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getCURLMCode(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -118,9 +118,9 @@ static bool js_extension_EventAssetsManagerEx_getDownloadedBytes(se::State& s) / { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_EventAssetsManagerEx_getDownloadedBytes : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { double result = cobj->getDownloadedBytes(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -137,9 +137,9 @@ static bool js_extension_EventAssetsManagerEx_getDownloadedFiles(se::State& s) / { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_EventAssetsManagerEx_getDownloadedFiles : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getDownloadedFiles(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -156,9 +156,9 @@ static bool js_extension_EventAssetsManagerEx_getEventCode(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_EventAssetsManagerEx_getEventCode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getEventCode()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -175,9 +175,9 @@ static bool js_extension_EventAssetsManagerEx_getMessage(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_EventAssetsManagerEx_getMessage : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { std::string result = cobj->getMessage(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -194,9 +194,9 @@ static bool js_extension_EventAssetsManagerEx_getPercent(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_EventAssetsManagerEx_getPercent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getPercent(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -213,9 +213,9 @@ static bool js_extension_EventAssetsManagerEx_getPercentByFile(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_EventAssetsManagerEx_getPercentByFile : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getPercentByFile(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -232,9 +232,9 @@ static bool js_extension_EventAssetsManagerEx_getTotalBytes(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_EventAssetsManagerEx_getTotalBytes : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { double result = cobj->getTotalBytes(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -251,9 +251,9 @@ static bool js_extension_EventAssetsManagerEx_getTotalFiles(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_EventAssetsManagerEx_getTotalFiles : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getTotalFiles(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -270,9 +270,9 @@ static bool js_extension_EventAssetsManagerEx_isResuming(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_EventAssetsManagerEx_isResuming : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isResuming(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -289,10 +289,10 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_extension_EventAssetsManagerEx_finalize) static bool js_extension_EventAssetsManagerEx_constructor(se::State& s) // NOLINT(readability-identifier-naming) constructor.c { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - std::string arg0; - cc::extension::AssetsManagerEx* arg1 = nullptr; + CC_UNUSED bool ok = true; + const auto& args = s.args(); + std::string arg0; + cc::extension::AssetsManagerEx* arg1 = nullptr; cc::extension::EventAssetsManagerEx::EventCode arg2; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -304,9 +304,11 @@ static bool js_extension_EventAssetsManagerEx_constructor(se::State& s) // NOLIN } SE_BIND_CTOR(js_extension_EventAssetsManagerEx_constructor, __jsb_cc_extension_EventAssetsManagerEx_class, js_cc_extension_EventAssetsManagerEx_finalize) + + static bool js_cc_extension_EventAssetsManagerEx_finalize(se::State& s) // NOLINT(readability-identifier-naming) { - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj =SE_THIS_OBJECT(s); cobj->release(); return true; } @@ -340,15 +342,15 @@ bool js_register_extension_EventAssetsManagerEx(se::Object* obj) // NOLINT(reada return true; } se::Object* __jsb_cc_extension_Manifest_proto = nullptr; -se::Class* __jsb_cc_extension_Manifest_class = nullptr; +se::Class* __jsb_cc_extension_Manifest_class = nullptr; static bool js_extension_Manifest_getManifestFileUrl(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_Manifest_getManifestFileUrl : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::string& result = cobj->getManifestFileUrl(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -365,9 +367,9 @@ static bool js_extension_Manifest_getManifestRoot(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_Manifest_getManifestRoot : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::string& result = cobj->getManifestRoot(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -384,9 +386,9 @@ static bool js_extension_Manifest_getPackageUrl(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_Manifest_getPackageUrl : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::string& result = cobj->getPackageUrl(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -403,9 +405,9 @@ static bool js_extension_Manifest_getSearchPaths(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_Manifest_getSearchPaths : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { std::vector result = cobj->getSearchPaths(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -422,9 +424,9 @@ static bool js_extension_Manifest_getVersion(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_Manifest_getVersion : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::string& result = cobj->getVersion(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -441,9 +443,9 @@ static bool js_extension_Manifest_getVersionFileUrl(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_Manifest_getVersionFileUrl : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::string& result = cobj->getVersionFileUrl(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -460,9 +462,9 @@ static bool js_extension_Manifest_isLoaded(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_Manifest_isLoaded : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isLoaded(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -479,9 +481,9 @@ static bool js_extension_Manifest_isUpdating(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_Manifest_isUpdating : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isUpdating(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -498,9 +500,9 @@ static bool js_extension_Manifest_isVersionLoaded(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_Manifest_isVersionLoaded : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isVersionLoaded(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -517,9 +519,9 @@ static bool js_extension_Manifest_parseFile(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_Manifest_parseFile : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -536,9 +538,9 @@ static bool js_extension_Manifest_parseJSONString(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_Manifest_parseJSONString : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -557,9 +559,9 @@ static bool js_extension_Manifest_setUpdating(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_Manifest_setUpdating : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -576,56 +578,49 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_extension_Manifest_finalize) static bool js_extension_Manifest_constructor(se::State& s) // NOLINT(readability-identifier-naming) constructor_overloaded.c { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); do { if (argc == 2) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } HolderType arg1 = {}; ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cc::extension::Manifest* cobj = JSB_ALLOC(cc::extension::Manifest, arg0.value(), arg1.value()); s.thisObject()->setPrivateData(cobj); return true; } - } while (false); + } while(false); do { if (argc == 0) { cc::extension::Manifest* cobj = JSB_ALLOC(cc::extension::Manifest); s.thisObject()->setPrivateData(cobj); return true; } - } while (false); + } while(false); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cc::extension::Manifest* cobj = JSB_ALLOC(cc::extension::Manifest, arg0.value()); s.thisObject()->setPrivateData(cobj); return true; } - } while (false); + } while(false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; } SE_BIND_CTOR(js_extension_Manifest_constructor, __jsb_cc_extension_Manifest_class, js_cc_extension_Manifest_finalize) + + static bool js_cc_extension_Manifest_finalize(se::State& s) // NOLINT(readability-identifier-naming) { - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj =SE_THIS_OBJECT(s); cobj->release(); return true; } @@ -658,14 +653,14 @@ bool js_register_extension_Manifest(se::Object* obj) // NOLINT(readability-ident return true; } se::Object* __jsb_cc_extension_AssetsManagerEx_proto = nullptr; -se::Class* __jsb_cc_extension_AssetsManagerEx_class = nullptr; +se::Class* __jsb_cc_extension_AssetsManagerEx_class = nullptr; static bool js_extension_AssetsManagerEx_checkUpdate(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_checkUpdate : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->checkUpdate(); return true; @@ -680,7 +675,7 @@ static bool js_extension_AssetsManagerEx_downloadFailedAssets(se::State& s) // N auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_downloadFailedAssets : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->downloadFailedAssets(); return true; @@ -694,9 +689,9 @@ static bool js_extension_AssetsManagerEx_getDownloadedBytes(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_getDownloadedBytes : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { double result = cobj->getDownloadedBytes(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -713,9 +708,9 @@ static bool js_extension_AssetsManagerEx_getDownloadedFiles(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_getDownloadedFiles : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getDownloadedFiles(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -732,9 +727,9 @@ static bool js_extension_AssetsManagerEx_getLocalManifest(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_getLocalManifest : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::extension::Manifest* result = cobj->getLocalManifest(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -751,9 +746,9 @@ static bool js_extension_AssetsManagerEx_getMaxConcurrentTask(se::State& s) // N { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_getMaxConcurrentTask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const int result = cobj->getMaxConcurrentTask(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -770,9 +765,9 @@ static bool js_extension_AssetsManagerEx_getRemoteManifest(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_getRemoteManifest : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::extension::Manifest* result = cobj->getRemoteManifest(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -789,9 +784,9 @@ static bool js_extension_AssetsManagerEx_getState(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_getState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getState()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -808,9 +803,9 @@ static bool js_extension_AssetsManagerEx_getStoragePath(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_getStoragePath : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::string& result = cobj->getStoragePath(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -827,9 +822,9 @@ static bool js_extension_AssetsManagerEx_getTotalBytes(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_getTotalBytes : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { double result = cobj->getTotalBytes(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -846,9 +841,9 @@ static bool js_extension_AssetsManagerEx_getTotalFiles(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_getTotalFiles : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getTotalFiles(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -865,9 +860,9 @@ static bool js_extension_AssetsManagerEx_isResuming(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_isResuming : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isResuming(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -882,50 +877,41 @@ SE_BIND_FUNC(js_extension_AssetsManagerEx_isResuming) static bool js_extension_AssetsManagerEx_loadLocalManifest(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_loadLocalManifest : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2( cobj, false, "js_extension_AssetsManagerEx_loadLocalManifest : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } bool result = cobj->loadLocalManifest(arg0.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_extension_AssetsManagerEx_loadLocalManifest : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while (false); + } while(false); do { if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } bool result = cobj->loadLocalManifest(arg0.value(), arg1.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_extension_AssetsManagerEx_loadLocalManifest : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while (false); + } while(false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -936,9 +922,9 @@ static bool js_extension_AssetsManagerEx_loadRemoteManifest(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_loadRemoteManifest : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -959,7 +945,7 @@ static bool js_extension_AssetsManagerEx_prepareUpdate(se::State& s) // NOLINT(r auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_prepareUpdate : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->prepareUpdate(); return true; @@ -973,37 +959,41 @@ static bool js_extension_AssetsManagerEx_setEventCallback(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_setEventCallback : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) { + if (args[0].isObject() && args[0].toObject()->isFunction()) + { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](cc::extension::EventAssetsManagerEx* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } else { + } + else + { arg0.data = nullptr; } - } while (false); + } while(false) + ; SE_PRECONDITION2(ok, false, "js_extension_AssetsManagerEx_setEventCallback : Error processing arguments"); cobj->setEventCallback(arg0.value()); return true; @@ -1017,9 +1007,9 @@ static bool js_extension_AssetsManagerEx_setMaxConcurrentTask(se::State& s) // N { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_setMaxConcurrentTask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1036,29 +1026,30 @@ static bool js_extension_AssetsManagerEx_setVerifyCallback(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_setVerifyCallback : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) { + if (args[0].isObject() && args[0].toObject()->isFunction()) + { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](const std::string larg0, cc::extension::ManifestAsset larg1) -> bool { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(2); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); ok &= nativevalue_to_se(larg1, args[1], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } @@ -1068,10 +1059,13 @@ static bool js_extension_AssetsManagerEx_setVerifyCallback(se::State& s) // NOLI return result; }; arg0.data = lambda; - } else { + } + else + { arg0.data = nullptr; } - } while (false); + } while(false) + ; SE_PRECONDITION2(ok, false, "js_extension_AssetsManagerEx_setVerifyCallback : Error processing arguments"); cobj->setVerifyCallback(arg0.value()); return true; @@ -1085,29 +1079,30 @@ static bool js_extension_AssetsManagerEx_setVersionCompareHandle(se::State& s) / { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_setVersionCompareHandle : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) { + if (args[0].isObject() && args[0].toObject()->isFunction()) + { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](const std::string larg0, const std::string larg1) -> int { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(2); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); ok &= nativevalue_to_se(larg1, args[1], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } @@ -1117,10 +1112,13 @@ static bool js_extension_AssetsManagerEx_setVersionCompareHandle(se::State& s) / return result; }; arg0.data = lambda; - } else { + } + else + { arg0.data = nullptr; } - } while (false); + } while(false) + ; SE_PRECONDITION2(ok, false, "js_extension_AssetsManagerEx_setVersionCompareHandle : Error processing arguments"); cobj->setVersionCompareHandle(arg0.value()); return true; @@ -1135,7 +1133,7 @@ static bool js_extension_AssetsManagerEx_update(se::State& s) // NOLINT(readabil auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_update : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->update(); return true; @@ -1147,9 +1145,9 @@ SE_BIND_FUNC(js_extension_AssetsManagerEx_update) static bool js_extension_AssetsManagerEx_create(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -1172,42 +1170,37 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_extension_AssetsManagerEx_finalize) static bool js_extension_AssetsManagerEx_constructor(se::State& s) // NOLINT(readability-identifier-naming) constructor_overloaded.c { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); do { if (argc == 3) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } HolderType arg1 = {}; ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } - HolderType, true> arg2 = {}; + if (!ok) { ok = true; break; } + HolderType, true> arg2 = {}; do { - if (args[2].isObject() && args[2].toObject()->isFunction()) { + if (args[2].isObject() && args[2].toObject()->isFunction()) + { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[2]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](const std::string larg0, const std::string larg1) -> int { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(2); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); ok &= nativevalue_to_se(larg1, args[1], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } @@ -1217,46 +1210,42 @@ static bool js_extension_AssetsManagerEx_constructor(se::State& s) // NOLINT(rea return result; }; arg2.data = lambda; - } else { + } + else + { arg2.data = nullptr; } - } while (false); - if (!ok) { - ok = true; - break; - } + } while(false) + ; + if (!ok) { ok = true; break; } cc::extension::AssetsManagerEx* cobj = JSB_ALLOC(cc::extension::AssetsManagerEx, arg0.value(), arg1.value(), arg2.value()); s.thisObject()->setPrivateData(cobj); return true; } - } while (false); + } while(false); do { if (argc == 2) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } HolderType arg1 = {}; ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cc::extension::AssetsManagerEx* cobj = JSB_ALLOC(cc::extension::AssetsManagerEx, arg0.value(), arg1.value()); s.thisObject()->setPrivateData(cobj); return true; } - } while (false); + } while(false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; } SE_BIND_CTOR(js_extension_AssetsManagerEx_constructor, __jsb_cc_extension_AssetsManagerEx_class, js_cc_extension_AssetsManagerEx_finalize) + + static bool js_cc_extension_AssetsManagerEx_finalize(se::State& s) // NOLINT(readability-identifier-naming) { - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj =SE_THIS_OBJECT(s); cobj->release(); return true; } @@ -1297,10 +1286,12 @@ bool js_register_extension_AssetsManagerEx(se::Object* obj) // NOLINT(readabilit se::ScriptEngine::getInstance()->clearException(); return true; } -bool register_all_extension(se::Object* obj) { +bool register_all_extension(se::Object* obj) +{ // Get the ns se::Value nsVal; - if (!obj->getProperty("jsb", &nsVal)) { + if (!obj->getProperty("jsb", &nsVal)) + { se::HandleObject jsobj(se::Object::createPlainObject()); nsVal.setObject(jsobj); obj->setProperty("jsb", nsVal); @@ -1312,3 +1303,4 @@ bool register_all_extension(se::Object* obj) { js_register_extension_AssetsManagerEx(ns); return true; } + diff --git a/native/cocos/bindings/auto/jsb_extension_auto.h b/native/cocos/bindings/auto/jsb_extension_auto.h index 79d5760d7c..feed21aaaa 100644 --- a/native/cocos/bindings/auto/jsb_extension_auto.h +++ b/native/cocos/bindings/auto/jsb_extension_auto.h @@ -24,14 +24,14 @@ ****************************************************************************/ #pragma once -#include #include "base/Config.h" +#include #include "cocos/bindings/jswrapper/SeApi.h" #include "cocos/bindings/manual/jsb_conversions.h" #include "extensions/cocos-ext.h" extern se::Object* __jsb_cc_extension_EventAssetsManagerEx_proto; -extern se::Class* __jsb_cc_extension_EventAssetsManagerEx_class; +extern se::Class* __jsb_cc_extension_EventAssetsManagerEx_class; bool js_register_cc_extension_EventAssetsManagerEx(se::Object* obj); bool register_all_extension(se::Object* obj); @@ -53,7 +53,7 @@ SE_DECLARE_FUNC(js_extension_EventAssetsManagerEx_isResuming); SE_DECLARE_FUNC(js_extension_EventAssetsManagerEx_EventAssetsManagerEx); extern se::Object* __jsb_cc_extension_Manifest_proto; -extern se::Class* __jsb_cc_extension_Manifest_class; +extern se::Class* __jsb_cc_extension_Manifest_class; bool js_register_cc_extension_Manifest(se::Object* obj); bool register_all_extension(se::Object* obj); @@ -74,7 +74,7 @@ SE_DECLARE_FUNC(js_extension_Manifest_setUpdating); SE_DECLARE_FUNC(js_extension_Manifest_Manifest); extern se::Object* __jsb_cc_extension_AssetsManagerEx_proto; -extern se::Class* __jsb_cc_extension_AssetsManagerEx_class; +extern se::Class* __jsb_cc_extension_AssetsManagerEx_class; bool js_register_cc_extension_AssetsManagerEx(se::Object* obj); bool register_all_extension(se::Object* obj); @@ -102,3 +102,4 @@ SE_DECLARE_FUNC(js_extension_AssetsManagerEx_setVersionCompareHandle); SE_DECLARE_FUNC(js_extension_AssetsManagerEx_update); SE_DECLARE_FUNC(js_extension_AssetsManagerEx_create); SE_DECLARE_FUNC(js_extension_AssetsManagerEx_AssetsManagerEx); + diff --git a/native/cocos/bindings/auto/jsb_gfx_auto.cpp b/native/cocos/bindings/auto/jsb_gfx_auto.cpp index ca8164ab62..d7e1758bb0 100644 --- a/native/cocos/bindings/auto/jsb_gfx_auto.cpp +++ b/native/cocos/bindings/auto/jsb_gfx_auto.cpp @@ -29,14 +29,14 @@ #include "renderer/GFXDeviceManager.h" #ifndef JSB_ALLOC - #define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) +#define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) #endif #ifndef JSB_FREE - #define JSB_FREE(ptr) delete ptr +#define JSB_FREE(ptr) delete ptr #endif se::Object* __jsb_cc_gfx_Size_proto = nullptr; -se::Class* __jsb_cc_gfx_Size_class = nullptr; +se::Class* __jsb_cc_gfx_Size_class = nullptr; static bool js_gfx_Size_get_x(se::State& s) // NOLINT(readability-identifier-naming) { @@ -44,7 +44,7 @@ static bool js_gfx_Size_get_x(se::State& s) // NOLINT(readability-identifier-nam SE_PRECONDITION2(cobj, false, "js_gfx_Size_get_x : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->x, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->x, s.thisObject(), s.rval()); @@ -55,7 +55,7 @@ SE_BIND_PROP_GET(js_gfx_Size_get_x) static bool js_gfx_Size_set_x(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Size_set_x : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -71,7 +71,7 @@ static bool js_gfx_Size_get_y(se::State& s) // NOLINT(readability-identifier-nam SE_PRECONDITION2(cobj, false, "js_gfx_Size_get_y : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->y, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->y, s.thisObject(), s.rval()); @@ -82,7 +82,7 @@ SE_BIND_PROP_GET(js_gfx_Size_get_y) static bool js_gfx_Size_set_y(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Size_set_y : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -98,7 +98,7 @@ static bool js_gfx_Size_get_z(se::State& s) // NOLINT(readability-identifier-nam SE_PRECONDITION2(cobj, false, "js_gfx_Size_get_z : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->z, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->z, s.thisObject(), s.rval()); @@ -109,7 +109,7 @@ SE_BIND_PROP_GET(js_gfx_Size_get_z) static bool js_gfx_Size_set_z(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Size_set_z : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -119,27 +119,29 @@ static bool js_gfx_Size_set_z(se::State& s) // NOLINT(readability-identifier-nam } SE_BIND_PROP_SET(js_gfx_Size_set_z) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::Size* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::Size * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("x", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->x), ctx); } json->getProperty("y", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->y), ctx); } json->getProperty("z", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->z), ctx); } return ok; @@ -149,24 +151,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_Size_finalize) static bool js_gfx_Size_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::Size* cobj = JSB_ALLOC(cc::gfx::Size); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::Size* cobj = JSB_ALLOC(cc::gfx::Size); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -188,7 +192,7 @@ static bool js_gfx_Size_constructor(se::State& s) // NOLINT(readability-identifi ok &= sevalue_to_native(args[2], &(cobj->z), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -200,10 +204,13 @@ static bool js_gfx_Size_constructor(se::State& s) // NOLINT(readability-identifi } SE_BIND_CTOR(js_gfx_Size_constructor, __jsb_cc_gfx_Size_class, js_cc_gfx_Size_finalize) + + static bool js_cc_gfx_Size_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -230,7 +237,7 @@ bool js_register_gfx_Size(se::Object* obj) // NOLINT(readability-identifier-nami return true; } se::Object* __jsb_cc_gfx_DeviceCaps_proto = nullptr; -se::Class* __jsb_cc_gfx_DeviceCaps_class = nullptr; +se::Class* __jsb_cc_gfx_DeviceCaps_class = nullptr; static bool js_gfx_DeviceCaps_get_maxVertexAttributes(se::State& s) // NOLINT(readability-identifier-naming) { @@ -238,7 +245,7 @@ static bool js_gfx_DeviceCaps_get_maxVertexAttributes(se::State& s) // NOLINT(re SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_maxVertexAttributes : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxVertexAttributes, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxVertexAttributes, s.thisObject(), s.rval()); @@ -249,7 +256,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_maxVertexAttributes) static bool js_gfx_DeviceCaps_set_maxVertexAttributes(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_maxVertexAttributes : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -265,7 +272,7 @@ static bool js_gfx_DeviceCaps_get_maxVertexUniformVectors(se::State& s) // NOLIN SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_maxVertexUniformVectors : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxVertexUniformVectors, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxVertexUniformVectors, s.thisObject(), s.rval()); @@ -276,7 +283,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_maxVertexUniformVectors) static bool js_gfx_DeviceCaps_set_maxVertexUniformVectors(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_maxVertexUniformVectors : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -292,7 +299,7 @@ static bool js_gfx_DeviceCaps_get_maxFragmentUniformVectors(se::State& s) // NOL SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_maxFragmentUniformVectors : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxFragmentUniformVectors, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxFragmentUniformVectors, s.thisObject(), s.rval()); @@ -303,7 +310,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_maxFragmentUniformVectors) static bool js_gfx_DeviceCaps_set_maxFragmentUniformVectors(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_maxFragmentUniformVectors : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -319,7 +326,7 @@ static bool js_gfx_DeviceCaps_get_maxTextureUnits(se::State& s) // NOLINT(readab SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_maxTextureUnits : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxTextureUnits, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxTextureUnits, s.thisObject(), s.rval()); @@ -330,7 +337,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_maxTextureUnits) static bool js_gfx_DeviceCaps_set_maxTextureUnits(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_maxTextureUnits : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -346,7 +353,7 @@ static bool js_gfx_DeviceCaps_get_maxImageUnits(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_maxImageUnits : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxImageUnits, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxImageUnits, s.thisObject(), s.rval()); @@ -357,7 +364,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_maxImageUnits) static bool js_gfx_DeviceCaps_set_maxImageUnits(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_maxImageUnits : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -373,7 +380,7 @@ static bool js_gfx_DeviceCaps_get_maxVertexTextureUnits(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_maxVertexTextureUnits : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxVertexTextureUnits, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxVertexTextureUnits, s.thisObject(), s.rval()); @@ -384,7 +391,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_maxVertexTextureUnits) static bool js_gfx_DeviceCaps_set_maxVertexTextureUnits(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_maxVertexTextureUnits : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -400,7 +407,7 @@ static bool js_gfx_DeviceCaps_get_maxColorRenderTargets(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_maxColorRenderTargets : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxColorRenderTargets, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxColorRenderTargets, s.thisObject(), s.rval()); @@ -411,7 +418,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_maxColorRenderTargets) static bool js_gfx_DeviceCaps_set_maxColorRenderTargets(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_maxColorRenderTargets : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -427,7 +434,7 @@ static bool js_gfx_DeviceCaps_get_maxShaderStorageBufferBindings(se::State& s) / SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_maxShaderStorageBufferBindings : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxShaderStorageBufferBindings, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxShaderStorageBufferBindings, s.thisObject(), s.rval()); @@ -438,7 +445,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_maxShaderStorageBufferBindings) static bool js_gfx_DeviceCaps_set_maxShaderStorageBufferBindings(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_maxShaderStorageBufferBindings : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -454,7 +461,7 @@ static bool js_gfx_DeviceCaps_get_maxShaderStorageBlockSize(se::State& s) // NOL SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_maxShaderStorageBlockSize : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxShaderStorageBlockSize, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxShaderStorageBlockSize, s.thisObject(), s.rval()); @@ -465,7 +472,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_maxShaderStorageBlockSize) static bool js_gfx_DeviceCaps_set_maxShaderStorageBlockSize(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_maxShaderStorageBlockSize : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -481,7 +488,7 @@ static bool js_gfx_DeviceCaps_get_maxUniformBufferBindings(se::State& s) // NOLI SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_maxUniformBufferBindings : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxUniformBufferBindings, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxUniformBufferBindings, s.thisObject(), s.rval()); @@ -492,7 +499,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_maxUniformBufferBindings) static bool js_gfx_DeviceCaps_set_maxUniformBufferBindings(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_maxUniformBufferBindings : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -508,7 +515,7 @@ static bool js_gfx_DeviceCaps_get_maxUniformBlockSize(se::State& s) // NOLINT(re SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_maxUniformBlockSize : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxUniformBlockSize, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxUniformBlockSize, s.thisObject(), s.rval()); @@ -519,7 +526,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_maxUniformBlockSize) static bool js_gfx_DeviceCaps_set_maxUniformBlockSize(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_maxUniformBlockSize : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -535,7 +542,7 @@ static bool js_gfx_DeviceCaps_get_maxTextureSize(se::State& s) // NOLINT(readabi SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_maxTextureSize : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxTextureSize, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxTextureSize, s.thisObject(), s.rval()); @@ -546,7 +553,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_maxTextureSize) static bool js_gfx_DeviceCaps_set_maxTextureSize(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_maxTextureSize : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -562,7 +569,7 @@ static bool js_gfx_DeviceCaps_get_maxCubeMapTextureSize(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_maxCubeMapTextureSize : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxCubeMapTextureSize, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxCubeMapTextureSize, s.thisObject(), s.rval()); @@ -573,7 +580,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_maxCubeMapTextureSize) static bool js_gfx_DeviceCaps_set_maxCubeMapTextureSize(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_maxCubeMapTextureSize : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -589,7 +596,7 @@ static bool js_gfx_DeviceCaps_get_uboOffsetAlignment(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_uboOffsetAlignment : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->uboOffsetAlignment, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->uboOffsetAlignment, s.thisObject(), s.rval()); @@ -600,7 +607,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_uboOffsetAlignment) static bool js_gfx_DeviceCaps_set_uboOffsetAlignment(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_uboOffsetAlignment : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -616,7 +623,7 @@ static bool js_gfx_DeviceCaps_get_maxComputeSharedMemorySize(se::State& s) // NO SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_maxComputeSharedMemorySize : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxComputeSharedMemorySize, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxComputeSharedMemorySize, s.thisObject(), s.rval()); @@ -627,7 +634,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_maxComputeSharedMemorySize) static bool js_gfx_DeviceCaps_set_maxComputeSharedMemorySize(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_maxComputeSharedMemorySize : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -643,7 +650,7 @@ static bool js_gfx_DeviceCaps_get_maxComputeWorkGroupInvocations(se::State& s) / SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_maxComputeWorkGroupInvocations : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxComputeWorkGroupInvocations, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxComputeWorkGroupInvocations, s.thisObject(), s.rval()); @@ -654,7 +661,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_maxComputeWorkGroupInvocations) static bool js_gfx_DeviceCaps_set_maxComputeWorkGroupInvocations(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_maxComputeWorkGroupInvocations : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -670,7 +677,7 @@ static bool js_gfx_DeviceCaps_get_maxComputeWorkGroupSize(se::State& s) // NOLIN SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_maxComputeWorkGroupSize : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxComputeWorkGroupSize, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxComputeWorkGroupSize, s.thisObject(), s.rval()); @@ -681,7 +688,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_maxComputeWorkGroupSize) static bool js_gfx_DeviceCaps_set_maxComputeWorkGroupSize(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_maxComputeWorkGroupSize : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -697,7 +704,7 @@ static bool js_gfx_DeviceCaps_get_maxComputeWorkGroupCount(se::State& s) // NOLI SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_maxComputeWorkGroupCount : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxComputeWorkGroupCount, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxComputeWorkGroupCount, s.thisObject(), s.rval()); @@ -708,7 +715,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_maxComputeWorkGroupCount) static bool js_gfx_DeviceCaps_set_maxComputeWorkGroupCount(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_maxComputeWorkGroupCount : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -724,7 +731,7 @@ static bool js_gfx_DeviceCaps_get_supportQuery(se::State& s) // NOLINT(readabili SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_supportQuery : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->supportQuery, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->supportQuery, s.thisObject(), s.rval()); @@ -735,7 +742,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_supportQuery) static bool js_gfx_DeviceCaps_set_supportQuery(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_supportQuery : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -751,7 +758,7 @@ static bool js_gfx_DeviceCaps_get_clipSpaceMinZ(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_clipSpaceMinZ : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->clipSpaceMinZ, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->clipSpaceMinZ, s.thisObject(), s.rval()); @@ -762,7 +769,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_clipSpaceMinZ) static bool js_gfx_DeviceCaps_set_clipSpaceMinZ(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_clipSpaceMinZ : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -778,7 +785,7 @@ static bool js_gfx_DeviceCaps_get_screenSpaceSignY(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_screenSpaceSignY : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->screenSpaceSignY, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->screenSpaceSignY, s.thisObject(), s.rval()); @@ -789,7 +796,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_screenSpaceSignY) static bool js_gfx_DeviceCaps_set_screenSpaceSignY(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_screenSpaceSignY : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -805,7 +812,7 @@ static bool js_gfx_DeviceCaps_get_clipSpaceSignY(se::State& s) // NOLINT(readabi SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_clipSpaceSignY : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->clipSpaceSignY, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->clipSpaceSignY, s.thisObject(), s.rval()); @@ -816,7 +823,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_clipSpaceSignY) static bool js_gfx_DeviceCaps_set_clipSpaceSignY(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_clipSpaceSignY : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -826,103 +833,105 @@ static bool js_gfx_DeviceCaps_set_clipSpaceSignY(se::State& s) // NOLINT(readabi } SE_BIND_PROP_SET(js_gfx_DeviceCaps_set_clipSpaceSignY) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::DeviceCaps* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::DeviceCaps * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("maxVertexAttributes", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxVertexAttributes), ctx); } json->getProperty("maxVertexUniformVectors", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxVertexUniformVectors), ctx); } json->getProperty("maxFragmentUniformVectors", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxFragmentUniformVectors), ctx); } json->getProperty("maxTextureUnits", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxTextureUnits), ctx); } json->getProperty("maxImageUnits", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxImageUnits), ctx); } json->getProperty("maxVertexTextureUnits", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxVertexTextureUnits), ctx); } json->getProperty("maxColorRenderTargets", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxColorRenderTargets), ctx); } json->getProperty("maxShaderStorageBufferBindings", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxShaderStorageBufferBindings), ctx); } json->getProperty("maxShaderStorageBlockSize", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxShaderStorageBlockSize), ctx); } json->getProperty("maxUniformBufferBindings", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxUniformBufferBindings), ctx); } json->getProperty("maxUniformBlockSize", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxUniformBlockSize), ctx); } json->getProperty("maxTextureSize", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxTextureSize), ctx); } json->getProperty("maxCubeMapTextureSize", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxCubeMapTextureSize), ctx); } json->getProperty("uboOffsetAlignment", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->uboOffsetAlignment), ctx); } json->getProperty("maxComputeSharedMemorySize", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxComputeSharedMemorySize), ctx); } json->getProperty("maxComputeWorkGroupInvocations", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxComputeWorkGroupInvocations), ctx); } json->getProperty("maxComputeWorkGroupSize", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxComputeWorkGroupSize), ctx); } json->getProperty("maxComputeWorkGroupCount", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxComputeWorkGroupCount), ctx); } json->getProperty("supportQuery", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->supportQuery), ctx); } json->getProperty("clipSpaceMinZ", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->clipSpaceMinZ), ctx); } json->getProperty("screenSpaceSignY", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->screenSpaceSignY), ctx); } json->getProperty("clipSpaceSignY", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->clipSpaceSignY), ctx); } return ok; @@ -932,24 +941,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_DeviceCaps_finalize) static bool js_gfx_DeviceCaps_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::DeviceCaps* cobj = JSB_ALLOC(cc::gfx::DeviceCaps); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::DeviceCaps* cobj = JSB_ALLOC(cc::gfx::DeviceCaps); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -1028,7 +1039,7 @@ static bool js_gfx_DeviceCaps_constructor(se::State& s) // NOLINT(readability-id ok &= sevalue_to_native(args[21], &(cobj->clipSpaceSignY), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -1040,10 +1051,13 @@ static bool js_gfx_DeviceCaps_constructor(se::State& s) // NOLINT(readability-id } SE_BIND_CTOR(js_gfx_DeviceCaps_constructor, __jsb_cc_gfx_DeviceCaps_class, js_cc_gfx_DeviceCaps_finalize) + + static bool js_cc_gfx_DeviceCaps_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -1089,7 +1103,7 @@ bool js_register_gfx_DeviceCaps(se::Object* obj) // NOLINT(readability-identifie return true; } se::Object* __jsb_cc_gfx_Offset_proto = nullptr; -se::Class* __jsb_cc_gfx_Offset_class = nullptr; +se::Class* __jsb_cc_gfx_Offset_class = nullptr; static bool js_gfx_Offset_get_x(se::State& s) // NOLINT(readability-identifier-naming) { @@ -1097,7 +1111,7 @@ static bool js_gfx_Offset_get_x(se::State& s) // NOLINT(readability-identifier-n SE_PRECONDITION2(cobj, false, "js_gfx_Offset_get_x : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->x, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->x, s.thisObject(), s.rval()); @@ -1108,7 +1122,7 @@ SE_BIND_PROP_GET(js_gfx_Offset_get_x) static bool js_gfx_Offset_set_x(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Offset_set_x : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1124,7 +1138,7 @@ static bool js_gfx_Offset_get_y(se::State& s) // NOLINT(readability-identifier-n SE_PRECONDITION2(cobj, false, "js_gfx_Offset_get_y : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->y, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->y, s.thisObject(), s.rval()); @@ -1135,7 +1149,7 @@ SE_BIND_PROP_GET(js_gfx_Offset_get_y) static bool js_gfx_Offset_set_y(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Offset_set_y : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1151,7 +1165,7 @@ static bool js_gfx_Offset_get_z(se::State& s) // NOLINT(readability-identifier-n SE_PRECONDITION2(cobj, false, "js_gfx_Offset_get_z : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->z, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->z, s.thisObject(), s.rval()); @@ -1162,7 +1176,7 @@ SE_BIND_PROP_GET(js_gfx_Offset_get_z) static bool js_gfx_Offset_set_z(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Offset_set_z : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1172,27 +1186,29 @@ static bool js_gfx_Offset_set_z(se::State& s) // NOLINT(readability-identifier-n } SE_BIND_PROP_SET(js_gfx_Offset_set_z) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::Offset* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::Offset * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("x", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->x), ctx); } json->getProperty("y", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->y), ctx); } json->getProperty("z", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->z), ctx); } return ok; @@ -1202,24 +1218,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_Offset_finalize) static bool js_gfx_Offset_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::Offset* cobj = JSB_ALLOC(cc::gfx::Offset); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::Offset* cobj = JSB_ALLOC(cc::gfx::Offset); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -1241,7 +1259,7 @@ static bool js_gfx_Offset_constructor(se::State& s) // NOLINT(readability-identi ok &= sevalue_to_native(args[2], &(cobj->z), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -1253,10 +1271,13 @@ static bool js_gfx_Offset_constructor(se::State& s) // NOLINT(readability-identi } SE_BIND_CTOR(js_gfx_Offset_constructor, __jsb_cc_gfx_Offset_class, js_cc_gfx_Offset_finalize) + + static bool js_cc_gfx_Offset_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -1283,7 +1304,7 @@ bool js_register_gfx_Offset(se::Object* obj) // NOLINT(readability-identifier-na return true; } se::Object* __jsb_cc_gfx_Rect_proto = nullptr; -se::Class* __jsb_cc_gfx_Rect_class = nullptr; +se::Class* __jsb_cc_gfx_Rect_class = nullptr; static bool js_gfx_Rect_get_x(se::State& s) // NOLINT(readability-identifier-naming) { @@ -1291,7 +1312,7 @@ static bool js_gfx_Rect_get_x(se::State& s) // NOLINT(readability-identifier-nam SE_PRECONDITION2(cobj, false, "js_gfx_Rect_get_x : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->x, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->x, s.thisObject(), s.rval()); @@ -1302,7 +1323,7 @@ SE_BIND_PROP_GET(js_gfx_Rect_get_x) static bool js_gfx_Rect_set_x(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Rect_set_x : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1318,7 +1339,7 @@ static bool js_gfx_Rect_get_y(se::State& s) // NOLINT(readability-identifier-nam SE_PRECONDITION2(cobj, false, "js_gfx_Rect_get_y : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->y, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->y, s.thisObject(), s.rval()); @@ -1329,7 +1350,7 @@ SE_BIND_PROP_GET(js_gfx_Rect_get_y) static bool js_gfx_Rect_set_y(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Rect_set_y : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1345,7 +1366,7 @@ static bool js_gfx_Rect_get_width(se::State& s) // NOLINT(readability-identifier SE_PRECONDITION2(cobj, false, "js_gfx_Rect_get_width : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->width, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->width, s.thisObject(), s.rval()); @@ -1356,7 +1377,7 @@ SE_BIND_PROP_GET(js_gfx_Rect_get_width) static bool js_gfx_Rect_set_width(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Rect_set_width : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1372,7 +1393,7 @@ static bool js_gfx_Rect_get_height(se::State& s) // NOLINT(readability-identifie SE_PRECONDITION2(cobj, false, "js_gfx_Rect_get_height : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->height, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->height, s.thisObject(), s.rval()); @@ -1383,7 +1404,7 @@ SE_BIND_PROP_GET(js_gfx_Rect_get_height) static bool js_gfx_Rect_set_height(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Rect_set_height : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1393,31 +1414,33 @@ static bool js_gfx_Rect_set_height(se::State& s) // NOLINT(readability-identifie } SE_BIND_PROP_SET(js_gfx_Rect_set_height) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::Rect* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::Rect * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("x", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->x), ctx); } json->getProperty("y", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->y), ctx); } json->getProperty("width", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->width), ctx); } json->getProperty("height", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->height), ctx); } return ok; @@ -1427,24 +1450,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_Rect_finalize) static bool js_gfx_Rect_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::Rect* cobj = JSB_ALLOC(cc::gfx::Rect); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::Rect* cobj = JSB_ALLOC(cc::gfx::Rect); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -1469,7 +1494,7 @@ static bool js_gfx_Rect_constructor(se::State& s) // NOLINT(readability-identifi ok &= sevalue_to_native(args[3], &(cobj->height), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -1481,10 +1506,13 @@ static bool js_gfx_Rect_constructor(se::State& s) // NOLINT(readability-identifi } SE_BIND_CTOR(js_gfx_Rect_constructor, __jsb_cc_gfx_Rect_class, js_cc_gfx_Rect_finalize) + + static bool js_cc_gfx_Rect_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -1512,7 +1540,7 @@ bool js_register_gfx_Rect(se::Object* obj) // NOLINT(readability-identifier-nami return true; } se::Object* __jsb_cc_gfx_Extent_proto = nullptr; -se::Class* __jsb_cc_gfx_Extent_class = nullptr; +se::Class* __jsb_cc_gfx_Extent_class = nullptr; static bool js_gfx_Extent_get_width(se::State& s) // NOLINT(readability-identifier-naming) { @@ -1520,7 +1548,7 @@ static bool js_gfx_Extent_get_width(se::State& s) // NOLINT(readability-identifi SE_PRECONDITION2(cobj, false, "js_gfx_Extent_get_width : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->width, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->width, s.thisObject(), s.rval()); @@ -1531,7 +1559,7 @@ SE_BIND_PROP_GET(js_gfx_Extent_get_width) static bool js_gfx_Extent_set_width(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Extent_set_width : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1547,7 +1575,7 @@ static bool js_gfx_Extent_get_height(se::State& s) // NOLINT(readability-identif SE_PRECONDITION2(cobj, false, "js_gfx_Extent_get_height : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->height, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->height, s.thisObject(), s.rval()); @@ -1558,7 +1586,7 @@ SE_BIND_PROP_GET(js_gfx_Extent_get_height) static bool js_gfx_Extent_set_height(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Extent_set_height : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1574,7 +1602,7 @@ static bool js_gfx_Extent_get_depth(se::State& s) // NOLINT(readability-identifi SE_PRECONDITION2(cobj, false, "js_gfx_Extent_get_depth : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->depth, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->depth, s.thisObject(), s.rval()); @@ -1585,7 +1613,7 @@ SE_BIND_PROP_GET(js_gfx_Extent_get_depth) static bool js_gfx_Extent_set_depth(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Extent_set_depth : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1595,27 +1623,29 @@ static bool js_gfx_Extent_set_depth(se::State& s) // NOLINT(readability-identifi } SE_BIND_PROP_SET(js_gfx_Extent_set_depth) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::Extent* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::Extent * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("width", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->width), ctx); } json->getProperty("height", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->height), ctx); } json->getProperty("depth", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->depth), ctx); } return ok; @@ -1625,24 +1655,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_Extent_finalize) static bool js_gfx_Extent_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::Extent* cobj = JSB_ALLOC(cc::gfx::Extent); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::Extent* cobj = JSB_ALLOC(cc::gfx::Extent); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -1664,7 +1696,7 @@ static bool js_gfx_Extent_constructor(se::State& s) // NOLINT(readability-identi ok &= sevalue_to_native(args[2], &(cobj->depth), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -1676,10 +1708,13 @@ static bool js_gfx_Extent_constructor(se::State& s) // NOLINT(readability-identi } SE_BIND_CTOR(js_gfx_Extent_constructor, __jsb_cc_gfx_Extent_class, js_cc_gfx_Extent_finalize) + + static bool js_cc_gfx_Extent_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -1706,7 +1741,7 @@ bool js_register_gfx_Extent(se::Object* obj) // NOLINT(readability-identifier-na return true; } se::Object* __jsb_cc_gfx_TextureSubresLayers_proto = nullptr; -se::Class* __jsb_cc_gfx_TextureSubresLayers_class = nullptr; +se::Class* __jsb_cc_gfx_TextureSubresLayers_class = nullptr; static bool js_gfx_TextureSubresLayers_get_mipLevel(se::State& s) // NOLINT(readability-identifier-naming) { @@ -1714,7 +1749,7 @@ static bool js_gfx_TextureSubresLayers_get_mipLevel(se::State& s) // NOLINT(read SE_PRECONDITION2(cobj, false, "js_gfx_TextureSubresLayers_get_mipLevel : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->mipLevel, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->mipLevel, s.thisObject(), s.rval()); @@ -1725,7 +1760,7 @@ SE_BIND_PROP_GET(js_gfx_TextureSubresLayers_get_mipLevel) static bool js_gfx_TextureSubresLayers_set_mipLevel(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureSubresLayers_set_mipLevel : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1741,7 +1776,7 @@ static bool js_gfx_TextureSubresLayers_get_baseArrayLayer(se::State& s) // NOLIN SE_PRECONDITION2(cobj, false, "js_gfx_TextureSubresLayers_get_baseArrayLayer : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->baseArrayLayer, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->baseArrayLayer, s.thisObject(), s.rval()); @@ -1752,7 +1787,7 @@ SE_BIND_PROP_GET(js_gfx_TextureSubresLayers_get_baseArrayLayer) static bool js_gfx_TextureSubresLayers_set_baseArrayLayer(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureSubresLayers_set_baseArrayLayer : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1768,7 +1803,7 @@ static bool js_gfx_TextureSubresLayers_get_layerCount(se::State& s) // NOLINT(re SE_PRECONDITION2(cobj, false, "js_gfx_TextureSubresLayers_get_layerCount : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->layerCount, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->layerCount, s.thisObject(), s.rval()); @@ -1779,7 +1814,7 @@ SE_BIND_PROP_GET(js_gfx_TextureSubresLayers_get_layerCount) static bool js_gfx_TextureSubresLayers_set_layerCount(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureSubresLayers_set_layerCount : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1789,27 +1824,29 @@ static bool js_gfx_TextureSubresLayers_set_layerCount(se::State& s) // NOLINT(re } SE_BIND_PROP_SET(js_gfx_TextureSubresLayers_set_layerCount) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::TextureSubresLayers* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::TextureSubresLayers * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("mipLevel", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->mipLevel), ctx); } json->getProperty("baseArrayLayer", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->baseArrayLayer), ctx); } json->getProperty("layerCount", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->layerCount), ctx); } return ok; @@ -1819,24 +1856,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_TextureSubresLayers_finalize) static bool js_gfx_TextureSubresLayers_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::TextureSubresLayers* cobj = JSB_ALLOC(cc::gfx::TextureSubresLayers); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::TextureSubresLayers* cobj = JSB_ALLOC(cc::gfx::TextureSubresLayers); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -1858,7 +1897,7 @@ static bool js_gfx_TextureSubresLayers_constructor(se::State& s) // NOLINT(reada ok &= sevalue_to_native(args[2], &(cobj->layerCount), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -1870,10 +1909,13 @@ static bool js_gfx_TextureSubresLayers_constructor(se::State& s) // NOLINT(reada } SE_BIND_CTOR(js_gfx_TextureSubresLayers_constructor, __jsb_cc_gfx_TextureSubresLayers_class, js_cc_gfx_TextureSubresLayers_finalize) + + static bool js_cc_gfx_TextureSubresLayers_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -1900,7 +1942,7 @@ bool js_register_gfx_TextureSubresLayers(se::Object* obj) // NOLINT(readability- return true; } se::Object* __jsb_cc_gfx_TextureSubresRange_proto = nullptr; -se::Class* __jsb_cc_gfx_TextureSubresRange_class = nullptr; +se::Class* __jsb_cc_gfx_TextureSubresRange_class = nullptr; static bool js_gfx_TextureSubresRange_get_baseMipLevel(se::State& s) // NOLINT(readability-identifier-naming) { @@ -1908,7 +1950,7 @@ static bool js_gfx_TextureSubresRange_get_baseMipLevel(se::State& s) // NOLINT(r SE_PRECONDITION2(cobj, false, "js_gfx_TextureSubresRange_get_baseMipLevel : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->baseMipLevel, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->baseMipLevel, s.thisObject(), s.rval()); @@ -1919,7 +1961,7 @@ SE_BIND_PROP_GET(js_gfx_TextureSubresRange_get_baseMipLevel) static bool js_gfx_TextureSubresRange_set_baseMipLevel(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureSubresRange_set_baseMipLevel : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1935,7 +1977,7 @@ static bool js_gfx_TextureSubresRange_get_levelCount(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_gfx_TextureSubresRange_get_levelCount : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->levelCount, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->levelCount, s.thisObject(), s.rval()); @@ -1946,7 +1988,7 @@ SE_BIND_PROP_GET(js_gfx_TextureSubresRange_get_levelCount) static bool js_gfx_TextureSubresRange_set_levelCount(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureSubresRange_set_levelCount : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1962,7 +2004,7 @@ static bool js_gfx_TextureSubresRange_get_baseArrayLayer(se::State& s) // NOLINT SE_PRECONDITION2(cobj, false, "js_gfx_TextureSubresRange_get_baseArrayLayer : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->baseArrayLayer, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->baseArrayLayer, s.thisObject(), s.rval()); @@ -1973,7 +2015,7 @@ SE_BIND_PROP_GET(js_gfx_TextureSubresRange_get_baseArrayLayer) static bool js_gfx_TextureSubresRange_set_baseArrayLayer(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureSubresRange_set_baseArrayLayer : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1989,7 +2031,7 @@ static bool js_gfx_TextureSubresRange_get_layerCount(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_gfx_TextureSubresRange_get_layerCount : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->layerCount, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->layerCount, s.thisObject(), s.rval()); @@ -2000,7 +2042,7 @@ SE_BIND_PROP_GET(js_gfx_TextureSubresRange_get_layerCount) static bool js_gfx_TextureSubresRange_set_layerCount(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureSubresRange_set_layerCount : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2010,31 +2052,33 @@ static bool js_gfx_TextureSubresRange_set_layerCount(se::State& s) // NOLINT(rea } SE_BIND_PROP_SET(js_gfx_TextureSubresRange_set_layerCount) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::TextureSubresRange* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::TextureSubresRange * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("baseMipLevel", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->baseMipLevel), ctx); } json->getProperty("levelCount", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->levelCount), ctx); } json->getProperty("baseArrayLayer", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->baseArrayLayer), ctx); } json->getProperty("layerCount", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->layerCount), ctx); } return ok; @@ -2044,24 +2088,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_TextureSubresRange_finalize) static bool js_gfx_TextureSubresRange_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::TextureSubresRange* cobj = JSB_ALLOC(cc::gfx::TextureSubresRange); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::TextureSubresRange* cobj = JSB_ALLOC(cc::gfx::TextureSubresRange); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -2086,7 +2132,7 @@ static bool js_gfx_TextureSubresRange_constructor(se::State& s) // NOLINT(readab ok &= sevalue_to_native(args[3], &(cobj->layerCount), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -2098,10 +2144,13 @@ static bool js_gfx_TextureSubresRange_constructor(se::State& s) // NOLINT(readab } SE_BIND_CTOR(js_gfx_TextureSubresRange_constructor, __jsb_cc_gfx_TextureSubresRange_class, js_cc_gfx_TextureSubresRange_finalize) + + static bool js_cc_gfx_TextureSubresRange_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -2129,7 +2178,7 @@ bool js_register_gfx_TextureSubresRange(se::Object* obj) // NOLINT(readability-i return true; } se::Object* __jsb_cc_gfx_TextureCopy_proto = nullptr; -se::Class* __jsb_cc_gfx_TextureCopy_class = nullptr; +se::Class* __jsb_cc_gfx_TextureCopy_class = nullptr; static bool js_gfx_TextureCopy_get_srcSubres(se::State& s) // NOLINT(readability-identifier-naming) { @@ -2137,7 +2186,7 @@ static bool js_gfx_TextureCopy_get_srcSubres(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_TextureCopy_get_srcSubres : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->srcSubres, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->srcSubres, s.thisObject(), s.rval()); @@ -2148,7 +2197,7 @@ SE_BIND_PROP_GET(js_gfx_TextureCopy_get_srcSubres) static bool js_gfx_TextureCopy_set_srcSubres(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureCopy_set_srcSubres : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2164,7 +2213,7 @@ static bool js_gfx_TextureCopy_get_srcOffset(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_TextureCopy_get_srcOffset : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->srcOffset, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->srcOffset, s.thisObject(), s.rval()); @@ -2175,7 +2224,7 @@ SE_BIND_PROP_GET(js_gfx_TextureCopy_get_srcOffset) static bool js_gfx_TextureCopy_set_srcOffset(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureCopy_set_srcOffset : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2191,7 +2240,7 @@ static bool js_gfx_TextureCopy_get_dstSubres(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_TextureCopy_get_dstSubres : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->dstSubres, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->dstSubres, s.thisObject(), s.rval()); @@ -2202,7 +2251,7 @@ SE_BIND_PROP_GET(js_gfx_TextureCopy_get_dstSubres) static bool js_gfx_TextureCopy_set_dstSubres(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureCopy_set_dstSubres : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2218,7 +2267,7 @@ static bool js_gfx_TextureCopy_get_dstOffset(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_TextureCopy_get_dstOffset : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->dstOffset, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->dstOffset, s.thisObject(), s.rval()); @@ -2229,7 +2278,7 @@ SE_BIND_PROP_GET(js_gfx_TextureCopy_get_dstOffset) static bool js_gfx_TextureCopy_set_dstOffset(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureCopy_set_dstOffset : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2245,7 +2294,7 @@ static bool js_gfx_TextureCopy_get_extent(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_gfx_TextureCopy_get_extent : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->extent, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->extent, s.thisObject(), s.rval()); @@ -2256,7 +2305,7 @@ SE_BIND_PROP_GET(js_gfx_TextureCopy_get_extent) static bool js_gfx_TextureCopy_set_extent(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureCopy_set_extent : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2266,35 +2315,37 @@ static bool js_gfx_TextureCopy_set_extent(se::State& s) // NOLINT(readability-id } SE_BIND_PROP_SET(js_gfx_TextureCopy_set_extent) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::TextureCopy* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::TextureCopy * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("srcSubres", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->srcSubres), ctx); } json->getProperty("srcOffset", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->srcOffset), ctx); } json->getProperty("dstSubres", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->dstSubres), ctx); } json->getProperty("dstOffset", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->dstOffset), ctx); } json->getProperty("extent", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->extent), ctx); } return ok; @@ -2304,24 +2355,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_TextureCopy_finalize) static bool js_gfx_TextureCopy_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::TextureCopy* cobj = JSB_ALLOC(cc::gfx::TextureCopy); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::TextureCopy* cobj = JSB_ALLOC(cc::gfx::TextureCopy); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -2349,7 +2402,7 @@ static bool js_gfx_TextureCopy_constructor(se::State& s) // NOLINT(readability-i ok &= sevalue_to_native(args[4], &(cobj->extent), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -2361,10 +2414,13 @@ static bool js_gfx_TextureCopy_constructor(se::State& s) // NOLINT(readability-i } SE_BIND_CTOR(js_gfx_TextureCopy_constructor, __jsb_cc_gfx_TextureCopy_class, js_cc_gfx_TextureCopy_finalize) + + static bool js_cc_gfx_TextureCopy_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -2393,7 +2449,7 @@ bool js_register_gfx_TextureCopy(se::Object* obj) // NOLINT(readability-identifi return true; } se::Object* __jsb_cc_gfx_TextureBlit_proto = nullptr; -se::Class* __jsb_cc_gfx_TextureBlit_class = nullptr; +se::Class* __jsb_cc_gfx_TextureBlit_class = nullptr; static bool js_gfx_TextureBlit_get_srcSubres(se::State& s) // NOLINT(readability-identifier-naming) { @@ -2401,7 +2457,7 @@ static bool js_gfx_TextureBlit_get_srcSubres(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_TextureBlit_get_srcSubres : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->srcSubres, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->srcSubres, s.thisObject(), s.rval()); @@ -2412,7 +2468,7 @@ SE_BIND_PROP_GET(js_gfx_TextureBlit_get_srcSubres) static bool js_gfx_TextureBlit_set_srcSubres(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureBlit_set_srcSubres : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2428,7 +2484,7 @@ static bool js_gfx_TextureBlit_get_srcOffset(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_TextureBlit_get_srcOffset : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->srcOffset, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->srcOffset, s.thisObject(), s.rval()); @@ -2439,7 +2495,7 @@ SE_BIND_PROP_GET(js_gfx_TextureBlit_get_srcOffset) static bool js_gfx_TextureBlit_set_srcOffset(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureBlit_set_srcOffset : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2455,7 +2511,7 @@ static bool js_gfx_TextureBlit_get_srcExtent(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_TextureBlit_get_srcExtent : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->srcExtent, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->srcExtent, s.thisObject(), s.rval()); @@ -2466,7 +2522,7 @@ SE_BIND_PROP_GET(js_gfx_TextureBlit_get_srcExtent) static bool js_gfx_TextureBlit_set_srcExtent(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureBlit_set_srcExtent : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2482,7 +2538,7 @@ static bool js_gfx_TextureBlit_get_dstSubres(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_TextureBlit_get_dstSubres : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->dstSubres, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->dstSubres, s.thisObject(), s.rval()); @@ -2493,7 +2549,7 @@ SE_BIND_PROP_GET(js_gfx_TextureBlit_get_dstSubres) static bool js_gfx_TextureBlit_set_dstSubres(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureBlit_set_dstSubres : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2509,7 +2565,7 @@ static bool js_gfx_TextureBlit_get_dstOffset(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_TextureBlit_get_dstOffset : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->dstOffset, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->dstOffset, s.thisObject(), s.rval()); @@ -2520,7 +2576,7 @@ SE_BIND_PROP_GET(js_gfx_TextureBlit_get_dstOffset) static bool js_gfx_TextureBlit_set_dstOffset(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureBlit_set_dstOffset : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2536,7 +2592,7 @@ static bool js_gfx_TextureBlit_get_dstExtent(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_TextureBlit_get_dstExtent : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->dstExtent, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->dstExtent, s.thisObject(), s.rval()); @@ -2547,7 +2603,7 @@ SE_BIND_PROP_GET(js_gfx_TextureBlit_get_dstExtent) static bool js_gfx_TextureBlit_set_dstExtent(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureBlit_set_dstExtent : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2557,39 +2613,41 @@ static bool js_gfx_TextureBlit_set_dstExtent(se::State& s) // NOLINT(readability } SE_BIND_PROP_SET(js_gfx_TextureBlit_set_dstExtent) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::TextureBlit* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::TextureBlit * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("srcSubres", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->srcSubres), ctx); } json->getProperty("srcOffset", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->srcOffset), ctx); } json->getProperty("srcExtent", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->srcExtent), ctx); } json->getProperty("dstSubres", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->dstSubres), ctx); } json->getProperty("dstOffset", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->dstOffset), ctx); } json->getProperty("dstExtent", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->dstExtent), ctx); } return ok; @@ -2599,24 +2657,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_TextureBlit_finalize) static bool js_gfx_TextureBlit_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::TextureBlit* cobj = JSB_ALLOC(cc::gfx::TextureBlit); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::TextureBlit* cobj = JSB_ALLOC(cc::gfx::TextureBlit); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -2647,7 +2707,7 @@ static bool js_gfx_TextureBlit_constructor(se::State& s) // NOLINT(readability-i ok &= sevalue_to_native(args[5], &(cobj->dstExtent), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -2659,10 +2719,13 @@ static bool js_gfx_TextureBlit_constructor(se::State& s) // NOLINT(readability-i } SE_BIND_CTOR(js_gfx_TextureBlit_constructor, __jsb_cc_gfx_TextureBlit_class, js_cc_gfx_TextureBlit_finalize) + + static bool js_cc_gfx_TextureBlit_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -2692,7 +2755,7 @@ bool js_register_gfx_TextureBlit(se::Object* obj) // NOLINT(readability-identifi return true; } se::Object* __jsb_cc_gfx_BufferTextureCopy_proto = nullptr; -se::Class* __jsb_cc_gfx_BufferTextureCopy_class = nullptr; +se::Class* __jsb_cc_gfx_BufferTextureCopy_class = nullptr; static bool js_gfx_BufferTextureCopy_get_buffStride(se::State& s) // NOLINT(readability-identifier-naming) { @@ -2700,7 +2763,7 @@ static bool js_gfx_BufferTextureCopy_get_buffStride(se::State& s) // NOLINT(read SE_PRECONDITION2(cobj, false, "js_gfx_BufferTextureCopy_get_buffStride : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->buffStride, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->buffStride, s.thisObject(), s.rval()); @@ -2711,7 +2774,7 @@ SE_BIND_PROP_GET(js_gfx_BufferTextureCopy_get_buffStride) static bool js_gfx_BufferTextureCopy_set_buffStride(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BufferTextureCopy_set_buffStride : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2727,7 +2790,7 @@ static bool js_gfx_BufferTextureCopy_get_buffTexHeight(se::State& s) // NOLINT(r SE_PRECONDITION2(cobj, false, "js_gfx_BufferTextureCopy_get_buffTexHeight : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->buffTexHeight, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->buffTexHeight, s.thisObject(), s.rval()); @@ -2738,7 +2801,7 @@ SE_BIND_PROP_GET(js_gfx_BufferTextureCopy_get_buffTexHeight) static bool js_gfx_BufferTextureCopy_set_buffTexHeight(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BufferTextureCopy_set_buffTexHeight : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2754,7 +2817,7 @@ static bool js_gfx_BufferTextureCopy_get_texOffset(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_BufferTextureCopy_get_texOffset : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->texOffset, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->texOffset, s.thisObject(), s.rval()); @@ -2765,7 +2828,7 @@ SE_BIND_PROP_GET(js_gfx_BufferTextureCopy_get_texOffset) static bool js_gfx_BufferTextureCopy_set_texOffset(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BufferTextureCopy_set_texOffset : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2781,7 +2844,7 @@ static bool js_gfx_BufferTextureCopy_get_texExtent(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_BufferTextureCopy_get_texExtent : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->texExtent, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->texExtent, s.thisObject(), s.rval()); @@ -2792,7 +2855,7 @@ SE_BIND_PROP_GET(js_gfx_BufferTextureCopy_get_texExtent) static bool js_gfx_BufferTextureCopy_set_texExtent(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BufferTextureCopy_set_texExtent : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2808,7 +2871,7 @@ static bool js_gfx_BufferTextureCopy_get_texSubres(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_BufferTextureCopy_get_texSubres : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->texSubres, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->texSubres, s.thisObject(), s.rval()); @@ -2819,7 +2882,7 @@ SE_BIND_PROP_GET(js_gfx_BufferTextureCopy_get_texSubres) static bool js_gfx_BufferTextureCopy_set_texSubres(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BufferTextureCopy_set_texSubres : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2829,35 +2892,37 @@ static bool js_gfx_BufferTextureCopy_set_texSubres(se::State& s) // NOLINT(reada } SE_BIND_PROP_SET(js_gfx_BufferTextureCopy_set_texSubres) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::BufferTextureCopy* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::BufferTextureCopy * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("buffStride", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->buffStride), ctx); } json->getProperty("buffTexHeight", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->buffTexHeight), ctx); } json->getProperty("texOffset", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->texOffset), ctx); } json->getProperty("texExtent", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->texExtent), ctx); } json->getProperty("texSubres", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->texSubres), ctx); } return ok; @@ -2867,24 +2932,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_BufferTextureCopy_finalize) static bool js_gfx_BufferTextureCopy_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::BufferTextureCopy* cobj = JSB_ALLOC(cc::gfx::BufferTextureCopy); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::BufferTextureCopy* cobj = JSB_ALLOC(cc::gfx::BufferTextureCopy); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -2912,7 +2979,7 @@ static bool js_gfx_BufferTextureCopy_constructor(se::State& s) // NOLINT(readabi ok &= sevalue_to_native(args[4], &(cobj->texSubres), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -2924,10 +2991,13 @@ static bool js_gfx_BufferTextureCopy_constructor(se::State& s) // NOLINT(readabi } SE_BIND_CTOR(js_gfx_BufferTextureCopy_constructor, __jsb_cc_gfx_BufferTextureCopy_class, js_cc_gfx_BufferTextureCopy_finalize) + + static bool js_cc_gfx_BufferTextureCopy_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -2956,7 +3026,7 @@ bool js_register_gfx_BufferTextureCopy(se::Object* obj) // NOLINT(readability-id return true; } se::Object* __jsb_cc_gfx_Viewport_proto = nullptr; -se::Class* __jsb_cc_gfx_Viewport_class = nullptr; +se::Class* __jsb_cc_gfx_Viewport_class = nullptr; static bool js_gfx_Viewport_get_left(se::State& s) // NOLINT(readability-identifier-naming) { @@ -2964,7 +3034,7 @@ static bool js_gfx_Viewport_get_left(se::State& s) // NOLINT(readability-identif SE_PRECONDITION2(cobj, false, "js_gfx_Viewport_get_left : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->left, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->left, s.thisObject(), s.rval()); @@ -2975,7 +3045,7 @@ SE_BIND_PROP_GET(js_gfx_Viewport_get_left) static bool js_gfx_Viewport_set_left(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Viewport_set_left : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2991,7 +3061,7 @@ static bool js_gfx_Viewport_get_top(se::State& s) // NOLINT(readability-identifi SE_PRECONDITION2(cobj, false, "js_gfx_Viewport_get_top : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->top, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->top, s.thisObject(), s.rval()); @@ -3002,7 +3072,7 @@ SE_BIND_PROP_GET(js_gfx_Viewport_get_top) static bool js_gfx_Viewport_set_top(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Viewport_set_top : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3018,7 +3088,7 @@ static bool js_gfx_Viewport_get_width(se::State& s) // NOLINT(readability-identi SE_PRECONDITION2(cobj, false, "js_gfx_Viewport_get_width : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->width, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->width, s.thisObject(), s.rval()); @@ -3029,7 +3099,7 @@ SE_BIND_PROP_GET(js_gfx_Viewport_get_width) static bool js_gfx_Viewport_set_width(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Viewport_set_width : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3045,7 +3115,7 @@ static bool js_gfx_Viewport_get_height(se::State& s) // NOLINT(readability-ident SE_PRECONDITION2(cobj, false, "js_gfx_Viewport_get_height : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->height, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->height, s.thisObject(), s.rval()); @@ -3056,7 +3126,7 @@ SE_BIND_PROP_GET(js_gfx_Viewport_get_height) static bool js_gfx_Viewport_set_height(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Viewport_set_height : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3072,7 +3142,7 @@ static bool js_gfx_Viewport_get_minDepth(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_gfx_Viewport_get_minDepth : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->minDepth, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->minDepth, s.thisObject(), s.rval()); @@ -3083,7 +3153,7 @@ SE_BIND_PROP_GET(js_gfx_Viewport_get_minDepth) static bool js_gfx_Viewport_set_minDepth(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Viewport_set_minDepth : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3099,7 +3169,7 @@ static bool js_gfx_Viewport_get_maxDepth(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_gfx_Viewport_get_maxDepth : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxDepth, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxDepth, s.thisObject(), s.rval()); @@ -3110,7 +3180,7 @@ SE_BIND_PROP_GET(js_gfx_Viewport_get_maxDepth) static bool js_gfx_Viewport_set_maxDepth(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Viewport_set_maxDepth : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3120,39 +3190,41 @@ static bool js_gfx_Viewport_set_maxDepth(se::State& s) // NOLINT(readability-ide } SE_BIND_PROP_SET(js_gfx_Viewport_set_maxDepth) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::Viewport* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::Viewport * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("left", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->left), ctx); } json->getProperty("top", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->top), ctx); } json->getProperty("width", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->width), ctx); } json->getProperty("height", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->height), ctx); } json->getProperty("minDepth", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->minDepth), ctx); } json->getProperty("maxDepth", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxDepth), ctx); } return ok; @@ -3162,24 +3234,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_Viewport_finalize) static bool js_gfx_Viewport_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::Viewport* cobj = JSB_ALLOC(cc::gfx::Viewport); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::Viewport* cobj = JSB_ALLOC(cc::gfx::Viewport); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -3210,7 +3284,7 @@ static bool js_gfx_Viewport_constructor(se::State& s) // NOLINT(readability-iden ok &= sevalue_to_native(args[5], &(cobj->maxDepth), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -3222,10 +3296,13 @@ static bool js_gfx_Viewport_constructor(se::State& s) // NOLINT(readability-iden } SE_BIND_CTOR(js_gfx_Viewport_constructor, __jsb_cc_gfx_Viewport_class, js_cc_gfx_Viewport_finalize) + + static bool js_cc_gfx_Viewport_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -3255,7 +3332,7 @@ bool js_register_gfx_Viewport(se::Object* obj) // NOLINT(readability-identifier- return true; } se::Object* __jsb_cc_gfx_Color_proto = nullptr; -se::Class* __jsb_cc_gfx_Color_class = nullptr; +se::Class* __jsb_cc_gfx_Color_class = nullptr; static bool js_gfx_Color_get_x(se::State& s) // NOLINT(readability-identifier-naming) { @@ -3263,7 +3340,7 @@ static bool js_gfx_Color_get_x(se::State& s) // NOLINT(readability-identifier-na SE_PRECONDITION2(cobj, false, "js_gfx_Color_get_x : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->x, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->x, s.thisObject(), s.rval()); @@ -3274,7 +3351,7 @@ SE_BIND_PROP_GET(js_gfx_Color_get_x) static bool js_gfx_Color_set_x(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Color_set_x : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3290,7 +3367,7 @@ static bool js_gfx_Color_get_y(se::State& s) // NOLINT(readability-identifier-na SE_PRECONDITION2(cobj, false, "js_gfx_Color_get_y : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->y, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->y, s.thisObject(), s.rval()); @@ -3301,7 +3378,7 @@ SE_BIND_PROP_GET(js_gfx_Color_get_y) static bool js_gfx_Color_set_y(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Color_set_y : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3317,7 +3394,7 @@ static bool js_gfx_Color_get_z(se::State& s) // NOLINT(readability-identifier-na SE_PRECONDITION2(cobj, false, "js_gfx_Color_get_z : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->z, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->z, s.thisObject(), s.rval()); @@ -3328,7 +3405,7 @@ SE_BIND_PROP_GET(js_gfx_Color_get_z) static bool js_gfx_Color_set_z(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Color_set_z : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3344,7 +3421,7 @@ static bool js_gfx_Color_get_w(se::State& s) // NOLINT(readability-identifier-na SE_PRECONDITION2(cobj, false, "js_gfx_Color_get_w : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->w, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->w, s.thisObject(), s.rval()); @@ -3355,7 +3432,7 @@ SE_BIND_PROP_GET(js_gfx_Color_get_w) static bool js_gfx_Color_set_w(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Color_set_w : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3365,31 +3442,33 @@ static bool js_gfx_Color_set_w(se::State& s) // NOLINT(readability-identifier-na } SE_BIND_PROP_SET(js_gfx_Color_set_w) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::Color* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::Color * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("x", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->x), ctx); } json->getProperty("y", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->y), ctx); } json->getProperty("z", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->z), ctx); } json->getProperty("w", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->w), ctx); } return ok; @@ -3399,24 +3478,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_Color_finalize) static bool js_gfx_Color_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::Color* cobj = JSB_ALLOC(cc::gfx::Color); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::Color* cobj = JSB_ALLOC(cc::gfx::Color); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -3441,7 +3522,7 @@ static bool js_gfx_Color_constructor(se::State& s) // NOLINT(readability-identif ok &= sevalue_to_native(args[3], &(cobj->w), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -3453,10 +3534,13 @@ static bool js_gfx_Color_constructor(se::State& s) // NOLINT(readability-identif } SE_BIND_CTOR(js_gfx_Color_constructor, __jsb_cc_gfx_Color_class, js_cc_gfx_Color_finalize) + + static bool js_cc_gfx_Color_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -3484,7 +3568,7 @@ bool js_register_gfx_Color(se::Object* obj) // NOLINT(readability-identifier-nam return true; } se::Object* __jsb_cc_gfx_BindingMappingInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_BindingMappingInfo_class = nullptr; +se::Class* __jsb_cc_gfx_BindingMappingInfo_class = nullptr; static bool js_gfx_BindingMappingInfo_get_maxBlockCounts(se::State& s) // NOLINT(readability-identifier-naming) { @@ -3492,7 +3576,7 @@ static bool js_gfx_BindingMappingInfo_get_maxBlockCounts(se::State& s) // NOLINT SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_get_maxBlockCounts : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxBlockCounts, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxBlockCounts, s.thisObject(), s.rval()); @@ -3503,7 +3587,7 @@ SE_BIND_PROP_GET(js_gfx_BindingMappingInfo_get_maxBlockCounts) static bool js_gfx_BindingMappingInfo_set_maxBlockCounts(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_set_maxBlockCounts : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3519,7 +3603,7 @@ static bool js_gfx_BindingMappingInfo_get_maxSamplerTextureCounts(se::State& s) SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_get_maxSamplerTextureCounts : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxSamplerTextureCounts, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxSamplerTextureCounts, s.thisObject(), s.rval()); @@ -3530,7 +3614,7 @@ SE_BIND_PROP_GET(js_gfx_BindingMappingInfo_get_maxSamplerTextureCounts) static bool js_gfx_BindingMappingInfo_set_maxSamplerTextureCounts(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_set_maxSamplerTextureCounts : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3546,7 +3630,7 @@ static bool js_gfx_BindingMappingInfo_get_maxSamplerCounts(se::State& s) // NOLI SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_get_maxSamplerCounts : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxSamplerCounts, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxSamplerCounts, s.thisObject(), s.rval()); @@ -3557,7 +3641,7 @@ SE_BIND_PROP_GET(js_gfx_BindingMappingInfo_get_maxSamplerCounts) static bool js_gfx_BindingMappingInfo_set_maxSamplerCounts(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_set_maxSamplerCounts : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3573,7 +3657,7 @@ static bool js_gfx_BindingMappingInfo_get_maxTextureCounts(se::State& s) // NOLI SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_get_maxTextureCounts : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxTextureCounts, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxTextureCounts, s.thisObject(), s.rval()); @@ -3584,7 +3668,7 @@ SE_BIND_PROP_GET(js_gfx_BindingMappingInfo_get_maxTextureCounts) static bool js_gfx_BindingMappingInfo_set_maxTextureCounts(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_set_maxTextureCounts : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3600,7 +3684,7 @@ static bool js_gfx_BindingMappingInfo_get_maxBufferCounts(se::State& s) // NOLIN SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_get_maxBufferCounts : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxBufferCounts, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxBufferCounts, s.thisObject(), s.rval()); @@ -3611,7 +3695,7 @@ SE_BIND_PROP_GET(js_gfx_BindingMappingInfo_get_maxBufferCounts) static bool js_gfx_BindingMappingInfo_set_maxBufferCounts(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_set_maxBufferCounts : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3627,7 +3711,7 @@ static bool js_gfx_BindingMappingInfo_get_maxImageCounts(se::State& s) // NOLINT SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_get_maxImageCounts : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxImageCounts, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxImageCounts, s.thisObject(), s.rval()); @@ -3638,7 +3722,7 @@ SE_BIND_PROP_GET(js_gfx_BindingMappingInfo_get_maxImageCounts) static bool js_gfx_BindingMappingInfo_set_maxImageCounts(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_set_maxImageCounts : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3654,7 +3738,7 @@ static bool js_gfx_BindingMappingInfo_get_maxSubpassInputCounts(se::State& s) // SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_get_maxSubpassInputCounts : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxSubpassInputCounts, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxSubpassInputCounts, s.thisObject(), s.rval()); @@ -3665,7 +3749,7 @@ SE_BIND_PROP_GET(js_gfx_BindingMappingInfo_get_maxSubpassInputCounts) static bool js_gfx_BindingMappingInfo_set_maxSubpassInputCounts(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_set_maxSubpassInputCounts : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3681,7 +3765,7 @@ static bool js_gfx_BindingMappingInfo_get_setIndices(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_get_setIndices : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->setIndices, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->setIndices, s.thisObject(), s.rval()); @@ -3692,7 +3776,7 @@ SE_BIND_PROP_GET(js_gfx_BindingMappingInfo_get_setIndices) static bool js_gfx_BindingMappingInfo_set_setIndices(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_set_setIndices : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3702,47 +3786,49 @@ static bool js_gfx_BindingMappingInfo_set_setIndices(se::State& s) // NOLINT(rea } SE_BIND_PROP_SET(js_gfx_BindingMappingInfo_set_setIndices) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::BindingMappingInfo* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::BindingMappingInfo * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("maxBlockCounts", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxBlockCounts), ctx); } json->getProperty("maxSamplerTextureCounts", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxSamplerTextureCounts), ctx); } json->getProperty("maxSamplerCounts", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxSamplerCounts), ctx); } json->getProperty("maxTextureCounts", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxTextureCounts), ctx); } json->getProperty("maxBufferCounts", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxBufferCounts), ctx); } json->getProperty("maxImageCounts", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxImageCounts), ctx); } json->getProperty("maxSubpassInputCounts", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxSubpassInputCounts), ctx); } json->getProperty("setIndices", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->setIndices), ctx); } return ok; @@ -3752,24 +3838,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_BindingMappingInfo_finalize) static bool js_gfx_BindingMappingInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::BindingMappingInfo* cobj = JSB_ALLOC(cc::gfx::BindingMappingInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::BindingMappingInfo* cobj = JSB_ALLOC(cc::gfx::BindingMappingInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -3806,7 +3894,7 @@ static bool js_gfx_BindingMappingInfo_constructor(se::State& s) // NOLINT(readab ok &= sevalue_to_native(args[7], &(cobj->setIndices), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -3818,10 +3906,13 @@ static bool js_gfx_BindingMappingInfo_constructor(se::State& s) // NOLINT(readab } SE_BIND_CTOR(js_gfx_BindingMappingInfo_constructor, __jsb_cc_gfx_BindingMappingInfo_class, js_cc_gfx_BindingMappingInfo_finalize) + + static bool js_cc_gfx_BindingMappingInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -3853,7 +3944,7 @@ bool js_register_gfx_BindingMappingInfo(se::Object* obj) // NOLINT(readability-i return true; } se::Object* __jsb_cc_gfx_SwapchainInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_SwapchainInfo_class = nullptr; +se::Class* __jsb_cc_gfx_SwapchainInfo_class = nullptr; static bool js_gfx_SwapchainInfo_get_windowHandle(se::State& s) // NOLINT(readability-identifier-naming) { @@ -3861,7 +3952,7 @@ static bool js_gfx_SwapchainInfo_get_windowHandle(se::State& s) // NOLINT(readab SE_PRECONDITION2(cobj, false, "js_gfx_SwapchainInfo_get_windowHandle : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->windowHandle, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->windowHandle, s.thisObject(), s.rval()); @@ -3872,7 +3963,7 @@ SE_BIND_PROP_GET(js_gfx_SwapchainInfo_get_windowHandle) static bool js_gfx_SwapchainInfo_set_windowHandle(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SwapchainInfo_set_windowHandle : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3888,7 +3979,7 @@ static bool js_gfx_SwapchainInfo_get_vsyncMode(se::State& s) // NOLINT(readabili SE_PRECONDITION2(cobj, false, "js_gfx_SwapchainInfo_get_vsyncMode : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->vsyncMode, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->vsyncMode, s.thisObject(), s.rval()); @@ -3899,7 +3990,7 @@ SE_BIND_PROP_GET(js_gfx_SwapchainInfo_get_vsyncMode) static bool js_gfx_SwapchainInfo_set_vsyncMode(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SwapchainInfo_set_vsyncMode : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3915,7 +4006,7 @@ static bool js_gfx_SwapchainInfo_get_width(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_gfx_SwapchainInfo_get_width : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->width, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->width, s.thisObject(), s.rval()); @@ -3926,7 +4017,7 @@ SE_BIND_PROP_GET(js_gfx_SwapchainInfo_get_width) static bool js_gfx_SwapchainInfo_set_width(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SwapchainInfo_set_width : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3942,7 +4033,7 @@ static bool js_gfx_SwapchainInfo_get_height(se::State& s) // NOLINT(readability- SE_PRECONDITION2(cobj, false, "js_gfx_SwapchainInfo_get_height : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->height, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->height, s.thisObject(), s.rval()); @@ -3953,7 +4044,7 @@ SE_BIND_PROP_GET(js_gfx_SwapchainInfo_get_height) static bool js_gfx_SwapchainInfo_set_height(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SwapchainInfo_set_height : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3963,31 +4054,33 @@ static bool js_gfx_SwapchainInfo_set_height(se::State& s) // NOLINT(readability- } SE_BIND_PROP_SET(js_gfx_SwapchainInfo_set_height) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::SwapchainInfo* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::SwapchainInfo * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("windowHandle", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->windowHandle), ctx); } json->getProperty("vsyncMode", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->vsyncMode), ctx); } json->getProperty("width", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->width), ctx); } json->getProperty("height", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->height), ctx); } return ok; @@ -3997,24 +4090,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_SwapchainInfo_finalize) static bool js_gfx_SwapchainInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::SwapchainInfo* cobj = JSB_ALLOC(cc::gfx::SwapchainInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::SwapchainInfo* cobj = JSB_ALLOC(cc::gfx::SwapchainInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -4039,7 +4134,7 @@ static bool js_gfx_SwapchainInfo_constructor(se::State& s) // NOLINT(readability ok &= sevalue_to_native(args[3], &(cobj->height), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -4051,10 +4146,13 @@ static bool js_gfx_SwapchainInfo_constructor(se::State& s) // NOLINT(readability } SE_BIND_CTOR(js_gfx_SwapchainInfo_constructor, __jsb_cc_gfx_SwapchainInfo_class, js_cc_gfx_SwapchainInfo_finalize) + + static bool js_cc_gfx_SwapchainInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -4082,7 +4180,7 @@ bool js_register_gfx_SwapchainInfo(se::Object* obj) // NOLINT(readability-identi return true; } se::Object* __jsb_cc_gfx_DeviceInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_DeviceInfo_class = nullptr; +se::Class* __jsb_cc_gfx_DeviceInfo_class = nullptr; static bool js_gfx_DeviceInfo_get_bindingMappingInfo(se::State& s) // NOLINT(readability-identifier-naming) { @@ -4090,7 +4188,7 @@ static bool js_gfx_DeviceInfo_get_bindingMappingInfo(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_gfx_DeviceInfo_get_bindingMappingInfo : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->bindingMappingInfo, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->bindingMappingInfo, s.thisObject(), s.rval()); @@ -4101,7 +4199,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceInfo_get_bindingMappingInfo) static bool js_gfx_DeviceInfo_set_bindingMappingInfo(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceInfo_set_bindingMappingInfo : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4111,19 +4209,21 @@ static bool js_gfx_DeviceInfo_set_bindingMappingInfo(se::State& s) // NOLINT(rea } SE_BIND_PROP_SET(js_gfx_DeviceInfo_set_bindingMappingInfo) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::DeviceInfo* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::DeviceInfo * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("bindingMappingInfo", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bindingMappingInfo), ctx); } return ok; @@ -4133,11 +4233,12 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_DeviceInfo_finalize) static bool js_gfx_DeviceInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::DeviceInfo* cobj = JSB_ALLOC(cc::gfx::DeviceInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); @@ -4149,7 +4250,7 @@ static bool js_gfx_DeviceInfo_constructor(se::State& s) // NOLINT(readability-id ok &= sevalue_to_native(args[0], &(cobj->bindingMappingInfo), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -4161,10 +4262,13 @@ static bool js_gfx_DeviceInfo_constructor(se::State& s) // NOLINT(readability-id } SE_BIND_CTOR(js_gfx_DeviceInfo_constructor, __jsb_cc_gfx_DeviceInfo_class, js_cc_gfx_DeviceInfo_finalize) + + static bool js_cc_gfx_DeviceInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -4189,7 +4293,7 @@ bool js_register_gfx_DeviceInfo(se::Object* obj) // NOLINT(readability-identifie return true; } se::Object* __jsb_cc_gfx_BufferInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_BufferInfo_class = nullptr; +se::Class* __jsb_cc_gfx_BufferInfo_class = nullptr; static bool js_gfx_BufferInfo_get_usage(se::State& s) // NOLINT(readability-identifier-naming) { @@ -4197,7 +4301,7 @@ static bool js_gfx_BufferInfo_get_usage(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_gfx_BufferInfo_get_usage : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->usage, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->usage, s.thisObject(), s.rval()); @@ -4208,7 +4312,7 @@ SE_BIND_PROP_GET(js_gfx_BufferInfo_get_usage) static bool js_gfx_BufferInfo_set_usage(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BufferInfo_set_usage : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4224,7 +4328,7 @@ static bool js_gfx_BufferInfo_get_memUsage(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_gfx_BufferInfo_get_memUsage : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->memUsage, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->memUsage, s.thisObject(), s.rval()); @@ -4235,7 +4339,7 @@ SE_BIND_PROP_GET(js_gfx_BufferInfo_get_memUsage) static bool js_gfx_BufferInfo_set_memUsage(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BufferInfo_set_memUsage : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4251,7 +4355,7 @@ static bool js_gfx_BufferInfo_get_size(se::State& s) // NOLINT(readability-ident SE_PRECONDITION2(cobj, false, "js_gfx_BufferInfo_get_size : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->size, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->size, s.thisObject(), s.rval()); @@ -4262,7 +4366,7 @@ SE_BIND_PROP_GET(js_gfx_BufferInfo_get_size) static bool js_gfx_BufferInfo_set_size(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BufferInfo_set_size : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4278,7 +4382,7 @@ static bool js_gfx_BufferInfo_get_stride(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_gfx_BufferInfo_get_stride : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stride, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stride, s.thisObject(), s.rval()); @@ -4289,7 +4393,7 @@ SE_BIND_PROP_GET(js_gfx_BufferInfo_get_stride) static bool js_gfx_BufferInfo_set_stride(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BufferInfo_set_stride : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4305,7 +4409,7 @@ static bool js_gfx_BufferInfo_get_flags(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_gfx_BufferInfo_get_flags : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->flags, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->flags, s.thisObject(), s.rval()); @@ -4316,7 +4420,7 @@ SE_BIND_PROP_GET(js_gfx_BufferInfo_get_flags) static bool js_gfx_BufferInfo_set_flags(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BufferInfo_set_flags : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4326,35 +4430,37 @@ static bool js_gfx_BufferInfo_set_flags(se::State& s) // NOLINT(readability-iden } SE_BIND_PROP_SET(js_gfx_BufferInfo_set_flags) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::BufferInfo* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::BufferInfo * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("usage", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->usage), ctx); } json->getProperty("memUsage", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->memUsage), ctx); } json->getProperty("size", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->size), ctx); } json->getProperty("stride", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stride), ctx); } json->getProperty("flags", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->flags), ctx); } return ok; @@ -4364,24 +4470,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_BufferInfo_finalize) static bool js_gfx_BufferInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::BufferInfo* cobj = JSB_ALLOC(cc::gfx::BufferInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::BufferInfo* cobj = JSB_ALLOC(cc::gfx::BufferInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -4409,7 +4517,7 @@ static bool js_gfx_BufferInfo_constructor(se::State& s) // NOLINT(readability-id ok &= sevalue_to_native(args[4], &(cobj->flags), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -4421,10 +4529,13 @@ static bool js_gfx_BufferInfo_constructor(se::State& s) // NOLINT(readability-id } SE_BIND_CTOR(js_gfx_BufferInfo_constructor, __jsb_cc_gfx_BufferInfo_class, js_cc_gfx_BufferInfo_finalize) + + static bool js_cc_gfx_BufferInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -4453,7 +4564,7 @@ bool js_register_gfx_BufferInfo(se::Object* obj) // NOLINT(readability-identifie return true; } se::Object* __jsb_cc_gfx_BufferViewInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_BufferViewInfo_class = nullptr; +se::Class* __jsb_cc_gfx_BufferViewInfo_class = nullptr; static bool js_gfx_BufferViewInfo_get_buffer(se::State& s) // NOLINT(readability-identifier-naming) { @@ -4461,7 +4572,7 @@ static bool js_gfx_BufferViewInfo_get_buffer(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_BufferViewInfo_get_buffer : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->buffer, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->buffer, s.thisObject(), s.rval()); @@ -4472,7 +4583,7 @@ SE_BIND_PROP_GET(js_gfx_BufferViewInfo_get_buffer) static bool js_gfx_BufferViewInfo_set_buffer(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BufferViewInfo_set_buffer : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4488,7 +4599,7 @@ static bool js_gfx_BufferViewInfo_get_offset(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_BufferViewInfo_get_offset : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->offset, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->offset, s.thisObject(), s.rval()); @@ -4499,7 +4610,7 @@ SE_BIND_PROP_GET(js_gfx_BufferViewInfo_get_offset) static bool js_gfx_BufferViewInfo_set_offset(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BufferViewInfo_set_offset : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4515,7 +4626,7 @@ static bool js_gfx_BufferViewInfo_get_range(se::State& s) // NOLINT(readability- SE_PRECONDITION2(cobj, false, "js_gfx_BufferViewInfo_get_range : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->range, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->range, s.thisObject(), s.rval()); @@ -4526,7 +4637,7 @@ SE_BIND_PROP_GET(js_gfx_BufferViewInfo_get_range) static bool js_gfx_BufferViewInfo_set_range(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BufferViewInfo_set_range : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4536,27 +4647,29 @@ static bool js_gfx_BufferViewInfo_set_range(se::State& s) // NOLINT(readability- } SE_BIND_PROP_SET(js_gfx_BufferViewInfo_set_range) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::BufferViewInfo* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::BufferViewInfo * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("buffer", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->buffer), ctx); } json->getProperty("offset", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->offset), ctx); } json->getProperty("range", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->range), ctx); } return ok; @@ -4566,24 +4679,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_BufferViewInfo_finalize) static bool js_gfx_BufferViewInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::BufferViewInfo* cobj = JSB_ALLOC(cc::gfx::BufferViewInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::BufferViewInfo* cobj = JSB_ALLOC(cc::gfx::BufferViewInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -4605,7 +4720,7 @@ static bool js_gfx_BufferViewInfo_constructor(se::State& s) // NOLINT(readabilit ok &= sevalue_to_native(args[2], &(cobj->range), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -4617,10 +4732,13 @@ static bool js_gfx_BufferViewInfo_constructor(se::State& s) // NOLINT(readabilit } SE_BIND_CTOR(js_gfx_BufferViewInfo_constructor, __jsb_cc_gfx_BufferViewInfo_class, js_cc_gfx_BufferViewInfo_finalize) + + static bool js_cc_gfx_BufferViewInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -4647,7 +4765,7 @@ bool js_register_gfx_BufferViewInfo(se::Object* obj) // NOLINT(readability-ident return true; } se::Object* __jsb_cc_gfx_DrawInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_DrawInfo_class = nullptr; +se::Class* __jsb_cc_gfx_DrawInfo_class = nullptr; static bool js_gfx_DrawInfo_get_vertexCount(se::State& s) // NOLINT(readability-identifier-naming) { @@ -4655,7 +4773,7 @@ static bool js_gfx_DrawInfo_get_vertexCount(se::State& s) // NOLINT(readability- SE_PRECONDITION2(cobj, false, "js_gfx_DrawInfo_get_vertexCount : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->vertexCount, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->vertexCount, s.thisObject(), s.rval()); @@ -4666,7 +4784,7 @@ SE_BIND_PROP_GET(js_gfx_DrawInfo_get_vertexCount) static bool js_gfx_DrawInfo_set_vertexCount(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DrawInfo_set_vertexCount : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4682,7 +4800,7 @@ static bool js_gfx_DrawInfo_get_firstVertex(se::State& s) // NOLINT(readability- SE_PRECONDITION2(cobj, false, "js_gfx_DrawInfo_get_firstVertex : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->firstVertex, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->firstVertex, s.thisObject(), s.rval()); @@ -4693,7 +4811,7 @@ SE_BIND_PROP_GET(js_gfx_DrawInfo_get_firstVertex) static bool js_gfx_DrawInfo_set_firstVertex(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DrawInfo_set_firstVertex : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4709,7 +4827,7 @@ static bool js_gfx_DrawInfo_get_indexCount(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_gfx_DrawInfo_get_indexCount : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->indexCount, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->indexCount, s.thisObject(), s.rval()); @@ -4720,7 +4838,7 @@ SE_BIND_PROP_GET(js_gfx_DrawInfo_get_indexCount) static bool js_gfx_DrawInfo_set_indexCount(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DrawInfo_set_indexCount : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4736,7 +4854,7 @@ static bool js_gfx_DrawInfo_get_firstIndex(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_gfx_DrawInfo_get_firstIndex : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->firstIndex, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->firstIndex, s.thisObject(), s.rval()); @@ -4747,7 +4865,7 @@ SE_BIND_PROP_GET(js_gfx_DrawInfo_get_firstIndex) static bool js_gfx_DrawInfo_set_firstIndex(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DrawInfo_set_firstIndex : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4763,7 +4881,7 @@ static bool js_gfx_DrawInfo_get_vertexOffset(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_DrawInfo_get_vertexOffset : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->vertexOffset, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->vertexOffset, s.thisObject(), s.rval()); @@ -4774,7 +4892,7 @@ SE_BIND_PROP_GET(js_gfx_DrawInfo_get_vertexOffset) static bool js_gfx_DrawInfo_set_vertexOffset(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DrawInfo_set_vertexOffset : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4790,7 +4908,7 @@ static bool js_gfx_DrawInfo_get_instanceCount(se::State& s) // NOLINT(readabilit SE_PRECONDITION2(cobj, false, "js_gfx_DrawInfo_get_instanceCount : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->instanceCount, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->instanceCount, s.thisObject(), s.rval()); @@ -4801,7 +4919,7 @@ SE_BIND_PROP_GET(js_gfx_DrawInfo_get_instanceCount) static bool js_gfx_DrawInfo_set_instanceCount(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DrawInfo_set_instanceCount : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4817,7 +4935,7 @@ static bool js_gfx_DrawInfo_get_firstInstance(se::State& s) // NOLINT(readabilit SE_PRECONDITION2(cobj, false, "js_gfx_DrawInfo_get_firstInstance : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->firstInstance, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->firstInstance, s.thisObject(), s.rval()); @@ -4828,7 +4946,7 @@ SE_BIND_PROP_GET(js_gfx_DrawInfo_get_firstInstance) static bool js_gfx_DrawInfo_set_firstInstance(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DrawInfo_set_firstInstance : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4838,43 +4956,45 @@ static bool js_gfx_DrawInfo_set_firstInstance(se::State& s) // NOLINT(readabilit } SE_BIND_PROP_SET(js_gfx_DrawInfo_set_firstInstance) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::DrawInfo* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::DrawInfo * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("vertexCount", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->vertexCount), ctx); } json->getProperty("firstVertex", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->firstVertex), ctx); } json->getProperty("indexCount", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->indexCount), ctx); } json->getProperty("firstIndex", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->firstIndex), ctx); } json->getProperty("vertexOffset", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->vertexOffset), ctx); } json->getProperty("instanceCount", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->instanceCount), ctx); } json->getProperty("firstInstance", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->firstInstance), ctx); } return ok; @@ -4884,24 +5004,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_DrawInfo_finalize) static bool js_gfx_DrawInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::DrawInfo* cobj = JSB_ALLOC(cc::gfx::DrawInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::DrawInfo* cobj = JSB_ALLOC(cc::gfx::DrawInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -4935,7 +5057,7 @@ static bool js_gfx_DrawInfo_constructor(se::State& s) // NOLINT(readability-iden ok &= sevalue_to_native(args[6], &(cobj->firstInstance), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -4947,10 +5069,13 @@ static bool js_gfx_DrawInfo_constructor(se::State& s) // NOLINT(readability-iden } SE_BIND_CTOR(js_gfx_DrawInfo_constructor, __jsb_cc_gfx_DrawInfo_class, js_cc_gfx_DrawInfo_finalize) + + static bool js_cc_gfx_DrawInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -4981,7 +5106,7 @@ bool js_register_gfx_DrawInfo(se::Object* obj) // NOLINT(readability-identifier- return true; } se::Object* __jsb_cc_gfx_DispatchInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_DispatchInfo_class = nullptr; +se::Class* __jsb_cc_gfx_DispatchInfo_class = nullptr; static bool js_gfx_DispatchInfo_get_groupCountX(se::State& s) // NOLINT(readability-identifier-naming) { @@ -4989,7 +5114,7 @@ static bool js_gfx_DispatchInfo_get_groupCountX(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_gfx_DispatchInfo_get_groupCountX : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->groupCountX, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->groupCountX, s.thisObject(), s.rval()); @@ -5000,7 +5125,7 @@ SE_BIND_PROP_GET(js_gfx_DispatchInfo_get_groupCountX) static bool js_gfx_DispatchInfo_set_groupCountX(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DispatchInfo_set_groupCountX : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5016,7 +5141,7 @@ static bool js_gfx_DispatchInfo_get_groupCountY(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_gfx_DispatchInfo_get_groupCountY : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->groupCountY, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->groupCountY, s.thisObject(), s.rval()); @@ -5027,7 +5152,7 @@ SE_BIND_PROP_GET(js_gfx_DispatchInfo_get_groupCountY) static bool js_gfx_DispatchInfo_set_groupCountY(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DispatchInfo_set_groupCountY : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5043,7 +5168,7 @@ static bool js_gfx_DispatchInfo_get_groupCountZ(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_gfx_DispatchInfo_get_groupCountZ : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->groupCountZ, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->groupCountZ, s.thisObject(), s.rval()); @@ -5054,7 +5179,7 @@ SE_BIND_PROP_GET(js_gfx_DispatchInfo_get_groupCountZ) static bool js_gfx_DispatchInfo_set_groupCountZ(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DispatchInfo_set_groupCountZ : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5070,7 +5195,7 @@ static bool js_gfx_DispatchInfo_get_indirectBuffer(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_DispatchInfo_get_indirectBuffer : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->indirectBuffer, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->indirectBuffer, s.thisObject(), s.rval()); @@ -5081,7 +5206,7 @@ SE_BIND_PROP_GET(js_gfx_DispatchInfo_get_indirectBuffer) static bool js_gfx_DispatchInfo_set_indirectBuffer(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DispatchInfo_set_indirectBuffer : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5097,7 +5222,7 @@ static bool js_gfx_DispatchInfo_get_indirectOffset(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_DispatchInfo_get_indirectOffset : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->indirectOffset, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->indirectOffset, s.thisObject(), s.rval()); @@ -5108,7 +5233,7 @@ SE_BIND_PROP_GET(js_gfx_DispatchInfo_get_indirectOffset) static bool js_gfx_DispatchInfo_set_indirectOffset(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DispatchInfo_set_indirectOffset : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5118,35 +5243,37 @@ static bool js_gfx_DispatchInfo_set_indirectOffset(se::State& s) // NOLINT(reada } SE_BIND_PROP_SET(js_gfx_DispatchInfo_set_indirectOffset) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::DispatchInfo* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::DispatchInfo * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("groupCountX", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->groupCountX), ctx); } json->getProperty("groupCountY", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->groupCountY), ctx); } json->getProperty("groupCountZ", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->groupCountZ), ctx); } json->getProperty("indirectBuffer", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->indirectBuffer), ctx); } json->getProperty("indirectOffset", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->indirectOffset), ctx); } return ok; @@ -5156,24 +5283,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_DispatchInfo_finalize) static bool js_gfx_DispatchInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::DispatchInfo* cobj = JSB_ALLOC(cc::gfx::DispatchInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::DispatchInfo* cobj = JSB_ALLOC(cc::gfx::DispatchInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -5201,7 +5330,7 @@ static bool js_gfx_DispatchInfo_constructor(se::State& s) // NOLINT(readability- ok &= sevalue_to_native(args[4], &(cobj->indirectOffset), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -5213,10 +5342,13 @@ static bool js_gfx_DispatchInfo_constructor(se::State& s) // NOLINT(readability- } SE_BIND_CTOR(js_gfx_DispatchInfo_constructor, __jsb_cc_gfx_DispatchInfo_class, js_cc_gfx_DispatchInfo_finalize) + + static bool js_cc_gfx_DispatchInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -5245,7 +5377,7 @@ bool js_register_gfx_DispatchInfo(se::Object* obj) // NOLINT(readability-identif return true; } se::Object* __jsb_cc_gfx_IndirectBuffer_proto = nullptr; -se::Class* __jsb_cc_gfx_IndirectBuffer_class = nullptr; +se::Class* __jsb_cc_gfx_IndirectBuffer_class = nullptr; static bool js_gfx_IndirectBuffer_get_drawInfos(se::State& s) // NOLINT(readability-identifier-naming) { @@ -5253,7 +5385,7 @@ static bool js_gfx_IndirectBuffer_get_drawInfos(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_gfx_IndirectBuffer_get_drawInfos : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->drawInfos, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->drawInfos, s.thisObject(), s.rval()); @@ -5264,7 +5396,7 @@ SE_BIND_PROP_GET(js_gfx_IndirectBuffer_get_drawInfos) static bool js_gfx_IndirectBuffer_set_drawInfos(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_IndirectBuffer_set_drawInfos : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5274,19 +5406,21 @@ static bool js_gfx_IndirectBuffer_set_drawInfos(se::State& s) // NOLINT(readabil } SE_BIND_PROP_SET(js_gfx_IndirectBuffer_set_drawInfos) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::IndirectBuffer* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::IndirectBuffer * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("drawInfos", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->drawInfos), ctx); } return ok; @@ -5296,11 +5430,12 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_IndirectBuffer_finalize) static bool js_gfx_IndirectBuffer_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::IndirectBuffer* cobj = JSB_ALLOC(cc::gfx::IndirectBuffer); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); @@ -5312,7 +5447,7 @@ static bool js_gfx_IndirectBuffer_constructor(se::State& s) // NOLINT(readabilit ok &= sevalue_to_native(args[0], &(cobj->drawInfos), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -5324,10 +5459,13 @@ static bool js_gfx_IndirectBuffer_constructor(se::State& s) // NOLINT(readabilit } SE_BIND_CTOR(js_gfx_IndirectBuffer_constructor, __jsb_cc_gfx_IndirectBuffer_class, js_cc_gfx_IndirectBuffer_finalize) + + static bool js_cc_gfx_IndirectBuffer_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -5352,7 +5490,7 @@ bool js_register_gfx_IndirectBuffer(se::Object* obj) // NOLINT(readability-ident return true; } se::Object* __jsb_cc_gfx_TextureInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_TextureInfo_class = nullptr; +se::Class* __jsb_cc_gfx_TextureInfo_class = nullptr; static bool js_gfx_TextureInfo_get_type(se::State& s) // NOLINT(readability-identifier-naming) { @@ -5360,7 +5498,7 @@ static bool js_gfx_TextureInfo_get_type(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_get_type : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->type, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->type, s.thisObject(), s.rval()); @@ -5371,7 +5509,7 @@ SE_BIND_PROP_GET(js_gfx_TextureInfo_get_type) static bool js_gfx_TextureInfo_set_type(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_set_type : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5387,7 +5525,7 @@ static bool js_gfx_TextureInfo_get_usage(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_get_usage : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->usage, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->usage, s.thisObject(), s.rval()); @@ -5398,7 +5536,7 @@ SE_BIND_PROP_GET(js_gfx_TextureInfo_get_usage) static bool js_gfx_TextureInfo_set_usage(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_set_usage : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5414,7 +5552,7 @@ static bool js_gfx_TextureInfo_get_format(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_get_format : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->format, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->format, s.thisObject(), s.rval()); @@ -5425,7 +5563,7 @@ SE_BIND_PROP_GET(js_gfx_TextureInfo_get_format) static bool js_gfx_TextureInfo_set_format(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_set_format : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5441,7 +5579,7 @@ static bool js_gfx_TextureInfo_get_width(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_get_width : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->width, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->width, s.thisObject(), s.rval()); @@ -5452,7 +5590,7 @@ SE_BIND_PROP_GET(js_gfx_TextureInfo_get_width) static bool js_gfx_TextureInfo_set_width(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_set_width : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5468,7 +5606,7 @@ static bool js_gfx_TextureInfo_get_height(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_get_height : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->height, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->height, s.thisObject(), s.rval()); @@ -5479,7 +5617,7 @@ SE_BIND_PROP_GET(js_gfx_TextureInfo_get_height) static bool js_gfx_TextureInfo_set_height(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_set_height : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5495,7 +5633,7 @@ static bool js_gfx_TextureInfo_get_flags(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_get_flags : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->flags, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->flags, s.thisObject(), s.rval()); @@ -5506,7 +5644,7 @@ SE_BIND_PROP_GET(js_gfx_TextureInfo_get_flags) static bool js_gfx_TextureInfo_set_flags(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_set_flags : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5522,7 +5660,7 @@ static bool js_gfx_TextureInfo_get_layerCount(se::State& s) // NOLINT(readabilit SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_get_layerCount : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->layerCount, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->layerCount, s.thisObject(), s.rval()); @@ -5533,7 +5671,7 @@ SE_BIND_PROP_GET(js_gfx_TextureInfo_get_layerCount) static bool js_gfx_TextureInfo_set_layerCount(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_set_layerCount : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5549,7 +5687,7 @@ static bool js_gfx_TextureInfo_get_levelCount(se::State& s) // NOLINT(readabilit SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_get_levelCount : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->levelCount, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->levelCount, s.thisObject(), s.rval()); @@ -5560,7 +5698,7 @@ SE_BIND_PROP_GET(js_gfx_TextureInfo_get_levelCount) static bool js_gfx_TextureInfo_set_levelCount(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_set_levelCount : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5576,7 +5714,7 @@ static bool js_gfx_TextureInfo_get_samples(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_get_samples : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->samples, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->samples, s.thisObject(), s.rval()); @@ -5587,7 +5725,7 @@ SE_BIND_PROP_GET(js_gfx_TextureInfo_get_samples) static bool js_gfx_TextureInfo_set_samples(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_set_samples : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5603,7 +5741,7 @@ static bool js_gfx_TextureInfo_get_depth(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_get_depth : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->depth, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->depth, s.thisObject(), s.rval()); @@ -5614,7 +5752,7 @@ SE_BIND_PROP_GET(js_gfx_TextureInfo_get_depth) static bool js_gfx_TextureInfo_set_depth(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_set_depth : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5630,7 +5768,7 @@ static bool js_gfx_TextureInfo_get_externalRes(se::State& s) // NOLINT(readabili SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_get_externalRes : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->externalRes, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->externalRes, s.thisObject(), s.rval()); @@ -5641,7 +5779,7 @@ SE_BIND_PROP_GET(js_gfx_TextureInfo_get_externalRes) static bool js_gfx_TextureInfo_set_externalRes(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_set_externalRes : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5651,59 +5789,61 @@ static bool js_gfx_TextureInfo_set_externalRes(se::State& s) // NOLINT(readabili } SE_BIND_PROP_SET(js_gfx_TextureInfo_set_externalRes) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::TextureInfo* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::TextureInfo * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("type", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->type), ctx); } json->getProperty("usage", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->usage), ctx); } json->getProperty("format", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->format), ctx); } json->getProperty("width", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->width), ctx); } json->getProperty("height", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->height), ctx); } json->getProperty("flags", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->flags), ctx); } json->getProperty("layerCount", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->layerCount), ctx); } json->getProperty("levelCount", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->levelCount), ctx); } json->getProperty("samples", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->samples), ctx); } json->getProperty("depth", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->depth), ctx); } json->getProperty("externalRes", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->externalRes), ctx); } return ok; @@ -5713,24 +5853,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_TextureInfo_finalize) static bool js_gfx_TextureInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::TextureInfo* cobj = JSB_ALLOC(cc::gfx::TextureInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::TextureInfo* cobj = JSB_ALLOC(cc::gfx::TextureInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -5776,7 +5918,7 @@ static bool js_gfx_TextureInfo_constructor(se::State& s) // NOLINT(readability-i ok &= sevalue_to_native(args[10], &(cobj->externalRes), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -5788,10 +5930,13 @@ static bool js_gfx_TextureInfo_constructor(se::State& s) // NOLINT(readability-i } SE_BIND_CTOR(js_gfx_TextureInfo_constructor, __jsb_cc_gfx_TextureInfo_class, js_cc_gfx_TextureInfo_finalize) + + static bool js_cc_gfx_TextureInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -5826,7 +5971,7 @@ bool js_register_gfx_TextureInfo(se::Object* obj) // NOLINT(readability-identifi return true; } se::Object* __jsb_cc_gfx_TextureViewInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_TextureViewInfo_class = nullptr; +se::Class* __jsb_cc_gfx_TextureViewInfo_class = nullptr; static bool js_gfx_TextureViewInfo_get_texture(se::State& s) // NOLINT(readability-identifier-naming) { @@ -5834,7 +5979,7 @@ static bool js_gfx_TextureViewInfo_get_texture(se::State& s) // NOLINT(readabili SE_PRECONDITION2(cobj, false, "js_gfx_TextureViewInfo_get_texture : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->texture, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->texture, s.thisObject(), s.rval()); @@ -5845,7 +5990,7 @@ SE_BIND_PROP_GET(js_gfx_TextureViewInfo_get_texture) static bool js_gfx_TextureViewInfo_set_texture(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureViewInfo_set_texture : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5861,7 +6006,7 @@ static bool js_gfx_TextureViewInfo_get_type(se::State& s) // NOLINT(readability- SE_PRECONDITION2(cobj, false, "js_gfx_TextureViewInfo_get_type : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->type, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->type, s.thisObject(), s.rval()); @@ -5872,7 +6017,7 @@ SE_BIND_PROP_GET(js_gfx_TextureViewInfo_get_type) static bool js_gfx_TextureViewInfo_set_type(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureViewInfo_set_type : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5888,7 +6033,7 @@ static bool js_gfx_TextureViewInfo_get_format(se::State& s) // NOLINT(readabilit SE_PRECONDITION2(cobj, false, "js_gfx_TextureViewInfo_get_format : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->format, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->format, s.thisObject(), s.rval()); @@ -5899,7 +6044,7 @@ SE_BIND_PROP_GET(js_gfx_TextureViewInfo_get_format) static bool js_gfx_TextureViewInfo_set_format(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureViewInfo_set_format : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5915,7 +6060,7 @@ static bool js_gfx_TextureViewInfo_get_baseLevel(se::State& s) // NOLINT(readabi SE_PRECONDITION2(cobj, false, "js_gfx_TextureViewInfo_get_baseLevel : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->baseLevel, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->baseLevel, s.thisObject(), s.rval()); @@ -5926,7 +6071,7 @@ SE_BIND_PROP_GET(js_gfx_TextureViewInfo_get_baseLevel) static bool js_gfx_TextureViewInfo_set_baseLevel(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureViewInfo_set_baseLevel : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5942,7 +6087,7 @@ static bool js_gfx_TextureViewInfo_get_levelCount(se::State& s) // NOLINT(readab SE_PRECONDITION2(cobj, false, "js_gfx_TextureViewInfo_get_levelCount : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->levelCount, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->levelCount, s.thisObject(), s.rval()); @@ -5953,7 +6098,7 @@ SE_BIND_PROP_GET(js_gfx_TextureViewInfo_get_levelCount) static bool js_gfx_TextureViewInfo_set_levelCount(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureViewInfo_set_levelCount : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5969,7 +6114,7 @@ static bool js_gfx_TextureViewInfo_get_baseLayer(se::State& s) // NOLINT(readabi SE_PRECONDITION2(cobj, false, "js_gfx_TextureViewInfo_get_baseLayer : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->baseLayer, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->baseLayer, s.thisObject(), s.rval()); @@ -5980,7 +6125,7 @@ SE_BIND_PROP_GET(js_gfx_TextureViewInfo_get_baseLayer) static bool js_gfx_TextureViewInfo_set_baseLayer(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureViewInfo_set_baseLayer : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5996,7 +6141,7 @@ static bool js_gfx_TextureViewInfo_get_layerCount(se::State& s) // NOLINT(readab SE_PRECONDITION2(cobj, false, "js_gfx_TextureViewInfo_get_layerCount : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->layerCount, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->layerCount, s.thisObject(), s.rval()); @@ -6007,7 +6152,7 @@ SE_BIND_PROP_GET(js_gfx_TextureViewInfo_get_layerCount) static bool js_gfx_TextureViewInfo_set_layerCount(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureViewInfo_set_layerCount : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -6017,43 +6162,45 @@ static bool js_gfx_TextureViewInfo_set_layerCount(se::State& s) // NOLINT(readab } SE_BIND_PROP_SET(js_gfx_TextureViewInfo_set_layerCount) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::TextureViewInfo* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::TextureViewInfo * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("texture", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->texture), ctx); } json->getProperty("type", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->type), ctx); } json->getProperty("format", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->format), ctx); } json->getProperty("baseLevel", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->baseLevel), ctx); } json->getProperty("levelCount", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->levelCount), ctx); } json->getProperty("baseLayer", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->baseLayer), ctx); } json->getProperty("layerCount", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->layerCount), ctx); } return ok; @@ -6063,24 +6210,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_TextureViewInfo_finalize) static bool js_gfx_TextureViewInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::TextureViewInfo* cobj = JSB_ALLOC(cc::gfx::TextureViewInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::TextureViewInfo* cobj = JSB_ALLOC(cc::gfx::TextureViewInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -6114,7 +6263,7 @@ static bool js_gfx_TextureViewInfo_constructor(se::State& s) // NOLINT(readabili ok &= sevalue_to_native(args[6], &(cobj->layerCount), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -6126,10 +6275,13 @@ static bool js_gfx_TextureViewInfo_constructor(se::State& s) // NOLINT(readabili } SE_BIND_CTOR(js_gfx_TextureViewInfo_constructor, __jsb_cc_gfx_TextureViewInfo_class, js_cc_gfx_TextureViewInfo_finalize) + + static bool js_cc_gfx_TextureViewInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -6160,7 +6312,7 @@ bool js_register_gfx_TextureViewInfo(se::Object* obj) // NOLINT(readability-iden return true; } se::Object* __jsb_cc_gfx_SamplerInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_SamplerInfo_class = nullptr; +se::Class* __jsb_cc_gfx_SamplerInfo_class = nullptr; static bool js_gfx_SamplerInfo_get_minFilter(se::State& s) // NOLINT(readability-identifier-naming) { @@ -6168,7 +6320,7 @@ static bool js_gfx_SamplerInfo_get_minFilter(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_SamplerInfo_get_minFilter : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->minFilter, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->minFilter, s.thisObject(), s.rval()); @@ -6179,7 +6331,7 @@ SE_BIND_PROP_GET(js_gfx_SamplerInfo_get_minFilter) static bool js_gfx_SamplerInfo_set_minFilter(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SamplerInfo_set_minFilter : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -6195,7 +6347,7 @@ static bool js_gfx_SamplerInfo_get_magFilter(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_SamplerInfo_get_magFilter : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->magFilter, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->magFilter, s.thisObject(), s.rval()); @@ -6206,7 +6358,7 @@ SE_BIND_PROP_GET(js_gfx_SamplerInfo_get_magFilter) static bool js_gfx_SamplerInfo_set_magFilter(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SamplerInfo_set_magFilter : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -6222,7 +6374,7 @@ static bool js_gfx_SamplerInfo_get_mipFilter(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_SamplerInfo_get_mipFilter : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->mipFilter, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->mipFilter, s.thisObject(), s.rval()); @@ -6233,7 +6385,7 @@ SE_BIND_PROP_GET(js_gfx_SamplerInfo_get_mipFilter) static bool js_gfx_SamplerInfo_set_mipFilter(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SamplerInfo_set_mipFilter : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -6249,7 +6401,7 @@ static bool js_gfx_SamplerInfo_get_addressU(se::State& s) // NOLINT(readability- SE_PRECONDITION2(cobj, false, "js_gfx_SamplerInfo_get_addressU : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->addressU, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->addressU, s.thisObject(), s.rval()); @@ -6260,7 +6412,7 @@ SE_BIND_PROP_GET(js_gfx_SamplerInfo_get_addressU) static bool js_gfx_SamplerInfo_set_addressU(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SamplerInfo_set_addressU : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -6276,7 +6428,7 @@ static bool js_gfx_SamplerInfo_get_addressV(se::State& s) // NOLINT(readability- SE_PRECONDITION2(cobj, false, "js_gfx_SamplerInfo_get_addressV : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->addressV, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->addressV, s.thisObject(), s.rval()); @@ -6287,7 +6439,7 @@ SE_BIND_PROP_GET(js_gfx_SamplerInfo_get_addressV) static bool js_gfx_SamplerInfo_set_addressV(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SamplerInfo_set_addressV : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -6303,7 +6455,7 @@ static bool js_gfx_SamplerInfo_get_addressW(se::State& s) // NOLINT(readability- SE_PRECONDITION2(cobj, false, "js_gfx_SamplerInfo_get_addressW : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->addressW, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->addressW, s.thisObject(), s.rval()); @@ -6314,7 +6466,7 @@ SE_BIND_PROP_GET(js_gfx_SamplerInfo_get_addressW) static bool js_gfx_SamplerInfo_set_addressW(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SamplerInfo_set_addressW : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -6330,7 +6482,7 @@ static bool js_gfx_SamplerInfo_get_maxAnisotropy(se::State& s) // NOLINT(readabi SE_PRECONDITION2(cobj, false, "js_gfx_SamplerInfo_get_maxAnisotropy : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxAnisotropy, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxAnisotropy, s.thisObject(), s.rval()); @@ -6341,7 +6493,7 @@ SE_BIND_PROP_GET(js_gfx_SamplerInfo_get_maxAnisotropy) static bool js_gfx_SamplerInfo_set_maxAnisotropy(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SamplerInfo_set_maxAnisotropy : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -6357,7 +6509,7 @@ static bool js_gfx_SamplerInfo_get_cmpFunc(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_gfx_SamplerInfo_get_cmpFunc : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->cmpFunc, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->cmpFunc, s.thisObject(), s.rval()); @@ -6368,7 +6520,7 @@ SE_BIND_PROP_GET(js_gfx_SamplerInfo_get_cmpFunc) static bool js_gfx_SamplerInfo_set_cmpFunc(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SamplerInfo_set_cmpFunc : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -6378,47 +6530,49 @@ static bool js_gfx_SamplerInfo_set_cmpFunc(se::State& s) // NOLINT(readability-i } SE_BIND_PROP_SET(js_gfx_SamplerInfo_set_cmpFunc) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::SamplerInfo* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::SamplerInfo * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("minFilter", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->minFilter), ctx); } json->getProperty("magFilter", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->magFilter), ctx); } json->getProperty("mipFilter", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->mipFilter), ctx); } json->getProperty("addressU", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->addressU), ctx); } json->getProperty("addressV", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->addressV), ctx); } json->getProperty("addressW", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->addressW), ctx); } json->getProperty("maxAnisotropy", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxAnisotropy), ctx); } json->getProperty("cmpFunc", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->cmpFunc), ctx); } return ok; @@ -6428,24 +6582,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_SamplerInfo_finalize) static bool js_gfx_SamplerInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::SamplerInfo* cobj = JSB_ALLOC(cc::gfx::SamplerInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::SamplerInfo* cobj = JSB_ALLOC(cc::gfx::SamplerInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -6482,7 +6638,7 @@ static bool js_gfx_SamplerInfo_constructor(se::State& s) // NOLINT(readability-i ok &= sevalue_to_native(args[7], &(cobj->cmpFunc), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -6494,10 +6650,13 @@ static bool js_gfx_SamplerInfo_constructor(se::State& s) // NOLINT(readability-i } SE_BIND_CTOR(js_gfx_SamplerInfo_constructor, __jsb_cc_gfx_SamplerInfo_class, js_cc_gfx_SamplerInfo_finalize) + + static bool js_cc_gfx_SamplerInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -6529,7 +6688,7 @@ bool js_register_gfx_SamplerInfo(se::Object* obj) // NOLINT(readability-identifi return true; } se::Object* __jsb_cc_gfx_Uniform_proto = nullptr; -se::Class* __jsb_cc_gfx_Uniform_class = nullptr; +se::Class* __jsb_cc_gfx_Uniform_class = nullptr; static bool js_gfx_Uniform_get_name(se::State& s) // NOLINT(readability-identifier-naming) { @@ -6537,7 +6696,7 @@ static bool js_gfx_Uniform_get_name(se::State& s) // NOLINT(readability-identifi SE_PRECONDITION2(cobj, false, "js_gfx_Uniform_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -6548,7 +6707,7 @@ SE_BIND_PROP_GET(js_gfx_Uniform_get_name) static bool js_gfx_Uniform_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Uniform_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -6564,7 +6723,7 @@ static bool js_gfx_Uniform_get_type(se::State& s) // NOLINT(readability-identifi SE_PRECONDITION2(cobj, false, "js_gfx_Uniform_get_type : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->type, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->type, s.thisObject(), s.rval()); @@ -6575,7 +6734,7 @@ SE_BIND_PROP_GET(js_gfx_Uniform_get_type) static bool js_gfx_Uniform_set_type(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Uniform_set_type : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -6591,7 +6750,7 @@ static bool js_gfx_Uniform_get_count(se::State& s) // NOLINT(readability-identif SE_PRECONDITION2(cobj, false, "js_gfx_Uniform_get_count : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->count, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->count, s.thisObject(), s.rval()); @@ -6602,7 +6761,7 @@ SE_BIND_PROP_GET(js_gfx_Uniform_get_count) static bool js_gfx_Uniform_set_count(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Uniform_set_count : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -6612,27 +6771,29 @@ static bool js_gfx_Uniform_set_count(se::State& s) // NOLINT(readability-identif } SE_BIND_PROP_SET(js_gfx_Uniform_set_count) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::Uniform* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::Uniform * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("name", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->name), ctx); } json->getProperty("type", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->type), ctx); } json->getProperty("count", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->count), ctx); } return ok; @@ -6642,24 +6803,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_Uniform_finalize) static bool js_gfx_Uniform_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::Uniform* cobj = JSB_ALLOC(cc::gfx::Uniform); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::Uniform* cobj = JSB_ALLOC(cc::gfx::Uniform); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -6681,7 +6844,7 @@ static bool js_gfx_Uniform_constructor(se::State& s) // NOLINT(readability-ident ok &= sevalue_to_native(args[2], &(cobj->count), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -6693,10 +6856,13 @@ static bool js_gfx_Uniform_constructor(se::State& s) // NOLINT(readability-ident } SE_BIND_CTOR(js_gfx_Uniform_constructor, __jsb_cc_gfx_Uniform_class, js_cc_gfx_Uniform_finalize) + + static bool js_cc_gfx_Uniform_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -6723,7 +6889,7 @@ bool js_register_gfx_Uniform(se::Object* obj) // NOLINT(readability-identifier-n return true; } se::Object* __jsb_cc_gfx_UniformBlock_proto = nullptr; -se::Class* __jsb_cc_gfx_UniformBlock_class = nullptr; +se::Class* __jsb_cc_gfx_UniformBlock_class = nullptr; static bool js_gfx_UniformBlock_get_set(se::State& s) // NOLINT(readability-identifier-naming) { @@ -6731,7 +6897,7 @@ static bool js_gfx_UniformBlock_get_set(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_gfx_UniformBlock_get_set : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->set, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->set, s.thisObject(), s.rval()); @@ -6742,7 +6908,7 @@ SE_BIND_PROP_GET(js_gfx_UniformBlock_get_set) static bool js_gfx_UniformBlock_set_set(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformBlock_set_set : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -6758,7 +6924,7 @@ static bool js_gfx_UniformBlock_get_binding(se::State& s) // NOLINT(readability- SE_PRECONDITION2(cobj, false, "js_gfx_UniformBlock_get_binding : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->binding, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->binding, s.thisObject(), s.rval()); @@ -6769,7 +6935,7 @@ SE_BIND_PROP_GET(js_gfx_UniformBlock_get_binding) static bool js_gfx_UniformBlock_set_binding(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformBlock_set_binding : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -6785,7 +6951,7 @@ static bool js_gfx_UniformBlock_get_name(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_gfx_UniformBlock_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -6796,7 +6962,7 @@ SE_BIND_PROP_GET(js_gfx_UniformBlock_get_name) static bool js_gfx_UniformBlock_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformBlock_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -6812,7 +6978,7 @@ static bool js_gfx_UniformBlock_get_members(se::State& s) // NOLINT(readability- SE_PRECONDITION2(cobj, false, "js_gfx_UniformBlock_get_members : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->members, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->members, s.thisObject(), s.rval()); @@ -6823,7 +6989,7 @@ SE_BIND_PROP_GET(js_gfx_UniformBlock_get_members) static bool js_gfx_UniformBlock_set_members(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformBlock_set_members : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -6839,7 +7005,7 @@ static bool js_gfx_UniformBlock_get_count(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_gfx_UniformBlock_get_count : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->count, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->count, s.thisObject(), s.rval()); @@ -6850,7 +7016,7 @@ SE_BIND_PROP_GET(js_gfx_UniformBlock_get_count) static bool js_gfx_UniformBlock_set_count(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformBlock_set_count : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -6860,35 +7026,37 @@ static bool js_gfx_UniformBlock_set_count(se::State& s) // NOLINT(readability-id } SE_BIND_PROP_SET(js_gfx_UniformBlock_set_count) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::UniformBlock* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::UniformBlock * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("set", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->set), ctx); } json->getProperty("binding", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->binding), ctx); } json->getProperty("name", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->name), ctx); } json->getProperty("members", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->members), ctx); } json->getProperty("count", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->count), ctx); } return ok; @@ -6898,24 +7066,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_UniformBlock_finalize) static bool js_gfx_UniformBlock_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::UniformBlock* cobj = JSB_ALLOC(cc::gfx::UniformBlock); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::UniformBlock* cobj = JSB_ALLOC(cc::gfx::UniformBlock); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -6943,7 +7113,7 @@ static bool js_gfx_UniformBlock_constructor(se::State& s) // NOLINT(readability- ok &= sevalue_to_native(args[4], &(cobj->count), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -6955,10 +7125,13 @@ static bool js_gfx_UniformBlock_constructor(se::State& s) // NOLINT(readability- } SE_BIND_CTOR(js_gfx_UniformBlock_constructor, __jsb_cc_gfx_UniformBlock_class, js_cc_gfx_UniformBlock_finalize) + + static bool js_cc_gfx_UniformBlock_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -6987,7 +7160,7 @@ bool js_register_gfx_UniformBlock(se::Object* obj) // NOLINT(readability-identif return true; } se::Object* __jsb_cc_gfx_UniformSamplerTexture_proto = nullptr; -se::Class* __jsb_cc_gfx_UniformSamplerTexture_class = nullptr; +se::Class* __jsb_cc_gfx_UniformSamplerTexture_class = nullptr; static bool js_gfx_UniformSamplerTexture_get_set(se::State& s) // NOLINT(readability-identifier-naming) { @@ -6995,7 +7168,7 @@ static bool js_gfx_UniformSamplerTexture_get_set(se::State& s) // NOLINT(readabi SE_PRECONDITION2(cobj, false, "js_gfx_UniformSamplerTexture_get_set : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->set, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->set, s.thisObject(), s.rval()); @@ -7006,7 +7179,7 @@ SE_BIND_PROP_GET(js_gfx_UniformSamplerTexture_get_set) static bool js_gfx_UniformSamplerTexture_set_set(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformSamplerTexture_set_set : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7022,7 +7195,7 @@ static bool js_gfx_UniformSamplerTexture_get_binding(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_gfx_UniformSamplerTexture_get_binding : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->binding, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->binding, s.thisObject(), s.rval()); @@ -7033,7 +7206,7 @@ SE_BIND_PROP_GET(js_gfx_UniformSamplerTexture_get_binding) static bool js_gfx_UniformSamplerTexture_set_binding(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformSamplerTexture_set_binding : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7049,7 +7222,7 @@ static bool js_gfx_UniformSamplerTexture_get_name(se::State& s) // NOLINT(readab SE_PRECONDITION2(cobj, false, "js_gfx_UniformSamplerTexture_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -7060,7 +7233,7 @@ SE_BIND_PROP_GET(js_gfx_UniformSamplerTexture_get_name) static bool js_gfx_UniformSamplerTexture_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformSamplerTexture_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7076,7 +7249,7 @@ static bool js_gfx_UniformSamplerTexture_get_type(se::State& s) // NOLINT(readab SE_PRECONDITION2(cobj, false, "js_gfx_UniformSamplerTexture_get_type : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->type, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->type, s.thisObject(), s.rval()); @@ -7087,7 +7260,7 @@ SE_BIND_PROP_GET(js_gfx_UniformSamplerTexture_get_type) static bool js_gfx_UniformSamplerTexture_set_type(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformSamplerTexture_set_type : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7103,7 +7276,7 @@ static bool js_gfx_UniformSamplerTexture_get_count(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_UniformSamplerTexture_get_count : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->count, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->count, s.thisObject(), s.rval()); @@ -7114,7 +7287,7 @@ SE_BIND_PROP_GET(js_gfx_UniformSamplerTexture_get_count) static bool js_gfx_UniformSamplerTexture_set_count(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformSamplerTexture_set_count : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7124,35 +7297,37 @@ static bool js_gfx_UniformSamplerTexture_set_count(se::State& s) // NOLINT(reada } SE_BIND_PROP_SET(js_gfx_UniformSamplerTexture_set_count) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::UniformSamplerTexture* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::UniformSamplerTexture * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("set", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->set), ctx); } json->getProperty("binding", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->binding), ctx); } json->getProperty("name", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->name), ctx); } json->getProperty("type", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->type), ctx); } json->getProperty("count", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->count), ctx); } return ok; @@ -7162,24 +7337,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_UniformSamplerTexture_finalize) static bool js_gfx_UniformSamplerTexture_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::UniformSamplerTexture* cobj = JSB_ALLOC(cc::gfx::UniformSamplerTexture); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::UniformSamplerTexture* cobj = JSB_ALLOC(cc::gfx::UniformSamplerTexture); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -7207,7 +7384,7 @@ static bool js_gfx_UniformSamplerTexture_constructor(se::State& s) // NOLINT(rea ok &= sevalue_to_native(args[4], &(cobj->count), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -7219,10 +7396,13 @@ static bool js_gfx_UniformSamplerTexture_constructor(se::State& s) // NOLINT(rea } SE_BIND_CTOR(js_gfx_UniformSamplerTexture_constructor, __jsb_cc_gfx_UniformSamplerTexture_class, js_cc_gfx_UniformSamplerTexture_finalize) + + static bool js_cc_gfx_UniformSamplerTexture_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -7251,7 +7431,7 @@ bool js_register_gfx_UniformSamplerTexture(se::Object* obj) // NOLINT(readabilit return true; } se::Object* __jsb_cc_gfx_UniformSampler_proto = nullptr; -se::Class* __jsb_cc_gfx_UniformSampler_class = nullptr; +se::Class* __jsb_cc_gfx_UniformSampler_class = nullptr; static bool js_gfx_UniformSampler_get_set(se::State& s) // NOLINT(readability-identifier-naming) { @@ -7259,7 +7439,7 @@ static bool js_gfx_UniformSampler_get_set(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_gfx_UniformSampler_get_set : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->set, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->set, s.thisObject(), s.rval()); @@ -7270,7 +7450,7 @@ SE_BIND_PROP_GET(js_gfx_UniformSampler_get_set) static bool js_gfx_UniformSampler_set_set(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformSampler_set_set : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7286,7 +7466,7 @@ static bool js_gfx_UniformSampler_get_binding(se::State& s) // NOLINT(readabilit SE_PRECONDITION2(cobj, false, "js_gfx_UniformSampler_get_binding : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->binding, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->binding, s.thisObject(), s.rval()); @@ -7297,7 +7477,7 @@ SE_BIND_PROP_GET(js_gfx_UniformSampler_get_binding) static bool js_gfx_UniformSampler_set_binding(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformSampler_set_binding : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7313,7 +7493,7 @@ static bool js_gfx_UniformSampler_get_name(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_gfx_UniformSampler_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -7324,7 +7504,7 @@ SE_BIND_PROP_GET(js_gfx_UniformSampler_get_name) static bool js_gfx_UniformSampler_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformSampler_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7340,7 +7520,7 @@ static bool js_gfx_UniformSampler_get_count(se::State& s) // NOLINT(readability- SE_PRECONDITION2(cobj, false, "js_gfx_UniformSampler_get_count : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->count, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->count, s.thisObject(), s.rval()); @@ -7351,7 +7531,7 @@ SE_BIND_PROP_GET(js_gfx_UniformSampler_get_count) static bool js_gfx_UniformSampler_set_count(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformSampler_set_count : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7361,31 +7541,33 @@ static bool js_gfx_UniformSampler_set_count(se::State& s) // NOLINT(readability- } SE_BIND_PROP_SET(js_gfx_UniformSampler_set_count) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::UniformSampler* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::UniformSampler * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("set", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->set), ctx); } json->getProperty("binding", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->binding), ctx); } json->getProperty("name", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->name), ctx); } json->getProperty("count", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->count), ctx); } return ok; @@ -7395,24 +7577,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_UniformSampler_finalize) static bool js_gfx_UniformSampler_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::UniformSampler* cobj = JSB_ALLOC(cc::gfx::UniformSampler); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::UniformSampler* cobj = JSB_ALLOC(cc::gfx::UniformSampler); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -7437,7 +7621,7 @@ static bool js_gfx_UniformSampler_constructor(se::State& s) // NOLINT(readabilit ok &= sevalue_to_native(args[3], &(cobj->count), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -7449,10 +7633,13 @@ static bool js_gfx_UniformSampler_constructor(se::State& s) // NOLINT(readabilit } SE_BIND_CTOR(js_gfx_UniformSampler_constructor, __jsb_cc_gfx_UniformSampler_class, js_cc_gfx_UniformSampler_finalize) + + static bool js_cc_gfx_UniformSampler_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -7480,7 +7667,7 @@ bool js_register_gfx_UniformSampler(se::Object* obj) // NOLINT(readability-ident return true; } se::Object* __jsb_cc_gfx_UniformTexture_proto = nullptr; -se::Class* __jsb_cc_gfx_UniformTexture_class = nullptr; +se::Class* __jsb_cc_gfx_UniformTexture_class = nullptr; static bool js_gfx_UniformTexture_get_set(se::State& s) // NOLINT(readability-identifier-naming) { @@ -7488,7 +7675,7 @@ static bool js_gfx_UniformTexture_get_set(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_gfx_UniformTexture_get_set : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->set, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->set, s.thisObject(), s.rval()); @@ -7499,7 +7686,7 @@ SE_BIND_PROP_GET(js_gfx_UniformTexture_get_set) static bool js_gfx_UniformTexture_set_set(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformTexture_set_set : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7515,7 +7702,7 @@ static bool js_gfx_UniformTexture_get_binding(se::State& s) // NOLINT(readabilit SE_PRECONDITION2(cobj, false, "js_gfx_UniformTexture_get_binding : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->binding, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->binding, s.thisObject(), s.rval()); @@ -7526,7 +7713,7 @@ SE_BIND_PROP_GET(js_gfx_UniformTexture_get_binding) static bool js_gfx_UniformTexture_set_binding(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformTexture_set_binding : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7542,7 +7729,7 @@ static bool js_gfx_UniformTexture_get_name(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_gfx_UniformTexture_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -7553,7 +7740,7 @@ SE_BIND_PROP_GET(js_gfx_UniformTexture_get_name) static bool js_gfx_UniformTexture_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformTexture_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7569,7 +7756,7 @@ static bool js_gfx_UniformTexture_get_type(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_gfx_UniformTexture_get_type : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->type, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->type, s.thisObject(), s.rval()); @@ -7580,7 +7767,7 @@ SE_BIND_PROP_GET(js_gfx_UniformTexture_get_type) static bool js_gfx_UniformTexture_set_type(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformTexture_set_type : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7596,7 +7783,7 @@ static bool js_gfx_UniformTexture_get_count(se::State& s) // NOLINT(readability- SE_PRECONDITION2(cobj, false, "js_gfx_UniformTexture_get_count : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->count, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->count, s.thisObject(), s.rval()); @@ -7607,7 +7794,7 @@ SE_BIND_PROP_GET(js_gfx_UniformTexture_get_count) static bool js_gfx_UniformTexture_set_count(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformTexture_set_count : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7617,35 +7804,37 @@ static bool js_gfx_UniformTexture_set_count(se::State& s) // NOLINT(readability- } SE_BIND_PROP_SET(js_gfx_UniformTexture_set_count) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::UniformTexture* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::UniformTexture * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("set", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->set), ctx); } json->getProperty("binding", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->binding), ctx); } json->getProperty("name", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->name), ctx); } json->getProperty("type", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->type), ctx); } json->getProperty("count", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->count), ctx); } return ok; @@ -7655,24 +7844,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_UniformTexture_finalize) static bool js_gfx_UniformTexture_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::UniformTexture* cobj = JSB_ALLOC(cc::gfx::UniformTexture); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::UniformTexture* cobj = JSB_ALLOC(cc::gfx::UniformTexture); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -7700,7 +7891,7 @@ static bool js_gfx_UniformTexture_constructor(se::State& s) // NOLINT(readabilit ok &= sevalue_to_native(args[4], &(cobj->count), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -7712,10 +7903,13 @@ static bool js_gfx_UniformTexture_constructor(se::State& s) // NOLINT(readabilit } SE_BIND_CTOR(js_gfx_UniformTexture_constructor, __jsb_cc_gfx_UniformTexture_class, js_cc_gfx_UniformTexture_finalize) + + static bool js_cc_gfx_UniformTexture_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -7744,7 +7938,7 @@ bool js_register_gfx_UniformTexture(se::Object* obj) // NOLINT(readability-ident return true; } se::Object* __jsb_cc_gfx_UniformStorageImage_proto = nullptr; -se::Class* __jsb_cc_gfx_UniformStorageImage_class = nullptr; +se::Class* __jsb_cc_gfx_UniformStorageImage_class = nullptr; static bool js_gfx_UniformStorageImage_get_set(se::State& s) // NOLINT(readability-identifier-naming) { @@ -7752,7 +7946,7 @@ static bool js_gfx_UniformStorageImage_get_set(se::State& s) // NOLINT(readabili SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageImage_get_set : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->set, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->set, s.thisObject(), s.rval()); @@ -7763,7 +7957,7 @@ SE_BIND_PROP_GET(js_gfx_UniformStorageImage_get_set) static bool js_gfx_UniformStorageImage_set_set(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageImage_set_set : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7779,7 +7973,7 @@ static bool js_gfx_UniformStorageImage_get_binding(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageImage_get_binding : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->binding, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->binding, s.thisObject(), s.rval()); @@ -7790,7 +7984,7 @@ SE_BIND_PROP_GET(js_gfx_UniformStorageImage_get_binding) static bool js_gfx_UniformStorageImage_set_binding(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageImage_set_binding : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7806,7 +8000,7 @@ static bool js_gfx_UniformStorageImage_get_name(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageImage_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -7817,7 +8011,7 @@ SE_BIND_PROP_GET(js_gfx_UniformStorageImage_get_name) static bool js_gfx_UniformStorageImage_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageImage_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7833,7 +8027,7 @@ static bool js_gfx_UniformStorageImage_get_type(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageImage_get_type : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->type, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->type, s.thisObject(), s.rval()); @@ -7844,7 +8038,7 @@ SE_BIND_PROP_GET(js_gfx_UniformStorageImage_get_type) static bool js_gfx_UniformStorageImage_set_type(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageImage_set_type : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7860,7 +8054,7 @@ static bool js_gfx_UniformStorageImage_get_count(se::State& s) // NOLINT(readabi SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageImage_get_count : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->count, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->count, s.thisObject(), s.rval()); @@ -7871,7 +8065,7 @@ SE_BIND_PROP_GET(js_gfx_UniformStorageImage_get_count) static bool js_gfx_UniformStorageImage_set_count(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageImage_set_count : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7887,7 +8081,7 @@ static bool js_gfx_UniformStorageImage_get_memoryAccess(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageImage_get_memoryAccess : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->memoryAccess, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->memoryAccess, s.thisObject(), s.rval()); @@ -7898,7 +8092,7 @@ SE_BIND_PROP_GET(js_gfx_UniformStorageImage_get_memoryAccess) static bool js_gfx_UniformStorageImage_set_memoryAccess(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageImage_set_memoryAccess : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7908,39 +8102,41 @@ static bool js_gfx_UniformStorageImage_set_memoryAccess(se::State& s) // NOLINT( } SE_BIND_PROP_SET(js_gfx_UniformStorageImage_set_memoryAccess) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::UniformStorageImage* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::UniformStorageImage * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("set", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->set), ctx); } json->getProperty("binding", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->binding), ctx); } json->getProperty("name", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->name), ctx); } json->getProperty("type", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->type), ctx); } json->getProperty("count", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->count), ctx); } json->getProperty("memoryAccess", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->memoryAccess), ctx); } return ok; @@ -7950,24 +8146,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_UniformStorageImage_finalize) static bool js_gfx_UniformStorageImage_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::UniformStorageImage* cobj = JSB_ALLOC(cc::gfx::UniformStorageImage); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::UniformStorageImage* cobj = JSB_ALLOC(cc::gfx::UniformStorageImage); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -7998,7 +8196,7 @@ static bool js_gfx_UniformStorageImage_constructor(se::State& s) // NOLINT(reada ok &= sevalue_to_native(args[5], &(cobj->memoryAccess), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -8010,10 +8208,13 @@ static bool js_gfx_UniformStorageImage_constructor(se::State& s) // NOLINT(reada } SE_BIND_CTOR(js_gfx_UniformStorageImage_constructor, __jsb_cc_gfx_UniformStorageImage_class, js_cc_gfx_UniformStorageImage_finalize) + + static bool js_cc_gfx_UniformStorageImage_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -8043,7 +8244,7 @@ bool js_register_gfx_UniformStorageImage(se::Object* obj) // NOLINT(readability- return true; } se::Object* __jsb_cc_gfx_UniformStorageBuffer_proto = nullptr; -se::Class* __jsb_cc_gfx_UniformStorageBuffer_class = nullptr; +se::Class* __jsb_cc_gfx_UniformStorageBuffer_class = nullptr; static bool js_gfx_UniformStorageBuffer_get_set(se::State& s) // NOLINT(readability-identifier-naming) { @@ -8051,7 +8252,7 @@ static bool js_gfx_UniformStorageBuffer_get_set(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageBuffer_get_set : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->set, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->set, s.thisObject(), s.rval()); @@ -8062,7 +8263,7 @@ SE_BIND_PROP_GET(js_gfx_UniformStorageBuffer_get_set) static bool js_gfx_UniformStorageBuffer_set_set(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageBuffer_set_set : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8078,7 +8279,7 @@ static bool js_gfx_UniformStorageBuffer_get_binding(se::State& s) // NOLINT(read SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageBuffer_get_binding : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->binding, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->binding, s.thisObject(), s.rval()); @@ -8089,7 +8290,7 @@ SE_BIND_PROP_GET(js_gfx_UniformStorageBuffer_get_binding) static bool js_gfx_UniformStorageBuffer_set_binding(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageBuffer_set_binding : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8105,7 +8306,7 @@ static bool js_gfx_UniformStorageBuffer_get_name(se::State& s) // NOLINT(readabi SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageBuffer_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -8116,7 +8317,7 @@ SE_BIND_PROP_GET(js_gfx_UniformStorageBuffer_get_name) static bool js_gfx_UniformStorageBuffer_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageBuffer_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8132,7 +8333,7 @@ static bool js_gfx_UniformStorageBuffer_get_count(se::State& s) // NOLINT(readab SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageBuffer_get_count : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->count, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->count, s.thisObject(), s.rval()); @@ -8143,7 +8344,7 @@ SE_BIND_PROP_GET(js_gfx_UniformStorageBuffer_get_count) static bool js_gfx_UniformStorageBuffer_set_count(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageBuffer_set_count : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8159,7 +8360,7 @@ static bool js_gfx_UniformStorageBuffer_get_memoryAccess(se::State& s) // NOLINT SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageBuffer_get_memoryAccess : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->memoryAccess, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->memoryAccess, s.thisObject(), s.rval()); @@ -8170,7 +8371,7 @@ SE_BIND_PROP_GET(js_gfx_UniformStorageBuffer_get_memoryAccess) static bool js_gfx_UniformStorageBuffer_set_memoryAccess(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageBuffer_set_memoryAccess : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8180,35 +8381,37 @@ static bool js_gfx_UniformStorageBuffer_set_memoryAccess(se::State& s) // NOLINT } SE_BIND_PROP_SET(js_gfx_UniformStorageBuffer_set_memoryAccess) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::UniformStorageBuffer* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::UniformStorageBuffer * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("set", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->set), ctx); } json->getProperty("binding", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->binding), ctx); } json->getProperty("name", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->name), ctx); } json->getProperty("count", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->count), ctx); } json->getProperty("memoryAccess", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->memoryAccess), ctx); } return ok; @@ -8218,24 +8421,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_UniformStorageBuffer_finalize) static bool js_gfx_UniformStorageBuffer_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::UniformStorageBuffer* cobj = JSB_ALLOC(cc::gfx::UniformStorageBuffer); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::UniformStorageBuffer* cobj = JSB_ALLOC(cc::gfx::UniformStorageBuffer); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -8263,7 +8468,7 @@ static bool js_gfx_UniformStorageBuffer_constructor(se::State& s) // NOLINT(read ok &= sevalue_to_native(args[4], &(cobj->memoryAccess), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -8275,10 +8480,13 @@ static bool js_gfx_UniformStorageBuffer_constructor(se::State& s) // NOLINT(read } SE_BIND_CTOR(js_gfx_UniformStorageBuffer_constructor, __jsb_cc_gfx_UniformStorageBuffer_class, js_cc_gfx_UniformStorageBuffer_finalize) + + static bool js_cc_gfx_UniformStorageBuffer_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -8307,7 +8515,7 @@ bool js_register_gfx_UniformStorageBuffer(se::Object* obj) // NOLINT(readability return true; } se::Object* __jsb_cc_gfx_UniformInputAttachment_proto = nullptr; -se::Class* __jsb_cc_gfx_UniformInputAttachment_class = nullptr; +se::Class* __jsb_cc_gfx_UniformInputAttachment_class = nullptr; static bool js_gfx_UniformInputAttachment_get_set(se::State& s) // NOLINT(readability-identifier-naming) { @@ -8315,7 +8523,7 @@ static bool js_gfx_UniformInputAttachment_get_set(se::State& s) // NOLINT(readab SE_PRECONDITION2(cobj, false, "js_gfx_UniformInputAttachment_get_set : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->set, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->set, s.thisObject(), s.rval()); @@ -8326,7 +8534,7 @@ SE_BIND_PROP_GET(js_gfx_UniformInputAttachment_get_set) static bool js_gfx_UniformInputAttachment_set_set(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformInputAttachment_set_set : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8342,7 +8550,7 @@ static bool js_gfx_UniformInputAttachment_get_binding(se::State& s) // NOLINT(re SE_PRECONDITION2(cobj, false, "js_gfx_UniformInputAttachment_get_binding : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->binding, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->binding, s.thisObject(), s.rval()); @@ -8353,7 +8561,7 @@ SE_BIND_PROP_GET(js_gfx_UniformInputAttachment_get_binding) static bool js_gfx_UniformInputAttachment_set_binding(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformInputAttachment_set_binding : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8369,7 +8577,7 @@ static bool js_gfx_UniformInputAttachment_get_name(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_UniformInputAttachment_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -8380,7 +8588,7 @@ SE_BIND_PROP_GET(js_gfx_UniformInputAttachment_get_name) static bool js_gfx_UniformInputAttachment_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformInputAttachment_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8396,7 +8604,7 @@ static bool js_gfx_UniformInputAttachment_get_count(se::State& s) // NOLINT(read SE_PRECONDITION2(cobj, false, "js_gfx_UniformInputAttachment_get_count : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->count, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->count, s.thisObject(), s.rval()); @@ -8407,7 +8615,7 @@ SE_BIND_PROP_GET(js_gfx_UniformInputAttachment_get_count) static bool js_gfx_UniformInputAttachment_set_count(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformInputAttachment_set_count : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8417,31 +8625,33 @@ static bool js_gfx_UniformInputAttachment_set_count(se::State& s) // NOLINT(read } SE_BIND_PROP_SET(js_gfx_UniformInputAttachment_set_count) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::UniformInputAttachment* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::UniformInputAttachment * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("set", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->set), ctx); } json->getProperty("binding", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->binding), ctx); } json->getProperty("name", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->name), ctx); } json->getProperty("count", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->count), ctx); } return ok; @@ -8451,24 +8661,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_UniformInputAttachment_finalize) static bool js_gfx_UniformInputAttachment_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::UniformInputAttachment* cobj = JSB_ALLOC(cc::gfx::UniformInputAttachment); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::UniformInputAttachment* cobj = JSB_ALLOC(cc::gfx::UniformInputAttachment); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -8493,7 +8705,7 @@ static bool js_gfx_UniformInputAttachment_constructor(se::State& s) // NOLINT(re ok &= sevalue_to_native(args[3], &(cobj->count), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -8505,10 +8717,13 @@ static bool js_gfx_UniformInputAttachment_constructor(se::State& s) // NOLINT(re } SE_BIND_CTOR(js_gfx_UniformInputAttachment_constructor, __jsb_cc_gfx_UniformInputAttachment_class, js_cc_gfx_UniformInputAttachment_finalize) + + static bool js_cc_gfx_UniformInputAttachment_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -8536,7 +8751,7 @@ bool js_register_gfx_UniformInputAttachment(se::Object* obj) // NOLINT(readabili return true; } se::Object* __jsb_cc_gfx_ShaderStage_proto = nullptr; -se::Class* __jsb_cc_gfx_ShaderStage_class = nullptr; +se::Class* __jsb_cc_gfx_ShaderStage_class = nullptr; static bool js_gfx_ShaderStage_get_stage(se::State& s) // NOLINT(readability-identifier-naming) { @@ -8544,7 +8759,7 @@ static bool js_gfx_ShaderStage_get_stage(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_gfx_ShaderStage_get_stage : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stage, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stage, s.thisObject(), s.rval()); @@ -8555,7 +8770,7 @@ SE_BIND_PROP_GET(js_gfx_ShaderStage_get_stage) static bool js_gfx_ShaderStage_set_stage(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_ShaderStage_set_stage : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8571,7 +8786,7 @@ static bool js_gfx_ShaderStage_get_source(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_gfx_ShaderStage_get_source : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->source, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->source, s.thisObject(), s.rval()); @@ -8582,7 +8797,7 @@ SE_BIND_PROP_GET(js_gfx_ShaderStage_get_source) static bool js_gfx_ShaderStage_set_source(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_ShaderStage_set_source : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8592,23 +8807,25 @@ static bool js_gfx_ShaderStage_set_source(se::State& s) // NOLINT(readability-id } SE_BIND_PROP_SET(js_gfx_ShaderStage_set_source) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::ShaderStage* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::ShaderStage * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("stage", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stage), ctx); } json->getProperty("source", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->source), ctx); } return ok; @@ -8618,24 +8835,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_ShaderStage_finalize) static bool js_gfx_ShaderStage_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::ShaderStage* cobj = JSB_ALLOC(cc::gfx::ShaderStage); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::ShaderStage* cobj = JSB_ALLOC(cc::gfx::ShaderStage); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -8654,7 +8873,7 @@ static bool js_gfx_ShaderStage_constructor(se::State& s) // NOLINT(readability-i ok &= sevalue_to_native(args[1], &(cobj->source), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -8666,10 +8885,13 @@ static bool js_gfx_ShaderStage_constructor(se::State& s) // NOLINT(readability-i } SE_BIND_CTOR(js_gfx_ShaderStage_constructor, __jsb_cc_gfx_ShaderStage_class, js_cc_gfx_ShaderStage_finalize) + + static bool js_cc_gfx_ShaderStage_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -8695,7 +8917,7 @@ bool js_register_gfx_ShaderStage(se::Object* obj) // NOLINT(readability-identifi return true; } se::Object* __jsb_cc_gfx_Attribute_proto = nullptr; -se::Class* __jsb_cc_gfx_Attribute_class = nullptr; +se::Class* __jsb_cc_gfx_Attribute_class = nullptr; static bool js_gfx_Attribute_get_name(se::State& s) // NOLINT(readability-identifier-naming) { @@ -8703,7 +8925,7 @@ static bool js_gfx_Attribute_get_name(se::State& s) // NOLINT(readability-identi SE_PRECONDITION2(cobj, false, "js_gfx_Attribute_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -8714,7 +8936,7 @@ SE_BIND_PROP_GET(js_gfx_Attribute_get_name) static bool js_gfx_Attribute_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Attribute_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8730,7 +8952,7 @@ static bool js_gfx_Attribute_get_format(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_gfx_Attribute_get_format : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->format, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->format, s.thisObject(), s.rval()); @@ -8741,7 +8963,7 @@ SE_BIND_PROP_GET(js_gfx_Attribute_get_format) static bool js_gfx_Attribute_set_format(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Attribute_set_format : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8757,7 +8979,7 @@ static bool js_gfx_Attribute_get_isNormalized(se::State& s) // NOLINT(readabilit SE_PRECONDITION2(cobj, false, "js_gfx_Attribute_get_isNormalized : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->isNormalized, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->isNormalized, s.thisObject(), s.rval()); @@ -8768,7 +8990,7 @@ SE_BIND_PROP_GET(js_gfx_Attribute_get_isNormalized) static bool js_gfx_Attribute_set_isNormalized(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Attribute_set_isNormalized : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8784,7 +9006,7 @@ static bool js_gfx_Attribute_get_stream(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_gfx_Attribute_get_stream : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stream, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stream, s.thisObject(), s.rval()); @@ -8795,7 +9017,7 @@ SE_BIND_PROP_GET(js_gfx_Attribute_get_stream) static bool js_gfx_Attribute_set_stream(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Attribute_set_stream : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8811,7 +9033,7 @@ static bool js_gfx_Attribute_get_isInstanced(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_Attribute_get_isInstanced : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->isInstanced, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->isInstanced, s.thisObject(), s.rval()); @@ -8822,7 +9044,7 @@ SE_BIND_PROP_GET(js_gfx_Attribute_get_isInstanced) static bool js_gfx_Attribute_set_isInstanced(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Attribute_set_isInstanced : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8838,7 +9060,7 @@ static bool js_gfx_Attribute_get_location(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_gfx_Attribute_get_location : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->location, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->location, s.thisObject(), s.rval()); @@ -8849,7 +9071,7 @@ SE_BIND_PROP_GET(js_gfx_Attribute_get_location) static bool js_gfx_Attribute_set_location(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Attribute_set_location : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8859,39 +9081,41 @@ static bool js_gfx_Attribute_set_location(se::State& s) // NOLINT(readability-id } SE_BIND_PROP_SET(js_gfx_Attribute_set_location) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::Attribute* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::Attribute * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("name", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->name), ctx); } json->getProperty("format", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->format), ctx); } json->getProperty("isNormalized", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->isNormalized), ctx); } json->getProperty("stream", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stream), ctx); } json->getProperty("isInstanced", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->isInstanced), ctx); } json->getProperty("location", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->location), ctx); } return ok; @@ -8901,24 +9125,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_Attribute_finalize) static bool js_gfx_Attribute_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::Attribute* cobj = JSB_ALLOC(cc::gfx::Attribute); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::Attribute* cobj = JSB_ALLOC(cc::gfx::Attribute); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -8949,7 +9175,7 @@ static bool js_gfx_Attribute_constructor(se::State& s) // NOLINT(readability-ide ok &= sevalue_to_native(args[5], &(cobj->location), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -8961,10 +9187,13 @@ static bool js_gfx_Attribute_constructor(se::State& s) // NOLINT(readability-ide } SE_BIND_CTOR(js_gfx_Attribute_constructor, __jsb_cc_gfx_Attribute_class, js_cc_gfx_Attribute_finalize) + + static bool js_cc_gfx_Attribute_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -8994,7 +9223,7 @@ bool js_register_gfx_Attribute(se::Object* obj) // NOLINT(readability-identifier return true; } se::Object* __jsb_cc_gfx_ShaderInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_ShaderInfo_class = nullptr; +se::Class* __jsb_cc_gfx_ShaderInfo_class = nullptr; static bool js_gfx_ShaderInfo_get_name(se::State& s) // NOLINT(readability-identifier-naming) { @@ -9002,7 +9231,7 @@ static bool js_gfx_ShaderInfo_get_name(se::State& s) // NOLINT(readability-ident SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -9013,7 +9242,7 @@ SE_BIND_PROP_GET(js_gfx_ShaderInfo_get_name) static bool js_gfx_ShaderInfo_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9029,7 +9258,7 @@ static bool js_gfx_ShaderInfo_get_stages(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_get_stages : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stages, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stages, s.thisObject(), s.rval()); @@ -9040,7 +9269,7 @@ SE_BIND_PROP_GET(js_gfx_ShaderInfo_get_stages) static bool js_gfx_ShaderInfo_set_stages(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_set_stages : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9056,7 +9285,7 @@ static bool js_gfx_ShaderInfo_get_attributes(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_get_attributes : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->attributes, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->attributes, s.thisObject(), s.rval()); @@ -9067,7 +9296,7 @@ SE_BIND_PROP_GET(js_gfx_ShaderInfo_get_attributes) static bool js_gfx_ShaderInfo_set_attributes(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_set_attributes : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9083,7 +9312,7 @@ static bool js_gfx_ShaderInfo_get_blocks(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_get_blocks : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->blocks, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->blocks, s.thisObject(), s.rval()); @@ -9094,7 +9323,7 @@ SE_BIND_PROP_GET(js_gfx_ShaderInfo_get_blocks) static bool js_gfx_ShaderInfo_set_blocks(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_set_blocks : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9110,7 +9339,7 @@ static bool js_gfx_ShaderInfo_get_buffers(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_get_buffers : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->buffers, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->buffers, s.thisObject(), s.rval()); @@ -9121,7 +9350,7 @@ SE_BIND_PROP_GET(js_gfx_ShaderInfo_get_buffers) static bool js_gfx_ShaderInfo_set_buffers(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_set_buffers : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9137,7 +9366,7 @@ static bool js_gfx_ShaderInfo_get_samplerTextures(se::State& s) // NOLINT(readab SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_get_samplerTextures : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->samplerTextures, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->samplerTextures, s.thisObject(), s.rval()); @@ -9148,7 +9377,7 @@ SE_BIND_PROP_GET(js_gfx_ShaderInfo_get_samplerTextures) static bool js_gfx_ShaderInfo_set_samplerTextures(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_set_samplerTextures : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9164,7 +9393,7 @@ static bool js_gfx_ShaderInfo_get_samplers(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_get_samplers : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->samplers, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->samplers, s.thisObject(), s.rval()); @@ -9175,7 +9404,7 @@ SE_BIND_PROP_GET(js_gfx_ShaderInfo_get_samplers) static bool js_gfx_ShaderInfo_set_samplers(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_set_samplers : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9191,7 +9420,7 @@ static bool js_gfx_ShaderInfo_get_textures(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_get_textures : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->textures, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->textures, s.thisObject(), s.rval()); @@ -9202,7 +9431,7 @@ SE_BIND_PROP_GET(js_gfx_ShaderInfo_get_textures) static bool js_gfx_ShaderInfo_set_textures(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_set_textures : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9218,7 +9447,7 @@ static bool js_gfx_ShaderInfo_get_images(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_get_images : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->images, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->images, s.thisObject(), s.rval()); @@ -9229,7 +9458,7 @@ SE_BIND_PROP_GET(js_gfx_ShaderInfo_get_images) static bool js_gfx_ShaderInfo_set_images(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_set_images : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9245,7 +9474,7 @@ static bool js_gfx_ShaderInfo_get_subpassInputs(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_get_subpassInputs : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->subpassInputs, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->subpassInputs, s.thisObject(), s.rval()); @@ -9256,7 +9485,7 @@ SE_BIND_PROP_GET(js_gfx_ShaderInfo_get_subpassInputs) static bool js_gfx_ShaderInfo_set_subpassInputs(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_set_subpassInputs : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9266,55 +9495,57 @@ static bool js_gfx_ShaderInfo_set_subpassInputs(se::State& s) // NOLINT(readabil } SE_BIND_PROP_SET(js_gfx_ShaderInfo_set_subpassInputs) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::ShaderInfo* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::ShaderInfo * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("name", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->name), ctx); } json->getProperty("stages", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stages), ctx); } json->getProperty("attributes", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->attributes), ctx); } json->getProperty("blocks", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->blocks), ctx); } json->getProperty("buffers", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->buffers), ctx); } json->getProperty("samplerTextures", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->samplerTextures), ctx); } json->getProperty("samplers", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->samplers), ctx); } json->getProperty("textures", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->textures), ctx); } json->getProperty("images", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->images), ctx); } json->getProperty("subpassInputs", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->subpassInputs), ctx); } return ok; @@ -9324,24 +9555,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_ShaderInfo_finalize) static bool js_gfx_ShaderInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::ShaderInfo* cobj = JSB_ALLOC(cc::gfx::ShaderInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::ShaderInfo* cobj = JSB_ALLOC(cc::gfx::ShaderInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -9384,7 +9617,7 @@ static bool js_gfx_ShaderInfo_constructor(se::State& s) // NOLINT(readability-id ok &= sevalue_to_native(args[9], &(cobj->subpassInputs), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -9396,10 +9629,13 @@ static bool js_gfx_ShaderInfo_constructor(se::State& s) // NOLINT(readability-id } SE_BIND_CTOR(js_gfx_ShaderInfo_constructor, __jsb_cc_gfx_ShaderInfo_class, js_cc_gfx_ShaderInfo_finalize) + + static bool js_cc_gfx_ShaderInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -9433,7 +9669,7 @@ bool js_register_gfx_ShaderInfo(se::Object* obj) // NOLINT(readability-identifie return true; } se::Object* __jsb_cc_gfx_InputAssemblerInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_InputAssemblerInfo_class = nullptr; +se::Class* __jsb_cc_gfx_InputAssemblerInfo_class = nullptr; static bool js_gfx_InputAssemblerInfo_get_attributes(se::State& s) // NOLINT(readability-identifier-naming) { @@ -9441,7 +9677,7 @@ static bool js_gfx_InputAssemblerInfo_get_attributes(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_gfx_InputAssemblerInfo_get_attributes : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->attributes, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->attributes, s.thisObject(), s.rval()); @@ -9452,7 +9688,7 @@ SE_BIND_PROP_GET(js_gfx_InputAssemblerInfo_get_attributes) static bool js_gfx_InputAssemblerInfo_set_attributes(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssemblerInfo_set_attributes : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9468,7 +9704,7 @@ static bool js_gfx_InputAssemblerInfo_get_vertexBuffers(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_gfx_InputAssemblerInfo_get_vertexBuffers : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->vertexBuffers, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->vertexBuffers, s.thisObject(), s.rval()); @@ -9479,7 +9715,7 @@ SE_BIND_PROP_GET(js_gfx_InputAssemblerInfo_get_vertexBuffers) static bool js_gfx_InputAssemblerInfo_set_vertexBuffers(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssemblerInfo_set_vertexBuffers : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9495,7 +9731,7 @@ static bool js_gfx_InputAssemblerInfo_get_indexBuffer(se::State& s) // NOLINT(re SE_PRECONDITION2(cobj, false, "js_gfx_InputAssemblerInfo_get_indexBuffer : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->indexBuffer, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->indexBuffer, s.thisObject(), s.rval()); @@ -9506,7 +9742,7 @@ SE_BIND_PROP_GET(js_gfx_InputAssemblerInfo_get_indexBuffer) static bool js_gfx_InputAssemblerInfo_set_indexBuffer(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssemblerInfo_set_indexBuffer : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9522,7 +9758,7 @@ static bool js_gfx_InputAssemblerInfo_get_indirectBuffer(se::State& s) // NOLINT SE_PRECONDITION2(cobj, false, "js_gfx_InputAssemblerInfo_get_indirectBuffer : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->indirectBuffer, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->indirectBuffer, s.thisObject(), s.rval()); @@ -9533,7 +9769,7 @@ SE_BIND_PROP_GET(js_gfx_InputAssemblerInfo_get_indirectBuffer) static bool js_gfx_InputAssemblerInfo_set_indirectBuffer(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssemblerInfo_set_indirectBuffer : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9543,31 +9779,33 @@ static bool js_gfx_InputAssemblerInfo_set_indirectBuffer(se::State& s) // NOLINT } SE_BIND_PROP_SET(js_gfx_InputAssemblerInfo_set_indirectBuffer) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::InputAssemblerInfo* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::InputAssemblerInfo * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("attributes", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->attributes), ctx); } json->getProperty("vertexBuffers", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->vertexBuffers), ctx); } json->getProperty("indexBuffer", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->indexBuffer), ctx); } json->getProperty("indirectBuffer", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->indirectBuffer), ctx); } return ok; @@ -9577,24 +9815,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_InputAssemblerInfo_finalize) static bool js_gfx_InputAssemblerInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::InputAssemblerInfo* cobj = JSB_ALLOC(cc::gfx::InputAssemblerInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::InputAssemblerInfo* cobj = JSB_ALLOC(cc::gfx::InputAssemblerInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -9619,7 +9859,7 @@ static bool js_gfx_InputAssemblerInfo_constructor(se::State& s) // NOLINT(readab ok &= sevalue_to_native(args[3], &(cobj->indirectBuffer), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -9631,10 +9871,13 @@ static bool js_gfx_InputAssemblerInfo_constructor(se::State& s) // NOLINT(readab } SE_BIND_CTOR(js_gfx_InputAssemblerInfo_constructor, __jsb_cc_gfx_InputAssemblerInfo_class, js_cc_gfx_InputAssemblerInfo_finalize) + + static bool js_cc_gfx_InputAssemblerInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -9662,7 +9905,7 @@ bool js_register_gfx_InputAssemblerInfo(se::Object* obj) // NOLINT(readability-i return true; } se::Object* __jsb_cc_gfx_ColorAttachment_proto = nullptr; -se::Class* __jsb_cc_gfx_ColorAttachment_class = nullptr; +se::Class* __jsb_cc_gfx_ColorAttachment_class = nullptr; static bool js_gfx_ColorAttachment_get_format(se::State& s) // NOLINT(readability-identifier-naming) { @@ -9670,7 +9913,7 @@ static bool js_gfx_ColorAttachment_get_format(se::State& s) // NOLINT(readabilit SE_PRECONDITION2(cobj, false, "js_gfx_ColorAttachment_get_format : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->format, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->format, s.thisObject(), s.rval()); @@ -9681,7 +9924,7 @@ SE_BIND_PROP_GET(js_gfx_ColorAttachment_get_format) static bool js_gfx_ColorAttachment_set_format(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_ColorAttachment_set_format : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9697,7 +9940,7 @@ static bool js_gfx_ColorAttachment_get_sampleCount(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_ColorAttachment_get_sampleCount : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->sampleCount, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->sampleCount, s.thisObject(), s.rval()); @@ -9708,7 +9951,7 @@ SE_BIND_PROP_GET(js_gfx_ColorAttachment_get_sampleCount) static bool js_gfx_ColorAttachment_set_sampleCount(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_ColorAttachment_set_sampleCount : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9724,7 +9967,7 @@ static bool js_gfx_ColorAttachment_get_loadOp(se::State& s) // NOLINT(readabilit SE_PRECONDITION2(cobj, false, "js_gfx_ColorAttachment_get_loadOp : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->loadOp, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->loadOp, s.thisObject(), s.rval()); @@ -9735,7 +9978,7 @@ SE_BIND_PROP_GET(js_gfx_ColorAttachment_get_loadOp) static bool js_gfx_ColorAttachment_set_loadOp(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_ColorAttachment_set_loadOp : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9751,7 +9994,7 @@ static bool js_gfx_ColorAttachment_get_storeOp(se::State& s) // NOLINT(readabili SE_PRECONDITION2(cobj, false, "js_gfx_ColorAttachment_get_storeOp : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->storeOp, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->storeOp, s.thisObject(), s.rval()); @@ -9762,7 +10005,7 @@ SE_BIND_PROP_GET(js_gfx_ColorAttachment_get_storeOp) static bool js_gfx_ColorAttachment_set_storeOp(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_ColorAttachment_set_storeOp : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9778,7 +10021,7 @@ static bool js_gfx_ColorAttachment_get_beginAccesses(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_gfx_ColorAttachment_get_beginAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->beginAccesses, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->beginAccesses, s.thisObject(), s.rval()); @@ -9789,7 +10032,7 @@ SE_BIND_PROP_GET(js_gfx_ColorAttachment_get_beginAccesses) static bool js_gfx_ColorAttachment_set_beginAccesses(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_ColorAttachment_set_beginAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9805,7 +10048,7 @@ static bool js_gfx_ColorAttachment_get_endAccesses(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_ColorAttachment_get_endAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->endAccesses, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->endAccesses, s.thisObject(), s.rval()); @@ -9816,7 +10059,7 @@ SE_BIND_PROP_GET(js_gfx_ColorAttachment_get_endAccesses) static bool js_gfx_ColorAttachment_set_endAccesses(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_ColorAttachment_set_endAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9832,7 +10075,7 @@ static bool js_gfx_ColorAttachment_get_isGeneralLayout(se::State& s) // NOLINT(r SE_PRECONDITION2(cobj, false, "js_gfx_ColorAttachment_get_isGeneralLayout : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->isGeneralLayout, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->isGeneralLayout, s.thisObject(), s.rval()); @@ -9843,7 +10086,7 @@ SE_BIND_PROP_GET(js_gfx_ColorAttachment_get_isGeneralLayout) static bool js_gfx_ColorAttachment_set_isGeneralLayout(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_ColorAttachment_set_isGeneralLayout : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9853,43 +10096,45 @@ static bool js_gfx_ColorAttachment_set_isGeneralLayout(se::State& s) // NOLINT(r } SE_BIND_PROP_SET(js_gfx_ColorAttachment_set_isGeneralLayout) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::ColorAttachment* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::ColorAttachment * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("format", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->format), ctx); } json->getProperty("sampleCount", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->sampleCount), ctx); } json->getProperty("loadOp", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->loadOp), ctx); } json->getProperty("storeOp", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->storeOp), ctx); } json->getProperty("beginAccesses", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->beginAccesses), ctx); } json->getProperty("endAccesses", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->endAccesses), ctx); } json->getProperty("isGeneralLayout", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->isGeneralLayout), ctx); } return ok; @@ -9899,24 +10144,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_ColorAttachment_finalize) static bool js_gfx_ColorAttachment_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::ColorAttachment* cobj = JSB_ALLOC(cc::gfx::ColorAttachment); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::ColorAttachment* cobj = JSB_ALLOC(cc::gfx::ColorAttachment); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -9950,7 +10197,7 @@ static bool js_gfx_ColorAttachment_constructor(se::State& s) // NOLINT(readabili ok &= sevalue_to_native(args[6], &(cobj->isGeneralLayout), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -9962,10 +10209,13 @@ static bool js_gfx_ColorAttachment_constructor(se::State& s) // NOLINT(readabili } SE_BIND_CTOR(js_gfx_ColorAttachment_constructor, __jsb_cc_gfx_ColorAttachment_class, js_cc_gfx_ColorAttachment_finalize) + + static bool js_cc_gfx_ColorAttachment_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -9996,7 +10246,7 @@ bool js_register_gfx_ColorAttachment(se::Object* obj) // NOLINT(readability-iden return true; } se::Object* __jsb_cc_gfx_DepthStencilAttachment_proto = nullptr; -se::Class* __jsb_cc_gfx_DepthStencilAttachment_class = nullptr; +se::Class* __jsb_cc_gfx_DepthStencilAttachment_class = nullptr; static bool js_gfx_DepthStencilAttachment_get_format(se::State& s) // NOLINT(readability-identifier-naming) { @@ -10004,7 +10254,7 @@ static bool js_gfx_DepthStencilAttachment_get_format(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilAttachment_get_format : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->format, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->format, s.thisObject(), s.rval()); @@ -10015,7 +10265,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilAttachment_get_format) static bool js_gfx_DepthStencilAttachment_set_format(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilAttachment_set_format : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10031,7 +10281,7 @@ static bool js_gfx_DepthStencilAttachment_get_sampleCount(se::State& s) // NOLIN SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilAttachment_get_sampleCount : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->sampleCount, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->sampleCount, s.thisObject(), s.rval()); @@ -10042,7 +10292,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilAttachment_get_sampleCount) static bool js_gfx_DepthStencilAttachment_set_sampleCount(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilAttachment_set_sampleCount : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10058,7 +10308,7 @@ static bool js_gfx_DepthStencilAttachment_get_depthLoadOp(se::State& s) // NOLIN SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilAttachment_get_depthLoadOp : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->depthLoadOp, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->depthLoadOp, s.thisObject(), s.rval()); @@ -10069,7 +10319,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilAttachment_get_depthLoadOp) static bool js_gfx_DepthStencilAttachment_set_depthLoadOp(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilAttachment_set_depthLoadOp : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10085,7 +10335,7 @@ static bool js_gfx_DepthStencilAttachment_get_depthStoreOp(se::State& s) // NOLI SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilAttachment_get_depthStoreOp : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->depthStoreOp, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->depthStoreOp, s.thisObject(), s.rval()); @@ -10096,7 +10346,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilAttachment_get_depthStoreOp) static bool js_gfx_DepthStencilAttachment_set_depthStoreOp(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilAttachment_set_depthStoreOp : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10112,7 +10362,7 @@ static bool js_gfx_DepthStencilAttachment_get_stencilLoadOp(se::State& s) // NOL SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilAttachment_get_stencilLoadOp : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stencilLoadOp, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stencilLoadOp, s.thisObject(), s.rval()); @@ -10123,7 +10373,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilAttachment_get_stencilLoadOp) static bool js_gfx_DepthStencilAttachment_set_stencilLoadOp(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilAttachment_set_stencilLoadOp : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10139,7 +10389,7 @@ static bool js_gfx_DepthStencilAttachment_get_stencilStoreOp(se::State& s) // NO SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilAttachment_get_stencilStoreOp : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stencilStoreOp, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stencilStoreOp, s.thisObject(), s.rval()); @@ -10150,7 +10400,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilAttachment_get_stencilStoreOp) static bool js_gfx_DepthStencilAttachment_set_stencilStoreOp(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilAttachment_set_stencilStoreOp : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10166,7 +10416,7 @@ static bool js_gfx_DepthStencilAttachment_get_beginAccesses(se::State& s) // NOL SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilAttachment_get_beginAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->beginAccesses, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->beginAccesses, s.thisObject(), s.rval()); @@ -10177,7 +10427,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilAttachment_get_beginAccesses) static bool js_gfx_DepthStencilAttachment_set_beginAccesses(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilAttachment_set_beginAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10193,7 +10443,7 @@ static bool js_gfx_DepthStencilAttachment_get_endAccesses(se::State& s) // NOLIN SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilAttachment_get_endAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->endAccesses, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->endAccesses, s.thisObject(), s.rval()); @@ -10204,7 +10454,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilAttachment_get_endAccesses) static bool js_gfx_DepthStencilAttachment_set_endAccesses(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilAttachment_set_endAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10220,7 +10470,7 @@ static bool js_gfx_DepthStencilAttachment_get_isGeneralLayout(se::State& s) // N SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilAttachment_get_isGeneralLayout : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->isGeneralLayout, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->isGeneralLayout, s.thisObject(), s.rval()); @@ -10231,7 +10481,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilAttachment_get_isGeneralLayout) static bool js_gfx_DepthStencilAttachment_set_isGeneralLayout(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilAttachment_set_isGeneralLayout : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10241,51 +10491,53 @@ static bool js_gfx_DepthStencilAttachment_set_isGeneralLayout(se::State& s) // N } SE_BIND_PROP_SET(js_gfx_DepthStencilAttachment_set_isGeneralLayout) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::DepthStencilAttachment* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::DepthStencilAttachment * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("format", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->format), ctx); } json->getProperty("sampleCount", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->sampleCount), ctx); } json->getProperty("depthLoadOp", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->depthLoadOp), ctx); } json->getProperty("depthStoreOp", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->depthStoreOp), ctx); } json->getProperty("stencilLoadOp", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stencilLoadOp), ctx); } json->getProperty("stencilStoreOp", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stencilStoreOp), ctx); } json->getProperty("beginAccesses", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->beginAccesses), ctx); } json->getProperty("endAccesses", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->endAccesses), ctx); } json->getProperty("isGeneralLayout", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->isGeneralLayout), ctx); } return ok; @@ -10295,24 +10547,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_DepthStencilAttachment_finalize) static bool js_gfx_DepthStencilAttachment_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::DepthStencilAttachment* cobj = JSB_ALLOC(cc::gfx::DepthStencilAttachment); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::DepthStencilAttachment* cobj = JSB_ALLOC(cc::gfx::DepthStencilAttachment); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -10352,7 +10606,7 @@ static bool js_gfx_DepthStencilAttachment_constructor(se::State& s) // NOLINT(re ok &= sevalue_to_native(args[8], &(cobj->isGeneralLayout), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -10364,10 +10618,13 @@ static bool js_gfx_DepthStencilAttachment_constructor(se::State& s) // NOLINT(re } SE_BIND_CTOR(js_gfx_DepthStencilAttachment_constructor, __jsb_cc_gfx_DepthStencilAttachment_class, js_cc_gfx_DepthStencilAttachment_finalize) + + static bool js_cc_gfx_DepthStencilAttachment_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -10400,7 +10657,7 @@ bool js_register_gfx_DepthStencilAttachment(se::Object* obj) // NOLINT(readabili return true; } se::Object* __jsb_cc_gfx_SubpassInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_SubpassInfo_class = nullptr; +se::Class* __jsb_cc_gfx_SubpassInfo_class = nullptr; static bool js_gfx_SubpassInfo_get_inputs(se::State& s) // NOLINT(readability-identifier-naming) { @@ -10408,7 +10665,7 @@ static bool js_gfx_SubpassInfo_get_inputs(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_gfx_SubpassInfo_get_inputs : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->inputs, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->inputs, s.thisObject(), s.rval()); @@ -10419,7 +10676,7 @@ SE_BIND_PROP_GET(js_gfx_SubpassInfo_get_inputs) static bool js_gfx_SubpassInfo_set_inputs(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SubpassInfo_set_inputs : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10435,7 +10692,7 @@ static bool js_gfx_SubpassInfo_get_colors(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_gfx_SubpassInfo_get_colors : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->colors, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->colors, s.thisObject(), s.rval()); @@ -10446,7 +10703,7 @@ SE_BIND_PROP_GET(js_gfx_SubpassInfo_get_colors) static bool js_gfx_SubpassInfo_set_colors(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SubpassInfo_set_colors : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10462,7 +10719,7 @@ static bool js_gfx_SubpassInfo_get_resolves(se::State& s) // NOLINT(readability- SE_PRECONDITION2(cobj, false, "js_gfx_SubpassInfo_get_resolves : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->resolves, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->resolves, s.thisObject(), s.rval()); @@ -10473,7 +10730,7 @@ SE_BIND_PROP_GET(js_gfx_SubpassInfo_get_resolves) static bool js_gfx_SubpassInfo_set_resolves(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SubpassInfo_set_resolves : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10489,7 +10746,7 @@ static bool js_gfx_SubpassInfo_get_preserves(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_SubpassInfo_get_preserves : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->preserves, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->preserves, s.thisObject(), s.rval()); @@ -10500,7 +10757,7 @@ SE_BIND_PROP_GET(js_gfx_SubpassInfo_get_preserves) static bool js_gfx_SubpassInfo_set_preserves(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SubpassInfo_set_preserves : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10516,7 +10773,7 @@ static bool js_gfx_SubpassInfo_get_depthStencil(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_gfx_SubpassInfo_get_depthStencil : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->depthStencil, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->depthStencil, s.thisObject(), s.rval()); @@ -10527,7 +10784,7 @@ SE_BIND_PROP_GET(js_gfx_SubpassInfo_get_depthStencil) static bool js_gfx_SubpassInfo_set_depthStencil(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SubpassInfo_set_depthStencil : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10543,7 +10800,7 @@ static bool js_gfx_SubpassInfo_get_depthStencilResolve(se::State& s) // NOLINT(r SE_PRECONDITION2(cobj, false, "js_gfx_SubpassInfo_get_depthStencilResolve : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->depthStencilResolve, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->depthStencilResolve, s.thisObject(), s.rval()); @@ -10554,7 +10811,7 @@ SE_BIND_PROP_GET(js_gfx_SubpassInfo_get_depthStencilResolve) static bool js_gfx_SubpassInfo_set_depthStencilResolve(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SubpassInfo_set_depthStencilResolve : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10570,7 +10827,7 @@ static bool js_gfx_SubpassInfo_get_depthResolveMode(se::State& s) // NOLINT(read SE_PRECONDITION2(cobj, false, "js_gfx_SubpassInfo_get_depthResolveMode : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->depthResolveMode, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->depthResolveMode, s.thisObject(), s.rval()); @@ -10581,7 +10838,7 @@ SE_BIND_PROP_GET(js_gfx_SubpassInfo_get_depthResolveMode) static bool js_gfx_SubpassInfo_set_depthResolveMode(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SubpassInfo_set_depthResolveMode : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10597,7 +10854,7 @@ static bool js_gfx_SubpassInfo_get_stencilResolveMode(se::State& s) // NOLINT(re SE_PRECONDITION2(cobj, false, "js_gfx_SubpassInfo_get_stencilResolveMode : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stencilResolveMode, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stencilResolveMode, s.thisObject(), s.rval()); @@ -10608,7 +10865,7 @@ SE_BIND_PROP_GET(js_gfx_SubpassInfo_get_stencilResolveMode) static bool js_gfx_SubpassInfo_set_stencilResolveMode(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SubpassInfo_set_stencilResolveMode : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10618,47 +10875,49 @@ static bool js_gfx_SubpassInfo_set_stencilResolveMode(se::State& s) // NOLINT(re } SE_BIND_PROP_SET(js_gfx_SubpassInfo_set_stencilResolveMode) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::SubpassInfo* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::SubpassInfo * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("inputs", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->inputs), ctx); } json->getProperty("colors", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->colors), ctx); } json->getProperty("resolves", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->resolves), ctx); } json->getProperty("preserves", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->preserves), ctx); } json->getProperty("depthStencil", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->depthStencil), ctx); } json->getProperty("depthStencilResolve", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->depthStencilResolve), ctx); } json->getProperty("depthResolveMode", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->depthResolveMode), ctx); } json->getProperty("stencilResolveMode", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stencilResolveMode), ctx); } return ok; @@ -10668,24 +10927,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_SubpassInfo_finalize) static bool js_gfx_SubpassInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::SubpassInfo* cobj = JSB_ALLOC(cc::gfx::SubpassInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::SubpassInfo* cobj = JSB_ALLOC(cc::gfx::SubpassInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -10722,7 +10983,7 @@ static bool js_gfx_SubpassInfo_constructor(se::State& s) // NOLINT(readability-i ok &= sevalue_to_native(args[7], &(cobj->stencilResolveMode), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -10734,10 +10995,13 @@ static bool js_gfx_SubpassInfo_constructor(se::State& s) // NOLINT(readability-i } SE_BIND_CTOR(js_gfx_SubpassInfo_constructor, __jsb_cc_gfx_SubpassInfo_class, js_cc_gfx_SubpassInfo_finalize) + + static bool js_cc_gfx_SubpassInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -10769,7 +11033,7 @@ bool js_register_gfx_SubpassInfo(se::Object* obj) // NOLINT(readability-identifi return true; } se::Object* __jsb_cc_gfx_SubpassDependency_proto = nullptr; -se::Class* __jsb_cc_gfx_SubpassDependency_class = nullptr; +se::Class* __jsb_cc_gfx_SubpassDependency_class = nullptr; static bool js_gfx_SubpassDependency_get_srcSubpass(se::State& s) // NOLINT(readability-identifier-naming) { @@ -10777,7 +11041,7 @@ static bool js_gfx_SubpassDependency_get_srcSubpass(se::State& s) // NOLINT(read SE_PRECONDITION2(cobj, false, "js_gfx_SubpassDependency_get_srcSubpass : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->srcSubpass, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->srcSubpass, s.thisObject(), s.rval()); @@ -10788,7 +11052,7 @@ SE_BIND_PROP_GET(js_gfx_SubpassDependency_get_srcSubpass) static bool js_gfx_SubpassDependency_set_srcSubpass(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SubpassDependency_set_srcSubpass : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10804,7 +11068,7 @@ static bool js_gfx_SubpassDependency_get_dstSubpass(se::State& s) // NOLINT(read SE_PRECONDITION2(cobj, false, "js_gfx_SubpassDependency_get_dstSubpass : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->dstSubpass, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->dstSubpass, s.thisObject(), s.rval()); @@ -10815,7 +11079,7 @@ SE_BIND_PROP_GET(js_gfx_SubpassDependency_get_dstSubpass) static bool js_gfx_SubpassDependency_set_dstSubpass(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SubpassDependency_set_dstSubpass : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10831,7 +11095,7 @@ static bool js_gfx_SubpassDependency_get_srcAccesses(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_gfx_SubpassDependency_get_srcAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->srcAccesses, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->srcAccesses, s.thisObject(), s.rval()); @@ -10842,7 +11106,7 @@ SE_BIND_PROP_GET(js_gfx_SubpassDependency_get_srcAccesses) static bool js_gfx_SubpassDependency_set_srcAccesses(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SubpassDependency_set_srcAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10858,7 +11122,7 @@ static bool js_gfx_SubpassDependency_get_dstAccesses(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_gfx_SubpassDependency_get_dstAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->dstAccesses, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->dstAccesses, s.thisObject(), s.rval()); @@ -10869,7 +11133,7 @@ SE_BIND_PROP_GET(js_gfx_SubpassDependency_get_dstAccesses) static bool js_gfx_SubpassDependency_set_dstAccesses(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SubpassDependency_set_dstAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10879,31 +11143,33 @@ static bool js_gfx_SubpassDependency_set_dstAccesses(se::State& s) // NOLINT(rea } SE_BIND_PROP_SET(js_gfx_SubpassDependency_set_dstAccesses) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::SubpassDependency* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::SubpassDependency * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("srcSubpass", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->srcSubpass), ctx); } json->getProperty("dstSubpass", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->dstSubpass), ctx); } json->getProperty("srcAccesses", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->srcAccesses), ctx); } json->getProperty("dstAccesses", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->dstAccesses), ctx); } return ok; @@ -10913,24 +11179,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_SubpassDependency_finalize) static bool js_gfx_SubpassDependency_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::SubpassDependency* cobj = JSB_ALLOC(cc::gfx::SubpassDependency); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::SubpassDependency* cobj = JSB_ALLOC(cc::gfx::SubpassDependency); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -10955,7 +11223,7 @@ static bool js_gfx_SubpassDependency_constructor(se::State& s) // NOLINT(readabi ok &= sevalue_to_native(args[3], &(cobj->dstAccesses), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -10967,10 +11235,13 @@ static bool js_gfx_SubpassDependency_constructor(se::State& s) // NOLINT(readabi } SE_BIND_CTOR(js_gfx_SubpassDependency_constructor, __jsb_cc_gfx_SubpassDependency_class, js_cc_gfx_SubpassDependency_finalize) + + static bool js_cc_gfx_SubpassDependency_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -10998,7 +11269,7 @@ bool js_register_gfx_SubpassDependency(se::Object* obj) // NOLINT(readability-id return true; } se::Object* __jsb_cc_gfx_RenderPassInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_RenderPassInfo_class = nullptr; +se::Class* __jsb_cc_gfx_RenderPassInfo_class = nullptr; static bool js_gfx_RenderPassInfo_get_colorAttachments(se::State& s) // NOLINT(readability-identifier-naming) { @@ -11006,7 +11277,7 @@ static bool js_gfx_RenderPassInfo_get_colorAttachments(se::State& s) // NOLINT(r SE_PRECONDITION2(cobj, false, "js_gfx_RenderPassInfo_get_colorAttachments : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->colorAttachments, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->colorAttachments, s.thisObject(), s.rval()); @@ -11017,7 +11288,7 @@ SE_BIND_PROP_GET(js_gfx_RenderPassInfo_get_colorAttachments) static bool js_gfx_RenderPassInfo_set_colorAttachments(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RenderPassInfo_set_colorAttachments : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -11033,7 +11304,7 @@ static bool js_gfx_RenderPassInfo_get_depthStencilAttachment(se::State& s) // NO SE_PRECONDITION2(cobj, false, "js_gfx_RenderPassInfo_get_depthStencilAttachment : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->depthStencilAttachment, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->depthStencilAttachment, s.thisObject(), s.rval()); @@ -11044,7 +11315,7 @@ SE_BIND_PROP_GET(js_gfx_RenderPassInfo_get_depthStencilAttachment) static bool js_gfx_RenderPassInfo_set_depthStencilAttachment(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RenderPassInfo_set_depthStencilAttachment : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -11060,7 +11331,7 @@ static bool js_gfx_RenderPassInfo_get_subpasses(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_gfx_RenderPassInfo_get_subpasses : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->subpasses, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->subpasses, s.thisObject(), s.rval()); @@ -11071,7 +11342,7 @@ SE_BIND_PROP_GET(js_gfx_RenderPassInfo_get_subpasses) static bool js_gfx_RenderPassInfo_set_subpasses(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RenderPassInfo_set_subpasses : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -11087,7 +11358,7 @@ static bool js_gfx_RenderPassInfo_get_dependencies(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_RenderPassInfo_get_dependencies : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->dependencies, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->dependencies, s.thisObject(), s.rval()); @@ -11098,7 +11369,7 @@ SE_BIND_PROP_GET(js_gfx_RenderPassInfo_get_dependencies) static bool js_gfx_RenderPassInfo_set_dependencies(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RenderPassInfo_set_dependencies : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -11108,31 +11379,33 @@ static bool js_gfx_RenderPassInfo_set_dependencies(se::State& s) // NOLINT(reada } SE_BIND_PROP_SET(js_gfx_RenderPassInfo_set_dependencies) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::RenderPassInfo* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::RenderPassInfo * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("colorAttachments", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->colorAttachments), ctx); } json->getProperty("depthStencilAttachment", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->depthStencilAttachment), ctx); } json->getProperty("subpasses", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->subpasses), ctx); } json->getProperty("dependencies", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->dependencies), ctx); } return ok; @@ -11142,24 +11415,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_RenderPassInfo_finalize) static bool js_gfx_RenderPassInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::RenderPassInfo* cobj = JSB_ALLOC(cc::gfx::RenderPassInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::RenderPassInfo* cobj = JSB_ALLOC(cc::gfx::RenderPassInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -11184,7 +11459,7 @@ static bool js_gfx_RenderPassInfo_constructor(se::State& s) // NOLINT(readabilit ok &= sevalue_to_native(args[3], &(cobj->dependencies), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -11196,10 +11471,13 @@ static bool js_gfx_RenderPassInfo_constructor(se::State& s) // NOLINT(readabilit } SE_BIND_CTOR(js_gfx_RenderPassInfo_constructor, __jsb_cc_gfx_RenderPassInfo_class, js_cc_gfx_RenderPassInfo_finalize) + + static bool js_cc_gfx_RenderPassInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -11227,7 +11505,7 @@ bool js_register_gfx_RenderPassInfo(se::Object* obj) // NOLINT(readability-ident return true; } se::Object* __jsb_cc_gfx_GlobalBarrierInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_GlobalBarrierInfo_class = nullptr; +se::Class* __jsb_cc_gfx_GlobalBarrierInfo_class = nullptr; static bool js_gfx_GlobalBarrierInfo_get_prevAccesses(se::State& s) // NOLINT(readability-identifier-naming) { @@ -11235,7 +11513,7 @@ static bool js_gfx_GlobalBarrierInfo_get_prevAccesses(se::State& s) // NOLINT(re SE_PRECONDITION2(cobj, false, "js_gfx_GlobalBarrierInfo_get_prevAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->prevAccesses, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->prevAccesses, s.thisObject(), s.rval()); @@ -11246,7 +11524,7 @@ SE_BIND_PROP_GET(js_gfx_GlobalBarrierInfo_get_prevAccesses) static bool js_gfx_GlobalBarrierInfo_set_prevAccesses(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_GlobalBarrierInfo_set_prevAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -11262,7 +11540,7 @@ static bool js_gfx_GlobalBarrierInfo_get_nextAccesses(se::State& s) // NOLINT(re SE_PRECONDITION2(cobj, false, "js_gfx_GlobalBarrierInfo_get_nextAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->nextAccesses, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->nextAccesses, s.thisObject(), s.rval()); @@ -11273,7 +11551,7 @@ SE_BIND_PROP_GET(js_gfx_GlobalBarrierInfo_get_nextAccesses) static bool js_gfx_GlobalBarrierInfo_set_nextAccesses(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_GlobalBarrierInfo_set_nextAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -11283,23 +11561,25 @@ static bool js_gfx_GlobalBarrierInfo_set_nextAccesses(se::State& s) // NOLINT(re } SE_BIND_PROP_SET(js_gfx_GlobalBarrierInfo_set_nextAccesses) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::GlobalBarrierInfo* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::GlobalBarrierInfo * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("prevAccesses", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->prevAccesses), ctx); } json->getProperty("nextAccesses", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->nextAccesses), ctx); } return ok; @@ -11309,24 +11589,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_GlobalBarrierInfo_finalize) static bool js_gfx_GlobalBarrierInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::GlobalBarrierInfo* cobj = JSB_ALLOC(cc::gfx::GlobalBarrierInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::GlobalBarrierInfo* cobj = JSB_ALLOC(cc::gfx::GlobalBarrierInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -11345,7 +11627,7 @@ static bool js_gfx_GlobalBarrierInfo_constructor(se::State& s) // NOLINT(readabi ok &= sevalue_to_native(args[1], &(cobj->nextAccesses), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -11357,10 +11639,13 @@ static bool js_gfx_GlobalBarrierInfo_constructor(se::State& s) // NOLINT(readabi } SE_BIND_CTOR(js_gfx_GlobalBarrierInfo_constructor, __jsb_cc_gfx_GlobalBarrierInfo_class, js_cc_gfx_GlobalBarrierInfo_finalize) + + static bool js_cc_gfx_GlobalBarrierInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -11386,7 +11671,7 @@ bool js_register_gfx_GlobalBarrierInfo(se::Object* obj) // NOLINT(readability-id return true; } se::Object* __jsb_cc_gfx_TextureBarrierInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_TextureBarrierInfo_class = nullptr; +se::Class* __jsb_cc_gfx_TextureBarrierInfo_class = nullptr; static bool js_gfx_TextureBarrierInfo_get_prevAccesses(se::State& s) // NOLINT(readability-identifier-naming) { @@ -11394,7 +11679,7 @@ static bool js_gfx_TextureBarrierInfo_get_prevAccesses(se::State& s) // NOLINT(r SE_PRECONDITION2(cobj, false, "js_gfx_TextureBarrierInfo_get_prevAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->prevAccesses, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->prevAccesses, s.thisObject(), s.rval()); @@ -11405,7 +11690,7 @@ SE_BIND_PROP_GET(js_gfx_TextureBarrierInfo_get_prevAccesses) static bool js_gfx_TextureBarrierInfo_set_prevAccesses(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureBarrierInfo_set_prevAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -11421,7 +11706,7 @@ static bool js_gfx_TextureBarrierInfo_get_nextAccesses(se::State& s) // NOLINT(r SE_PRECONDITION2(cobj, false, "js_gfx_TextureBarrierInfo_get_nextAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->nextAccesses, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->nextAccesses, s.thisObject(), s.rval()); @@ -11432,7 +11717,7 @@ SE_BIND_PROP_GET(js_gfx_TextureBarrierInfo_get_nextAccesses) static bool js_gfx_TextureBarrierInfo_set_nextAccesses(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureBarrierInfo_set_nextAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -11448,7 +11733,7 @@ static bool js_gfx_TextureBarrierInfo_get_discardContents(se::State& s) // NOLIN SE_PRECONDITION2(cobj, false, "js_gfx_TextureBarrierInfo_get_discardContents : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->discardContents, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->discardContents, s.thisObject(), s.rval()); @@ -11459,7 +11744,7 @@ SE_BIND_PROP_GET(js_gfx_TextureBarrierInfo_get_discardContents) static bool js_gfx_TextureBarrierInfo_set_discardContents(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureBarrierInfo_set_discardContents : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -11475,7 +11760,7 @@ static bool js_gfx_TextureBarrierInfo_get_srcQueue(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_TextureBarrierInfo_get_srcQueue : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->srcQueue, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->srcQueue, s.thisObject(), s.rval()); @@ -11486,7 +11771,7 @@ SE_BIND_PROP_GET(js_gfx_TextureBarrierInfo_get_srcQueue) static bool js_gfx_TextureBarrierInfo_set_srcQueue(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureBarrierInfo_set_srcQueue : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -11502,7 +11787,7 @@ static bool js_gfx_TextureBarrierInfo_get_dstQueue(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_TextureBarrierInfo_get_dstQueue : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->dstQueue, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->dstQueue, s.thisObject(), s.rval()); @@ -11513,7 +11798,7 @@ SE_BIND_PROP_GET(js_gfx_TextureBarrierInfo_get_dstQueue) static bool js_gfx_TextureBarrierInfo_set_dstQueue(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureBarrierInfo_set_dstQueue : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -11523,35 +11808,37 @@ static bool js_gfx_TextureBarrierInfo_set_dstQueue(se::State& s) // NOLINT(reada } SE_BIND_PROP_SET(js_gfx_TextureBarrierInfo_set_dstQueue) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::TextureBarrierInfo* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::TextureBarrierInfo * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("prevAccesses", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->prevAccesses), ctx); } json->getProperty("nextAccesses", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->nextAccesses), ctx); } json->getProperty("discardContents", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->discardContents), ctx); } json->getProperty("srcQueue", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->srcQueue), ctx); } json->getProperty("dstQueue", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->dstQueue), ctx); } return ok; @@ -11561,24 +11848,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_TextureBarrierInfo_finalize) static bool js_gfx_TextureBarrierInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::TextureBarrierInfo* cobj = JSB_ALLOC(cc::gfx::TextureBarrierInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::TextureBarrierInfo* cobj = JSB_ALLOC(cc::gfx::TextureBarrierInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -11606,7 +11895,7 @@ static bool js_gfx_TextureBarrierInfo_constructor(se::State& s) // NOLINT(readab ok &= sevalue_to_native(args[4], &(cobj->dstQueue), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -11618,10 +11907,13 @@ static bool js_gfx_TextureBarrierInfo_constructor(se::State& s) // NOLINT(readab } SE_BIND_CTOR(js_gfx_TextureBarrierInfo_constructor, __jsb_cc_gfx_TextureBarrierInfo_class, js_cc_gfx_TextureBarrierInfo_finalize) + + static bool js_cc_gfx_TextureBarrierInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -11650,7 +11942,7 @@ bool js_register_gfx_TextureBarrierInfo(se::Object* obj) // NOLINT(readability-i return true; } se::Object* __jsb_cc_gfx_FramebufferInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_FramebufferInfo_class = nullptr; +se::Class* __jsb_cc_gfx_FramebufferInfo_class = nullptr; static bool js_gfx_FramebufferInfo_get_renderPass(se::State& s) // NOLINT(readability-identifier-naming) { @@ -11658,7 +11950,7 @@ static bool js_gfx_FramebufferInfo_get_renderPass(se::State& s) // NOLINT(readab SE_PRECONDITION2(cobj, false, "js_gfx_FramebufferInfo_get_renderPass : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->renderPass, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->renderPass, s.thisObject(), s.rval()); @@ -11669,7 +11961,7 @@ SE_BIND_PROP_GET(js_gfx_FramebufferInfo_get_renderPass) static bool js_gfx_FramebufferInfo_set_renderPass(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_FramebufferInfo_set_renderPass : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -11685,7 +11977,7 @@ static bool js_gfx_FramebufferInfo_get_colorTextures(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_gfx_FramebufferInfo_get_colorTextures : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->colorTextures, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->colorTextures, s.thisObject(), s.rval()); @@ -11696,7 +11988,7 @@ SE_BIND_PROP_GET(js_gfx_FramebufferInfo_get_colorTextures) static bool js_gfx_FramebufferInfo_set_colorTextures(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_FramebufferInfo_set_colorTextures : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -11712,7 +12004,7 @@ static bool js_gfx_FramebufferInfo_get_depthStencilTexture(se::State& s) // NOLI SE_PRECONDITION2(cobj, false, "js_gfx_FramebufferInfo_get_depthStencilTexture : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->depthStencilTexture, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->depthStencilTexture, s.thisObject(), s.rval()); @@ -11723,7 +12015,7 @@ SE_BIND_PROP_GET(js_gfx_FramebufferInfo_get_depthStencilTexture) static bool js_gfx_FramebufferInfo_set_depthStencilTexture(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_FramebufferInfo_set_depthStencilTexture : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -11733,27 +12025,29 @@ static bool js_gfx_FramebufferInfo_set_depthStencilTexture(se::State& s) // NOLI } SE_BIND_PROP_SET(js_gfx_FramebufferInfo_set_depthStencilTexture) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::FramebufferInfo* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::FramebufferInfo * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("renderPass", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->renderPass), ctx); } json->getProperty("colorTextures", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->colorTextures), ctx); } json->getProperty("depthStencilTexture", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->depthStencilTexture), ctx); } return ok; @@ -11763,24 +12057,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_FramebufferInfo_finalize) static bool js_gfx_FramebufferInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::FramebufferInfo* cobj = JSB_ALLOC(cc::gfx::FramebufferInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::FramebufferInfo* cobj = JSB_ALLOC(cc::gfx::FramebufferInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -11802,7 +12098,7 @@ static bool js_gfx_FramebufferInfo_constructor(se::State& s) // NOLINT(readabili ok &= sevalue_to_native(args[2], &(cobj->depthStencilTexture), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -11814,10 +12110,13 @@ static bool js_gfx_FramebufferInfo_constructor(se::State& s) // NOLINT(readabili } SE_BIND_CTOR(js_gfx_FramebufferInfo_constructor, __jsb_cc_gfx_FramebufferInfo_class, js_cc_gfx_FramebufferInfo_finalize) + + static bool js_cc_gfx_FramebufferInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -11844,7 +12143,7 @@ bool js_register_gfx_FramebufferInfo(se::Object* obj) // NOLINT(readability-iden return true; } se::Object* __jsb_cc_gfx_DescriptorSetLayoutBinding_proto = nullptr; -se::Class* __jsb_cc_gfx_DescriptorSetLayoutBinding_class = nullptr; +se::Class* __jsb_cc_gfx_DescriptorSetLayoutBinding_class = nullptr; static bool js_gfx_DescriptorSetLayoutBinding_get_binding(se::State& s) // NOLINT(readability-identifier-naming) { @@ -11852,7 +12151,7 @@ static bool js_gfx_DescriptorSetLayoutBinding_get_binding(se::State& s) // NOLIN SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSetLayoutBinding_get_binding : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->binding, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->binding, s.thisObject(), s.rval()); @@ -11863,7 +12162,7 @@ SE_BIND_PROP_GET(js_gfx_DescriptorSetLayoutBinding_get_binding) static bool js_gfx_DescriptorSetLayoutBinding_set_binding(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSetLayoutBinding_set_binding : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -11879,7 +12178,7 @@ static bool js_gfx_DescriptorSetLayoutBinding_get_descriptorType(se::State& s) / SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSetLayoutBinding_get_descriptorType : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->descriptorType, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->descriptorType, s.thisObject(), s.rval()); @@ -11890,7 +12189,7 @@ SE_BIND_PROP_GET(js_gfx_DescriptorSetLayoutBinding_get_descriptorType) static bool js_gfx_DescriptorSetLayoutBinding_set_descriptorType(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSetLayoutBinding_set_descriptorType : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -11906,7 +12205,7 @@ static bool js_gfx_DescriptorSetLayoutBinding_get_count(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSetLayoutBinding_get_count : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->count, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->count, s.thisObject(), s.rval()); @@ -11917,7 +12216,7 @@ SE_BIND_PROP_GET(js_gfx_DescriptorSetLayoutBinding_get_count) static bool js_gfx_DescriptorSetLayoutBinding_set_count(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSetLayoutBinding_set_count : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -11933,7 +12232,7 @@ static bool js_gfx_DescriptorSetLayoutBinding_get_stageFlags(se::State& s) // NO SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSetLayoutBinding_get_stageFlags : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stageFlags, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stageFlags, s.thisObject(), s.rval()); @@ -11944,7 +12243,7 @@ SE_BIND_PROP_GET(js_gfx_DescriptorSetLayoutBinding_get_stageFlags) static bool js_gfx_DescriptorSetLayoutBinding_set_stageFlags(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSetLayoutBinding_set_stageFlags : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -11960,7 +12259,7 @@ static bool js_gfx_DescriptorSetLayoutBinding_get_immutableSamplers(se::State& s SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSetLayoutBinding_get_immutableSamplers : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->immutableSamplers, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->immutableSamplers, s.thisObject(), s.rval()); @@ -11971,7 +12270,7 @@ SE_BIND_PROP_GET(js_gfx_DescriptorSetLayoutBinding_get_immutableSamplers) static bool js_gfx_DescriptorSetLayoutBinding_set_immutableSamplers(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSetLayoutBinding_set_immutableSamplers : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -11981,35 +12280,37 @@ static bool js_gfx_DescriptorSetLayoutBinding_set_immutableSamplers(se::State& s } SE_BIND_PROP_SET(js_gfx_DescriptorSetLayoutBinding_set_immutableSamplers) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::DescriptorSetLayoutBinding* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::DescriptorSetLayoutBinding * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("binding", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->binding), ctx); } json->getProperty("descriptorType", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->descriptorType), ctx); } json->getProperty("count", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->count), ctx); } json->getProperty("stageFlags", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stageFlags), ctx); } json->getProperty("immutableSamplers", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->immutableSamplers), ctx); } return ok; @@ -12019,24 +12320,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_DescriptorSetLayoutBinding_finalize) static bool js_gfx_DescriptorSetLayoutBinding_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::DescriptorSetLayoutBinding* cobj = JSB_ALLOC(cc::gfx::DescriptorSetLayoutBinding); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::DescriptorSetLayoutBinding* cobj = JSB_ALLOC(cc::gfx::DescriptorSetLayoutBinding); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -12064,7 +12367,7 @@ static bool js_gfx_DescriptorSetLayoutBinding_constructor(se::State& s) // NOLIN ok &= sevalue_to_native(args[4], &(cobj->immutableSamplers), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -12076,10 +12379,13 @@ static bool js_gfx_DescriptorSetLayoutBinding_constructor(se::State& s) // NOLIN } SE_BIND_CTOR(js_gfx_DescriptorSetLayoutBinding_constructor, __jsb_cc_gfx_DescriptorSetLayoutBinding_class, js_cc_gfx_DescriptorSetLayoutBinding_finalize) + + static bool js_cc_gfx_DescriptorSetLayoutBinding_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -12108,7 +12414,7 @@ bool js_register_gfx_DescriptorSetLayoutBinding(se::Object* obj) // NOLINT(reada return true; } se::Object* __jsb_cc_gfx_DescriptorSetLayoutInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_DescriptorSetLayoutInfo_class = nullptr; +se::Class* __jsb_cc_gfx_DescriptorSetLayoutInfo_class = nullptr; static bool js_gfx_DescriptorSetLayoutInfo_get_bindings(se::State& s) // NOLINT(readability-identifier-naming) { @@ -12116,7 +12422,7 @@ static bool js_gfx_DescriptorSetLayoutInfo_get_bindings(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSetLayoutInfo_get_bindings : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->bindings, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->bindings, s.thisObject(), s.rval()); @@ -12127,7 +12433,7 @@ SE_BIND_PROP_GET(js_gfx_DescriptorSetLayoutInfo_get_bindings) static bool js_gfx_DescriptorSetLayoutInfo_set_bindings(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSetLayoutInfo_set_bindings : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -12137,19 +12443,21 @@ static bool js_gfx_DescriptorSetLayoutInfo_set_bindings(se::State& s) // NOLINT( } SE_BIND_PROP_SET(js_gfx_DescriptorSetLayoutInfo_set_bindings) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::DescriptorSetLayoutInfo* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::DescriptorSetLayoutInfo * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("bindings", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bindings), ctx); } return ok; @@ -12159,11 +12467,12 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_DescriptorSetLayoutInfo_finalize) static bool js_gfx_DescriptorSetLayoutInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::DescriptorSetLayoutInfo* cobj = JSB_ALLOC(cc::gfx::DescriptorSetLayoutInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); @@ -12175,7 +12484,7 @@ static bool js_gfx_DescriptorSetLayoutInfo_constructor(se::State& s) // NOLINT(r ok &= sevalue_to_native(args[0], &(cobj->bindings), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -12187,10 +12496,13 @@ static bool js_gfx_DescriptorSetLayoutInfo_constructor(se::State& s) // NOLINT(r } SE_BIND_CTOR(js_gfx_DescriptorSetLayoutInfo_constructor, __jsb_cc_gfx_DescriptorSetLayoutInfo_class, js_cc_gfx_DescriptorSetLayoutInfo_finalize) + + static bool js_cc_gfx_DescriptorSetLayoutInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -12215,7 +12527,7 @@ bool js_register_gfx_DescriptorSetLayoutInfo(se::Object* obj) // NOLINT(readabil return true; } se::Object* __jsb_cc_gfx_DescriptorSetInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_DescriptorSetInfo_class = nullptr; +se::Class* __jsb_cc_gfx_DescriptorSetInfo_class = nullptr; static bool js_gfx_DescriptorSetInfo_get_layout(se::State& s) // NOLINT(readability-identifier-naming) { @@ -12223,7 +12535,7 @@ static bool js_gfx_DescriptorSetInfo_get_layout(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSetInfo_get_layout : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->layout, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->layout, s.thisObject(), s.rval()); @@ -12234,7 +12546,7 @@ SE_BIND_PROP_GET(js_gfx_DescriptorSetInfo_get_layout) static bool js_gfx_DescriptorSetInfo_set_layout(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSetInfo_set_layout : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -12244,19 +12556,21 @@ static bool js_gfx_DescriptorSetInfo_set_layout(se::State& s) // NOLINT(readabil } SE_BIND_PROP_SET(js_gfx_DescriptorSetInfo_set_layout) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::DescriptorSetInfo* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::DescriptorSetInfo * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("layout", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->layout), ctx); } return ok; @@ -12266,11 +12580,12 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_DescriptorSetInfo_finalize) static bool js_gfx_DescriptorSetInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::DescriptorSetInfo* cobj = JSB_ALLOC(cc::gfx::DescriptorSetInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); @@ -12282,7 +12597,7 @@ static bool js_gfx_DescriptorSetInfo_constructor(se::State& s) // NOLINT(readabi ok &= sevalue_to_native(args[0], &(cobj->layout), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -12294,10 +12609,13 @@ static bool js_gfx_DescriptorSetInfo_constructor(se::State& s) // NOLINT(readabi } SE_BIND_CTOR(js_gfx_DescriptorSetInfo_constructor, __jsb_cc_gfx_DescriptorSetInfo_class, js_cc_gfx_DescriptorSetInfo_finalize) + + static bool js_cc_gfx_DescriptorSetInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -12322,7 +12640,7 @@ bool js_register_gfx_DescriptorSetInfo(se::Object* obj) // NOLINT(readability-id return true; } se::Object* __jsb_cc_gfx_PipelineLayoutInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_PipelineLayoutInfo_class = nullptr; +se::Class* __jsb_cc_gfx_PipelineLayoutInfo_class = nullptr; static bool js_gfx_PipelineLayoutInfo_get_setLayouts(se::State& s) // NOLINT(readability-identifier-naming) { @@ -12330,7 +12648,7 @@ static bool js_gfx_PipelineLayoutInfo_get_setLayouts(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_gfx_PipelineLayoutInfo_get_setLayouts : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->setLayouts, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->setLayouts, s.thisObject(), s.rval()); @@ -12341,7 +12659,7 @@ SE_BIND_PROP_GET(js_gfx_PipelineLayoutInfo_get_setLayouts) static bool js_gfx_PipelineLayoutInfo_set_setLayouts(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineLayoutInfo_set_setLayouts : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -12351,19 +12669,21 @@ static bool js_gfx_PipelineLayoutInfo_set_setLayouts(se::State& s) // NOLINT(rea } SE_BIND_PROP_SET(js_gfx_PipelineLayoutInfo_set_setLayouts) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::PipelineLayoutInfo* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::PipelineLayoutInfo * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("setLayouts", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->setLayouts), ctx); } return ok; @@ -12373,11 +12693,12 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_PipelineLayoutInfo_finalize) static bool js_gfx_PipelineLayoutInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::PipelineLayoutInfo* cobj = JSB_ALLOC(cc::gfx::PipelineLayoutInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); @@ -12389,7 +12710,7 @@ static bool js_gfx_PipelineLayoutInfo_constructor(se::State& s) // NOLINT(readab ok &= sevalue_to_native(args[0], &(cobj->setLayouts), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -12401,10 +12722,13 @@ static bool js_gfx_PipelineLayoutInfo_constructor(se::State& s) // NOLINT(readab } SE_BIND_CTOR(js_gfx_PipelineLayoutInfo_constructor, __jsb_cc_gfx_PipelineLayoutInfo_class, js_cc_gfx_PipelineLayoutInfo_finalize) + + static bool js_cc_gfx_PipelineLayoutInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -12429,7 +12753,7 @@ bool js_register_gfx_PipelineLayoutInfo(se::Object* obj) // NOLINT(readability-i return true; } se::Object* __jsb_cc_gfx_InputState_proto = nullptr; -se::Class* __jsb_cc_gfx_InputState_class = nullptr; +se::Class* __jsb_cc_gfx_InputState_class = nullptr; static bool js_gfx_InputState_get_attributes(se::State& s) // NOLINT(readability-identifier-naming) { @@ -12437,7 +12761,7 @@ static bool js_gfx_InputState_get_attributes(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_InputState_get_attributes : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->attributes, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->attributes, s.thisObject(), s.rval()); @@ -12448,7 +12772,7 @@ SE_BIND_PROP_GET(js_gfx_InputState_get_attributes) static bool js_gfx_InputState_set_attributes(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputState_set_attributes : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -12458,19 +12782,21 @@ static bool js_gfx_InputState_set_attributes(se::State& s) // NOLINT(readability } SE_BIND_PROP_SET(js_gfx_InputState_set_attributes) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::InputState* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::InputState * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("attributes", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->attributes), ctx); } return ok; @@ -12480,11 +12806,12 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_InputState_finalize) static bool js_gfx_InputState_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::InputState* cobj = JSB_ALLOC(cc::gfx::InputState); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); @@ -12496,7 +12823,7 @@ static bool js_gfx_InputState_constructor(se::State& s) // NOLINT(readability-id ok &= sevalue_to_native(args[0], &(cobj->attributes), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -12508,10 +12835,13 @@ static bool js_gfx_InputState_constructor(se::State& s) // NOLINT(readability-id } SE_BIND_CTOR(js_gfx_InputState_constructor, __jsb_cc_gfx_InputState_class, js_cc_gfx_InputState_finalize) + + static bool js_cc_gfx_InputState_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -12536,7 +12866,7 @@ bool js_register_gfx_InputState(se::Object* obj) // NOLINT(readability-identifie return true; } se::Object* __jsb_cc_gfx_RasterizerState_proto = nullptr; -se::Class* __jsb_cc_gfx_RasterizerState_class = nullptr; +se::Class* __jsb_cc_gfx_RasterizerState_class = nullptr; static bool js_gfx_RasterizerState_get_isDiscard(se::State& s) // NOLINT(readability-identifier-naming) { @@ -12544,7 +12874,7 @@ static bool js_gfx_RasterizerState_get_isDiscard(se::State& s) // NOLINT(readabi SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_get_isDiscard : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->isDiscard, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->isDiscard, s.thisObject(), s.rval()); @@ -12555,7 +12885,7 @@ SE_BIND_PROP_GET(js_gfx_RasterizerState_get_isDiscard) static bool js_gfx_RasterizerState_set_isDiscard(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_set_isDiscard : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -12571,7 +12901,7 @@ static bool js_gfx_RasterizerState_get_polygonMode(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_get_polygonMode : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->polygonMode, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->polygonMode, s.thisObject(), s.rval()); @@ -12582,7 +12912,7 @@ SE_BIND_PROP_GET(js_gfx_RasterizerState_get_polygonMode) static bool js_gfx_RasterizerState_set_polygonMode(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_set_polygonMode : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -12598,7 +12928,7 @@ static bool js_gfx_RasterizerState_get_shadeModel(se::State& s) // NOLINT(readab SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_get_shadeModel : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->shadeModel, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->shadeModel, s.thisObject(), s.rval()); @@ -12609,7 +12939,7 @@ SE_BIND_PROP_GET(js_gfx_RasterizerState_get_shadeModel) static bool js_gfx_RasterizerState_set_shadeModel(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_set_shadeModel : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -12625,7 +12955,7 @@ static bool js_gfx_RasterizerState_get_cullMode(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_get_cullMode : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->cullMode, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->cullMode, s.thisObject(), s.rval()); @@ -12636,7 +12966,7 @@ SE_BIND_PROP_GET(js_gfx_RasterizerState_get_cullMode) static bool js_gfx_RasterizerState_set_cullMode(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_set_cullMode : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -12652,7 +12982,7 @@ static bool js_gfx_RasterizerState_get_isFrontFaceCCW(se::State& s) // NOLINT(re SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_get_isFrontFaceCCW : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->isFrontFaceCCW, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->isFrontFaceCCW, s.thisObject(), s.rval()); @@ -12663,7 +12993,7 @@ SE_BIND_PROP_GET(js_gfx_RasterizerState_get_isFrontFaceCCW) static bool js_gfx_RasterizerState_set_isFrontFaceCCW(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_set_isFrontFaceCCW : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -12679,7 +13009,7 @@ static bool js_gfx_RasterizerState_get_depthBiasEnabled(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_get_depthBiasEnabled : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->depthBiasEnabled, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->depthBiasEnabled, s.thisObject(), s.rval()); @@ -12690,7 +13020,7 @@ SE_BIND_PROP_GET(js_gfx_RasterizerState_get_depthBiasEnabled) static bool js_gfx_RasterizerState_set_depthBiasEnabled(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_set_depthBiasEnabled : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -12706,7 +13036,7 @@ static bool js_gfx_RasterizerState_get_depthBias(se::State& s) // NOLINT(readabi SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_get_depthBias : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->depthBias, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->depthBias, s.thisObject(), s.rval()); @@ -12717,7 +13047,7 @@ SE_BIND_PROP_GET(js_gfx_RasterizerState_get_depthBias) static bool js_gfx_RasterizerState_set_depthBias(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_set_depthBias : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -12733,7 +13063,7 @@ static bool js_gfx_RasterizerState_get_depthBiasClamp(se::State& s) // NOLINT(re SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_get_depthBiasClamp : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->depthBiasClamp, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->depthBiasClamp, s.thisObject(), s.rval()); @@ -12744,7 +13074,7 @@ SE_BIND_PROP_GET(js_gfx_RasterizerState_get_depthBiasClamp) static bool js_gfx_RasterizerState_set_depthBiasClamp(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_set_depthBiasClamp : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -12760,7 +13090,7 @@ static bool js_gfx_RasterizerState_get_depthBiasSlop(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_get_depthBiasSlop : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->depthBiasSlop, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->depthBiasSlop, s.thisObject(), s.rval()); @@ -12771,7 +13101,7 @@ SE_BIND_PROP_GET(js_gfx_RasterizerState_get_depthBiasSlop) static bool js_gfx_RasterizerState_set_depthBiasSlop(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_set_depthBiasSlop : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -12787,7 +13117,7 @@ static bool js_gfx_RasterizerState_get_isDepthClip(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_get_isDepthClip : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->isDepthClip, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->isDepthClip, s.thisObject(), s.rval()); @@ -12798,7 +13128,7 @@ SE_BIND_PROP_GET(js_gfx_RasterizerState_get_isDepthClip) static bool js_gfx_RasterizerState_set_isDepthClip(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_set_isDepthClip : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -12814,7 +13144,7 @@ static bool js_gfx_RasterizerState_get_isMultisample(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_get_isMultisample : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->isMultisample, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->isMultisample, s.thisObject(), s.rval()); @@ -12825,7 +13155,7 @@ SE_BIND_PROP_GET(js_gfx_RasterizerState_get_isMultisample) static bool js_gfx_RasterizerState_set_isMultisample(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_set_isMultisample : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -12841,7 +13171,7 @@ static bool js_gfx_RasterizerState_get_lineWidth(se::State& s) // NOLINT(readabi SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_get_lineWidth : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->lineWidth, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->lineWidth, s.thisObject(), s.rval()); @@ -12852,7 +13182,7 @@ SE_BIND_PROP_GET(js_gfx_RasterizerState_get_lineWidth) static bool js_gfx_RasterizerState_set_lineWidth(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_set_lineWidth : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -12862,63 +13192,65 @@ static bool js_gfx_RasterizerState_set_lineWidth(se::State& s) // NOLINT(readabi } SE_BIND_PROP_SET(js_gfx_RasterizerState_set_lineWidth) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::RasterizerState* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::RasterizerState * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("isDiscard", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->isDiscard), ctx); } json->getProperty("polygonMode", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->polygonMode), ctx); } json->getProperty("shadeModel", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->shadeModel), ctx); } json->getProperty("cullMode", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->cullMode), ctx); } json->getProperty("isFrontFaceCCW", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->isFrontFaceCCW), ctx); } json->getProperty("depthBiasEnabled", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->depthBiasEnabled), ctx); } json->getProperty("depthBias", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->depthBias), ctx); } json->getProperty("depthBiasClamp", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->depthBiasClamp), ctx); } json->getProperty("depthBiasSlop", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->depthBiasSlop), ctx); } json->getProperty("isDepthClip", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->isDepthClip), ctx); } json->getProperty("isMultisample", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->isMultisample), ctx); } json->getProperty("lineWidth", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->lineWidth), ctx); } return ok; @@ -12928,24 +13260,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_RasterizerState_finalize) static bool js_gfx_RasterizerState_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::RasterizerState* cobj = JSB_ALLOC(cc::gfx::RasterizerState); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::RasterizerState* cobj = JSB_ALLOC(cc::gfx::RasterizerState); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -12994,7 +13328,7 @@ static bool js_gfx_RasterizerState_constructor(se::State& s) // NOLINT(readabili ok &= sevalue_to_native(args[11], &(cobj->lineWidth), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -13006,10 +13340,13 @@ static bool js_gfx_RasterizerState_constructor(se::State& s) // NOLINT(readabili } SE_BIND_CTOR(js_gfx_RasterizerState_constructor, __jsb_cc_gfx_RasterizerState_class, js_cc_gfx_RasterizerState_finalize) + + static bool js_cc_gfx_RasterizerState_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -13045,7 +13382,7 @@ bool js_register_gfx_RasterizerState(se::Object* obj) // NOLINT(readability-iden return true; } se::Object* __jsb_cc_gfx_DepthStencilState_proto = nullptr; -se::Class* __jsb_cc_gfx_DepthStencilState_class = nullptr; +se::Class* __jsb_cc_gfx_DepthStencilState_class = nullptr; static bool js_gfx_DepthStencilState_get_depthTest(se::State& s) // NOLINT(readability-identifier-naming) { @@ -13053,7 +13390,7 @@ static bool js_gfx_DepthStencilState_get_depthTest(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_get_depthTest : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->depthTest, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->depthTest, s.thisObject(), s.rval()); @@ -13064,7 +13401,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilState_get_depthTest) static bool js_gfx_DepthStencilState_set_depthTest(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_set_depthTest : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13080,7 +13417,7 @@ static bool js_gfx_DepthStencilState_get_depthWrite(se::State& s) // NOLINT(read SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_get_depthWrite : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->depthWrite, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->depthWrite, s.thisObject(), s.rval()); @@ -13091,7 +13428,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilState_get_depthWrite) static bool js_gfx_DepthStencilState_set_depthWrite(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_set_depthWrite : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13107,7 +13444,7 @@ static bool js_gfx_DepthStencilState_get_depthFunc(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_get_depthFunc : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->depthFunc, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->depthFunc, s.thisObject(), s.rval()); @@ -13118,7 +13455,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilState_get_depthFunc) static bool js_gfx_DepthStencilState_set_depthFunc(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_set_depthFunc : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13134,7 +13471,7 @@ static bool js_gfx_DepthStencilState_get_stencilTestFront(se::State& s) // NOLIN SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_get_stencilTestFront : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stencilTestFront, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stencilTestFront, s.thisObject(), s.rval()); @@ -13145,7 +13482,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilState_get_stencilTestFront) static bool js_gfx_DepthStencilState_set_stencilTestFront(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_set_stencilTestFront : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13161,7 +13498,7 @@ static bool js_gfx_DepthStencilState_get_stencilFuncFront(se::State& s) // NOLIN SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_get_stencilFuncFront : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stencilFuncFront, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stencilFuncFront, s.thisObject(), s.rval()); @@ -13172,7 +13509,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilState_get_stencilFuncFront) static bool js_gfx_DepthStencilState_set_stencilFuncFront(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_set_stencilFuncFront : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13188,7 +13525,7 @@ static bool js_gfx_DepthStencilState_get_stencilReadMaskFront(se::State& s) // N SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_get_stencilReadMaskFront : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stencilReadMaskFront, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stencilReadMaskFront, s.thisObject(), s.rval()); @@ -13199,7 +13536,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilState_get_stencilReadMaskFront) static bool js_gfx_DepthStencilState_set_stencilReadMaskFront(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_set_stencilReadMaskFront : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13215,7 +13552,7 @@ static bool js_gfx_DepthStencilState_get_stencilWriteMaskFront(se::State& s) // SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_get_stencilWriteMaskFront : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stencilWriteMaskFront, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stencilWriteMaskFront, s.thisObject(), s.rval()); @@ -13226,7 +13563,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilState_get_stencilWriteMaskFront) static bool js_gfx_DepthStencilState_set_stencilWriteMaskFront(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_set_stencilWriteMaskFront : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13242,7 +13579,7 @@ static bool js_gfx_DepthStencilState_get_stencilFailOpFront(se::State& s) // NOL SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_get_stencilFailOpFront : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stencilFailOpFront, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stencilFailOpFront, s.thisObject(), s.rval()); @@ -13253,7 +13590,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilState_get_stencilFailOpFront) static bool js_gfx_DepthStencilState_set_stencilFailOpFront(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_set_stencilFailOpFront : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13269,7 +13606,7 @@ static bool js_gfx_DepthStencilState_get_stencilZFailOpFront(se::State& s) // NO SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_get_stencilZFailOpFront : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stencilZFailOpFront, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stencilZFailOpFront, s.thisObject(), s.rval()); @@ -13280,7 +13617,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilState_get_stencilZFailOpFront) static bool js_gfx_DepthStencilState_set_stencilZFailOpFront(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_set_stencilZFailOpFront : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13296,7 +13633,7 @@ static bool js_gfx_DepthStencilState_get_stencilPassOpFront(se::State& s) // NOL SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_get_stencilPassOpFront : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stencilPassOpFront, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stencilPassOpFront, s.thisObject(), s.rval()); @@ -13307,7 +13644,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilState_get_stencilPassOpFront) static bool js_gfx_DepthStencilState_set_stencilPassOpFront(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_set_stencilPassOpFront : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13323,7 +13660,7 @@ static bool js_gfx_DepthStencilState_get_stencilRefFront(se::State& s) // NOLINT SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_get_stencilRefFront : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stencilRefFront, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stencilRefFront, s.thisObject(), s.rval()); @@ -13334,7 +13671,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilState_get_stencilRefFront) static bool js_gfx_DepthStencilState_set_stencilRefFront(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_set_stencilRefFront : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13350,7 +13687,7 @@ static bool js_gfx_DepthStencilState_get_stencilTestBack(se::State& s) // NOLINT SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_get_stencilTestBack : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stencilTestBack, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stencilTestBack, s.thisObject(), s.rval()); @@ -13361,7 +13698,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilState_get_stencilTestBack) static bool js_gfx_DepthStencilState_set_stencilTestBack(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_set_stencilTestBack : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13377,7 +13714,7 @@ static bool js_gfx_DepthStencilState_get_stencilFuncBack(se::State& s) // NOLINT SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_get_stencilFuncBack : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stencilFuncBack, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stencilFuncBack, s.thisObject(), s.rval()); @@ -13388,7 +13725,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilState_get_stencilFuncBack) static bool js_gfx_DepthStencilState_set_stencilFuncBack(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_set_stencilFuncBack : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13404,7 +13741,7 @@ static bool js_gfx_DepthStencilState_get_stencilReadMaskBack(se::State& s) // NO SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_get_stencilReadMaskBack : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stencilReadMaskBack, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stencilReadMaskBack, s.thisObject(), s.rval()); @@ -13415,7 +13752,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilState_get_stencilReadMaskBack) static bool js_gfx_DepthStencilState_set_stencilReadMaskBack(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_set_stencilReadMaskBack : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13431,7 +13768,7 @@ static bool js_gfx_DepthStencilState_get_stencilWriteMaskBack(se::State& s) // N SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_get_stencilWriteMaskBack : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stencilWriteMaskBack, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stencilWriteMaskBack, s.thisObject(), s.rval()); @@ -13442,7 +13779,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilState_get_stencilWriteMaskBack) static bool js_gfx_DepthStencilState_set_stencilWriteMaskBack(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_set_stencilWriteMaskBack : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13458,7 +13795,7 @@ static bool js_gfx_DepthStencilState_get_stencilFailOpBack(se::State& s) // NOLI SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_get_stencilFailOpBack : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stencilFailOpBack, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stencilFailOpBack, s.thisObject(), s.rval()); @@ -13469,7 +13806,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilState_get_stencilFailOpBack) static bool js_gfx_DepthStencilState_set_stencilFailOpBack(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_set_stencilFailOpBack : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13485,7 +13822,7 @@ static bool js_gfx_DepthStencilState_get_stencilZFailOpBack(se::State& s) // NOL SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_get_stencilZFailOpBack : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stencilZFailOpBack, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stencilZFailOpBack, s.thisObject(), s.rval()); @@ -13496,7 +13833,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilState_get_stencilZFailOpBack) static bool js_gfx_DepthStencilState_set_stencilZFailOpBack(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_set_stencilZFailOpBack : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13512,7 +13849,7 @@ static bool js_gfx_DepthStencilState_get_stencilPassOpBack(se::State& s) // NOLI SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_get_stencilPassOpBack : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stencilPassOpBack, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stencilPassOpBack, s.thisObject(), s.rval()); @@ -13523,7 +13860,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilState_get_stencilPassOpBack) static bool js_gfx_DepthStencilState_set_stencilPassOpBack(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_set_stencilPassOpBack : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13539,7 +13876,7 @@ static bool js_gfx_DepthStencilState_get_stencilRefBack(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_get_stencilRefBack : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stencilRefBack, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stencilRefBack, s.thisObject(), s.rval()); @@ -13550,7 +13887,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilState_get_stencilRefBack) static bool js_gfx_DepthStencilState_set_stencilRefBack(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_set_stencilRefBack : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13560,91 +13897,93 @@ static bool js_gfx_DepthStencilState_set_stencilRefBack(se::State& s) // NOLINT( } SE_BIND_PROP_SET(js_gfx_DepthStencilState_set_stencilRefBack) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::DepthStencilState* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::DepthStencilState * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("depthTest", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->depthTest), ctx); } json->getProperty("depthWrite", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->depthWrite), ctx); } json->getProperty("depthFunc", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->depthFunc), ctx); } json->getProperty("stencilTestFront", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stencilTestFront), ctx); } json->getProperty("stencilFuncFront", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stencilFuncFront), ctx); } json->getProperty("stencilReadMaskFront", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stencilReadMaskFront), ctx); } json->getProperty("stencilWriteMaskFront", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stencilWriteMaskFront), ctx); } json->getProperty("stencilFailOpFront", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stencilFailOpFront), ctx); } json->getProperty("stencilZFailOpFront", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stencilZFailOpFront), ctx); } json->getProperty("stencilPassOpFront", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stencilPassOpFront), ctx); } json->getProperty("stencilRefFront", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stencilRefFront), ctx); } json->getProperty("stencilTestBack", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stencilTestBack), ctx); } json->getProperty("stencilFuncBack", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stencilFuncBack), ctx); } json->getProperty("stencilReadMaskBack", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stencilReadMaskBack), ctx); } json->getProperty("stencilWriteMaskBack", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stencilWriteMaskBack), ctx); } json->getProperty("stencilFailOpBack", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stencilFailOpBack), ctx); } json->getProperty("stencilZFailOpBack", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stencilZFailOpBack), ctx); } json->getProperty("stencilPassOpBack", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stencilPassOpBack), ctx); } json->getProperty("stencilRefBack", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stencilRefBack), ctx); } return ok; @@ -13654,24 +13993,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_DepthStencilState_finalize) static bool js_gfx_DepthStencilState_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::DepthStencilState* cobj = JSB_ALLOC(cc::gfx::DepthStencilState); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::DepthStencilState* cobj = JSB_ALLOC(cc::gfx::DepthStencilState); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -13741,7 +14082,7 @@ static bool js_gfx_DepthStencilState_constructor(se::State& s) // NOLINT(readabi ok &= sevalue_to_native(args[18], &(cobj->stencilRefBack), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -13753,10 +14094,13 @@ static bool js_gfx_DepthStencilState_constructor(se::State& s) // NOLINT(readabi } SE_BIND_CTOR(js_gfx_DepthStencilState_constructor, __jsb_cc_gfx_DepthStencilState_class, js_cc_gfx_DepthStencilState_finalize) + + static bool js_cc_gfx_DepthStencilState_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -13799,7 +14143,7 @@ bool js_register_gfx_DepthStencilState(se::Object* obj) // NOLINT(readability-id return true; } se::Object* __jsb_cc_gfx_BlendTarget_proto = nullptr; -se::Class* __jsb_cc_gfx_BlendTarget_class = nullptr; +se::Class* __jsb_cc_gfx_BlendTarget_class = nullptr; static bool js_gfx_BlendTarget_get_blend(se::State& s) // NOLINT(readability-identifier-naming) { @@ -13807,7 +14151,7 @@ static bool js_gfx_BlendTarget_get_blend(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_gfx_BlendTarget_get_blend : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->blend, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->blend, s.thisObject(), s.rval()); @@ -13818,7 +14162,7 @@ SE_BIND_PROP_GET(js_gfx_BlendTarget_get_blend) static bool js_gfx_BlendTarget_set_blend(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BlendTarget_set_blend : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13834,7 +14178,7 @@ static bool js_gfx_BlendTarget_get_blendSrc(se::State& s) // NOLINT(readability- SE_PRECONDITION2(cobj, false, "js_gfx_BlendTarget_get_blendSrc : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->blendSrc, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->blendSrc, s.thisObject(), s.rval()); @@ -13845,7 +14189,7 @@ SE_BIND_PROP_GET(js_gfx_BlendTarget_get_blendSrc) static bool js_gfx_BlendTarget_set_blendSrc(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BlendTarget_set_blendSrc : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13861,7 +14205,7 @@ static bool js_gfx_BlendTarget_get_blendDst(se::State& s) // NOLINT(readability- SE_PRECONDITION2(cobj, false, "js_gfx_BlendTarget_get_blendDst : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->blendDst, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->blendDst, s.thisObject(), s.rval()); @@ -13872,7 +14216,7 @@ SE_BIND_PROP_GET(js_gfx_BlendTarget_get_blendDst) static bool js_gfx_BlendTarget_set_blendDst(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BlendTarget_set_blendDst : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13888,7 +14232,7 @@ static bool js_gfx_BlendTarget_get_blendEq(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_gfx_BlendTarget_get_blendEq : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->blendEq, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->blendEq, s.thisObject(), s.rval()); @@ -13899,7 +14243,7 @@ SE_BIND_PROP_GET(js_gfx_BlendTarget_get_blendEq) static bool js_gfx_BlendTarget_set_blendEq(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BlendTarget_set_blendEq : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13915,7 +14259,7 @@ static bool js_gfx_BlendTarget_get_blendSrcAlpha(se::State& s) // NOLINT(readabi SE_PRECONDITION2(cobj, false, "js_gfx_BlendTarget_get_blendSrcAlpha : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->blendSrcAlpha, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->blendSrcAlpha, s.thisObject(), s.rval()); @@ -13926,7 +14270,7 @@ SE_BIND_PROP_GET(js_gfx_BlendTarget_get_blendSrcAlpha) static bool js_gfx_BlendTarget_set_blendSrcAlpha(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BlendTarget_set_blendSrcAlpha : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13942,7 +14286,7 @@ static bool js_gfx_BlendTarget_get_blendDstAlpha(se::State& s) // NOLINT(readabi SE_PRECONDITION2(cobj, false, "js_gfx_BlendTarget_get_blendDstAlpha : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->blendDstAlpha, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->blendDstAlpha, s.thisObject(), s.rval()); @@ -13953,7 +14297,7 @@ SE_BIND_PROP_GET(js_gfx_BlendTarget_get_blendDstAlpha) static bool js_gfx_BlendTarget_set_blendDstAlpha(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BlendTarget_set_blendDstAlpha : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13969,7 +14313,7 @@ static bool js_gfx_BlendTarget_get_blendAlphaEq(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_gfx_BlendTarget_get_blendAlphaEq : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->blendAlphaEq, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->blendAlphaEq, s.thisObject(), s.rval()); @@ -13980,7 +14324,7 @@ SE_BIND_PROP_GET(js_gfx_BlendTarget_get_blendAlphaEq) static bool js_gfx_BlendTarget_set_blendAlphaEq(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BlendTarget_set_blendAlphaEq : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13996,7 +14340,7 @@ static bool js_gfx_BlendTarget_get_blendColorMask(se::State& s) // NOLINT(readab SE_PRECONDITION2(cobj, false, "js_gfx_BlendTarget_get_blendColorMask : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->blendColorMask, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->blendColorMask, s.thisObject(), s.rval()); @@ -14007,7 +14351,7 @@ SE_BIND_PROP_GET(js_gfx_BlendTarget_get_blendColorMask) static bool js_gfx_BlendTarget_set_blendColorMask(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BlendTarget_set_blendColorMask : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14017,47 +14361,49 @@ static bool js_gfx_BlendTarget_set_blendColorMask(se::State& s) // NOLINT(readab } SE_BIND_PROP_SET(js_gfx_BlendTarget_set_blendColorMask) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::BlendTarget* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::BlendTarget * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("blend", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->blend), ctx); } json->getProperty("blendSrc", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->blendSrc), ctx); } json->getProperty("blendDst", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->blendDst), ctx); } json->getProperty("blendEq", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->blendEq), ctx); } json->getProperty("blendSrcAlpha", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->blendSrcAlpha), ctx); } json->getProperty("blendDstAlpha", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->blendDstAlpha), ctx); } json->getProperty("blendAlphaEq", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->blendAlphaEq), ctx); } json->getProperty("blendColorMask", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->blendColorMask), ctx); } return ok; @@ -14067,24 +14413,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_BlendTarget_finalize) static bool js_gfx_BlendTarget_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::BlendTarget* cobj = JSB_ALLOC(cc::gfx::BlendTarget); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::BlendTarget* cobj = JSB_ALLOC(cc::gfx::BlendTarget); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -14121,7 +14469,7 @@ static bool js_gfx_BlendTarget_constructor(se::State& s) // NOLINT(readability-i ok &= sevalue_to_native(args[7], &(cobj->blendColorMask), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -14133,10 +14481,13 @@ static bool js_gfx_BlendTarget_constructor(se::State& s) // NOLINT(readability-i } SE_BIND_CTOR(js_gfx_BlendTarget_constructor, __jsb_cc_gfx_BlendTarget_class, js_cc_gfx_BlendTarget_finalize) + + static bool js_cc_gfx_BlendTarget_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -14168,7 +14519,7 @@ bool js_register_gfx_BlendTarget(se::Object* obj) // NOLINT(readability-identifi return true; } se::Object* __jsb_cc_gfx_BlendState_proto = nullptr; -se::Class* __jsb_cc_gfx_BlendState_class = nullptr; +se::Class* __jsb_cc_gfx_BlendState_class = nullptr; static bool js_gfx_BlendState_get_isA2C(se::State& s) // NOLINT(readability-identifier-naming) { @@ -14176,7 +14527,7 @@ static bool js_gfx_BlendState_get_isA2C(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_gfx_BlendState_get_isA2C : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->isA2C, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->isA2C, s.thisObject(), s.rval()); @@ -14187,7 +14538,7 @@ SE_BIND_PROP_GET(js_gfx_BlendState_get_isA2C) static bool js_gfx_BlendState_set_isA2C(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BlendState_set_isA2C : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14203,7 +14554,7 @@ static bool js_gfx_BlendState_get_isIndepend(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_BlendState_get_isIndepend : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->isIndepend, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->isIndepend, s.thisObject(), s.rval()); @@ -14214,7 +14565,7 @@ SE_BIND_PROP_GET(js_gfx_BlendState_get_isIndepend) static bool js_gfx_BlendState_set_isIndepend(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BlendState_set_isIndepend : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14230,7 +14581,7 @@ static bool js_gfx_BlendState_get_blendColor(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_BlendState_get_blendColor : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->blendColor, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->blendColor, s.thisObject(), s.rval()); @@ -14241,7 +14592,7 @@ SE_BIND_PROP_GET(js_gfx_BlendState_get_blendColor) static bool js_gfx_BlendState_set_blendColor(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BlendState_set_blendColor : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14257,7 +14608,7 @@ static bool js_gfx_BlendState_get_targets(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_gfx_BlendState_get_targets : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->targets, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->targets, s.thisObject(), s.rval()); @@ -14268,7 +14619,7 @@ SE_BIND_PROP_GET(js_gfx_BlendState_get_targets) static bool js_gfx_BlendState_set_targets(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BlendState_set_targets : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14278,31 +14629,33 @@ static bool js_gfx_BlendState_set_targets(se::State& s) // NOLINT(readability-id } SE_BIND_PROP_SET(js_gfx_BlendState_set_targets) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::BlendState* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::BlendState * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("isA2C", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->isA2C), ctx); } json->getProperty("isIndepend", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->isIndepend), ctx); } json->getProperty("blendColor", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->blendColor), ctx); } json->getProperty("targets", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->targets), ctx); } return ok; @@ -14312,24 +14665,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_BlendState_finalize) static bool js_gfx_BlendState_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::BlendState* cobj = JSB_ALLOC(cc::gfx::BlendState); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::BlendState* cobj = JSB_ALLOC(cc::gfx::BlendState); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -14354,7 +14709,7 @@ static bool js_gfx_BlendState_constructor(se::State& s) // NOLINT(readability-id ok &= sevalue_to_native(args[3], &(cobj->targets), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -14366,10 +14721,13 @@ static bool js_gfx_BlendState_constructor(se::State& s) // NOLINT(readability-id } SE_BIND_CTOR(js_gfx_BlendState_constructor, __jsb_cc_gfx_BlendState_class, js_cc_gfx_BlendState_finalize) + + static bool js_cc_gfx_BlendState_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -14397,7 +14755,7 @@ bool js_register_gfx_BlendState(se::Object* obj) // NOLINT(readability-identifie return true; } se::Object* __jsb_cc_gfx_PipelineStateInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_PipelineStateInfo_class = nullptr; +se::Class* __jsb_cc_gfx_PipelineStateInfo_class = nullptr; static bool js_gfx_PipelineStateInfo_get_shader(se::State& s) // NOLINT(readability-identifier-naming) { @@ -14405,7 +14763,7 @@ static bool js_gfx_PipelineStateInfo_get_shader(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_get_shader : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->shader, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->shader, s.thisObject(), s.rval()); @@ -14416,7 +14774,7 @@ SE_BIND_PROP_GET(js_gfx_PipelineStateInfo_get_shader) static bool js_gfx_PipelineStateInfo_set_shader(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_set_shader : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14432,7 +14790,7 @@ static bool js_gfx_PipelineStateInfo_get_pipelineLayout(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_get_pipelineLayout : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->pipelineLayout, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->pipelineLayout, s.thisObject(), s.rval()); @@ -14443,7 +14801,7 @@ SE_BIND_PROP_GET(js_gfx_PipelineStateInfo_get_pipelineLayout) static bool js_gfx_PipelineStateInfo_set_pipelineLayout(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_set_pipelineLayout : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14459,7 +14817,7 @@ static bool js_gfx_PipelineStateInfo_get_renderPass(se::State& s) // NOLINT(read SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_get_renderPass : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->renderPass, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->renderPass, s.thisObject(), s.rval()); @@ -14470,7 +14828,7 @@ SE_BIND_PROP_GET(js_gfx_PipelineStateInfo_get_renderPass) static bool js_gfx_PipelineStateInfo_set_renderPass(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_set_renderPass : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14486,7 +14844,7 @@ static bool js_gfx_PipelineStateInfo_get_inputState(se::State& s) // NOLINT(read SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_get_inputState : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->inputState, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->inputState, s.thisObject(), s.rval()); @@ -14497,7 +14855,7 @@ SE_BIND_PROP_GET(js_gfx_PipelineStateInfo_get_inputState) static bool js_gfx_PipelineStateInfo_set_inputState(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_set_inputState : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14513,7 +14871,7 @@ static bool js_gfx_PipelineStateInfo_get_rasterizerState(se::State& s) // NOLINT SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_get_rasterizerState : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->rasterizerState, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->rasterizerState, s.thisObject(), s.rval()); @@ -14524,7 +14882,7 @@ SE_BIND_PROP_GET(js_gfx_PipelineStateInfo_get_rasterizerState) static bool js_gfx_PipelineStateInfo_set_rasterizerState(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_set_rasterizerState : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14540,7 +14898,7 @@ static bool js_gfx_PipelineStateInfo_get_depthStencilState(se::State& s) // NOLI SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_get_depthStencilState : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->depthStencilState, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->depthStencilState, s.thisObject(), s.rval()); @@ -14551,7 +14909,7 @@ SE_BIND_PROP_GET(js_gfx_PipelineStateInfo_get_depthStencilState) static bool js_gfx_PipelineStateInfo_set_depthStencilState(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_set_depthStencilState : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14567,7 +14925,7 @@ static bool js_gfx_PipelineStateInfo_get_blendState(se::State& s) // NOLINT(read SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_get_blendState : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->blendState, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->blendState, s.thisObject(), s.rval()); @@ -14578,7 +14936,7 @@ SE_BIND_PROP_GET(js_gfx_PipelineStateInfo_get_blendState) static bool js_gfx_PipelineStateInfo_set_blendState(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_set_blendState : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14594,7 +14952,7 @@ static bool js_gfx_PipelineStateInfo_get_primitive(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_get_primitive : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->primitive, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->primitive, s.thisObject(), s.rval()); @@ -14605,7 +14963,7 @@ SE_BIND_PROP_GET(js_gfx_PipelineStateInfo_get_primitive) static bool js_gfx_PipelineStateInfo_set_primitive(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_set_primitive : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14621,7 +14979,7 @@ static bool js_gfx_PipelineStateInfo_get_dynamicStates(se::State& s) // NOLINT(r SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_get_dynamicStates : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->dynamicStates, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->dynamicStates, s.thisObject(), s.rval()); @@ -14632,7 +14990,7 @@ SE_BIND_PROP_GET(js_gfx_PipelineStateInfo_get_dynamicStates) static bool js_gfx_PipelineStateInfo_set_dynamicStates(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_set_dynamicStates : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14648,7 +15006,7 @@ static bool js_gfx_PipelineStateInfo_get_bindPoint(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_get_bindPoint : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->bindPoint, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->bindPoint, s.thisObject(), s.rval()); @@ -14659,7 +15017,7 @@ SE_BIND_PROP_GET(js_gfx_PipelineStateInfo_get_bindPoint) static bool js_gfx_PipelineStateInfo_set_bindPoint(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_set_bindPoint : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14675,7 +15033,7 @@ static bool js_gfx_PipelineStateInfo_get_subpass(se::State& s) // NOLINT(readabi SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_get_subpass : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->subpass, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->subpass, s.thisObject(), s.rval()); @@ -14686,7 +15044,7 @@ SE_BIND_PROP_GET(js_gfx_PipelineStateInfo_get_subpass) static bool js_gfx_PipelineStateInfo_set_subpass(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_set_subpass : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14696,59 +15054,61 @@ static bool js_gfx_PipelineStateInfo_set_subpass(se::State& s) // NOLINT(readabi } SE_BIND_PROP_SET(js_gfx_PipelineStateInfo_set_subpass) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::PipelineStateInfo* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::PipelineStateInfo * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("shader", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->shader), ctx); } json->getProperty("pipelineLayout", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->pipelineLayout), ctx); } json->getProperty("renderPass", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->renderPass), ctx); } json->getProperty("inputState", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->inputState), ctx); } json->getProperty("rasterizerState", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->rasterizerState), ctx); } json->getProperty("depthStencilState", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->depthStencilState), ctx); } json->getProperty("blendState", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->blendState), ctx); } json->getProperty("primitive", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->primitive), ctx); } json->getProperty("dynamicStates", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->dynamicStates), ctx); } json->getProperty("bindPoint", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bindPoint), ctx); } json->getProperty("subpass", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->subpass), ctx); } return ok; @@ -14758,24 +15118,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_PipelineStateInfo_finalize) static bool js_gfx_PipelineStateInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::PipelineStateInfo* cobj = JSB_ALLOC(cc::gfx::PipelineStateInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::PipelineStateInfo* cobj = JSB_ALLOC(cc::gfx::PipelineStateInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -14821,7 +15183,7 @@ static bool js_gfx_PipelineStateInfo_constructor(se::State& s) // NOLINT(readabi ok &= sevalue_to_native(args[10], &(cobj->subpass), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -14833,10 +15195,13 @@ static bool js_gfx_PipelineStateInfo_constructor(se::State& s) // NOLINT(readabi } SE_BIND_CTOR(js_gfx_PipelineStateInfo_constructor, __jsb_cc_gfx_PipelineStateInfo_class, js_cc_gfx_PipelineStateInfo_finalize) + + static bool js_cc_gfx_PipelineStateInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -14871,7 +15236,7 @@ bool js_register_gfx_PipelineStateInfo(se::Object* obj) // NOLINT(readability-id return true; } se::Object* __jsb_cc_gfx_CommandBufferInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_CommandBufferInfo_class = nullptr; +se::Class* __jsb_cc_gfx_CommandBufferInfo_class = nullptr; static bool js_gfx_CommandBufferInfo_get_queue(se::State& s) // NOLINT(readability-identifier-naming) { @@ -14879,7 +15244,7 @@ static bool js_gfx_CommandBufferInfo_get_queue(se::State& s) // NOLINT(readabili SE_PRECONDITION2(cobj, false, "js_gfx_CommandBufferInfo_get_queue : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->queue, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->queue, s.thisObject(), s.rval()); @@ -14890,7 +15255,7 @@ SE_BIND_PROP_GET(js_gfx_CommandBufferInfo_get_queue) static bool js_gfx_CommandBufferInfo_set_queue(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBufferInfo_set_queue : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14906,7 +15271,7 @@ static bool js_gfx_CommandBufferInfo_get_type(se::State& s) // NOLINT(readabilit SE_PRECONDITION2(cobj, false, "js_gfx_CommandBufferInfo_get_type : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->type, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->type, s.thisObject(), s.rval()); @@ -14917,7 +15282,7 @@ SE_BIND_PROP_GET(js_gfx_CommandBufferInfo_get_type) static bool js_gfx_CommandBufferInfo_set_type(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBufferInfo_set_type : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14927,23 +15292,25 @@ static bool js_gfx_CommandBufferInfo_set_type(se::State& s) // NOLINT(readabilit } SE_BIND_PROP_SET(js_gfx_CommandBufferInfo_set_type) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::CommandBufferInfo* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::CommandBufferInfo * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("queue", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->queue), ctx); } json->getProperty("type", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->type), ctx); } return ok; @@ -14953,24 +15320,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_CommandBufferInfo_finalize) static bool js_gfx_CommandBufferInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::CommandBufferInfo* cobj = JSB_ALLOC(cc::gfx::CommandBufferInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::CommandBufferInfo* cobj = JSB_ALLOC(cc::gfx::CommandBufferInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -14989,7 +15358,7 @@ static bool js_gfx_CommandBufferInfo_constructor(se::State& s) // NOLINT(readabi ok &= sevalue_to_native(args[1], &(cobj->type), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -15001,10 +15370,13 @@ static bool js_gfx_CommandBufferInfo_constructor(se::State& s) // NOLINT(readabi } SE_BIND_CTOR(js_gfx_CommandBufferInfo_constructor, __jsb_cc_gfx_CommandBufferInfo_class, js_cc_gfx_CommandBufferInfo_finalize) + + static bool js_cc_gfx_CommandBufferInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -15030,7 +15402,7 @@ bool js_register_gfx_CommandBufferInfo(se::Object* obj) // NOLINT(readability-id return true; } se::Object* __jsb_cc_gfx_QueueInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_QueueInfo_class = nullptr; +se::Class* __jsb_cc_gfx_QueueInfo_class = nullptr; static bool js_gfx_QueueInfo_get_type(se::State& s) // NOLINT(readability-identifier-naming) { @@ -15038,7 +15410,7 @@ static bool js_gfx_QueueInfo_get_type(se::State& s) // NOLINT(readability-identi SE_PRECONDITION2(cobj, false, "js_gfx_QueueInfo_get_type : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->type, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->type, s.thisObject(), s.rval()); @@ -15049,7 +15421,7 @@ SE_BIND_PROP_GET(js_gfx_QueueInfo_get_type) static bool js_gfx_QueueInfo_set_type(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_QueueInfo_set_type : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -15059,19 +15431,21 @@ static bool js_gfx_QueueInfo_set_type(se::State& s) // NOLINT(readability-identi } SE_BIND_PROP_SET(js_gfx_QueueInfo_set_type) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::QueueInfo* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::QueueInfo * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("type", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->type), ctx); } return ok; @@ -15081,11 +15455,12 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_QueueInfo_finalize) static bool js_gfx_QueueInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::QueueInfo* cobj = JSB_ALLOC(cc::gfx::QueueInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); @@ -15097,7 +15472,7 @@ static bool js_gfx_QueueInfo_constructor(se::State& s) // NOLINT(readability-ide ok &= sevalue_to_native(args[0], &(cobj->type), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -15109,10 +15484,13 @@ static bool js_gfx_QueueInfo_constructor(se::State& s) // NOLINT(readability-ide } SE_BIND_CTOR(js_gfx_QueueInfo_constructor, __jsb_cc_gfx_QueueInfo_class, js_cc_gfx_QueueInfo_finalize) + + static bool js_cc_gfx_QueueInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -15137,7 +15515,7 @@ bool js_register_gfx_QueueInfo(se::Object* obj) // NOLINT(readability-identifier return true; } se::Object* __jsb_cc_gfx_QueryPoolInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_QueryPoolInfo_class = nullptr; +se::Class* __jsb_cc_gfx_QueryPoolInfo_class = nullptr; static bool js_gfx_QueryPoolInfo_get_type(se::State& s) // NOLINT(readability-identifier-naming) { @@ -15145,7 +15523,7 @@ static bool js_gfx_QueryPoolInfo_get_type(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_gfx_QueryPoolInfo_get_type : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->type, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->type, s.thisObject(), s.rval()); @@ -15156,7 +15534,7 @@ SE_BIND_PROP_GET(js_gfx_QueryPoolInfo_get_type) static bool js_gfx_QueryPoolInfo_set_type(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_QueryPoolInfo_set_type : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -15172,7 +15550,7 @@ static bool js_gfx_QueryPoolInfo_get_maxQueryObjects(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_gfx_QueryPoolInfo_get_maxQueryObjects : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxQueryObjects, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxQueryObjects, s.thisObject(), s.rval()); @@ -15183,7 +15561,7 @@ SE_BIND_PROP_GET(js_gfx_QueryPoolInfo_get_maxQueryObjects) static bool js_gfx_QueryPoolInfo_set_maxQueryObjects(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_QueryPoolInfo_set_maxQueryObjects : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -15199,7 +15577,7 @@ static bool js_gfx_QueryPoolInfo_get_forceWait(se::State& s) // NOLINT(readabili SE_PRECONDITION2(cobj, false, "js_gfx_QueryPoolInfo_get_forceWait : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->forceWait, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->forceWait, s.thisObject(), s.rval()); @@ -15210,7 +15588,7 @@ SE_BIND_PROP_GET(js_gfx_QueryPoolInfo_get_forceWait) static bool js_gfx_QueryPoolInfo_set_forceWait(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_QueryPoolInfo_set_forceWait : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -15220,27 +15598,29 @@ static bool js_gfx_QueryPoolInfo_set_forceWait(se::State& s) // NOLINT(readabili } SE_BIND_PROP_SET(js_gfx_QueryPoolInfo_set_forceWait) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::QueryPoolInfo* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::QueryPoolInfo * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("type", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->type), ctx); } json->getProperty("maxQueryObjects", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxQueryObjects), ctx); } json->getProperty("forceWait", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->forceWait), ctx); } return ok; @@ -15250,24 +15630,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_QueryPoolInfo_finalize) static bool js_gfx_QueryPoolInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::QueryPoolInfo* cobj = JSB_ALLOC(cc::gfx::QueryPoolInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::QueryPoolInfo* cobj = JSB_ALLOC(cc::gfx::QueryPoolInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -15289,7 +15671,7 @@ static bool js_gfx_QueryPoolInfo_constructor(se::State& s) // NOLINT(readability ok &= sevalue_to_native(args[2], &(cobj->forceWait), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -15301,10 +15683,13 @@ static bool js_gfx_QueryPoolInfo_constructor(se::State& s) // NOLINT(readability } SE_BIND_CTOR(js_gfx_QueryPoolInfo_constructor, __jsb_cc_gfx_QueryPoolInfo_class, js_cc_gfx_QueryPoolInfo_finalize) + + static bool js_cc_gfx_QueryPoolInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -15331,7 +15716,7 @@ bool js_register_gfx_QueryPoolInfo(se::Object* obj) // NOLINT(readability-identi return true; } se::Object* __jsb_cc_gfx_MemoryStatus_proto = nullptr; -se::Class* __jsb_cc_gfx_MemoryStatus_class = nullptr; +se::Class* __jsb_cc_gfx_MemoryStatus_class = nullptr; static bool js_gfx_MemoryStatus_get_bufferSize(se::State& s) // NOLINT(readability-identifier-naming) { @@ -15339,7 +15724,7 @@ static bool js_gfx_MemoryStatus_get_bufferSize(se::State& s) // NOLINT(readabili SE_PRECONDITION2(cobj, false, "js_gfx_MemoryStatus_get_bufferSize : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->bufferSize, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->bufferSize, s.thisObject(), s.rval()); @@ -15350,7 +15735,7 @@ SE_BIND_PROP_GET(js_gfx_MemoryStatus_get_bufferSize) static bool js_gfx_MemoryStatus_set_bufferSize(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_MemoryStatus_set_bufferSize : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -15366,7 +15751,7 @@ static bool js_gfx_MemoryStatus_get_textureSize(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_gfx_MemoryStatus_get_textureSize : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->textureSize, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->textureSize, s.thisObject(), s.rval()); @@ -15377,7 +15762,7 @@ SE_BIND_PROP_GET(js_gfx_MemoryStatus_get_textureSize) static bool js_gfx_MemoryStatus_set_textureSize(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_MemoryStatus_set_textureSize : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -15387,23 +15772,25 @@ static bool js_gfx_MemoryStatus_set_textureSize(se::State& s) // NOLINT(readabil } SE_BIND_PROP_SET(js_gfx_MemoryStatus_set_textureSize) -template <> -bool sevalue_to_native(const se::Value& from, cc::gfx::MemoryStatus* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::gfx::MemoryStatus * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("bufferSize", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bufferSize), ctx); } json->getProperty("textureSize", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->textureSize), ctx); } return ok; @@ -15413,24 +15800,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_MemoryStatus_finalize) static bool js_gfx_MemoryStatus_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::gfx::MemoryStatus* cobj = JSB_ALLOC(cc::gfx::MemoryStatus); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::gfx::MemoryStatus* cobj = JSB_ALLOC(cc::gfx::MemoryStatus); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -15449,7 +15838,7 @@ static bool js_gfx_MemoryStatus_constructor(se::State& s) // NOLINT(readability- ok &= sevalue_to_native(args[1], &(cobj->textureSize), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -15461,10 +15850,13 @@ static bool js_gfx_MemoryStatus_constructor(se::State& s) // NOLINT(readability- } SE_BIND_CTOR(js_gfx_MemoryStatus_constructor, __jsb_cc_gfx_MemoryStatus_class, js_cc_gfx_MemoryStatus_finalize) + + static bool js_cc_gfx_MemoryStatus_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -15490,15 +15882,15 @@ bool js_register_gfx_MemoryStatus(se::Object* obj) // NOLINT(readability-identif return true; } se::Object* __jsb_cc_gfx_GFXObject_proto = nullptr; -se::Class* __jsb_cc_gfx_GFXObject_class = nullptr; +se::Class* __jsb_cc_gfx_GFXObject_class = nullptr; static bool js_gfx_GFXObject_getObjectID(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_GFXObject_getObjectID : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getObjectID(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -15515,9 +15907,9 @@ static bool js_gfx_GFXObject_getObjectType(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_GFXObject_getObjectType : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getObjectType()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -15534,9 +15926,9 @@ static bool js_gfx_GFXObject_getTypedID(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_GFXObject_getTypedID : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getTypedID(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -15553,8 +15945,8 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_GFXObject_finalize) static bool js_gfx_GFXObject_constructor(se::State& s) // NOLINT(readability-identifier-naming) constructor.c { - CC_UNUSED bool ok = true; - const auto& args = s.args(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); cc::gfx::ObjectType arg0; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); SE_PRECONDITION2(ok, false, "js_gfx_GFXObject_constructor : Error processing arguments"); @@ -15565,10 +15957,13 @@ static bool js_gfx_GFXObject_constructor(se::State& s) // NOLINT(readability-ide } SE_BIND_CTOR(js_gfx_GFXObject_constructor, __jsb_cc_gfx_GFXObject_class, js_cc_gfx_GFXObject_finalize) + + static bool js_cc_gfx_GFXObject_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -15595,14 +15990,14 @@ bool js_register_gfx_GFXObject(se::Object* obj) // NOLINT(readability-identifier return true; } se::Object* __jsb_cc_gfx_Buffer_proto = nullptr; -se::Class* __jsb_cc_gfx_Buffer_class = nullptr; +se::Class* __jsb_cc_gfx_Buffer_class = nullptr; static bool js_gfx_Buffer_destroy(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Buffer_destroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->destroy(); return true; @@ -15616,9 +16011,9 @@ static bool js_gfx_Buffer_getCount(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Buffer_getCount : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getCount(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -15635,9 +16030,9 @@ static bool js_gfx_Buffer_getFlags(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Buffer_getFlags : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getFlags()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -15654,9 +16049,9 @@ static bool js_gfx_Buffer_getMemUsage(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Buffer_getMemUsage : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getMemUsage()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -15673,9 +16068,9 @@ static bool js_gfx_Buffer_getSize(se::State& s) // NOLINT(readability-identifier { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Buffer_getSize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getSize(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -15692,9 +16087,9 @@ static bool js_gfx_Buffer_getStride(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Buffer_getStride : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getStride(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -15711,9 +16106,9 @@ static bool js_gfx_Buffer_getUsage(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Buffer_getUsage : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getUsage()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -15730,9 +16125,9 @@ static bool js_gfx_Buffer_isBufferView(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Buffer_isBufferView : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isBufferView(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -15749,9 +16144,9 @@ static bool js_gfx_Buffer_resize(se::State& s) // NOLINT(readability-identifier- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Buffer_resize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -15766,9 +16161,9 @@ SE_BIND_FUNC(js_gfx_Buffer_resize) static bool js_gfx_Buffer_computeHash(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -15794,10 +16189,13 @@ static bool js_gfx_Buffer_constructor(se::State& /*s*/) // NOLINT(readability-id } SE_BIND_CTOR(js_gfx_Buffer_constructor, __jsb_cc_gfx_Buffer_class, js_cc_gfx_Buffer_finalize) + + static bool js_cc_gfx_Buffer_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -15831,14 +16229,14 @@ bool js_register_gfx_Buffer(se::Object* obj) // NOLINT(readability-identifier-na return true; } se::Object* __jsb_cc_gfx_InputAssembler_proto = nullptr; -se::Class* __jsb_cc_gfx_InputAssembler_class = nullptr; +se::Class* __jsb_cc_gfx_InputAssembler_class = nullptr; static bool js_gfx_InputAssembler_destroy(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_destroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->destroy(); return true; @@ -15852,9 +16250,9 @@ static bool js_gfx_InputAssembler_getAttributes(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_getAttributes : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getAttributes(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -15871,9 +16269,9 @@ static bool js_gfx_InputAssembler_getAttributesHash(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_getAttributesHash : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { size_t result = cobj->getAttributesHash(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -15890,9 +16288,9 @@ static bool js_gfx_InputAssembler_getDrawInfo(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_getDrawInfo : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::gfx::DrawInfo& result = cobj->getDrawInfo(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -15909,9 +16307,9 @@ static bool js_gfx_InputAssembler_getFirstIndex(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_getFirstIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getFirstIndex(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -15928,9 +16326,9 @@ static bool js_gfx_InputAssembler_getFirstInstance(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_getFirstInstance : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getFirstInstance(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -15947,9 +16345,9 @@ static bool js_gfx_InputAssembler_getFirstVertex(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_getFirstVertex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getFirstVertex(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -15966,9 +16364,9 @@ static bool js_gfx_InputAssembler_getIndexBuffer(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_getIndexBuffer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::Buffer* result = cobj->getIndexBuffer(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -15985,9 +16383,9 @@ static bool js_gfx_InputAssembler_getIndexCount(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_getIndexCount : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getIndexCount(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -16004,9 +16402,9 @@ static bool js_gfx_InputAssembler_getIndirectBuffer(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_getIndirectBuffer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::Buffer* result = cobj->getIndirectBuffer(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -16023,9 +16421,9 @@ static bool js_gfx_InputAssembler_getInstanceCount(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_getInstanceCount : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getInstanceCount(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -16042,11 +16440,11 @@ static bool js_gfx_InputAssembler_getVertexBuffers(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_getVertexBuffers : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - const std::vector& result = cobj->getVertexBuffers(); + const std::vector& result = cobj->getVertexBuffers(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_gfx_InputAssembler_getVertexBuffers : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -16061,9 +16459,9 @@ static bool js_gfx_InputAssembler_getVertexCount(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_getVertexCount : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getVertexCount(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -16080,9 +16478,9 @@ static bool js_gfx_InputAssembler_getVertexOffset(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_getVertexOffset : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getVertexOffset(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -16099,9 +16497,9 @@ static bool js_gfx_InputAssembler_initialize(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -16118,9 +16516,9 @@ static bool js_gfx_InputAssembler_setFirstIndex(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_setFirstIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -16137,9 +16535,9 @@ static bool js_gfx_InputAssembler_setFirstInstance(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_setFirstInstance : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -16156,9 +16554,9 @@ static bool js_gfx_InputAssembler_setFirstVertex(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_setFirstVertex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -16175,9 +16573,9 @@ static bool js_gfx_InputAssembler_setIndexCount(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_setIndexCount : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -16194,9 +16592,9 @@ static bool js_gfx_InputAssembler_setInstanceCount(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_setInstanceCount : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -16213,9 +16611,9 @@ static bool js_gfx_InputAssembler_setVertexCount(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_setVertexCount : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -16232,9 +16630,9 @@ static bool js_gfx_InputAssembler_setVertexOffset(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_setVertexOffset : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -16257,10 +16655,13 @@ static bool js_gfx_InputAssembler_constructor(se::State& /*s*/) // NOLINT(readab } SE_BIND_CTOR(js_gfx_InputAssembler_constructor, __jsb_cc_gfx_InputAssembler_class, js_cc_gfx_InputAssembler_finalize) + + static bool js_cc_gfx_InputAssembler_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -16299,81 +16700,64 @@ bool js_register_gfx_InputAssembler(se::Object* obj) // NOLINT(readability-ident return true; } se::Object* __jsb_cc_gfx_CommandBuffer_proto = nullptr; -se::Class* __jsb_cc_gfx_CommandBuffer_class = nullptr; +se::Class* __jsb_cc_gfx_CommandBuffer_class = nullptr; static bool js_gfx_CommandBuffer_begin(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_begin : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2( cobj, false, "js_gfx_CommandBuffer_begin : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 0) { + cobj->begin(); return true; } - } while (false); + } while(false); do { if (argc == 3) { - HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->begin(arg0.value(), arg1.value(), arg2.value()); return true; } - } while (false); + } while(false); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->begin(arg0.value()); return true; } - } while (false); + } while(false); do { if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->begin(arg0.value(), arg1.value()); return true; } - } while (false); + } while(false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -16384,12 +16768,12 @@ static bool js_gfx_CommandBuffer_beginQuery(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_beginQuery : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_gfx_CommandBuffer_beginQuery : Error processing arguments"); @@ -16403,204 +16787,123 @@ SE_BIND_FUNC(js_gfx_CommandBuffer_beginQuery) static bool js_gfx_CommandBuffer_beginRenderPass(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_beginRenderPass : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2( cobj, false, "js_gfx_CommandBuffer_beginRenderPass : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 7) { - HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType, true> arg3 = {}; - HolderType arg4 = {}; - HolderType arg5 = {}; - HolderType, true> arg6 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType, true> arg3 = {}; + HolderType arg4 = {}; + HolderType arg5 = {}; + HolderType, true> arg6 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[3], &arg3, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[4], &arg4, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[5], &arg5, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[6], &arg6, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->beginRenderPass(arg0.value(), arg1.value(), arg2.value(), arg3.value(), arg4.value(), arg5.value(), arg6.value()); return true; } - } while (false); + } while(false); do { if (argc == 8) { - HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; - HolderType arg4 = {}; - HolderType arg5 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; + HolderType arg4 = {}; + HolderType arg5 = {}; HolderType arg6 = {}; - HolderType arg7 = {}; + HolderType arg7 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[3], &arg3, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[4], &arg4, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[5], &arg5, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[6], &arg6, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[7], &arg7, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->beginRenderPass(arg0.value(), arg1.value(), arg2.value(), arg3.value(), arg4.value(), arg5.value(), arg6.value(), arg7.value()); return true; } - } while (false); + } while(false); do { if (argc == 6) { - HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType, true> arg3 = {}; - HolderType arg4 = {}; - HolderType arg5 = {}; - - ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } - ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } - ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { - ok = true; - break; - } - ok &= sevalue_to_native(args[3], &arg3, s.thisObject()); - if (!ok) { - ok = true; - break; - } - ok &= sevalue_to_native(args[4], &arg4, s.thisObject()); - if (!ok) { - ok = true; - break; - } - ok &= sevalue_to_native(args[5], &arg5, s.thisObject()); - if (!ok) { - ok = true; - break; - } - cobj->beginRenderPass(arg0.value(), arg1.value(), arg2.value(), arg3.value(), arg4.value(), arg5.value()); - return true; - } - } while (false); - - do { - if (argc == 6) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; - HolderType arg4 = {}; - HolderType arg5 = {}; + HolderType arg2 = {}; + HolderType, true> arg3 = {}; + HolderType arg4 = {}; + HolderType arg5 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[3], &arg3, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[4], &arg4, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[5], &arg5, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->beginRenderPass(arg0.value(), arg1.value(), arg2.value(), arg3.value(), arg4.value(), arg5.value()); return true; } - } while (false); + } while(false); + + do { + if (argc == 6) { + HolderType arg0 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; + HolderType arg4 = {}; + HolderType arg5 = {}; + + ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); + if (!ok) { ok = true; break; } + ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); + if (!ok) { ok = true; break; } + ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); + if (!ok) { ok = true; break; } + ok &= sevalue_to_native(args[3], &arg3, s.thisObject()); + if (!ok) { ok = true; break; } + ok &= sevalue_to_native(args[4], &arg4, s.thisObject()); + if (!ok) { ok = true; break; } + ok &= sevalue_to_native(args[5], &arg5, s.thisObject()); + if (!ok) { ok = true; break; } + cobj->beginRenderPass(arg0.value(), arg1.value(), arg2.value(), arg3.value(), arg4.value(), arg5.value()); + return true; + } + } while(false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -16609,88 +16912,61 @@ SE_BIND_FUNC(js_gfx_CommandBuffer_beginRenderPass) static bool js_gfx_CommandBuffer_bindDescriptorSet(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_bindDescriptorSet : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2( cobj, false, "js_gfx_CommandBuffer_bindDescriptorSet : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->bindDescriptorSet(arg0.value(), arg1.value()); return true; } - } while (false); + } while(false); do { if (argc == 4) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[3], &arg3, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->bindDescriptorSet(arg0.value(), arg1.value(), arg2.value(), arg3.value()); return true; } - } while (false); + } while(false); do { if (argc == 3) { - HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; HolderType, true> arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->bindDescriptorSet(arg0.value(), arg1.value(), arg2.value()); return true; } - } while (false); + } while(false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -16701,9 +16977,9 @@ static bool js_gfx_CommandBuffer_bindInputAssembler(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_bindInputAssembler : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -16720,9 +16996,9 @@ static bool js_gfx_CommandBuffer_bindPipelineState(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_bindPipelineState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -16737,80 +17013,53 @@ SE_BIND_FUNC(js_gfx_CommandBuffer_bindPipelineState) static bool js_gfx_CommandBuffer_blitTexture(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_blitTexture : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2( cobj, false, "js_gfx_CommandBuffer_blitTexture : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 4) { - HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; HolderType, true> arg2 = {}; - HolderType arg3 = {}; + HolderType arg3 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[3], &arg3, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->blitTexture(arg0.value(), arg1.value(), arg2.value(), arg3.value()); return true; } - } while (false); + } while(false); do { if (argc == 5) { - HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; HolderType arg2 = {}; - HolderType arg3 = {}; - HolderType arg4 = {}; + HolderType arg3 = {}; + HolderType arg4 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[3], &arg3, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[4], &arg4, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->blitTexture(arg0.value(), arg1.value(), arg2.value(), arg3.value(), arg4.value()); return true; } - } while (false); + } while(false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -16821,9 +17070,9 @@ static bool js_gfx_CommandBuffer_completeQueryPool(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_completeQueryPool : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -16841,7 +17090,7 @@ static bool js_gfx_CommandBuffer_destroy(se::State& s) // NOLINT(readability-ide auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_destroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->destroy(); return true; @@ -16855,9 +17104,9 @@ static bool js_gfx_CommandBuffer_dispatch(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_dispatch : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -16872,38 +17121,32 @@ SE_BIND_FUNC(js_gfx_CommandBuffer_dispatch) static bool js_gfx_CommandBuffer_draw(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_draw : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2( cobj, false, "js_gfx_CommandBuffer_draw : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->draw(arg0.value()); return true; } - } while (false); + } while(false); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->draw(arg0.value()); return true; } - } while (false); + } while(false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -16915,7 +17158,7 @@ static bool js_gfx_CommandBuffer_end(se::State& s) // NOLINT(readability-identif auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_end : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->end(); return true; @@ -16929,12 +17172,12 @@ static bool js_gfx_CommandBuffer_endQuery(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_endQuery : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_gfx_CommandBuffer_endQuery : Error processing arguments"); @@ -16951,7 +17194,7 @@ static bool js_gfx_CommandBuffer_endRenderPass(se::State& s) // NOLINT(readabili auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_endRenderPass : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->endRenderPass(); return true; @@ -16965,9 +17208,9 @@ static bool js_gfx_CommandBuffer_getNumDrawCalls(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_getNumDrawCalls : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getNumDrawCalls(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -16984,9 +17227,9 @@ static bool js_gfx_CommandBuffer_getNumInstances(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_getNumInstances : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getNumInstances(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -17003,9 +17246,9 @@ static bool js_gfx_CommandBuffer_getNumTris(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_getNumTris : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getNumTris(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -17022,9 +17265,9 @@ static bool js_gfx_CommandBuffer_getQueue(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_getQueue : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::Queue* result = cobj->getQueue(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -17041,9 +17284,9 @@ static bool js_gfx_CommandBuffer_getType(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_getType : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getType()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -17060,9 +17303,9 @@ static bool js_gfx_CommandBuffer_initialize(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -17080,7 +17323,7 @@ static bool js_gfx_CommandBuffer_nextSubpass(se::State& s) // NOLINT(readability auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_nextSubpass : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->nextSubpass(); return true; @@ -17092,82 +17335,58 @@ SE_BIND_FUNC(js_gfx_CommandBuffer_nextSubpass) static bool js_gfx_CommandBuffer_pipelineBarrier(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_pipelineBarrier : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2( cobj, false, "js_gfx_CommandBuffer_pipelineBarrier : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->pipelineBarrier(arg0.value()); return true; } - } while (false); + } while(false); do { if (argc == 4) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[3], &arg3, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->pipelineBarrier(arg0.value(), arg1.value(), arg2.value(), arg3.value()); return true; } - } while (false); + } while(false); do { if (argc == 3) { - HolderType arg0 = {}; - HolderType, true> arg1 = {}; - HolderType, true> arg2 = {}; + HolderType arg0 = {}; + HolderType, true> arg1 = {}; + HolderType, true> arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->pipelineBarrier(arg0.value(), arg1.value(), arg2.value()); return true; } - } while (false); + } while(false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -17178,9 +17397,9 @@ static bool js_gfx_CommandBuffer_resetQueryPool(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_resetQueryPool : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -17197,9 +17416,9 @@ static bool js_gfx_CommandBuffer_setBlendConstants(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_setBlendConstants : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -17216,9 +17435,9 @@ static bool js_gfx_CommandBuffer_setDepthBias(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_setDepthBias : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -17239,9 +17458,9 @@ static bool js_gfx_CommandBuffer_setDepthBound(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_setDepthBound : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -17260,9 +17479,9 @@ static bool js_gfx_CommandBuffer_setLineWidth(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_setLineWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -17279,9 +17498,9 @@ static bool js_gfx_CommandBuffer_setScissor(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_setScissor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -17298,13 +17517,13 @@ static bool js_gfx_CommandBuffer_setStencilCompareMask(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_setStencilCompareMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -17321,12 +17540,12 @@ static bool js_gfx_CommandBuffer_setStencilWriteMask(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_setStencilWriteMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_gfx_CommandBuffer_setStencilWriteMask : Error processing arguments"); @@ -17342,9 +17561,9 @@ static bool js_gfx_CommandBuffer_setViewport(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_setViewport : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -17367,10 +17586,13 @@ static bool js_gfx_CommandBuffer_constructor(se::State& /*s*/) // NOLINT(readabi } SE_BIND_CTOR(js_gfx_CommandBuffer_constructor, __jsb_cc_gfx_CommandBuffer_class, js_cc_gfx_CommandBuffer_finalize) + + static bool js_cc_gfx_CommandBuffer_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -17425,60 +17647,45 @@ bool js_register_gfx_CommandBuffer(se::Object* obj) // NOLINT(readability-identi return true; } se::Object* __jsb_cc_gfx_DescriptorSet_proto = nullptr; -se::Class* __jsb_cc_gfx_DescriptorSet_class = nullptr; +se::Class* __jsb_cc_gfx_DescriptorSet_class = nullptr; static bool js_gfx_DescriptorSet_bindBuffer(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSet_bindBuffer : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2( cobj, false, "js_gfx_DescriptorSet_bindBuffer : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->bindBuffer(arg0.value(), arg1.value()); return true; } - } while (false); + } while(false); do { if (argc == 3) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->bindBuffer(arg0.value(), arg1.value(), arg2.value()); return true; } - } while (false); + } while(false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -17489,13 +17696,13 @@ static bool js_gfx_DescriptorSet_bindBufferJSB(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSet_bindBufferJSB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -17513,56 +17720,41 @@ SE_BIND_FUNC(js_gfx_DescriptorSet_bindBufferJSB) static bool js_gfx_DescriptorSet_bindSampler(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSet_bindSampler : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2( cobj, false, "js_gfx_DescriptorSet_bindSampler : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->bindSampler(arg0.value(), arg1.value()); return true; } - } while (false); + } while(false); do { if (argc == 3) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->bindSampler(arg0.value(), arg1.value(), arg2.value()); return true; } - } while (false); + } while(false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -17573,13 +17765,13 @@ static bool js_gfx_DescriptorSet_bindSamplerJSB(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSet_bindSamplerJSB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -17597,56 +17789,41 @@ SE_BIND_FUNC(js_gfx_DescriptorSet_bindSamplerJSB) static bool js_gfx_DescriptorSet_bindTexture(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSet_bindTexture : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2( cobj, false, "js_gfx_DescriptorSet_bindTexture : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->bindTexture(arg0.value(), arg1.value()); return true; } - } while (false); + } while(false); do { if (argc == 3) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->bindTexture(arg0.value(), arg1.value(), arg2.value()); return true; } - } while (false); + } while(false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -17657,13 +17834,13 @@ static bool js_gfx_DescriptorSet_bindTextureJSB(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSet_bindTextureJSB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -17684,7 +17861,7 @@ static bool js_gfx_DescriptorSet_destroy(se::State& s) // NOLINT(readability-ide auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSet_destroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->destroy(); return true; @@ -17696,27 +17873,24 @@ SE_BIND_FUNC(js_gfx_DescriptorSet_destroy) static bool js_gfx_DescriptorSet_getBuffer(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSet_getBuffer : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2( cobj, false, "js_gfx_DescriptorSet_getBuffer : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cc::gfx::Buffer* result = cobj->getBuffer(arg0.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_gfx_DescriptorSet_getBuffer : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while (false); + } while(false); do { if (argc == 2) { @@ -17724,22 +17898,16 @@ static bool js_gfx_DescriptorSet_getBuffer(se::State& s) // NOLINT(readability-i HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cc::gfx::Buffer* result = cobj->getBuffer(arg0.value(), arg1.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_gfx_DescriptorSet_getBuffer : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while (false); + } while(false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -17750,9 +17918,9 @@ static bool js_gfx_DescriptorSet_getLayout(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSet_getLayout : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::DescriptorSetLayout* result = cobj->getLayout(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -17767,27 +17935,24 @@ SE_BIND_PROP_GET(js_gfx_DescriptorSet_getLayout) static bool js_gfx_DescriptorSet_getSampler(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSet_getSampler : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2( cobj, false, "js_gfx_DescriptorSet_getSampler : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cc::gfx::Sampler* result = cobj->getSampler(arg0.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_gfx_DescriptorSet_getSampler : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while (false); + } while(false); do { if (argc == 2) { @@ -17795,22 +17960,16 @@ static bool js_gfx_DescriptorSet_getSampler(se::State& s) // NOLINT(readability- HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cc::gfx::Sampler* result = cobj->getSampler(arg0.value(), arg1.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_gfx_DescriptorSet_getSampler : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while (false); + } while(false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -17819,27 +17978,24 @@ SE_BIND_FUNC(js_gfx_DescriptorSet_getSampler) static bool js_gfx_DescriptorSet_getTexture(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSet_getTexture : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2( cobj, false, "js_gfx_DescriptorSet_getTexture : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cc::gfx::Texture* result = cobj->getTexture(arg0.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_gfx_DescriptorSet_getTexture : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while (false); + } while(false); do { if (argc == 2) { @@ -17847,22 +18003,16 @@ static bool js_gfx_DescriptorSet_getTexture(se::State& s) // NOLINT(readability- HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cc::gfx::Texture* result = cobj->getTexture(arg0.value(), arg1.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_gfx_DescriptorSet_getTexture : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while (false); + } while(false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -17873,9 +18023,9 @@ static bool js_gfx_DescriptorSet_initialize(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSet_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -17893,7 +18043,7 @@ static bool js_gfx_DescriptorSet_update(se::State& s) // NOLINT(readability-iden auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSet_update : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->update(); return true; @@ -17913,10 +18063,13 @@ static bool js_gfx_DescriptorSet_constructor(se::State& /*s*/) // NOLINT(readabi } SE_BIND_CTOR(js_gfx_DescriptorSet_constructor, __jsb_cc_gfx_DescriptorSet_class, js_cc_gfx_DescriptorSet_finalize) + + static bool js_cc_gfx_DescriptorSet_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -17953,14 +18106,14 @@ bool js_register_gfx_DescriptorSet(se::Object* obj) // NOLINT(readability-identi return true; } se::Object* __jsb_cc_gfx_DescriptorSetLayout_proto = nullptr; -se::Class* __jsb_cc_gfx_DescriptorSetLayout_class = nullptr; +se::Class* __jsb_cc_gfx_DescriptorSetLayout_class = nullptr; static bool js_gfx_DescriptorSetLayout_destroy(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSetLayout_destroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->destroy(); return true; @@ -17974,9 +18127,9 @@ static bool js_gfx_DescriptorSetLayout_getBindings(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSetLayout_getBindings : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getBindings(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -17993,9 +18146,9 @@ static bool js_gfx_DescriptorSetLayout_getDescriptorCount(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSetLayout_getDescriptorCount : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getDescriptorCount(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18012,9 +18165,9 @@ static bool js_gfx_DescriptorSetLayout_getDynamicBindings(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSetLayout_getDynamicBindings : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getDynamicBindings(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18031,9 +18184,9 @@ static bool js_gfx_DescriptorSetLayout_initialize(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSetLayout_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -18056,10 +18209,13 @@ static bool js_gfx_DescriptorSetLayout_constructor(se::State& /*s*/) // NOLINT(r } SE_BIND_CTOR(js_gfx_DescriptorSetLayout_constructor, __jsb_cc_gfx_DescriptorSetLayout_class, js_cc_gfx_DescriptorSetLayout_finalize) + + static bool js_cc_gfx_DescriptorSetLayout_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -18088,14 +18244,14 @@ bool js_register_gfx_DescriptorSetLayout(se::Object* obj) // NOLINT(readability- return true; } se::Object* __jsb_cc_gfx_Framebuffer_proto = nullptr; -se::Class* __jsb_cc_gfx_Framebuffer_class = nullptr; +se::Class* __jsb_cc_gfx_Framebuffer_class = nullptr; static bool js_gfx_Framebuffer_destroy(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Framebuffer_destroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->destroy(); return true; @@ -18109,11 +18265,11 @@ static bool js_gfx_Framebuffer_getColorTextures(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Framebuffer_getColorTextures : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - const std::vector& result = cobj->getColorTextures(); + const std::vector& result = cobj->getColorTextures(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_gfx_Framebuffer_getColorTextures : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -18128,9 +18284,9 @@ static bool js_gfx_Framebuffer_getDepthStencilTexture(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Framebuffer_getDepthStencilTexture : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::Texture* result = cobj->getDepthStencilTexture(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18147,9 +18303,9 @@ static bool js_gfx_Framebuffer_getRenderPass(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Framebuffer_getRenderPass : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::RenderPass* result = cobj->getRenderPass(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18166,9 +18322,9 @@ static bool js_gfx_Framebuffer_initialize(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Framebuffer_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -18183,9 +18339,9 @@ SE_BIND_FUNC(js_gfx_Framebuffer_initialize) static bool js_gfx_Framebuffer_computeHash(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -18211,10 +18367,13 @@ static bool js_gfx_Framebuffer_constructor(se::State& /*s*/) // NOLINT(readabili } SE_BIND_CTOR(js_gfx_Framebuffer_constructor, __jsb_cc_gfx_Framebuffer_class, js_cc_gfx_Framebuffer_finalize) + + static bool js_cc_gfx_Framebuffer_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -18244,14 +18403,14 @@ bool js_register_gfx_Framebuffer(se::Object* obj) // NOLINT(readability-identifi return true; } se::Object* __jsb_cc_gfx_PipelineLayout_proto = nullptr; -se::Class* __jsb_cc_gfx_PipelineLayout_class = nullptr; +se::Class* __jsb_cc_gfx_PipelineLayout_class = nullptr; static bool js_gfx_PipelineLayout_destroy(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineLayout_destroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->destroy(); return true; @@ -18265,11 +18424,11 @@ static bool js_gfx_PipelineLayout_getSetLayouts(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineLayout_getSetLayouts : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - const std::vector& result = cobj->getSetLayouts(); + const std::vector& result = cobj->getSetLayouts(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_gfx_PipelineLayout_getSetLayouts : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -18284,9 +18443,9 @@ static bool js_gfx_PipelineLayout_initialize(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineLayout_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -18309,10 +18468,13 @@ static bool js_gfx_PipelineLayout_constructor(se::State& /*s*/) // NOLINT(readab } SE_BIND_CTOR(js_gfx_PipelineLayout_constructor, __jsb_cc_gfx_PipelineLayout_class, js_cc_gfx_PipelineLayout_finalize) + + static bool js_cc_gfx_PipelineLayout_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -18339,14 +18501,14 @@ bool js_register_gfx_PipelineLayout(se::Object* obj) // NOLINT(readability-ident return true; } se::Object* __jsb_cc_gfx_PipelineState_proto = nullptr; -se::Class* __jsb_cc_gfx_PipelineState_class = nullptr; +se::Class* __jsb_cc_gfx_PipelineState_class = nullptr; static bool js_gfx_PipelineState_destroy(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineState_destroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->destroy(); return true; @@ -18360,9 +18522,9 @@ static bool js_gfx_PipelineState_getBindPoint(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineState_getBindPoint : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getBindPoint()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18379,9 +18541,9 @@ static bool js_gfx_PipelineState_getBlendState(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineState_getBlendState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::gfx::BlendState& result = cobj->getBlendState(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18398,9 +18560,9 @@ static bool js_gfx_PipelineState_getDepthStencilState(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineState_getDepthStencilState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::gfx::DepthStencilState& result = cobj->getDepthStencilState(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18417,9 +18579,9 @@ static bool js_gfx_PipelineState_getDynamicStates(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineState_getDynamicStates : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getDynamicStates()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18436,9 +18598,9 @@ static bool js_gfx_PipelineState_getInputState(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineState_getInputState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::gfx::InputState& result = cobj->getInputState(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18455,9 +18617,9 @@ static bool js_gfx_PipelineState_getPipelineLayout(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineState_getPipelineLayout : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::gfx::PipelineLayout* result = cobj->getPipelineLayout(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18474,9 +18636,9 @@ static bool js_gfx_PipelineState_getPrimitive(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineState_getPrimitive : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getPrimitive()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18493,9 +18655,9 @@ static bool js_gfx_PipelineState_getRasterizerState(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineState_getRasterizerState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::gfx::RasterizerState& result = cobj->getRasterizerState(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18512,9 +18674,9 @@ static bool js_gfx_PipelineState_getRenderPass(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineState_getRenderPass : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::gfx::RenderPass* result = cobj->getRenderPass(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18531,9 +18693,9 @@ static bool js_gfx_PipelineState_getShader(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineState_getShader : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::Shader* result = cobj->getShader(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18550,9 +18712,9 @@ static bool js_gfx_PipelineState_initialize(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineState_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -18575,10 +18737,13 @@ static bool js_gfx_PipelineState_constructor(se::State& /*s*/) // NOLINT(readabi } SE_BIND_CTOR(js_gfx_PipelineState_constructor, __jsb_cc_gfx_PipelineState_class, js_cc_gfx_PipelineState_finalize) + + static bool js_cc_gfx_PipelineState_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -18614,14 +18779,14 @@ bool js_register_gfx_PipelineState(se::Object* obj) // NOLINT(readability-identi return true; } se::Object* __jsb_cc_gfx_QueryPool_proto = nullptr; -se::Class* __jsb_cc_gfx_QueryPool_class = nullptr; +se::Class* __jsb_cc_gfx_QueryPool_class = nullptr; static bool js_gfx_QueryPool_destroy(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_QueryPool_destroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->destroy(); return true; @@ -18635,9 +18800,9 @@ static bool js_gfx_QueryPool_getForceWait(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_QueryPool_getForceWait : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getForceWait(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18654,9 +18819,9 @@ static bool js_gfx_QueryPool_getMaxQueryObjects(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_QueryPool_getMaxQueryObjects : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getMaxQueryObjects(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18673,9 +18838,9 @@ static bool js_gfx_QueryPool_getResult(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_QueryPool_getResult : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -18695,9 +18860,9 @@ static bool js_gfx_QueryPool_getType(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_QueryPool_getType : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getType()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18714,9 +18879,9 @@ static bool js_gfx_QueryPool_hasResult(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_QueryPool_hasResult : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -18736,9 +18901,9 @@ static bool js_gfx_QueryPool_initialize(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_QueryPool_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -18761,10 +18926,13 @@ static bool js_gfx_QueryPool_constructor(se::State& /*s*/) // NOLINT(readability } SE_BIND_CTOR(js_gfx_QueryPool_constructor, __jsb_cc_gfx_QueryPool_class, js_cc_gfx_QueryPool_finalize) + + static bool js_cc_gfx_QueryPool_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -18795,14 +18963,14 @@ bool js_register_gfx_QueryPool(se::Object* obj) // NOLINT(readability-identifier return true; } se::Object* __jsb_cc_gfx_Queue_proto = nullptr; -se::Class* __jsb_cc_gfx_Queue_class = nullptr; +se::Class* __jsb_cc_gfx_Queue_class = nullptr; static bool js_gfx_Queue_destroy(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Queue_destroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->destroy(); return true; @@ -18816,9 +18984,9 @@ static bool js_gfx_Queue_getType(se::State& s) // NOLINT(readability-identifier- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Queue_getType : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getType()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18835,9 +19003,9 @@ static bool js_gfx_Queue_initialize(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Queue_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -18852,44 +19020,35 @@ SE_BIND_FUNC(js_gfx_Queue_initialize) static bool js_gfx_Queue_submit(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_gfx_Queue_submit : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2( cobj, false, "js_gfx_Queue_submit : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->submit(arg0.value()); return true; } - } while (false); + } while(false); do { if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->submit(arg0.value(), arg1.value()); return true; } - } while (false); + } while(false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -18906,10 +19065,13 @@ static bool js_gfx_Queue_constructor(se::State& /*s*/) // NOLINT(readability-ide } SE_BIND_CTOR(js_gfx_Queue_constructor, __jsb_cc_gfx_Queue_class, js_cc_gfx_Queue_finalize) + + static bool js_cc_gfx_Queue_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -18937,14 +19099,14 @@ bool js_register_gfx_Queue(se::Object* obj) // NOLINT(readability-identifier-nam return true; } se::Object* __jsb_cc_gfx_RenderPass_proto = nullptr; -se::Class* __jsb_cc_gfx_RenderPass_class = nullptr; +se::Class* __jsb_cc_gfx_RenderPass_class = nullptr; static bool js_gfx_RenderPass_destroy(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RenderPass_destroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->destroy(); return true; @@ -18958,9 +19120,9 @@ static bool js_gfx_RenderPass_getDependencies(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RenderPass_getDependencies : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getDependencies(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18977,9 +19139,9 @@ static bool js_gfx_RenderPass_getDepthStencilAttachment(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RenderPass_getDepthStencilAttachment : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::gfx::DepthStencilAttachment& result = cobj->getDepthStencilAttachment(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18996,9 +19158,9 @@ static bool js_gfx_RenderPass_getHash(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RenderPass_getHash : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { size_t result = cobj->getHash(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19015,9 +19177,9 @@ static bool js_gfx_RenderPass_getSubpasses(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RenderPass_getSubpasses : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getSubpasses(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19034,9 +19196,9 @@ static bool js_gfx_RenderPass_initialize(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RenderPass_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -19051,9 +19213,9 @@ SE_BIND_FUNC(js_gfx_RenderPass_initialize) static bool js_gfx_RenderPass_computeHash(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -19079,10 +19241,13 @@ static bool js_gfx_RenderPass_constructor(se::State& /*s*/) // NOLINT(readabilit } SE_BIND_CTOR(js_gfx_RenderPass_constructor, __jsb_cc_gfx_RenderPass_class, js_cc_gfx_RenderPass_finalize) + + static bool js_cc_gfx_RenderPass_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -19113,14 +19278,14 @@ bool js_register_gfx_RenderPass(se::Object* obj) // NOLINT(readability-identifie return true; } se::Object* __jsb_cc_gfx_Shader_proto = nullptr; -se::Class* __jsb_cc_gfx_Shader_class = nullptr; +se::Class* __jsb_cc_gfx_Shader_class = nullptr; static bool js_gfx_Shader_destroy(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Shader_destroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->destroy(); return true; @@ -19134,9 +19299,9 @@ static bool js_gfx_Shader_getAttributes(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Shader_getAttributes : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getAttributes(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19153,9 +19318,9 @@ static bool js_gfx_Shader_getBlocks(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Shader_getBlocks : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getBlocks(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19172,9 +19337,9 @@ static bool js_gfx_Shader_getBuffers(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Shader_getBuffers : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getBuffers(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19191,9 +19356,9 @@ static bool js_gfx_Shader_getImages(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Shader_getImages : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getImages(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19210,9 +19375,9 @@ static bool js_gfx_Shader_getName(se::State& s) // NOLINT(readability-identifier { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Shader_getName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::String& result = cobj->getName(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19229,9 +19394,9 @@ static bool js_gfx_Shader_getSamplerTextures(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Shader_getSamplerTextures : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getSamplerTextures(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19248,9 +19413,9 @@ static bool js_gfx_Shader_getSamplers(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Shader_getSamplers : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getSamplers(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19267,9 +19432,9 @@ static bool js_gfx_Shader_getStages(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Shader_getStages : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getStages(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19286,9 +19451,9 @@ static bool js_gfx_Shader_getSubpassInputs(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Shader_getSubpassInputs : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getSubpassInputs(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19305,9 +19470,9 @@ static bool js_gfx_Shader_getTextures(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Shader_getTextures : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getTextures(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19324,9 +19489,9 @@ static bool js_gfx_Shader_initialize(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Shader_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -19349,10 +19514,13 @@ static bool js_gfx_Shader_constructor(se::State& /*s*/) // NOLINT(readability-id } SE_BIND_CTOR(js_gfx_Shader_constructor, __jsb_cc_gfx_Shader_class, js_cc_gfx_Shader_finalize) + + static bool js_cc_gfx_Shader_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -19388,14 +19556,14 @@ bool js_register_gfx_Shader(se::Object* obj) // NOLINT(readability-identifier-na return true; } se::Object* __jsb_cc_gfx_Texture_proto = nullptr; -se::Class* __jsb_cc_gfx_Texture_class = nullptr; +se::Class* __jsb_cc_gfx_Texture_class = nullptr; static bool js_gfx_Texture_destroy(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Texture_destroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->destroy(); return true; @@ -19409,9 +19577,9 @@ static bool js_gfx_Texture_getFormat(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Texture_getFormat : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getFormat()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19428,9 +19596,9 @@ static bool js_gfx_Texture_getHash(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Texture_getHash : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { size_t result = cobj->getHash(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19447,9 +19615,9 @@ static bool js_gfx_Texture_getHeight(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Texture_getHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getHeight(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19466,9 +19634,9 @@ static bool js_gfx_Texture_getInfo(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Texture_getInfo : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::gfx::TextureInfo& result = cobj->getInfo(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19485,9 +19653,9 @@ static bool js_gfx_Texture_getSize(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Texture_getSize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getSize(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19504,9 +19672,9 @@ static bool js_gfx_Texture_getViewInfo(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Texture_getViewInfo : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::gfx::TextureViewInfo& result = cobj->getViewInfo(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19523,9 +19691,9 @@ static bool js_gfx_Texture_getWidth(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Texture_getWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getWidth(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19542,9 +19710,9 @@ static bool js_gfx_Texture_isTextureView(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Texture_isTextureView : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isTextureView(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19561,9 +19729,9 @@ static bool js_gfx_Texture_resize(se::State& s) // NOLINT(readability-identifier { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Texture_resize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -19580,17 +19748,14 @@ SE_BIND_FUNC(js_gfx_Texture_resize) static bool js_gfx_Texture_computeHash(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } size_t result = cc::gfx::Texture::computeHash(arg0.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_gfx_Texture_computeHash : Error processing arguments"); @@ -19602,10 +19767,7 @@ static bool js_gfx_Texture_computeHash(se::State& s) // NOLINT(readability-ident if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } size_t result = cc::gfx::Texture::computeHash(arg0.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_gfx_Texture_computeHash : Error processing arguments"); @@ -19628,10 +19790,13 @@ static bool js_gfx_Texture_constructor(se::State& /*s*/) // NOLINT(readability-i } SE_BIND_CTOR(js_gfx_Texture_constructor, __jsb_cc_gfx_Texture_class, js_cc_gfx_Texture_finalize) + + static bool js_cc_gfx_Texture_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -19666,15 +19831,15 @@ bool js_register_gfx_Texture(se::Object* obj) // NOLINT(readability-identifier-n return true; } se::Object* __jsb_cc_gfx_Swapchain_proto = nullptr; -se::Class* __jsb_cc_gfx_Swapchain_class = nullptr; +se::Class* __jsb_cc_gfx_Swapchain_class = nullptr; static bool js_gfx_Swapchain_createSurface(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Swapchain_createSurface : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -19692,7 +19857,7 @@ static bool js_gfx_Swapchain_destroy(se::State& s) // NOLINT(readability-identif auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Swapchain_destroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->destroy(); return true; @@ -19707,7 +19872,7 @@ static bool js_gfx_Swapchain_destroySurface(se::State& s) // NOLINT(readability- auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Swapchain_destroySurface : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->destroySurface(); return true; @@ -19721,9 +19886,9 @@ static bool js_gfx_Swapchain_getColorTexture(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Swapchain_getColorTexture : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::Texture* result = cobj->getColorTexture(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19740,9 +19905,9 @@ static bool js_gfx_Swapchain_getDepthStencilTexture(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Swapchain_getDepthStencilTexture : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::Texture* result = cobj->getDepthStencilTexture(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19759,9 +19924,9 @@ static bool js_gfx_Swapchain_getHeight(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Swapchain_getHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getHeight(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19778,9 +19943,9 @@ static bool js_gfx_Swapchain_getSurfaceTransform(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Swapchain_getSurfaceTransform : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getSurfaceTransform()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19797,9 +19962,9 @@ static bool js_gfx_Swapchain_getVSyncMode(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Swapchain_getVSyncMode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getVSyncMode()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19816,9 +19981,9 @@ static bool js_gfx_Swapchain_getWidth(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Swapchain_getWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getWidth(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19835,9 +20000,9 @@ static bool js_gfx_Swapchain_getWindowHandle(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Swapchain_getWindowHandle : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { void* result = cobj->getWindowHandle(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19854,9 +20019,9 @@ static bool js_gfx_Swapchain_initialize(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Swapchain_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -19873,12 +20038,12 @@ static bool js_gfx_Swapchain_resize(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Swapchain_resize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { - HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -19902,10 +20067,13 @@ static bool js_gfx_Swapchain_constructor(se::State& /*s*/) // NOLINT(readability } SE_BIND_CTOR(js_gfx_Swapchain_constructor, __jsb_cc_gfx_Swapchain_class, js_cc_gfx_Swapchain_finalize) + + static bool js_cc_gfx_Swapchain_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -19941,15 +20109,15 @@ bool js_register_gfx_Swapchain(se::Object* obj) // NOLINT(readability-identifier return true; } se::Object* __jsb_cc_gfx_GlobalBarrier_proto = nullptr; -se::Class* __jsb_cc_gfx_GlobalBarrier_class = nullptr; +se::Class* __jsb_cc_gfx_GlobalBarrier_class = nullptr; static bool js_gfx_GlobalBarrier_getHash(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_GlobalBarrier_getHash : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const size_t& result = cobj->getHash(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19966,9 +20134,9 @@ static bool js_gfx_GlobalBarrier_getInfo(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_GlobalBarrier_getInfo : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::gfx::GlobalBarrierInfo& result = cobj->getInfo(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19983,9 +20151,9 @@ SE_BIND_FUNC(js_gfx_GlobalBarrier_getInfo) static bool js_gfx_GlobalBarrier_computeHash(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -20011,10 +20179,13 @@ static bool js_gfx_GlobalBarrier_constructor(se::State& /*s*/) // NOLINT(readabi } SE_BIND_CTOR(js_gfx_GlobalBarrier_constructor, __jsb_cc_gfx_GlobalBarrier_class, js_cc_gfx_GlobalBarrier_finalize) + + static bool js_cc_gfx_GlobalBarrier_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -20041,15 +20212,15 @@ bool js_register_gfx_GlobalBarrier(se::Object* obj) // NOLINT(readability-identi return true; } se::Object* __jsb_cc_gfx_Sampler_proto = nullptr; -se::Class* __jsb_cc_gfx_Sampler_class = nullptr; +se::Class* __jsb_cc_gfx_Sampler_class = nullptr; static bool js_gfx_Sampler_getHash(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Sampler_getHash : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const size_t& result = cobj->getHash(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -20066,9 +20237,9 @@ static bool js_gfx_Sampler_getInfo(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Sampler_getInfo : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::gfx::SamplerInfo& result = cobj->getInfo(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -20083,9 +20254,9 @@ SE_BIND_PROP_GET(js_gfx_Sampler_getInfo) static bool js_gfx_Sampler_computeHash(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -20111,10 +20282,13 @@ static bool js_gfx_Sampler_constructor(se::State& /*s*/) // NOLINT(readability-i } SE_BIND_CTOR(js_gfx_Sampler_constructor, __jsb_cc_gfx_Sampler_class, js_cc_gfx_Sampler_finalize) + + static bool js_cc_gfx_Sampler_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -20141,15 +20315,15 @@ bool js_register_gfx_Sampler(se::Object* obj) // NOLINT(readability-identifier-n return true; } se::Object* __jsb_cc_gfx_TextureBarrier_proto = nullptr; -se::Class* __jsb_cc_gfx_TextureBarrier_class = nullptr; +se::Class* __jsb_cc_gfx_TextureBarrier_class = nullptr; static bool js_gfx_TextureBarrier_getHash(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureBarrier_getHash : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const size_t& result = cobj->getHash(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -20166,9 +20340,9 @@ static bool js_gfx_TextureBarrier_getInfo(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureBarrier_getInfo : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::gfx::TextureBarrierInfo& result = cobj->getInfo(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -20183,9 +20357,9 @@ SE_BIND_FUNC(js_gfx_TextureBarrier_getInfo) static bool js_gfx_TextureBarrier_computeHash(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -20211,10 +20385,13 @@ static bool js_gfx_TextureBarrier_constructor(se::State& /*s*/) // NOLINT(readab } SE_BIND_CTOR(js_gfx_TextureBarrier_constructor, __jsb_cc_gfx_TextureBarrier_class, js_cc_gfx_TextureBarrier_finalize) + + static bool js_cc_gfx_TextureBarrier_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -20241,48 +20418,39 @@ bool js_register_gfx_TextureBarrier(se::Object* obj) // NOLINT(readability-ident return true; } se::Object* __jsb_cc_gfx_Device_proto = nullptr; -se::Class* __jsb_cc_gfx_Device_class = nullptr; +se::Class* __jsb_cc_gfx_Device_class = nullptr; static bool js_gfx_Device_acquire(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_gfx_Device_acquire : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2( cobj, false, "js_gfx_Device_acquire : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->acquire(arg0.value()); return true; } - } while (false); + } while(false); do { if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->acquire(arg0.value(), arg1.value()); return true; } - } while (false); + } while(false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -20293,9 +20461,9 @@ static bool js_gfx_Device_bindingMappingInfo(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_bindingMappingInfo : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::gfx::BindingMappingInfo& result = cobj->bindingMappingInfo(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -20312,9 +20480,9 @@ static bool js_gfx_Device_createCommandBuffer(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_createCommandBuffer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -20335,9 +20503,9 @@ static bool js_gfx_Device_createDescriptorSet(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_createDescriptorSet : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -20358,9 +20526,9 @@ static bool js_gfx_Device_createDescriptorSetLayout(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_createDescriptorSetLayout : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -20381,9 +20549,9 @@ static bool js_gfx_Device_createFramebuffer(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_createFramebuffer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -20404,9 +20572,9 @@ static bool js_gfx_Device_createInputAssembler(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_createInputAssembler : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -20427,9 +20595,9 @@ static bool js_gfx_Device_createPipelineLayout(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_createPipelineLayout : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -20450,9 +20618,9 @@ static bool js_gfx_Device_createPipelineState(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_createPipelineState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -20473,9 +20641,9 @@ static bool js_gfx_Device_createQueryPool(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_createQueryPool : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -20496,9 +20664,9 @@ static bool js_gfx_Device_createQueue(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_createQueue : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -20519,9 +20687,9 @@ static bool js_gfx_Device_createRenderPass(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_createRenderPass : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -20542,9 +20710,9 @@ static bool js_gfx_Device_createShader(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_createShader : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -20565,9 +20733,9 @@ static bool js_gfx_Device_createSwapchain(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_createSwapchain : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -20589,7 +20757,7 @@ static bool js_gfx_Device_destroy(se::State& s) // NOLINT(readability-identifier auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_destroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->destroy(); return true; @@ -20601,44 +20769,35 @@ SE_BIND_FUNC(js_gfx_Device_destroy) static bool js_gfx_Device_flushCommands(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_gfx_Device_flushCommands : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2( cobj, false, "js_gfx_Device_flushCommands : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->flushCommands(arg0.value()); return true; } - } while (false); + } while(false); do { if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->flushCommands(arg0.value(), arg1.value()); return true; } - } while (false); + } while(false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -20649,9 +20808,9 @@ static bool js_gfx_Device_getCapabilities(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_getCapabilities : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::gfx::DeviceCaps& result = cobj->getCapabilities(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -20668,9 +20827,9 @@ static bool js_gfx_Device_getCommandBuffer(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_getCommandBuffer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::CommandBuffer* result = cobj->getCommandBuffer(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -20687,9 +20846,9 @@ static bool js_gfx_Device_getDeviceName(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_getDeviceName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::String& result = cobj->getDeviceName(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -20706,9 +20865,9 @@ static bool js_gfx_Device_getGfxAPI(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_getGfxAPI : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getGfxAPI()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -20725,9 +20884,9 @@ static bool js_gfx_Device_getGlobalBarrier(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_getGlobalBarrier : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -20747,9 +20906,9 @@ static bool js_gfx_Device_getMemoryStatus(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_getMemoryStatus : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::MemoryStatus& result = cobj->getMemoryStatus(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -20766,9 +20925,9 @@ static bool js_gfx_Device_getNumDrawCalls(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_getNumDrawCalls : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getNumDrawCalls(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -20785,9 +20944,9 @@ static bool js_gfx_Device_getNumInstances(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_getNumInstances : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getNumInstances(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -20804,9 +20963,9 @@ static bool js_gfx_Device_getNumTris(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_getNumTris : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getNumTris(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -20823,9 +20982,9 @@ static bool js_gfx_Device_getQueryPool(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_getQueryPool : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::QueryPool* result = cobj->getQueryPool(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -20842,9 +21001,9 @@ static bool js_gfx_Device_getQueryPoolResults(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_getQueryPoolResults : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -20861,9 +21020,9 @@ static bool js_gfx_Device_getQueue(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_getQueue : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::Queue* result = cobj->getQueue(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -20880,9 +21039,9 @@ static bool js_gfx_Device_getRenderer(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_getRenderer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::String& result = cobj->getRenderer(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -20899,9 +21058,9 @@ static bool js_gfx_Device_getSampler(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_getSampler : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -20921,9 +21080,9 @@ static bool js_gfx_Device_getTextureBarrier(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_getTextureBarrier : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -20943,9 +21102,9 @@ static bool js_gfx_Device_getVendor(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_getVendor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::String& result = cobj->getVendor(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -20962,9 +21121,9 @@ static bool js_gfx_Device_hasFeature(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_hasFeature : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -20984,9 +21143,9 @@ static bool js_gfx_Device_initialize(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -21007,7 +21166,7 @@ static bool js_gfx_Device_present(se::State& s) // NOLINT(readability-identifier auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_present : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->present(); return true; @@ -21017,6 +21176,8 @@ static bool js_gfx_Device_present(se::State& s) // NOLINT(readability-identifier } SE_BIND_FUNC(js_gfx_Device_present) + + bool js_register_gfx_Device(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("Device", obj, nullptr, nullptr); @@ -21066,13 +21227,13 @@ bool js_register_gfx_Device(se::Object* obj) // NOLINT(readability-identifier-na return true; } se::Object* __jsb_cc_gfx_DeviceManager_proto = nullptr; -se::Class* __jsb_cc_gfx_DeviceManager_class = nullptr; +se::Class* __jsb_cc_gfx_DeviceManager_class = nullptr; static bool js_gfx_DeviceManager_create(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -21091,7 +21252,7 @@ SE_BIND_FUNC(js_gfx_DeviceManager_create) static bool js_gfx_DeviceManager_destroy(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cc::gfx::DeviceManager::destroy(); return true; @@ -21104,7 +21265,7 @@ SE_BIND_FUNC(js_gfx_DeviceManager_destroy) static bool js_gfx_DeviceManager_addSurfaceEventListener(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cc::gfx::DeviceManager::addSurfaceEventListener(); return true; @@ -21114,10 +21275,12 @@ static bool js_gfx_DeviceManager_addSurfaceEventListener(se::State& s) // NOLINT } SE_BIND_FUNC(js_gfx_DeviceManager_addSurfaceEventListener) + static bool js_cc_gfx_DeviceManager_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -21143,10 +21306,12 @@ bool js_register_gfx_DeviceManager(se::Object* obj) // NOLINT(readability-identi se::ScriptEngine::getInstance()->clearException(); return true; } -bool register_all_gfx(se::Object* obj) { +bool register_all_gfx(se::Object* obj) +{ // Get the ns se::Value nsVal; - if (!obj->getProperty("gfx", &nsVal)) { + if (!obj->getProperty("gfx", &nsVal)) + { se::HandleObject jsobj(se::Object::createPlainObject()); nsVal.setObject(jsobj); obj->setProperty("gfx", nsVal); @@ -21232,3 +21397,4 @@ bool register_all_gfx(se::Object* obj) { js_register_gfx_DeviceManager(ns); return true; } + diff --git a/native/cocos/bindings/auto/jsb_gfx_auto.h b/native/cocos/bindings/auto/jsb_gfx_auto.h index f2c2d43c09..d52dcc204c 100644 --- a/native/cocos/bindings/auto/jsb_gfx_auto.h +++ b/native/cocos/bindings/auto/jsb_gfx_auto.h @@ -24,584 +24,584 @@ ****************************************************************************/ #pragma once -#include #include "base/Config.h" +#include #include "cocos/bindings/jswrapper/SeApi.h" #include "cocos/bindings/manual/jsb_conversions.h" #include "cocos/renderer/GFXDeviceManager.h" extern se::Object* __jsb_cc_gfx_Size_proto; -extern se::Class* __jsb_cc_gfx_Size_class; +extern se::Class* __jsb_cc_gfx_Size_class; bool js_register_cc_gfx_Size(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::Size*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::Size *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::Size); extern se::Object* __jsb_cc_gfx_DeviceCaps_proto; -extern se::Class* __jsb_cc_gfx_DeviceCaps_class; +extern se::Class* __jsb_cc_gfx_DeviceCaps_class; bool js_register_cc_gfx_DeviceCaps(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::DeviceCaps*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::DeviceCaps *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::DeviceCaps); extern se::Object* __jsb_cc_gfx_Offset_proto; -extern se::Class* __jsb_cc_gfx_Offset_class; +extern se::Class* __jsb_cc_gfx_Offset_class; bool js_register_cc_gfx_Offset(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::Offset*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::Offset *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::Offset); extern se::Object* __jsb_cc_gfx_Rect_proto; -extern se::Class* __jsb_cc_gfx_Rect_class; +extern se::Class* __jsb_cc_gfx_Rect_class; bool js_register_cc_gfx_Rect(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::Rect*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::Rect *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::Rect); extern se::Object* __jsb_cc_gfx_Extent_proto; -extern se::Class* __jsb_cc_gfx_Extent_class; +extern se::Class* __jsb_cc_gfx_Extent_class; bool js_register_cc_gfx_Extent(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::Extent*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::Extent *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::Extent); extern se::Object* __jsb_cc_gfx_TextureSubresLayers_proto; -extern se::Class* __jsb_cc_gfx_TextureSubresLayers_class; +extern se::Class* __jsb_cc_gfx_TextureSubresLayers_class; bool js_register_cc_gfx_TextureSubresLayers(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::TextureSubresLayers*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::TextureSubresLayers *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::TextureSubresLayers); extern se::Object* __jsb_cc_gfx_TextureSubresRange_proto; -extern se::Class* __jsb_cc_gfx_TextureSubresRange_class; +extern se::Class* __jsb_cc_gfx_TextureSubresRange_class; bool js_register_cc_gfx_TextureSubresRange(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::TextureSubresRange*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::TextureSubresRange *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::TextureSubresRange); extern se::Object* __jsb_cc_gfx_TextureCopy_proto; -extern se::Class* __jsb_cc_gfx_TextureCopy_class; +extern se::Class* __jsb_cc_gfx_TextureCopy_class; bool js_register_cc_gfx_TextureCopy(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::TextureCopy*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::TextureCopy *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::TextureCopy); extern se::Object* __jsb_cc_gfx_TextureBlit_proto; -extern se::Class* __jsb_cc_gfx_TextureBlit_class; +extern se::Class* __jsb_cc_gfx_TextureBlit_class; bool js_register_cc_gfx_TextureBlit(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::TextureBlit*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::TextureBlit *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::TextureBlit); extern se::Object* __jsb_cc_gfx_BufferTextureCopy_proto; -extern se::Class* __jsb_cc_gfx_BufferTextureCopy_class; +extern se::Class* __jsb_cc_gfx_BufferTextureCopy_class; bool js_register_cc_gfx_BufferTextureCopy(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::BufferTextureCopy*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::BufferTextureCopy *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::BufferTextureCopy); extern se::Object* __jsb_cc_gfx_Viewport_proto; -extern se::Class* __jsb_cc_gfx_Viewport_class; +extern se::Class* __jsb_cc_gfx_Viewport_class; bool js_register_cc_gfx_Viewport(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::Viewport*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::Viewport *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::Viewport); extern se::Object* __jsb_cc_gfx_Color_proto; -extern se::Class* __jsb_cc_gfx_Color_class; +extern se::Class* __jsb_cc_gfx_Color_class; bool js_register_cc_gfx_Color(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::Color*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::Color *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::Color); extern se::Object* __jsb_cc_gfx_BindingMappingInfo_proto; -extern se::Class* __jsb_cc_gfx_BindingMappingInfo_class; +extern se::Class* __jsb_cc_gfx_BindingMappingInfo_class; bool js_register_cc_gfx_BindingMappingInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::BindingMappingInfo*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::BindingMappingInfo *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::BindingMappingInfo); extern se::Object* __jsb_cc_gfx_SwapchainInfo_proto; -extern se::Class* __jsb_cc_gfx_SwapchainInfo_class; +extern se::Class* __jsb_cc_gfx_SwapchainInfo_class; bool js_register_cc_gfx_SwapchainInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::SwapchainInfo*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::SwapchainInfo *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::SwapchainInfo); extern se::Object* __jsb_cc_gfx_DeviceInfo_proto; -extern se::Class* __jsb_cc_gfx_DeviceInfo_class; +extern se::Class* __jsb_cc_gfx_DeviceInfo_class; bool js_register_cc_gfx_DeviceInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::DeviceInfo*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::DeviceInfo *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::DeviceInfo); extern se::Object* __jsb_cc_gfx_BufferInfo_proto; -extern se::Class* __jsb_cc_gfx_BufferInfo_class; +extern se::Class* __jsb_cc_gfx_BufferInfo_class; bool js_register_cc_gfx_BufferInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::BufferInfo*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::BufferInfo *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::BufferInfo); extern se::Object* __jsb_cc_gfx_BufferViewInfo_proto; -extern se::Class* __jsb_cc_gfx_BufferViewInfo_class; +extern se::Class* __jsb_cc_gfx_BufferViewInfo_class; bool js_register_cc_gfx_BufferViewInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::BufferViewInfo*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::BufferViewInfo *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::BufferViewInfo); extern se::Object* __jsb_cc_gfx_DrawInfo_proto; -extern se::Class* __jsb_cc_gfx_DrawInfo_class; +extern se::Class* __jsb_cc_gfx_DrawInfo_class; bool js_register_cc_gfx_DrawInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::DrawInfo*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::DrawInfo *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::DrawInfo); extern se::Object* __jsb_cc_gfx_DispatchInfo_proto; -extern se::Class* __jsb_cc_gfx_DispatchInfo_class; +extern se::Class* __jsb_cc_gfx_DispatchInfo_class; bool js_register_cc_gfx_DispatchInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::DispatchInfo*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::DispatchInfo *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::DispatchInfo); extern se::Object* __jsb_cc_gfx_IndirectBuffer_proto; -extern se::Class* __jsb_cc_gfx_IndirectBuffer_class; +extern se::Class* __jsb_cc_gfx_IndirectBuffer_class; bool js_register_cc_gfx_IndirectBuffer(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::IndirectBuffer*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::IndirectBuffer *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::IndirectBuffer); extern se::Object* __jsb_cc_gfx_TextureInfo_proto; -extern se::Class* __jsb_cc_gfx_TextureInfo_class; +extern se::Class* __jsb_cc_gfx_TextureInfo_class; bool js_register_cc_gfx_TextureInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::TextureInfo*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::TextureInfo *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::TextureInfo); extern se::Object* __jsb_cc_gfx_TextureViewInfo_proto; -extern se::Class* __jsb_cc_gfx_TextureViewInfo_class; +extern se::Class* __jsb_cc_gfx_TextureViewInfo_class; bool js_register_cc_gfx_TextureViewInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::TextureViewInfo*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::TextureViewInfo *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::TextureViewInfo); extern se::Object* __jsb_cc_gfx_SamplerInfo_proto; -extern se::Class* __jsb_cc_gfx_SamplerInfo_class; +extern se::Class* __jsb_cc_gfx_SamplerInfo_class; bool js_register_cc_gfx_SamplerInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::SamplerInfo*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::SamplerInfo *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::SamplerInfo); extern se::Object* __jsb_cc_gfx_Uniform_proto; -extern se::Class* __jsb_cc_gfx_Uniform_class; +extern se::Class* __jsb_cc_gfx_Uniform_class; bool js_register_cc_gfx_Uniform(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::Uniform*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::Uniform *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::Uniform); extern se::Object* __jsb_cc_gfx_UniformBlock_proto; -extern se::Class* __jsb_cc_gfx_UniformBlock_class; +extern se::Class* __jsb_cc_gfx_UniformBlock_class; bool js_register_cc_gfx_UniformBlock(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::UniformBlock*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::UniformBlock *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::UniformBlock); extern se::Object* __jsb_cc_gfx_UniformSamplerTexture_proto; -extern se::Class* __jsb_cc_gfx_UniformSamplerTexture_class; +extern se::Class* __jsb_cc_gfx_UniformSamplerTexture_class; bool js_register_cc_gfx_UniformSamplerTexture(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::UniformSamplerTexture*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::UniformSamplerTexture *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::UniformSamplerTexture); extern se::Object* __jsb_cc_gfx_UniformSampler_proto; -extern se::Class* __jsb_cc_gfx_UniformSampler_class; +extern se::Class* __jsb_cc_gfx_UniformSampler_class; bool js_register_cc_gfx_UniformSampler(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::UniformSampler*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::UniformSampler *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::UniformSampler); extern se::Object* __jsb_cc_gfx_UniformTexture_proto; -extern se::Class* __jsb_cc_gfx_UniformTexture_class; +extern se::Class* __jsb_cc_gfx_UniformTexture_class; bool js_register_cc_gfx_UniformTexture(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::UniformTexture*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::UniformTexture *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::UniformTexture); extern se::Object* __jsb_cc_gfx_UniformStorageImage_proto; -extern se::Class* __jsb_cc_gfx_UniformStorageImage_class; +extern se::Class* __jsb_cc_gfx_UniformStorageImage_class; bool js_register_cc_gfx_UniformStorageImage(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::UniformStorageImage*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::UniformStorageImage *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::UniformStorageImage); extern se::Object* __jsb_cc_gfx_UniformStorageBuffer_proto; -extern se::Class* __jsb_cc_gfx_UniformStorageBuffer_class; +extern se::Class* __jsb_cc_gfx_UniformStorageBuffer_class; bool js_register_cc_gfx_UniformStorageBuffer(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::UniformStorageBuffer*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::UniformStorageBuffer *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::UniformStorageBuffer); extern se::Object* __jsb_cc_gfx_UniformInputAttachment_proto; -extern se::Class* __jsb_cc_gfx_UniformInputAttachment_class; +extern se::Class* __jsb_cc_gfx_UniformInputAttachment_class; bool js_register_cc_gfx_UniformInputAttachment(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::UniformInputAttachment*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::UniformInputAttachment *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::UniformInputAttachment); extern se::Object* __jsb_cc_gfx_ShaderStage_proto; -extern se::Class* __jsb_cc_gfx_ShaderStage_class; +extern se::Class* __jsb_cc_gfx_ShaderStage_class; bool js_register_cc_gfx_ShaderStage(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::ShaderStage*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::ShaderStage *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::ShaderStage); extern se::Object* __jsb_cc_gfx_Attribute_proto; -extern se::Class* __jsb_cc_gfx_Attribute_class; +extern se::Class* __jsb_cc_gfx_Attribute_class; bool js_register_cc_gfx_Attribute(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::Attribute*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::Attribute *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::Attribute); extern se::Object* __jsb_cc_gfx_ShaderInfo_proto; -extern se::Class* __jsb_cc_gfx_ShaderInfo_class; +extern se::Class* __jsb_cc_gfx_ShaderInfo_class; bool js_register_cc_gfx_ShaderInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::ShaderInfo*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::ShaderInfo *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::ShaderInfo); extern se::Object* __jsb_cc_gfx_InputAssemblerInfo_proto; -extern se::Class* __jsb_cc_gfx_InputAssemblerInfo_class; +extern se::Class* __jsb_cc_gfx_InputAssemblerInfo_class; bool js_register_cc_gfx_InputAssemblerInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::InputAssemblerInfo*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::InputAssemblerInfo *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::InputAssemblerInfo); extern se::Object* __jsb_cc_gfx_ColorAttachment_proto; -extern se::Class* __jsb_cc_gfx_ColorAttachment_class; +extern se::Class* __jsb_cc_gfx_ColorAttachment_class; bool js_register_cc_gfx_ColorAttachment(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::ColorAttachment*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::ColorAttachment *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::ColorAttachment); extern se::Object* __jsb_cc_gfx_DepthStencilAttachment_proto; -extern se::Class* __jsb_cc_gfx_DepthStencilAttachment_class; +extern se::Class* __jsb_cc_gfx_DepthStencilAttachment_class; bool js_register_cc_gfx_DepthStencilAttachment(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::DepthStencilAttachment*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::DepthStencilAttachment *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::DepthStencilAttachment); extern se::Object* __jsb_cc_gfx_SubpassInfo_proto; -extern se::Class* __jsb_cc_gfx_SubpassInfo_class; +extern se::Class* __jsb_cc_gfx_SubpassInfo_class; bool js_register_cc_gfx_SubpassInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::SubpassInfo*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::SubpassInfo *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::SubpassInfo); extern se::Object* __jsb_cc_gfx_SubpassDependency_proto; -extern se::Class* __jsb_cc_gfx_SubpassDependency_class; +extern se::Class* __jsb_cc_gfx_SubpassDependency_class; bool js_register_cc_gfx_SubpassDependency(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::SubpassDependency*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::SubpassDependency *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::SubpassDependency); extern se::Object* __jsb_cc_gfx_RenderPassInfo_proto; -extern se::Class* __jsb_cc_gfx_RenderPassInfo_class; +extern se::Class* __jsb_cc_gfx_RenderPassInfo_class; bool js_register_cc_gfx_RenderPassInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::RenderPassInfo*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::RenderPassInfo *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::RenderPassInfo); extern se::Object* __jsb_cc_gfx_GlobalBarrierInfo_proto; -extern se::Class* __jsb_cc_gfx_GlobalBarrierInfo_class; +extern se::Class* __jsb_cc_gfx_GlobalBarrierInfo_class; bool js_register_cc_gfx_GlobalBarrierInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::GlobalBarrierInfo*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::GlobalBarrierInfo *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::GlobalBarrierInfo); extern se::Object* __jsb_cc_gfx_TextureBarrierInfo_proto; -extern se::Class* __jsb_cc_gfx_TextureBarrierInfo_class; +extern se::Class* __jsb_cc_gfx_TextureBarrierInfo_class; bool js_register_cc_gfx_TextureBarrierInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::TextureBarrierInfo*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::TextureBarrierInfo *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::TextureBarrierInfo); extern se::Object* __jsb_cc_gfx_FramebufferInfo_proto; -extern se::Class* __jsb_cc_gfx_FramebufferInfo_class; +extern se::Class* __jsb_cc_gfx_FramebufferInfo_class; bool js_register_cc_gfx_FramebufferInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::FramebufferInfo*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::FramebufferInfo *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::FramebufferInfo); extern se::Object* __jsb_cc_gfx_DescriptorSetLayoutBinding_proto; -extern se::Class* __jsb_cc_gfx_DescriptorSetLayoutBinding_class; +extern se::Class* __jsb_cc_gfx_DescriptorSetLayoutBinding_class; bool js_register_cc_gfx_DescriptorSetLayoutBinding(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::DescriptorSetLayoutBinding*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::DescriptorSetLayoutBinding *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::DescriptorSetLayoutBinding); extern se::Object* __jsb_cc_gfx_DescriptorSetLayoutInfo_proto; -extern se::Class* __jsb_cc_gfx_DescriptorSetLayoutInfo_class; +extern se::Class* __jsb_cc_gfx_DescriptorSetLayoutInfo_class; bool js_register_cc_gfx_DescriptorSetLayoutInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::DescriptorSetLayoutInfo*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::DescriptorSetLayoutInfo *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::DescriptorSetLayoutInfo); extern se::Object* __jsb_cc_gfx_DescriptorSetInfo_proto; -extern se::Class* __jsb_cc_gfx_DescriptorSetInfo_class; +extern se::Class* __jsb_cc_gfx_DescriptorSetInfo_class; bool js_register_cc_gfx_DescriptorSetInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::DescriptorSetInfo*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::DescriptorSetInfo *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::DescriptorSetInfo); extern se::Object* __jsb_cc_gfx_PipelineLayoutInfo_proto; -extern se::Class* __jsb_cc_gfx_PipelineLayoutInfo_class; +extern se::Class* __jsb_cc_gfx_PipelineLayoutInfo_class; bool js_register_cc_gfx_PipelineLayoutInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::PipelineLayoutInfo*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::PipelineLayoutInfo *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::PipelineLayoutInfo); extern se::Object* __jsb_cc_gfx_InputState_proto; -extern se::Class* __jsb_cc_gfx_InputState_class; +extern se::Class* __jsb_cc_gfx_InputState_class; bool js_register_cc_gfx_InputState(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::InputState*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::InputState *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::InputState); extern se::Object* __jsb_cc_gfx_RasterizerState_proto; -extern se::Class* __jsb_cc_gfx_RasterizerState_class; +extern se::Class* __jsb_cc_gfx_RasterizerState_class; bool js_register_cc_gfx_RasterizerState(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::RasterizerState*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::RasterizerState *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::RasterizerState); extern se::Object* __jsb_cc_gfx_DepthStencilState_proto; -extern se::Class* __jsb_cc_gfx_DepthStencilState_class; +extern se::Class* __jsb_cc_gfx_DepthStencilState_class; bool js_register_cc_gfx_DepthStencilState(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::DepthStencilState*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::DepthStencilState *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::DepthStencilState); extern se::Object* __jsb_cc_gfx_BlendTarget_proto; -extern se::Class* __jsb_cc_gfx_BlendTarget_class; +extern se::Class* __jsb_cc_gfx_BlendTarget_class; bool js_register_cc_gfx_BlendTarget(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::BlendTarget*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::BlendTarget *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::BlendTarget); extern se::Object* __jsb_cc_gfx_BlendState_proto; -extern se::Class* __jsb_cc_gfx_BlendState_class; +extern se::Class* __jsb_cc_gfx_BlendState_class; bool js_register_cc_gfx_BlendState(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::BlendState*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::BlendState *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::BlendState); extern se::Object* __jsb_cc_gfx_PipelineStateInfo_proto; -extern se::Class* __jsb_cc_gfx_PipelineStateInfo_class; +extern se::Class* __jsb_cc_gfx_PipelineStateInfo_class; bool js_register_cc_gfx_PipelineStateInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::PipelineStateInfo*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::PipelineStateInfo *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::PipelineStateInfo); extern se::Object* __jsb_cc_gfx_CommandBufferInfo_proto; -extern se::Class* __jsb_cc_gfx_CommandBufferInfo_class; +extern se::Class* __jsb_cc_gfx_CommandBufferInfo_class; bool js_register_cc_gfx_CommandBufferInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::CommandBufferInfo*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::CommandBufferInfo *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::CommandBufferInfo); extern se::Object* __jsb_cc_gfx_QueueInfo_proto; -extern se::Class* __jsb_cc_gfx_QueueInfo_class; +extern se::Class* __jsb_cc_gfx_QueueInfo_class; bool js_register_cc_gfx_QueueInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::QueueInfo*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::QueueInfo *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::QueueInfo); extern se::Object* __jsb_cc_gfx_QueryPoolInfo_proto; -extern se::Class* __jsb_cc_gfx_QueryPoolInfo_class; +extern se::Class* __jsb_cc_gfx_QueryPoolInfo_class; bool js_register_cc_gfx_QueryPoolInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::QueryPoolInfo*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::QueryPoolInfo *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::QueryPoolInfo); extern se::Object* __jsb_cc_gfx_MemoryStatus_proto; -extern se::Class* __jsb_cc_gfx_MemoryStatus_class; +extern se::Class* __jsb_cc_gfx_MemoryStatus_class; bool js_register_cc_gfx_MemoryStatus(se::Object* obj); bool register_all_gfx(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::gfx::MemoryStatus*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::gfx::MemoryStatus *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::MemoryStatus); extern se::Object* __jsb_cc_gfx_GFXObject_proto; -extern se::Class* __jsb_cc_gfx_GFXObject_class; +extern se::Class* __jsb_cc_gfx_GFXObject_class; bool js_register_cc_gfx_GFXObject(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -610,7 +610,7 @@ JSB_REGISTER_OBJECT_TYPE(cc::gfx::GFXObject); SE_DECLARE_FUNC(js_gfx_GFXObject_GFXObject); extern se::Object* __jsb_cc_gfx_Buffer_proto; -extern se::Class* __jsb_cc_gfx_Buffer_class; +extern se::Class* __jsb_cc_gfx_Buffer_class; bool js_register_cc_gfx_Buffer(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -623,7 +623,7 @@ SE_DECLARE_FUNC(js_gfx_Buffer_computeHash); SE_DECLARE_FUNC(js_gfx_Buffer_Buffer); extern se::Object* __jsb_cc_gfx_InputAssembler_proto; -extern se::Class* __jsb_cc_gfx_InputAssembler_class; +extern se::Class* __jsb_cc_gfx_InputAssembler_class; bool js_register_cc_gfx_InputAssembler(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -634,7 +634,7 @@ SE_DECLARE_FUNC(js_gfx_InputAssembler_initialize); SE_DECLARE_FUNC(js_gfx_InputAssembler_InputAssembler); extern se::Object* __jsb_cc_gfx_CommandBuffer_proto; -extern se::Class* __jsb_cc_gfx_CommandBuffer_class; +extern se::Class* __jsb_cc_gfx_CommandBuffer_class; bool js_register_cc_gfx_CommandBuffer(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -674,7 +674,7 @@ SE_DECLARE_FUNC(js_gfx_CommandBuffer_setViewport); SE_DECLARE_FUNC(js_gfx_CommandBuffer_CommandBuffer); extern se::Object* __jsb_cc_gfx_DescriptorSet_proto; -extern se::Class* __jsb_cc_gfx_DescriptorSet_class; +extern se::Class* __jsb_cc_gfx_DescriptorSet_class; bool js_register_cc_gfx_DescriptorSet(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -695,7 +695,7 @@ SE_DECLARE_FUNC(js_gfx_DescriptorSet_update); SE_DECLARE_FUNC(js_gfx_DescriptorSet_DescriptorSet); extern se::Object* __jsb_cc_gfx_DescriptorSetLayout_proto; -extern se::Class* __jsb_cc_gfx_DescriptorSetLayout_class; +extern se::Class* __jsb_cc_gfx_DescriptorSetLayout_class; bool js_register_cc_gfx_DescriptorSetLayout(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -709,7 +709,7 @@ SE_DECLARE_FUNC(js_gfx_DescriptorSetLayout_initialize); SE_DECLARE_FUNC(js_gfx_DescriptorSetLayout_DescriptorSetLayout); extern se::Object* __jsb_cc_gfx_Framebuffer_proto; -extern se::Class* __jsb_cc_gfx_Framebuffer_class; +extern se::Class* __jsb_cc_gfx_Framebuffer_class; bool js_register_cc_gfx_Framebuffer(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -721,7 +721,7 @@ SE_DECLARE_FUNC(js_gfx_Framebuffer_computeHash); SE_DECLARE_FUNC(js_gfx_Framebuffer_Framebuffer); extern se::Object* __jsb_cc_gfx_PipelineLayout_proto; -extern se::Class* __jsb_cc_gfx_PipelineLayout_class; +extern se::Class* __jsb_cc_gfx_PipelineLayout_class; bool js_register_cc_gfx_PipelineLayout(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -733,7 +733,7 @@ SE_DECLARE_FUNC(js_gfx_PipelineLayout_initialize); SE_DECLARE_FUNC(js_gfx_PipelineLayout_PipelineLayout); extern se::Object* __jsb_cc_gfx_PipelineState_proto; -extern se::Class* __jsb_cc_gfx_PipelineState_class; +extern se::Class* __jsb_cc_gfx_PipelineState_class; bool js_register_cc_gfx_PipelineState(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -746,7 +746,7 @@ SE_DECLARE_FUNC(js_gfx_PipelineState_initialize); SE_DECLARE_FUNC(js_gfx_PipelineState_PipelineState); extern se::Object* __jsb_cc_gfx_QueryPool_proto; -extern se::Class* __jsb_cc_gfx_QueryPool_class; +extern se::Class* __jsb_cc_gfx_QueryPool_class; bool js_register_cc_gfx_QueryPool(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -762,7 +762,7 @@ SE_DECLARE_FUNC(js_gfx_QueryPool_initialize); SE_DECLARE_FUNC(js_gfx_QueryPool_QueryPool); extern se::Object* __jsb_cc_gfx_Queue_proto; -extern se::Class* __jsb_cc_gfx_Queue_class; +extern se::Class* __jsb_cc_gfx_Queue_class; bool js_register_cc_gfx_Queue(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -774,7 +774,7 @@ SE_DECLARE_FUNC(js_gfx_Queue_submit); SE_DECLARE_FUNC(js_gfx_Queue_Queue); extern se::Object* __jsb_cc_gfx_RenderPass_proto; -extern se::Class* __jsb_cc_gfx_RenderPass_class; +extern se::Class* __jsb_cc_gfx_RenderPass_class; bool js_register_cc_gfx_RenderPass(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -789,7 +789,7 @@ SE_DECLARE_FUNC(js_gfx_RenderPass_computeHash); SE_DECLARE_FUNC(js_gfx_RenderPass_RenderPass); extern se::Object* __jsb_cc_gfx_Shader_proto; -extern se::Class* __jsb_cc_gfx_Shader_class; +extern se::Class* __jsb_cc_gfx_Shader_class; bool js_register_cc_gfx_Shader(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -805,7 +805,7 @@ SE_DECLARE_FUNC(js_gfx_Shader_initialize); SE_DECLARE_FUNC(js_gfx_Shader_Shader); extern se::Object* __jsb_cc_gfx_Texture_proto; -extern se::Class* __jsb_cc_gfx_Texture_class; +extern se::Class* __jsb_cc_gfx_Texture_class; bool js_register_cc_gfx_Texture(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -818,7 +818,7 @@ SE_DECLARE_FUNC(js_gfx_Texture_computeHash); SE_DECLARE_FUNC(js_gfx_Texture_Texture); extern se::Object* __jsb_cc_gfx_Swapchain_proto; -extern se::Class* __jsb_cc_gfx_Swapchain_class; +extern se::Class* __jsb_cc_gfx_Swapchain_class; bool js_register_cc_gfx_Swapchain(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -834,7 +834,7 @@ SE_DECLARE_FUNC(js_gfx_Swapchain_resize); SE_DECLARE_FUNC(js_gfx_Swapchain_Swapchain); extern se::Object* __jsb_cc_gfx_GlobalBarrier_proto; -extern se::Class* __jsb_cc_gfx_GlobalBarrier_class; +extern se::Class* __jsb_cc_gfx_GlobalBarrier_class; bool js_register_cc_gfx_GlobalBarrier(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -846,7 +846,7 @@ SE_DECLARE_FUNC(js_gfx_GlobalBarrier_computeHash); SE_DECLARE_FUNC(js_gfx_GlobalBarrier_GlobalBarrier); extern se::Object* __jsb_cc_gfx_Sampler_proto; -extern se::Class* __jsb_cc_gfx_Sampler_class; +extern se::Class* __jsb_cc_gfx_Sampler_class; bool js_register_cc_gfx_Sampler(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -857,7 +857,7 @@ SE_DECLARE_FUNC(js_gfx_Sampler_computeHash); SE_DECLARE_FUNC(js_gfx_Sampler_Sampler); extern se::Object* __jsb_cc_gfx_TextureBarrier_proto; -extern se::Class* __jsb_cc_gfx_TextureBarrier_class; +extern se::Class* __jsb_cc_gfx_TextureBarrier_class; bool js_register_cc_gfx_TextureBarrier(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -869,7 +869,7 @@ SE_DECLARE_FUNC(js_gfx_TextureBarrier_computeHash); SE_DECLARE_FUNC(js_gfx_TextureBarrier_TextureBarrier); extern se::Object* __jsb_cc_gfx_Device_proto; -extern se::Class* __jsb_cc_gfx_Device_class; +extern se::Class* __jsb_cc_gfx_Device_class; bool js_register_cc_gfx_Device(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -901,7 +901,7 @@ SE_DECLARE_FUNC(js_gfx_Device_initialize); SE_DECLARE_FUNC(js_gfx_Device_present); extern se::Object* __jsb_cc_gfx_DeviceManager_proto; -extern se::Class* __jsb_cc_gfx_DeviceManager_class; +extern se::Class* __jsb_cc_gfx_DeviceManager_class; bool js_register_cc_gfx_DeviceManager(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -910,3 +910,4 @@ JSB_REGISTER_OBJECT_TYPE(cc::gfx::DeviceManager); SE_DECLARE_FUNC(js_gfx_DeviceManager_create); SE_DECLARE_FUNC(js_gfx_DeviceManager_destroy); SE_DECLARE_FUNC(js_gfx_DeviceManager_addSurfaceEventListener); + diff --git a/native/cocos/bindings/auto/jsb_network_auto.cpp b/native/cocos/bindings/auto/jsb_network_auto.cpp index 1b67c9b69d..07c55af30f 100644 --- a/native/cocos/bindings/auto/jsb_network_auto.cpp +++ b/native/cocos/bindings/auto/jsb_network_auto.cpp @@ -29,14 +29,14 @@ #include "network/Downloader.h" #ifndef JSB_ALLOC - #define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) +#define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) #endif #ifndef JSB_FREE - #define JSB_FREE(ptr) delete ptr +#define JSB_FREE(ptr) delete ptr #endif se::Object* __jsb_cc_network_DownloaderHints_proto = nullptr; -se::Class* __jsb_cc_network_DownloaderHints_class = nullptr; +se::Class* __jsb_cc_network_DownloaderHints_class = nullptr; static bool js_network_DownloaderHints_get_countOfMaxProcessingTasks(se::State& s) // NOLINT(readability-identifier-naming) { @@ -44,7 +44,7 @@ static bool js_network_DownloaderHints_get_countOfMaxProcessingTasks(se::State& SE_PRECONDITION2(cobj, false, "js_network_DownloaderHints_get_countOfMaxProcessingTasks : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->countOfMaxProcessingTasks, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->countOfMaxProcessingTasks, s.thisObject(), s.rval()); @@ -55,7 +55,7 @@ SE_BIND_PROP_GET(js_network_DownloaderHints_get_countOfMaxProcessingTasks) static bool js_network_DownloaderHints_set_countOfMaxProcessingTasks(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_network_DownloaderHints_set_countOfMaxProcessingTasks : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -71,7 +71,7 @@ static bool js_network_DownloaderHints_get_timeoutInSeconds(se::State& s) // NOL SE_PRECONDITION2(cobj, false, "js_network_DownloaderHints_get_timeoutInSeconds : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->timeoutInSeconds, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->timeoutInSeconds, s.thisObject(), s.rval()); @@ -82,7 +82,7 @@ SE_BIND_PROP_GET(js_network_DownloaderHints_get_timeoutInSeconds) static bool js_network_DownloaderHints_set_timeoutInSeconds(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_network_DownloaderHints_set_timeoutInSeconds : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -98,7 +98,7 @@ static bool js_network_DownloaderHints_get_tempFileNameSuffix(se::State& s) // N SE_PRECONDITION2(cobj, false, "js_network_DownloaderHints_get_tempFileNameSuffix : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->tempFileNameSuffix, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->tempFileNameSuffix, s.thisObject(), s.rval()); @@ -109,7 +109,7 @@ SE_BIND_PROP_GET(js_network_DownloaderHints_get_tempFileNameSuffix) static bool js_network_DownloaderHints_set_tempFileNameSuffix(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_network_DownloaderHints_set_tempFileNameSuffix : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -119,27 +119,29 @@ static bool js_network_DownloaderHints_set_tempFileNameSuffix(se::State& s) // N } SE_BIND_PROP_SET(js_network_DownloaderHints_set_tempFileNameSuffix) -template <> -bool sevalue_to_native(const se::Value& from, cc::network::DownloaderHints* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::network::DownloaderHints * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("countOfMaxProcessingTasks", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->countOfMaxProcessingTasks), ctx); } json->getProperty("timeoutInSeconds", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->timeoutInSeconds), ctx); } json->getProperty("tempFileNameSuffix", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->tempFileNameSuffix), ctx); } return ok; @@ -149,24 +151,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_network_DownloaderHints_finalize) static bool js_network_DownloaderHints_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::network::DownloaderHints* cobj = JSB_ALLOC(cc::network::DownloaderHints); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::network::DownloaderHints* cobj = JSB_ALLOC(cc::network::DownloaderHints); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -188,7 +192,7 @@ static bool js_network_DownloaderHints_constructor(se::State& s) // NOLINT(reada ok &= sevalue_to_native(args[2], &(cobj->tempFileNameSuffix), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -200,10 +204,13 @@ static bool js_network_DownloaderHints_constructor(se::State& s) // NOLINT(reada } SE_BIND_CTOR(js_network_DownloaderHints_constructor, __jsb_cc_network_DownloaderHints_class, js_cc_network_DownloaderHints_finalize) + + static bool js_cc_network_DownloaderHints_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -230,26 +237,27 @@ bool js_register_network_DownloaderHints(se::Object* obj) // NOLINT(readability- return true; } se::Object* __jsb_cc_network_Downloader_proto = nullptr; -se::Class* __jsb_cc_network_Downloader_class = nullptr; +se::Class* __jsb_cc_network_Downloader_class = nullptr; static bool js_network_Downloader_setOnTaskProgress(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_network_Downloader_setOnTaskProgress : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) { + if (args[0].isObject() && args[0].toObject()->isFunction()) + { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); - auto lambda = [=](const cc::network::DownloadTask& larg0, int64_t larg1, int64_t larg2, int64_t larg3) -> void { + auto lambda = [=](const cc::network::DownloadTask & larg0, int64_t larg1, int64_t larg2, int64_t larg3) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(4); @@ -257,19 +265,22 @@ static bool js_network_Downloader_setOnTaskProgress(se::State& s) // NOLINT(read ok &= nativevalue_to_se(larg1, args[1], nullptr /*ctx*/); ok &= nativevalue_to_se(larg2, args[2], nullptr /*ctx*/); ok &= nativevalue_to_se(larg3, args[3], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } else { + } + else + { arg0.data = nullptr; } - } while (false); + } while(false) + ; SE_PRECONDITION2(ok, false, "js_network_Downloader_setOnTaskProgress : Error processing arguments"); cobj->setOnTaskProgress(arg0.value()); return true; @@ -283,23 +294,20 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_network_Downloader_finalize) static bool js_network_Downloader_constructor(se::State& s) // NOLINT(readability-identifier-naming) constructor_overloaded.c { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cc::network::Downloader* cobj = JSB_ALLOC(cc::network::Downloader, arg0.value()); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - } while (false); + } while(false); do { if (argc == 0) { cc::network::Downloader* cobj = JSB_ALLOC(cc::network::Downloader); @@ -307,16 +315,19 @@ static bool js_network_Downloader_constructor(se::State& s) // NOLINT(readabilit se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - } while (false); + } while(false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; } SE_BIND_CTOR(js_network_Downloader_constructor, __jsb_cc_network_Downloader_class, js_cc_network_Downloader_finalize) + + static bool js_cc_network_Downloader_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -340,10 +351,12 @@ bool js_register_network_Downloader(se::Object* obj) // NOLINT(readability-ident se::ScriptEngine::getInstance()->clearException(); return true; } -bool register_all_network(se::Object* obj) { +bool register_all_network(se::Object* obj) +{ // Get the ns se::Value nsVal; - if (!obj->getProperty("jsb", &nsVal)) { + if (!obj->getProperty("jsb", &nsVal)) + { se::HandleObject jsobj(se::Object::createPlainObject()); nsVal.setObject(jsobj); obj->setProperty("jsb", nsVal); @@ -354,3 +367,4 @@ bool register_all_network(se::Object* obj) { js_register_network_Downloader(ns); return true; } + diff --git a/native/cocos/bindings/auto/jsb_network_auto.h b/native/cocos/bindings/auto/jsb_network_auto.h index 26e1e0e3ee..400db6084c 100644 --- a/native/cocos/bindings/auto/jsb_network_auto.h +++ b/native/cocos/bindings/auto/jsb_network_auto.h @@ -24,24 +24,24 @@ ****************************************************************************/ #pragma once -#include #include "base/Config.h" +#include #include "cocos/bindings/jswrapper/SeApi.h" #include "cocos/bindings/manual/jsb_conversions.h" #include "cocos/network/Downloader.h" extern se::Object* __jsb_cc_network_DownloaderHints_proto; -extern se::Class* __jsb_cc_network_DownloaderHints_class; +extern se::Class* __jsb_cc_network_DownloaderHints_class; bool js_register_cc_network_DownloaderHints(se::Object* obj); bool register_all_network(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::network::DownloaderHints*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::network::DownloaderHints *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::network::DownloaderHints); extern se::Object* __jsb_cc_network_Downloader_proto; -extern se::Class* __jsb_cc_network_Downloader_class; +extern se::Class* __jsb_cc_network_Downloader_class; bool js_register_cc_network_Downloader(se::Object* obj); bool register_all_network(se::Object* obj); @@ -49,3 +49,4 @@ bool register_all_network(se::Object* obj); JSB_REGISTER_OBJECT_TYPE(cc::network::Downloader); SE_DECLARE_FUNC(js_network_Downloader_setOnTaskProgress); SE_DECLARE_FUNC(js_network_Downloader_Downloader); + diff --git a/native/cocos/bindings/auto/jsb_physics_auto.cpp b/native/cocos/bindings/auto/jsb_physics_auto.cpp index 3e55599420..412194f83b 100644 --- a/native/cocos/bindings/auto/jsb_physics_auto.cpp +++ b/native/cocos/bindings/auto/jsb_physics_auto.cpp @@ -29,310 +29,105 @@ #include "physics/PhysicsSDK.h" #ifndef JSB_ALLOC - #define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) +#define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) #endif #ifndef JSB_FREE - #define JSB_FREE(ptr) delete ptr +#define JSB_FREE(ptr) delete ptr #endif -se::Object* __jsb_cc_physics_World_proto = nullptr; -se::Class* __jsb_cc_physics_World_class = nullptr; +se::Object* __jsb_cc_physics_RevoluteJoint_proto = nullptr; +se::Class* __jsb_cc_physics_RevoluteJoint_class = nullptr; -static bool js_physics_World_createConvex(se::State& s) // NOLINT(readability-identifier-naming) +static bool js_physics_RevoluteJoint_getImpl(se::State& s) // NOLINT(readability-identifier-naming) { - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_physics_World_createConvex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; - if (argc == 1) { - HolderType arg0 = {}; - ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - SE_PRECONDITION2(ok, false, "js_physics_World_createConvex : Error processing arguments"); - uintptr_t result = cobj->createConvex(arg0.value()); - ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); - SE_PRECONDITION2(ok, false, "js_physics_World_createConvex : 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, 1); - return false; -} -SE_BIND_FUNC(js_physics_World_createConvex) - -static bool js_physics_World_createHeightField(se::State& s) // NOLINT(readability-identifier-naming) -{ - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_physics_World_createHeightField : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; - if (argc == 1) { - HolderType arg0 = {}; - ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - SE_PRECONDITION2(ok, false, "js_physics_World_createHeightField : Error processing arguments"); - uintptr_t result = cobj->createHeightField(arg0.value()); - ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); - SE_PRECONDITION2(ok, false, "js_physics_World_createHeightField : 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, 1); - return false; -} -SE_BIND_FUNC(js_physics_World_createHeightField) - -static bool js_physics_World_createMaterial(se::State& s) // NOLINT(readability-identifier-naming) -{ - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_physics_World_createMaterial : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; - if (argc == 6) { - HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; - HolderType arg4 = {}; - HolderType arg5 = {}; - ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - ok &= sevalue_to_native(args[3], &arg3, s.thisObject()); - ok &= sevalue_to_native(args[4], &arg4, s.thisObject()); - ok &= sevalue_to_native(args[5], &arg5, s.thisObject()); - SE_PRECONDITION2(ok, false, "js_physics_World_createMaterial : Error processing arguments"); - uintptr_t result = cobj->createMaterial(arg0.value(), arg1.value(), arg2.value(), arg3.value(), arg4.value(), arg5.value()); - ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); - SE_PRECONDITION2(ok, false, "js_physics_World_createMaterial : 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, 6); - return false; -} -SE_BIND_FUNC(js_physics_World_createMaterial) - -static bool js_physics_World_createTrimesh(se::State& s) // NOLINT(readability-identifier-naming) -{ - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_physics_World_createTrimesh : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; - if (argc == 1) { - HolderType arg0 = {}; - ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - SE_PRECONDITION2(ok, false, "js_physics_World_createTrimesh : Error processing arguments"); - uintptr_t result = cobj->createTrimesh(arg0.value()); - ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); - SE_PRECONDITION2(ok, false, "js_physics_World_createTrimesh : 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, 1); - return false; -} -SE_BIND_FUNC(js_physics_World_createTrimesh) - -static bool js_physics_World_destroy(se::State& s) // NOLINT(readability-identifier-naming) -{ - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_physics_World_destroy : Invalid Native Object"); + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_physics_RevoluteJoint_getImpl : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - cobj->destroy(); + uintptr_t result = cobj->getImpl(); + ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); + SE_PRECONDITION2(ok, false, "js_physics_RevoluteJoint_getImpl : 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_physics_World_destroy) +SE_BIND_FUNC(js_physics_RevoluteJoint_getImpl) -static bool js_physics_World_emitEvents(se::State& s) // NOLINT(readability-identifier-naming) +static bool js_physics_RevoluteJoint_initialize(se::State& s) // NOLINT(readability-identifier-naming) { - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_physics_World_emitEvents : Invalid Native Object"); + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_physics_RevoluteJoint_initialize : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); - if (argc == 0) { - cobj->emitEvents(); - return true; - } - SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0); - return false; -} -SE_BIND_FUNC(js_physics_World_emitEvents) - -static bool js_physics_World_getContactEventPairs(se::State& s) // NOLINT(readability-identifier-naming) -{ - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_physics_World_getContactEventPairs : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; - if (argc == 0) { - std::vector>& result = cobj->getContactEventPairs(); - ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); - SE_PRECONDITION2(ok, false, "js_physics_World_getContactEventPairs : 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_physics_World_getContactEventPairs) - -static bool js_physics_World_getTriggerEventPairs(se::State& s) // NOLINT(readability-identifier-naming) -{ - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_physics_World_getTriggerEventPairs : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; - if (argc == 0) { - std::vector>& result = cobj->getTriggerEventPairs(); - ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); - SE_PRECONDITION2(ok, false, "js_physics_World_getTriggerEventPairs : 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_physics_World_getTriggerEventPairs) - -static bool js_physics_World_raycast(se::State& s) // NOLINT(readability-identifier-naming) -{ - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_physics_World_raycast : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType arg0 = {}; + HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - SE_PRECONDITION2(ok, false, "js_physics_World_raycast : Error processing arguments"); - bool result = cobj->raycast(arg0.value()); - ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); - SE_PRECONDITION2(ok, false, "js_physics_World_raycast : Error processing arguments"); - SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); + SE_PRECONDITION2(ok, false, "js_physics_RevoluteJoint_initialize : Error processing arguments"); + cobj->initialize(arg0.value()); return true; } SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1); return false; } -SE_BIND_FUNC(js_physics_World_raycast) +SE_BIND_FUNC(js_physics_RevoluteJoint_initialize) -static bool js_physics_World_raycastClosest(se::State& s) // NOLINT(readability-identifier-naming) +static bool js_physics_RevoluteJoint_onDestroy(se::State& s) // NOLINT(readability-identifier-naming) { - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_physics_World_raycastClosest : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; - if (argc == 1) { - HolderType arg0 = {}; - ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - SE_PRECONDITION2(ok, false, "js_physics_World_raycastClosest : Error processing arguments"); - bool result = cobj->raycastClosest(arg0.value()); - ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); - SE_PRECONDITION2(ok, false, "js_physics_World_raycastClosest : 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, 1); - return false; -} -SE_BIND_FUNC(js_physics_World_raycastClosest) - -static bool js_physics_World_raycastClosestResult(se::State& s) // NOLINT(readability-identifier-naming) -{ - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_physics_World_raycastClosestResult : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_physics_RevoluteJoint_onDestroy : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); if (argc == 0) { - cc::physics::RaycastResult& result = cobj->raycastClosestResult(); - ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); - SE_PRECONDITION2(ok, false, "js_physics_World_raycastClosestResult : Error processing arguments"); - SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); + cobj->onDestroy(); return true; } SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0); return false; } -SE_BIND_FUNC(js_physics_World_raycastClosestResult) +SE_BIND_FUNC(js_physics_RevoluteJoint_onDestroy) -static bool js_physics_World_raycastResult(se::State& s) // NOLINT(readability-identifier-naming) +static bool js_physics_RevoluteJoint_onDisable(se::State& s) // NOLINT(readability-identifier-naming) { - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_physics_World_raycastResult : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_physics_RevoluteJoint_onDisable : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); if (argc == 0) { - std::vector& result = cobj->raycastResult(); - ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); - SE_PRECONDITION2(ok, false, "js_physics_World_raycastResult : Error processing arguments"); - SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); + cobj->onDisable(); return true; } SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0); return false; } -SE_BIND_FUNC(js_physics_World_raycastResult) +SE_BIND_FUNC(js_physics_RevoluteJoint_onDisable) -static bool js_physics_World_setAllowSleep(se::State& s) // NOLINT(readability-identifier-naming) +static bool js_physics_RevoluteJoint_onEnable(se::State& s) // NOLINT(readability-identifier-naming) { - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_physics_World_setAllowSleep : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; - if (argc == 1) { - HolderType arg0 = {}; - ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - SE_PRECONDITION2(ok, false, "js_physics_World_setAllowSleep : Error processing arguments"); - cobj->setAllowSleep(arg0.value()); + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_physics_RevoluteJoint_onEnable : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + if (argc == 0) { + cobj->onEnable(); return true; } - SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1); + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0); return false; } -SE_BIND_FUNC(js_physics_World_setAllowSleep) +SE_BIND_FUNC(js_physics_RevoluteJoint_onEnable) -static bool js_physics_World_setCollisionMatrix(se::State& s) // NOLINT(readability-identifier-naming) +static bool js_physics_RevoluteJoint_setAxis(se::State& s) // NOLINT(readability-identifier-naming) { - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_physics_World_setCollisionMatrix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; - if (argc == 2) { - HolderType arg0 = {}; - HolderType arg1 = {}; - ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - SE_PRECONDITION2(ok, false, "js_physics_World_setCollisionMatrix : Error processing arguments"); - cobj->setCollisionMatrix(arg0.value(), arg1.value()); - return true; - } - SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 2); - return false; -} -SE_BIND_FUNC(js_physics_World_setCollisionMatrix) - -static bool js_physics_World_setGravity(se::State& s) // NOLINT(readability-identifier-naming) -{ - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_physics_World_setGravity : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_physics_RevoluteJoint_setAxis : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -340,129 +135,378 @@ static bool js_physics_World_setGravity(se::State& s) // NOLINT(readability-iden ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - SE_PRECONDITION2(ok, false, "js_physics_World_setGravity : Error processing arguments"); - cobj->setGravity(arg0.value(), arg1.value(), arg2.value()); + SE_PRECONDITION2(ok, false, "js_physics_RevoluteJoint_setAxis : Error processing arguments"); + cobj->setAxis(arg0.value(), arg1.value(), arg2.value()); return true; } SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 3); return false; } -SE_BIND_FUNC(js_physics_World_setGravity) +SE_BIND_FUNC(js_physics_RevoluteJoint_setAxis) -static bool js_physics_World_step(se::State& s) // NOLINT(readability-identifier-naming) +static bool js_physics_RevoluteJoint_setConnectedBody(se::State& s) // NOLINT(readability-identifier-naming) { - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_physics_World_step : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_physics_RevoluteJoint_setConnectedBody : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType arg0 = {}; + HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - SE_PRECONDITION2(ok, false, "js_physics_World_step : Error processing arguments"); - cobj->step(arg0.value()); + SE_PRECONDITION2(ok, false, "js_physics_RevoluteJoint_setConnectedBody : Error processing arguments"); + cobj->setConnectedBody(arg0.value()); return true; } SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1); return false; } -SE_BIND_FUNC(js_physics_World_step) +SE_BIND_FUNC(js_physics_RevoluteJoint_setConnectedBody) -static bool js_physics_World_syncSceneToPhysics(se::State& s) // NOLINT(readability-identifier-naming) +static bool js_physics_RevoluteJoint_setEnableCollision(se::State& s) // NOLINT(readability-identifier-naming) { - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_physics_World_syncSceneToPhysics : Invalid Native Object"); + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_physics_RevoluteJoint_setEnableCollision : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); - if (argc == 0) { - cobj->syncSceneToPhysics(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 1) { + HolderType arg0 = {}; + ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_physics_RevoluteJoint_setEnableCollision : Error processing arguments"); + cobj->setEnableCollision(arg0.value()); return true; } - SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0); + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1); return false; } -SE_BIND_FUNC(js_physics_World_syncSceneToPhysics) +SE_BIND_FUNC(js_physics_RevoluteJoint_setEnableCollision) -static bool js_physics_World_syncSceneWithCheck(se::State& s) // NOLINT(readability-identifier-naming) +static bool js_physics_RevoluteJoint_setPivotA(se::State& s) // NOLINT(readability-identifier-naming) { - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_physics_World_syncSceneWithCheck : Invalid Native Object"); + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_physics_RevoluteJoint_setPivotA : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); - if (argc == 0) { - cobj->syncSceneWithCheck(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 3) { + HolderType arg0 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); + ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); + ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_physics_RevoluteJoint_setPivotA : Error processing arguments"); + cobj->setPivotA(arg0.value(), arg1.value(), arg2.value()); return true; } - SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0); + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 3); return false; } -SE_BIND_FUNC(js_physics_World_syncSceneWithCheck) +SE_BIND_FUNC(js_physics_RevoluteJoint_setPivotA) -SE_DECLARE_FINALIZE_FUNC(js_cc_physics_World_finalize) - -static bool js_physics_World_constructor(se::State& s) // NOLINT(readability-identifier-naming) constructor.c +static bool js_physics_RevoluteJoint_setPivotB(se::State& s) // NOLINT(readability-identifier-naming) { - cc::physics::World* cobj = JSB_ALLOC(cc::physics::World); + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_physics_RevoluteJoint_setPivotB : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 3) { + HolderType arg0 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); + ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); + ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_physics_RevoluteJoint_setPivotB : Error processing arguments"); + cobj->setPivotB(arg0.value(), arg1.value(), arg2.value()); + return true; + } + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 3); + return false; +} +SE_BIND_FUNC(js_physics_RevoluteJoint_setPivotB) + +SE_DECLARE_FINALIZE_FUNC(js_cc_physics_RevoluteJoint_finalize) + +static bool js_physics_RevoluteJoint_constructor(se::State& s) // NOLINT(readability-identifier-naming) constructor.c +{ + cc::physics::RevoluteJoint* cobj = JSB_ALLOC(cc::physics::RevoluteJoint); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } -SE_BIND_CTOR(js_physics_World_constructor, __jsb_cc_physics_World_class, js_cc_physics_World_finalize) +SE_BIND_CTOR(js_physics_RevoluteJoint_constructor, __jsb_cc_physics_RevoluteJoint_class, js_cc_physics_RevoluteJoint_finalize) -static bool js_cc_physics_World_finalize(se::State& s) // NOLINT(readability-identifier-naming) + + +static bool js_cc_physics_RevoluteJoint_finalize(se::State& s) // NOLINT(readability-identifier-naming) { - auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); } return true; } -SE_BIND_FINALIZE_FUNC(js_cc_physics_World_finalize) +SE_BIND_FINALIZE_FUNC(js_cc_physics_RevoluteJoint_finalize) -bool js_register_physics_World(se::Object* obj) // NOLINT(readability-identifier-naming) +bool js_register_physics_RevoluteJoint(se::Object* obj) // NOLINT(readability-identifier-naming) { - auto* cls = se::Class::create("World", obj, nullptr, _SE(js_physics_World_constructor)); + auto* cls = se::Class::create("RevoluteJoint", obj, nullptr, _SE(js_physics_RevoluteJoint_constructor)); - cls->defineFunction("createConvex", _SE(js_physics_World_createConvex)); - cls->defineFunction("createHeightField", _SE(js_physics_World_createHeightField)); - cls->defineFunction("createMaterial", _SE(js_physics_World_createMaterial)); - cls->defineFunction("createTrimesh", _SE(js_physics_World_createTrimesh)); - cls->defineFunction("destroy", _SE(js_physics_World_destroy)); - cls->defineFunction("emitEvents", _SE(js_physics_World_emitEvents)); - cls->defineFunction("getContactEventPairs", _SE(js_physics_World_getContactEventPairs)); - cls->defineFunction("getTriggerEventPairs", _SE(js_physics_World_getTriggerEventPairs)); - cls->defineFunction("raycast", _SE(js_physics_World_raycast)); - cls->defineFunction("raycastClosest", _SE(js_physics_World_raycastClosest)); - cls->defineFunction("raycastClosestResult", _SE(js_physics_World_raycastClosestResult)); - cls->defineFunction("raycastResult", _SE(js_physics_World_raycastResult)); - cls->defineFunction("setAllowSleep", _SE(js_physics_World_setAllowSleep)); - cls->defineFunction("setCollisionMatrix", _SE(js_physics_World_setCollisionMatrix)); - cls->defineFunction("setGravity", _SE(js_physics_World_setGravity)); - cls->defineFunction("step", _SE(js_physics_World_step)); - cls->defineFunction("syncSceneToPhysics", _SE(js_physics_World_syncSceneToPhysics)); - cls->defineFunction("syncSceneWithCheck", _SE(js_physics_World_syncSceneWithCheck)); - cls->defineFinalizeFunction(_SE(js_cc_physics_World_finalize)); + cls->defineFunction("getImpl", _SE(js_physics_RevoluteJoint_getImpl)); + cls->defineFunction("initialize", _SE(js_physics_RevoluteJoint_initialize)); + cls->defineFunction("onDestroy", _SE(js_physics_RevoluteJoint_onDestroy)); + cls->defineFunction("onDisable", _SE(js_physics_RevoluteJoint_onDisable)); + cls->defineFunction("onEnable", _SE(js_physics_RevoluteJoint_onEnable)); + cls->defineFunction("setAxis", _SE(js_physics_RevoluteJoint_setAxis)); + cls->defineFunction("setConnectedBody", _SE(js_physics_RevoluteJoint_setConnectedBody)); + cls->defineFunction("setEnableCollision", _SE(js_physics_RevoluteJoint_setEnableCollision)); + cls->defineFunction("setPivotA", _SE(js_physics_RevoluteJoint_setPivotA)); + cls->defineFunction("setPivotB", _SE(js_physics_RevoluteJoint_setPivotB)); + cls->defineFinalizeFunction(_SE(js_cc_physics_RevoluteJoint_finalize)); cls->install(); - JSBClassType::registerClass(cls); + JSBClassType::registerClass(cls); - __jsb_cc_physics_World_proto = cls->getProto(); - __jsb_cc_physics_World_class = cls; + __jsb_cc_physics_RevoluteJoint_proto = cls->getProto(); + __jsb_cc_physics_RevoluteJoint_class = cls; + + se::ScriptEngine::getInstance()->clearException(); + return true; +} +se::Object* __jsb_cc_physics_DistanceJoint_proto = nullptr; +se::Class* __jsb_cc_physics_DistanceJoint_class = nullptr; + +static bool js_physics_DistanceJoint_getImpl(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_physics_DistanceJoint_getImpl : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 0) { + uintptr_t result = cobj->getImpl(); + ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); + SE_PRECONDITION2(ok, false, "js_physics_DistanceJoint_getImpl : 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_physics_DistanceJoint_getImpl) + +static bool js_physics_DistanceJoint_initialize(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_physics_DistanceJoint_initialize : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 1) { + HolderType arg0 = {}; + ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_physics_DistanceJoint_initialize : Error processing arguments"); + cobj->initialize(arg0.value()); + return true; + } + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1); + return false; +} +SE_BIND_FUNC(js_physics_DistanceJoint_initialize) + +static bool js_physics_DistanceJoint_onDestroy(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_physics_DistanceJoint_onDestroy : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + if (argc == 0) { + cobj->onDestroy(); + return true; + } + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0); + return false; +} +SE_BIND_FUNC(js_physics_DistanceJoint_onDestroy) + +static bool js_physics_DistanceJoint_onDisable(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_physics_DistanceJoint_onDisable : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + if (argc == 0) { + cobj->onDisable(); + return true; + } + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0); + return false; +} +SE_BIND_FUNC(js_physics_DistanceJoint_onDisable) + +static bool js_physics_DistanceJoint_onEnable(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_physics_DistanceJoint_onEnable : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + if (argc == 0) { + cobj->onEnable(); + return true; + } + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0); + return false; +} +SE_BIND_FUNC(js_physics_DistanceJoint_onEnable) + +static bool js_physics_DistanceJoint_setConnectedBody(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_physics_DistanceJoint_setConnectedBody : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 1) { + HolderType arg0 = {}; + ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_physics_DistanceJoint_setConnectedBody : Error processing arguments"); + cobj->setConnectedBody(arg0.value()); + return true; + } + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1); + return false; +} +SE_BIND_FUNC(js_physics_DistanceJoint_setConnectedBody) + +static bool js_physics_DistanceJoint_setEnableCollision(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_physics_DistanceJoint_setEnableCollision : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 1) { + HolderType arg0 = {}; + ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_physics_DistanceJoint_setEnableCollision : Error processing arguments"); + cobj->setEnableCollision(arg0.value()); + return true; + } + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1); + return false; +} +SE_BIND_FUNC(js_physics_DistanceJoint_setEnableCollision) + +static bool js_physics_DistanceJoint_setPivotA(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_physics_DistanceJoint_setPivotA : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 3) { + HolderType arg0 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); + ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); + ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_physics_DistanceJoint_setPivotA : Error processing arguments"); + cobj->setPivotA(arg0.value(), arg1.value(), arg2.value()); + return true; + } + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 3); + return false; +} +SE_BIND_FUNC(js_physics_DistanceJoint_setPivotA) + +static bool js_physics_DistanceJoint_setPivotB(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_physics_DistanceJoint_setPivotB : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 3) { + HolderType arg0 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); + ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); + ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_physics_DistanceJoint_setPivotB : Error processing arguments"); + cobj->setPivotB(arg0.value(), arg1.value(), arg2.value()); + return true; + } + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 3); + return false; +} +SE_BIND_FUNC(js_physics_DistanceJoint_setPivotB) + +SE_DECLARE_FINALIZE_FUNC(js_cc_physics_DistanceJoint_finalize) + +static bool js_physics_DistanceJoint_constructor(se::State& s) // NOLINT(readability-identifier-naming) constructor.c +{ + cc::physics::DistanceJoint* cobj = JSB_ALLOC(cc::physics::DistanceJoint); + s.thisObject()->setPrivateData(cobj); + se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); + return true; +} +SE_BIND_CTOR(js_physics_DistanceJoint_constructor, __jsb_cc_physics_DistanceJoint_class, js_cc_physics_DistanceJoint_finalize) + + + +static bool js_cc_physics_DistanceJoint_finalize(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { + se::NonRefNativePtrCreatedByCtorMap::erase(iter); + auto* cobj = SE_THIS_OBJECT(s); + JSB_FREE(cobj); + } + return true; +} +SE_BIND_FINALIZE_FUNC(js_cc_physics_DistanceJoint_finalize) + +bool js_register_physics_DistanceJoint(se::Object* obj) // NOLINT(readability-identifier-naming) +{ + auto* cls = se::Class::create("DistanceJoint", obj, nullptr, _SE(js_physics_DistanceJoint_constructor)); + + cls->defineFunction("getImpl", _SE(js_physics_DistanceJoint_getImpl)); + cls->defineFunction("initialize", _SE(js_physics_DistanceJoint_initialize)); + cls->defineFunction("onDestroy", _SE(js_physics_DistanceJoint_onDestroy)); + cls->defineFunction("onDisable", _SE(js_physics_DistanceJoint_onDisable)); + cls->defineFunction("onEnable", _SE(js_physics_DistanceJoint_onEnable)); + cls->defineFunction("setConnectedBody", _SE(js_physics_DistanceJoint_setConnectedBody)); + cls->defineFunction("setEnableCollision", _SE(js_physics_DistanceJoint_setEnableCollision)); + cls->defineFunction("setPivotA", _SE(js_physics_DistanceJoint_setPivotA)); + cls->defineFunction("setPivotB", _SE(js_physics_DistanceJoint_setPivotB)); + cls->defineFinalizeFunction(_SE(js_cc_physics_DistanceJoint_finalize)); + cls->install(); + JSBClassType::registerClass(cls); + + __jsb_cc_physics_DistanceJoint_proto = cls->getProto(); + __jsb_cc_physics_DistanceJoint_class = cls; se::ScriptEngine::getInstance()->clearException(); return true; } se::Object* __jsb_cc_physics_RigidBody_proto = nullptr; -se::Class* __jsb_cc_physics_RigidBody_class = nullptr; +se::Class* __jsb_cc_physics_RigidBody_class = nullptr; static bool js_physics_RigidBody_applyForce(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_applyForce : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 6) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -489,9 +533,9 @@ static bool js_physics_RigidBody_applyImpulse(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_applyImpulse : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 6) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -518,9 +562,9 @@ static bool js_physics_RigidBody_applyLocalForce(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_applyLocalForce : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 6) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -547,9 +591,9 @@ static bool js_physics_RigidBody_applyLocalImpulse(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_applyLocalImpulse : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 6) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -576,9 +620,9 @@ static bool js_physics_RigidBody_applyLocalTorque(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_applyLocalTorque : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -599,9 +643,9 @@ static bool js_physics_RigidBody_applyTorque(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_applyTorque : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -623,7 +667,7 @@ static bool js_physics_RigidBody_clearForces(se::State& s) // NOLINT(readability auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_clearForces : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->clearForces(); return true; @@ -638,7 +682,7 @@ static bool js_physics_RigidBody_clearState(se::State& s) // NOLINT(readability- auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_clearState : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->clearState(); return true; @@ -653,7 +697,7 @@ static bool js_physics_RigidBody_clearVelocity(se::State& s) // NOLINT(readabili auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_clearVelocity : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->clearVelocity(); return true; @@ -667,9 +711,9 @@ static bool js_physics_RigidBody_getAngularVelocity(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_getAngularVelocity : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::Vec3 result = cobj->getAngularVelocity(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -686,9 +730,9 @@ static bool js_physics_RigidBody_getGroup(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_getGroup : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getGroup(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -705,9 +749,9 @@ static bool js_physics_RigidBody_getImpl(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_getImpl : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { uintptr_t result = cobj->getImpl(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -724,9 +768,9 @@ static bool js_physics_RigidBody_getLinearVelocity(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_getLinearVelocity : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::Vec3 result = cobj->getLinearVelocity(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -743,9 +787,9 @@ static bool js_physics_RigidBody_getMask(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_getMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getMask(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -762,9 +806,9 @@ static bool js_physics_RigidBody_getNodeHandle(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_getNodeHandle : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { uintptr_t result = cobj->getNodeHandle(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -781,9 +825,9 @@ static bool js_physics_RigidBody_getSleepThreshold(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_getSleepThreshold : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getSleepThreshold(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -800,13 +844,13 @@ static bool js_physics_RigidBody_initialize(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -823,9 +867,9 @@ static bool js_physics_RigidBody_isAwake(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_isAwake : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isAwake(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -842,9 +886,9 @@ static bool js_physics_RigidBody_isSleeping(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_isSleeping : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isSleeping(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -861,9 +905,9 @@ static bool js_physics_RigidBody_isSleepy(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_isSleepy : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isSleepy(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -881,7 +925,7 @@ static bool js_physics_RigidBody_onDestroy(se::State& s) // NOLINT(readability-i auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_onDestroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDestroy(); return true; @@ -896,7 +940,7 @@ static bool js_physics_RigidBody_onDisable(se::State& s) // NOLINT(readability-i auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_onDisable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDisable(); return true; @@ -911,7 +955,7 @@ static bool js_physics_RigidBody_onEnable(se::State& s) // NOLINT(readability-id auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_onEnable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onEnable(); return true; @@ -925,9 +969,9 @@ static bool js_physics_RigidBody_setAllowSleep(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_setAllowSleep : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -944,9 +988,9 @@ static bool js_physics_RigidBody_setAngularDamping(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_setAngularDamping : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -963,9 +1007,9 @@ static bool js_physics_RigidBody_setAngularFactor(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_setAngularFactor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -986,9 +1030,9 @@ static bool js_physics_RigidBody_setAngularVelocity(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_setAngularVelocity : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -1009,9 +1053,9 @@ static bool js_physics_RigidBody_setGroup(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_setGroup : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1028,9 +1072,9 @@ static bool js_physics_RigidBody_setLinearDamping(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_setLinearDamping : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1047,9 +1091,9 @@ static bool js_physics_RigidBody_setLinearFactor(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_setLinearFactor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -1070,9 +1114,9 @@ static bool js_physics_RigidBody_setLinearVelocity(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_setLinearVelocity : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -1093,9 +1137,9 @@ static bool js_physics_RigidBody_setMask(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_setMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1112,9 +1156,9 @@ static bool js_physics_RigidBody_setMass(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_setMass : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1131,9 +1175,9 @@ static bool js_physics_RigidBody_setSleepThreshold(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_setSleepThreshold : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1150,9 +1194,9 @@ static bool js_physics_RigidBody_setType(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_setType : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1170,7 +1214,7 @@ static bool js_physics_RigidBody_sleep(se::State& s) // NOLINT(readability-ident auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_sleep : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->sleep(); return true; @@ -1184,9 +1228,9 @@ static bool js_physics_RigidBody_useCCD(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_useCCD : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1203,9 +1247,9 @@ static bool js_physics_RigidBody_useGravity(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_useGravity : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1223,7 +1267,7 @@ static bool js_physics_RigidBody_wakeUp(se::State& s) // NOLINT(readability-iden auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_wakeUp : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->wakeUp(); return true; @@ -1244,10 +1288,13 @@ static bool js_physics_RigidBody_constructor(se::State& s) // NOLINT(readability } SE_BIND_CTOR(js_physics_RigidBody_constructor, __jsb_cc_physics_RigidBody_class, js_cc_physics_RigidBody_finalize) + + static bool js_cc_physics_RigidBody_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -1310,15 +1357,15 @@ bool js_register_physics_RigidBody(se::Object* obj) // NOLINT(readability-identi return true; } se::Object* __jsb_cc_physics_SphereShape_proto = nullptr; -se::Class* __jsb_cc_physics_SphereShape_class = nullptr; +se::Class* __jsb_cc_physics_SphereShape_class = nullptr; static bool js_physics_SphereShape_getAABB(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_SphereShape_getAABB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::AABB& result = cobj->getAABB(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1335,9 +1382,9 @@ static bool js_physics_SphereShape_getBoundingSphere(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_SphereShape_getBoundingSphere : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::Sphere& result = cobj->getBoundingSphere(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1354,9 +1401,9 @@ static bool js_physics_SphereShape_getGroup(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_SphereShape_getGroup : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getGroup(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1373,9 +1420,9 @@ static bool js_physics_SphereShape_getImpl(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_SphereShape_getImpl : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { uintptr_t result = cobj->getImpl(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1392,9 +1439,9 @@ static bool js_physics_SphereShape_getMask(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_SphereShape_getMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getMask(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1411,9 +1458,9 @@ static bool js_physics_SphereShape_initialize(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_SphereShape_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1431,7 +1478,7 @@ static bool js_physics_SphereShape_onDestroy(se::State& s) // NOLINT(readability auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_SphereShape_onDestroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDestroy(); return true; @@ -1446,7 +1493,7 @@ static bool js_physics_SphereShape_onDisable(se::State& s) // NOLINT(readability auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_SphereShape_onDisable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDisable(); return true; @@ -1461,7 +1508,7 @@ static bool js_physics_SphereShape_onEnable(se::State& s) // NOLINT(readability- auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_SphereShape_onEnable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onEnable(); return true; @@ -1475,9 +1522,9 @@ static bool js_physics_SphereShape_setAsTrigger(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_SphereShape_setAsTrigger : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1494,9 +1541,9 @@ static bool js_physics_SphereShape_setCenter(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_SphereShape_setCenter : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -1517,9 +1564,9 @@ static bool js_physics_SphereShape_setGroup(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_SphereShape_setGroup : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1536,9 +1583,9 @@ static bool js_physics_SphereShape_setMask(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_SphereShape_setMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1555,16 +1602,16 @@ static bool js_physics_SphereShape_setMaterial(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_SphereShape_setMaterial : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 6) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; - HolderType arg4 = {}; - HolderType arg5 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; + HolderType arg4 = {}; + HolderType arg5 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -1584,9 +1631,9 @@ static bool js_physics_SphereShape_setRadius(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_SphereShape_setRadius : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1603,9 +1650,9 @@ static bool js_physics_SphereShape_updateEventListener(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_SphereShape_updateEventListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1629,10 +1676,13 @@ static bool js_physics_SphereShape_constructor(se::State& s) // NOLINT(readabili } SE_BIND_CTOR(js_physics_SphereShape_constructor, __jsb_cc_physics_SphereShape_class, js_cc_physics_SphereShape_finalize) + + static bool js_cc_physics_SphereShape_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -1672,15 +1722,15 @@ bool js_register_physics_SphereShape(se::Object* obj) // NOLINT(readability-iden return true; } se::Object* __jsb_cc_physics_BoxShape_proto = nullptr; -se::Class* __jsb_cc_physics_BoxShape_class = nullptr; +se::Class* __jsb_cc_physics_BoxShape_class = nullptr; static bool js_physics_BoxShape_getAABB(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_BoxShape_getAABB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::AABB& result = cobj->getAABB(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1697,9 +1747,9 @@ static bool js_physics_BoxShape_getBoundingSphere(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_BoxShape_getBoundingSphere : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::Sphere& result = cobj->getBoundingSphere(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1716,9 +1766,9 @@ static bool js_physics_BoxShape_getGroup(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_BoxShape_getGroup : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getGroup(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1735,9 +1785,9 @@ static bool js_physics_BoxShape_getImpl(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_BoxShape_getImpl : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { uintptr_t result = cobj->getImpl(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1754,9 +1804,9 @@ static bool js_physics_BoxShape_getMask(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_BoxShape_getMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getMask(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1773,9 +1823,9 @@ static bool js_physics_BoxShape_initialize(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_BoxShape_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1793,7 +1843,7 @@ static bool js_physics_BoxShape_onDestroy(se::State& s) // NOLINT(readability-id auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_BoxShape_onDestroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDestroy(); return true; @@ -1808,7 +1858,7 @@ static bool js_physics_BoxShape_onDisable(se::State& s) // NOLINT(readability-id auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_BoxShape_onDisable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDisable(); return true; @@ -1823,7 +1873,7 @@ static bool js_physics_BoxShape_onEnable(se::State& s) // NOLINT(readability-ide auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_BoxShape_onEnable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onEnable(); return true; @@ -1837,9 +1887,9 @@ static bool js_physics_BoxShape_setAsTrigger(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_BoxShape_setAsTrigger : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1856,9 +1906,9 @@ static bool js_physics_BoxShape_setCenter(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_BoxShape_setCenter : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -1879,9 +1929,9 @@ static bool js_physics_BoxShape_setGroup(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_BoxShape_setGroup : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1898,9 +1948,9 @@ static bool js_physics_BoxShape_setMask(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_BoxShape_setMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1917,16 +1967,16 @@ static bool js_physics_BoxShape_setMaterial(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_BoxShape_setMaterial : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 6) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; - HolderType arg4 = {}; - HolderType arg5 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; + HolderType arg4 = {}; + HolderType arg5 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -1946,9 +1996,9 @@ static bool js_physics_BoxShape_setSize(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_BoxShape_setSize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -1969,9 +2019,9 @@ static bool js_physics_BoxShape_updateEventListener(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_BoxShape_updateEventListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1995,10 +2045,13 @@ static bool js_physics_BoxShape_constructor(se::State& s) // NOLINT(readability- } SE_BIND_CTOR(js_physics_BoxShape_constructor, __jsb_cc_physics_BoxShape_class, js_cc_physics_BoxShape_finalize) + + static bool js_cc_physics_BoxShape_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -2038,15 +2091,15 @@ bool js_register_physics_BoxShape(se::Object* obj) // NOLINT(readability-identif return true; } se::Object* __jsb_cc_physics_CapsuleShape_proto = nullptr; -se::Class* __jsb_cc_physics_CapsuleShape_class = nullptr; +se::Class* __jsb_cc_physics_CapsuleShape_class = nullptr; static bool js_physics_CapsuleShape_getAABB(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CapsuleShape_getAABB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::AABB& result = cobj->getAABB(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2063,9 +2116,9 @@ static bool js_physics_CapsuleShape_getBoundingSphere(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CapsuleShape_getBoundingSphere : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::Sphere& result = cobj->getBoundingSphere(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2082,9 +2135,9 @@ static bool js_physics_CapsuleShape_getGroup(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CapsuleShape_getGroup : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getGroup(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2101,9 +2154,9 @@ static bool js_physics_CapsuleShape_getImpl(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CapsuleShape_getImpl : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { uintptr_t result = cobj->getImpl(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2120,9 +2173,9 @@ static bool js_physics_CapsuleShape_getMask(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CapsuleShape_getMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getMask(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2139,9 +2192,9 @@ static bool js_physics_CapsuleShape_initialize(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CapsuleShape_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2159,7 +2212,7 @@ static bool js_physics_CapsuleShape_onDestroy(se::State& s) // NOLINT(readabilit auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CapsuleShape_onDestroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDestroy(); return true; @@ -2174,7 +2227,7 @@ static bool js_physics_CapsuleShape_onDisable(se::State& s) // NOLINT(readabilit auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CapsuleShape_onDisable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDisable(); return true; @@ -2189,7 +2242,7 @@ static bool js_physics_CapsuleShape_onEnable(se::State& s) // NOLINT(readability auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CapsuleShape_onEnable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onEnable(); return true; @@ -2203,9 +2256,9 @@ static bool js_physics_CapsuleShape_setAsTrigger(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CapsuleShape_setAsTrigger : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2222,9 +2275,9 @@ static bool js_physics_CapsuleShape_setCenter(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CapsuleShape_setCenter : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -2245,9 +2298,9 @@ static bool js_physics_CapsuleShape_setCylinderHeight(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CapsuleShape_setCylinderHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2264,9 +2317,9 @@ static bool js_physics_CapsuleShape_setDirection(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CapsuleShape_setDirection : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2283,9 +2336,9 @@ static bool js_physics_CapsuleShape_setGroup(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CapsuleShape_setGroup : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2302,9 +2355,9 @@ static bool js_physics_CapsuleShape_setMask(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CapsuleShape_setMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2321,16 +2374,16 @@ static bool js_physics_CapsuleShape_setMaterial(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CapsuleShape_setMaterial : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 6) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; - HolderType arg4 = {}; - HolderType arg5 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; + HolderType arg4 = {}; + HolderType arg5 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -2350,9 +2403,9 @@ static bool js_physics_CapsuleShape_setRadius(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CapsuleShape_setRadius : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2369,9 +2422,9 @@ static bool js_physics_CapsuleShape_updateEventListener(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CapsuleShape_updateEventListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2395,10 +2448,13 @@ static bool js_physics_CapsuleShape_constructor(se::State& s) // NOLINT(readabil } SE_BIND_CTOR(js_physics_CapsuleShape_constructor, __jsb_cc_physics_CapsuleShape_class, js_cc_physics_CapsuleShape_finalize) + + static bool js_cc_physics_CapsuleShape_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -2440,15 +2496,15 @@ bool js_register_physics_CapsuleShape(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_cc_physics_PlaneShape_proto = nullptr; -se::Class* __jsb_cc_physics_PlaneShape_class = nullptr; +se::Class* __jsb_cc_physics_PlaneShape_class = nullptr; static bool js_physics_PlaneShape_getAABB(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_PlaneShape_getAABB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::AABB& result = cobj->getAABB(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2465,9 +2521,9 @@ static bool js_physics_PlaneShape_getBoundingSphere(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_PlaneShape_getBoundingSphere : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::Sphere& result = cobj->getBoundingSphere(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2484,9 +2540,9 @@ static bool js_physics_PlaneShape_getGroup(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_PlaneShape_getGroup : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getGroup(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2503,9 +2559,9 @@ static bool js_physics_PlaneShape_getImpl(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_PlaneShape_getImpl : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { uintptr_t result = cobj->getImpl(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2522,9 +2578,9 @@ static bool js_physics_PlaneShape_getMask(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_PlaneShape_getMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getMask(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2541,9 +2597,9 @@ static bool js_physics_PlaneShape_initialize(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_PlaneShape_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2561,7 +2617,7 @@ static bool js_physics_PlaneShape_onDestroy(se::State& s) // NOLINT(readability- auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_PlaneShape_onDestroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDestroy(); return true; @@ -2576,7 +2632,7 @@ static bool js_physics_PlaneShape_onDisable(se::State& s) // NOLINT(readability- auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_PlaneShape_onDisable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDisable(); return true; @@ -2591,7 +2647,7 @@ static bool js_physics_PlaneShape_onEnable(se::State& s) // NOLINT(readability-i auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_PlaneShape_onEnable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onEnable(); return true; @@ -2605,9 +2661,9 @@ static bool js_physics_PlaneShape_setAsTrigger(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_PlaneShape_setAsTrigger : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2624,9 +2680,9 @@ static bool js_physics_PlaneShape_setCenter(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_PlaneShape_setCenter : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -2647,9 +2703,9 @@ static bool js_physics_PlaneShape_setConstant(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_PlaneShape_setConstant : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2666,9 +2722,9 @@ static bool js_physics_PlaneShape_setGroup(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_PlaneShape_setGroup : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2685,9 +2741,9 @@ static bool js_physics_PlaneShape_setMask(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_PlaneShape_setMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2704,16 +2760,16 @@ static bool js_physics_PlaneShape_setMaterial(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_PlaneShape_setMaterial : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 6) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; - HolderType arg4 = {}; - HolderType arg5 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; + HolderType arg4 = {}; + HolderType arg5 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -2733,9 +2789,9 @@ static bool js_physics_PlaneShape_setNormal(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_PlaneShape_setNormal : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -2756,9 +2812,9 @@ static bool js_physics_PlaneShape_updateEventListener(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_PlaneShape_updateEventListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2782,10 +2838,13 @@ static bool js_physics_PlaneShape_constructor(se::State& s) // NOLINT(readabilit } SE_BIND_CTOR(js_physics_PlaneShape_constructor, __jsb_cc_physics_PlaneShape_class, js_cc_physics_PlaneShape_finalize) + + static bool js_cc_physics_PlaneShape_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -2826,15 +2885,15 @@ bool js_register_physics_PlaneShape(se::Object* obj) // NOLINT(readability-ident return true; } se::Object* __jsb_cc_physics_TrimeshShape_proto = nullptr; -se::Class* __jsb_cc_physics_TrimeshShape_class = nullptr; +se::Class* __jsb_cc_physics_TrimeshShape_class = nullptr; static bool js_physics_TrimeshShape_getAABB(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TrimeshShape_getAABB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::AABB& result = cobj->getAABB(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2851,9 +2910,9 @@ static bool js_physics_TrimeshShape_getBoundingSphere(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TrimeshShape_getBoundingSphere : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::Sphere& result = cobj->getBoundingSphere(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2870,9 +2929,9 @@ static bool js_physics_TrimeshShape_getGroup(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TrimeshShape_getGroup : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getGroup(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2889,9 +2948,9 @@ static bool js_physics_TrimeshShape_getImpl(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TrimeshShape_getImpl : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { uintptr_t result = cobj->getImpl(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2908,9 +2967,9 @@ static bool js_physics_TrimeshShape_getMask(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TrimeshShape_getMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getMask(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2927,9 +2986,9 @@ static bool js_physics_TrimeshShape_initialize(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TrimeshShape_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2947,7 +3006,7 @@ static bool js_physics_TrimeshShape_onDestroy(se::State& s) // NOLINT(readabilit auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TrimeshShape_onDestroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDestroy(); return true; @@ -2962,7 +3021,7 @@ static bool js_physics_TrimeshShape_onDisable(se::State& s) // NOLINT(readabilit auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TrimeshShape_onDisable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDisable(); return true; @@ -2977,7 +3036,7 @@ static bool js_physics_TrimeshShape_onEnable(se::State& s) // NOLINT(readability auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TrimeshShape_onEnable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onEnable(); return true; @@ -2991,9 +3050,9 @@ static bool js_physics_TrimeshShape_setAsTrigger(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TrimeshShape_setAsTrigger : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3010,9 +3069,9 @@ static bool js_physics_TrimeshShape_setCenter(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TrimeshShape_setCenter : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -3033,9 +3092,9 @@ static bool js_physics_TrimeshShape_setGroup(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TrimeshShape_setGroup : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3052,9 +3111,9 @@ static bool js_physics_TrimeshShape_setMask(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TrimeshShape_setMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3071,16 +3130,16 @@ static bool js_physics_TrimeshShape_setMaterial(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TrimeshShape_setMaterial : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 6) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; - HolderType arg4 = {}; - HolderType arg5 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; + HolderType arg4 = {}; + HolderType arg5 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -3100,9 +3159,9 @@ static bool js_physics_TrimeshShape_setMesh(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TrimeshShape_setMesh : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3119,9 +3178,9 @@ static bool js_physics_TrimeshShape_updateEventListener(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TrimeshShape_updateEventListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3138,9 +3197,9 @@ static bool js_physics_TrimeshShape_useConvex(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TrimeshShape_useConvex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3164,10 +3223,13 @@ static bool js_physics_TrimeshShape_constructor(se::State& s) // NOLINT(readabil } SE_BIND_CTOR(js_physics_TrimeshShape_constructor, __jsb_cc_physics_TrimeshShape_class, js_cc_physics_TrimeshShape_finalize) + + static bool js_cc_physics_TrimeshShape_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -3208,15 +3270,15 @@ bool js_register_physics_TrimeshShape(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_cc_physics_CylinderShape_proto = nullptr; -se::Class* __jsb_cc_physics_CylinderShape_class = nullptr; +se::Class* __jsb_cc_physics_CylinderShape_class = nullptr; static bool js_physics_CylinderShape_getAABB(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CylinderShape_getAABB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::AABB& result = cobj->getAABB(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3233,9 +3295,9 @@ static bool js_physics_CylinderShape_getBoundingSphere(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CylinderShape_getBoundingSphere : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::Sphere& result = cobj->getBoundingSphere(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3252,9 +3314,9 @@ static bool js_physics_CylinderShape_getGroup(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CylinderShape_getGroup : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getGroup(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3271,9 +3333,9 @@ static bool js_physics_CylinderShape_getImpl(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CylinderShape_getImpl : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { uintptr_t result = cobj->getImpl(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3290,9 +3352,9 @@ static bool js_physics_CylinderShape_getMask(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CylinderShape_getMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getMask(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3309,9 +3371,9 @@ static bool js_physics_CylinderShape_initialize(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CylinderShape_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3329,7 +3391,7 @@ static bool js_physics_CylinderShape_onDestroy(se::State& s) // NOLINT(readabili auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CylinderShape_onDestroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDestroy(); return true; @@ -3344,7 +3406,7 @@ static bool js_physics_CylinderShape_onDisable(se::State& s) // NOLINT(readabili auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CylinderShape_onDisable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDisable(); return true; @@ -3359,7 +3421,7 @@ static bool js_physics_CylinderShape_onEnable(se::State& s) // NOLINT(readabilit auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CylinderShape_onEnable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onEnable(); return true; @@ -3373,9 +3435,9 @@ static bool js_physics_CylinderShape_setAsTrigger(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CylinderShape_setAsTrigger : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3392,9 +3454,9 @@ static bool js_physics_CylinderShape_setCenter(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CylinderShape_setCenter : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -3415,9 +3477,9 @@ static bool js_physics_CylinderShape_setConvex(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CylinderShape_setConvex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3434,12 +3496,12 @@ static bool js_physics_CylinderShape_setCylinder(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CylinderShape_setCylinder : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { - HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -3457,9 +3519,9 @@ static bool js_physics_CylinderShape_setGroup(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CylinderShape_setGroup : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3476,9 +3538,9 @@ static bool js_physics_CylinderShape_setMask(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CylinderShape_setMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3495,16 +3557,16 @@ static bool js_physics_CylinderShape_setMaterial(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CylinderShape_setMaterial : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 6) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; - HolderType arg4 = {}; - HolderType arg5 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; + HolderType arg4 = {}; + HolderType arg5 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -3524,9 +3586,9 @@ static bool js_physics_CylinderShape_updateEventListener(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CylinderShape_updateEventListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3550,10 +3612,13 @@ static bool js_physics_CylinderShape_constructor(se::State& s) // NOLINT(readabi } SE_BIND_CTOR(js_physics_CylinderShape_constructor, __jsb_cc_physics_CylinderShape_class, js_cc_physics_CylinderShape_finalize) + + static bool js_cc_physics_CylinderShape_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -3594,15 +3659,15 @@ bool js_register_physics_CylinderShape(se::Object* obj) // NOLINT(readability-id return true; } se::Object* __jsb_cc_physics_ConeShape_proto = nullptr; -se::Class* __jsb_cc_physics_ConeShape_class = nullptr; +se::Class* __jsb_cc_physics_ConeShape_class = nullptr; static bool js_physics_ConeShape_getAABB(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_ConeShape_getAABB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::AABB& result = cobj->getAABB(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3619,9 +3684,9 @@ static bool js_physics_ConeShape_getBoundingSphere(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_ConeShape_getBoundingSphere : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::Sphere& result = cobj->getBoundingSphere(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3638,9 +3703,9 @@ static bool js_physics_ConeShape_getGroup(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_ConeShape_getGroup : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getGroup(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3657,9 +3722,9 @@ static bool js_physics_ConeShape_getImpl(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_ConeShape_getImpl : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { uintptr_t result = cobj->getImpl(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3676,9 +3741,9 @@ static bool js_physics_ConeShape_getMask(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_ConeShape_getMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getMask(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3695,9 +3760,9 @@ static bool js_physics_ConeShape_initialize(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_ConeShape_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3715,7 +3780,7 @@ static bool js_physics_ConeShape_onDestroy(se::State& s) // NOLINT(readability-i auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_ConeShape_onDestroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDestroy(); return true; @@ -3730,7 +3795,7 @@ static bool js_physics_ConeShape_onDisable(se::State& s) // NOLINT(readability-i auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_ConeShape_onDisable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDisable(); return true; @@ -3745,7 +3810,7 @@ static bool js_physics_ConeShape_onEnable(se::State& s) // NOLINT(readability-id auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_ConeShape_onEnable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onEnable(); return true; @@ -3759,9 +3824,9 @@ static bool js_physics_ConeShape_setAsTrigger(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_ConeShape_setAsTrigger : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3778,9 +3843,9 @@ static bool js_physics_ConeShape_setCenter(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_ConeShape_setCenter : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -3801,12 +3866,12 @@ static bool js_physics_ConeShape_setCone(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_ConeShape_setCone : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { - HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -3824,9 +3889,9 @@ static bool js_physics_ConeShape_setConvex(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_ConeShape_setConvex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3843,9 +3908,9 @@ static bool js_physics_ConeShape_setGroup(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_ConeShape_setGroup : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3862,9 +3927,9 @@ static bool js_physics_ConeShape_setMask(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_ConeShape_setMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3881,16 +3946,16 @@ static bool js_physics_ConeShape_setMaterial(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_ConeShape_setMaterial : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 6) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; - HolderType arg4 = {}; - HolderType arg5 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; + HolderType arg4 = {}; + HolderType arg5 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -3910,9 +3975,9 @@ static bool js_physics_ConeShape_updateEventListener(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_ConeShape_updateEventListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3936,10 +4001,13 @@ static bool js_physics_ConeShape_constructor(se::State& s) // NOLINT(readability } SE_BIND_CTOR(js_physics_ConeShape_constructor, __jsb_cc_physics_ConeShape_class, js_cc_physics_ConeShape_finalize) + + static bool js_cc_physics_ConeShape_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -3980,15 +4048,15 @@ bool js_register_physics_ConeShape(se::Object* obj) // NOLINT(readability-identi return true; } se::Object* __jsb_cc_physics_TerrainShape_proto = nullptr; -se::Class* __jsb_cc_physics_TerrainShape_class = nullptr; +se::Class* __jsb_cc_physics_TerrainShape_class = nullptr; static bool js_physics_TerrainShape_getAABB(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TerrainShape_getAABB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::AABB& result = cobj->getAABB(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4005,9 +4073,9 @@ static bool js_physics_TerrainShape_getBoundingSphere(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TerrainShape_getBoundingSphere : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::Sphere& result = cobj->getBoundingSphere(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4024,9 +4092,9 @@ static bool js_physics_TerrainShape_getGroup(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TerrainShape_getGroup : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getGroup(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4043,9 +4111,9 @@ static bool js_physics_TerrainShape_getImpl(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TerrainShape_getImpl : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { uintptr_t result = cobj->getImpl(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4062,9 +4130,9 @@ static bool js_physics_TerrainShape_getMask(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TerrainShape_getMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getMask(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4081,9 +4149,9 @@ static bool js_physics_TerrainShape_initialize(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TerrainShape_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4101,7 +4169,7 @@ static bool js_physics_TerrainShape_onDestroy(se::State& s) // NOLINT(readabilit auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TerrainShape_onDestroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDestroy(); return true; @@ -4116,7 +4184,7 @@ static bool js_physics_TerrainShape_onDisable(se::State& s) // NOLINT(readabilit auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TerrainShape_onDisable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDisable(); return true; @@ -4131,7 +4199,7 @@ static bool js_physics_TerrainShape_onEnable(se::State& s) // NOLINT(readability auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TerrainShape_onEnable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onEnable(); return true; @@ -4145,9 +4213,9 @@ static bool js_physics_TerrainShape_setAsTrigger(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TerrainShape_setAsTrigger : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4164,9 +4232,9 @@ static bool js_physics_TerrainShape_setCenter(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TerrainShape_setCenter : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -4187,9 +4255,9 @@ static bool js_physics_TerrainShape_setGroup(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TerrainShape_setGroup : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4206,9 +4274,9 @@ static bool js_physics_TerrainShape_setMask(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TerrainShape_setMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4225,16 +4293,16 @@ static bool js_physics_TerrainShape_setMaterial(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TerrainShape_setMaterial : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 6) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; - HolderType arg4 = {}; - HolderType arg5 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; + HolderType arg4 = {}; + HolderType arg5 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -4254,14 +4322,14 @@ static bool js_physics_TerrainShape_setTerrain(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TerrainShape_setTerrain : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 4) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -4279,9 +4347,9 @@ static bool js_physics_TerrainShape_updateEventListener(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TerrainShape_updateEventListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4305,10 +4373,13 @@ static bool js_physics_TerrainShape_constructor(se::State& s) // NOLINT(readabil } SE_BIND_CTOR(js_physics_TerrainShape_constructor, __jsb_cc_physics_TerrainShape_class, js_cc_physics_TerrainShape_finalize) + + static bool js_cc_physics_TerrainShape_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -4347,377 +4418,304 @@ bool js_register_physics_TerrainShape(se::Object* obj) // NOLINT(readability-ide se::ScriptEngine::getInstance()->clearException(); return true; } -se::Object* __jsb_cc_physics_RevoluteJoint_proto = nullptr; -se::Class* __jsb_cc_physics_RevoluteJoint_class = nullptr; +se::Object* __jsb_cc_physics_World_proto = nullptr; +se::Class* __jsb_cc_physics_World_class = nullptr; -static bool js_physics_RevoluteJoint_getImpl(se::State& s) // NOLINT(readability-identifier-naming) +static bool js_physics_World_createConvex(se::State& s) // NOLINT(readability-identifier-naming) { - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_physics_RevoluteJoint_getImpl : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; - if (argc == 0) { - uintptr_t result = cobj->getImpl(); + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_physics_World_createConvex : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 1) { + HolderType arg0 = {}; + ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_physics_World_createConvex : Error processing arguments"); + uintptr_t result = cobj->createConvex(arg0.value()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); - SE_PRECONDITION2(ok, false, "js_physics_RevoluteJoint_getImpl : Error processing arguments"); + SE_PRECONDITION2(ok, false, "js_physics_World_createConvex : 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, 1); + return false; +} +SE_BIND_FUNC(js_physics_World_createConvex) + +static bool js_physics_World_createHeightField(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_physics_World_createHeightField : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 1) { + HolderType arg0 = {}; + ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_physics_World_createHeightField : Error processing arguments"); + uintptr_t result = cobj->createHeightField(arg0.value()); + ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); + SE_PRECONDITION2(ok, false, "js_physics_World_createHeightField : 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, 1); + return false; +} +SE_BIND_FUNC(js_physics_World_createHeightField) + +static bool js_physics_World_createMaterial(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_physics_World_createMaterial : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 6) { + HolderType arg0 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; + HolderType arg4 = {}; + HolderType arg5 = {}; + ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); + ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); + ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); + ok &= sevalue_to_native(args[3], &arg3, s.thisObject()); + ok &= sevalue_to_native(args[4], &arg4, s.thisObject()); + ok &= sevalue_to_native(args[5], &arg5, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_physics_World_createMaterial : Error processing arguments"); + uintptr_t result = cobj->createMaterial(arg0.value(), arg1.value(), arg2.value(), arg3.value(), arg4.value(), arg5.value()); + ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); + SE_PRECONDITION2(ok, false, "js_physics_World_createMaterial : 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, 6); + return false; +} +SE_BIND_FUNC(js_physics_World_createMaterial) + +static bool js_physics_World_createTrimesh(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_physics_World_createTrimesh : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 1) { + HolderType arg0 = {}; + ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_physics_World_createTrimesh : Error processing arguments"); + uintptr_t result = cobj->createTrimesh(arg0.value()); + ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); + SE_PRECONDITION2(ok, false, "js_physics_World_createTrimesh : 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, 1); + return false; +} +SE_BIND_FUNC(js_physics_World_createTrimesh) + +static bool js_physics_World_destroy(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_physics_World_destroy : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + if (argc == 0) { + cobj->destroy(); + return true; + } + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0); + return false; +} +SE_BIND_FUNC(js_physics_World_destroy) + +static bool js_physics_World_emitEvents(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_physics_World_emitEvents : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + if (argc == 0) { + cobj->emitEvents(); + return true; + } + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0); + return false; +} +SE_BIND_FUNC(js_physics_World_emitEvents) + +static bool js_physics_World_getContactEventPairs(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_physics_World_getContactEventPairs : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 0) { + std::vector>& result = cobj->getContactEventPairs(); + ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); + SE_PRECONDITION2(ok, false, "js_physics_World_getContactEventPairs : 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_physics_RevoluteJoint_getImpl) +SE_BIND_FUNC(js_physics_World_getContactEventPairs) -static bool js_physics_RevoluteJoint_initialize(se::State& s) // NOLINT(readability-identifier-naming) +static bool js_physics_World_getTriggerEventPairs(se::State& s) // NOLINT(readability-identifier-naming) { - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_physics_RevoluteJoint_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; - if (argc == 1) { - HolderType arg0 = {}; - ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - SE_PRECONDITION2(ok, false, "js_physics_RevoluteJoint_initialize : Error processing arguments"); - cobj->initialize(arg0.value()); - return true; - } - SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1); - return false; -} -SE_BIND_FUNC(js_physics_RevoluteJoint_initialize) - -static bool js_physics_RevoluteJoint_onDestroy(se::State& s) // NOLINT(readability-identifier-naming) -{ - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_physics_RevoluteJoint_onDestroy : Invalid Native Object"); + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_physics_World_getTriggerEventPairs : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - cobj->onDestroy(); - return true; - } - SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0); - return false; -} -SE_BIND_FUNC(js_physics_RevoluteJoint_onDestroy) - -static bool js_physics_RevoluteJoint_onDisable(se::State& s) // NOLINT(readability-identifier-naming) -{ - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_physics_RevoluteJoint_onDisable : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - if (argc == 0) { - cobj->onDisable(); - return true; - } - SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0); - return false; -} -SE_BIND_FUNC(js_physics_RevoluteJoint_onDisable) - -static bool js_physics_RevoluteJoint_onEnable(se::State& s) // NOLINT(readability-identifier-naming) -{ - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_physics_RevoluteJoint_onEnable : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - if (argc == 0) { - cobj->onEnable(); - return true; - } - SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0); - return false; -} -SE_BIND_FUNC(js_physics_RevoluteJoint_onEnable) - -static bool js_physics_RevoluteJoint_setAxis(se::State& s) // NOLINT(readability-identifier-naming) -{ - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_physics_RevoluteJoint_setAxis : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; - if (argc == 3) { - HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - SE_PRECONDITION2(ok, false, "js_physics_RevoluteJoint_setAxis : Error processing arguments"); - cobj->setAxis(arg0.value(), arg1.value(), arg2.value()); - return true; - } - SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 3); - return false; -} -SE_BIND_FUNC(js_physics_RevoluteJoint_setAxis) - -static bool js_physics_RevoluteJoint_setConnectedBody(se::State& s) // NOLINT(readability-identifier-naming) -{ - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_physics_RevoluteJoint_setConnectedBody : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; - if (argc == 1) { - HolderType arg0 = {}; - ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - SE_PRECONDITION2(ok, false, "js_physics_RevoluteJoint_setConnectedBody : Error processing arguments"); - cobj->setConnectedBody(arg0.value()); - return true; - } - SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1); - return false; -} -SE_BIND_FUNC(js_physics_RevoluteJoint_setConnectedBody) - -static bool js_physics_RevoluteJoint_setEnableCollision(se::State& s) // NOLINT(readability-identifier-naming) -{ - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_physics_RevoluteJoint_setEnableCollision : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; - if (argc == 1) { - HolderType arg0 = {}; - ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - SE_PRECONDITION2(ok, false, "js_physics_RevoluteJoint_setEnableCollision : Error processing arguments"); - cobj->setEnableCollision(arg0.value()); - return true; - } - SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1); - return false; -} -SE_BIND_FUNC(js_physics_RevoluteJoint_setEnableCollision) - -static bool js_physics_RevoluteJoint_setPivotA(se::State& s) // NOLINT(readability-identifier-naming) -{ - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_physics_RevoluteJoint_setPivotA : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; - if (argc == 3) { - HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - SE_PRECONDITION2(ok, false, "js_physics_RevoluteJoint_setPivotA : Error processing arguments"); - cobj->setPivotA(arg0.value(), arg1.value(), arg2.value()); - return true; - } - SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 3); - return false; -} -SE_BIND_FUNC(js_physics_RevoluteJoint_setPivotA) - -static bool js_physics_RevoluteJoint_setPivotB(se::State& s) // NOLINT(readability-identifier-naming) -{ - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_physics_RevoluteJoint_setPivotB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; - if (argc == 3) { - HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - SE_PRECONDITION2(ok, false, "js_physics_RevoluteJoint_setPivotB : Error processing arguments"); - cobj->setPivotB(arg0.value(), arg1.value(), arg2.value()); - return true; - } - SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 3); - return false; -} -SE_BIND_FUNC(js_physics_RevoluteJoint_setPivotB) - -SE_DECLARE_FINALIZE_FUNC(js_cc_physics_RevoluteJoint_finalize) - -static bool js_physics_RevoluteJoint_constructor(se::State& s) // NOLINT(readability-identifier-naming) constructor.c -{ - cc::physics::RevoluteJoint* cobj = JSB_ALLOC(cc::physics::RevoluteJoint); - s.thisObject()->setPrivateData(cobj); - se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); - return true; -} -SE_BIND_CTOR(js_physics_RevoluteJoint_constructor, __jsb_cc_physics_RevoluteJoint_class, js_cc_physics_RevoluteJoint_finalize) - -static bool js_cc_physics_RevoluteJoint_finalize(se::State& s) // NOLINT(readability-identifier-naming) -{ - auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { - se::NonRefNativePtrCreatedByCtorMap::erase(iter); - auto* cobj = SE_THIS_OBJECT(s); - JSB_FREE(cobj); - } - return true; -} -SE_BIND_FINALIZE_FUNC(js_cc_physics_RevoluteJoint_finalize) - -bool js_register_physics_RevoluteJoint(se::Object* obj) // NOLINT(readability-identifier-naming) -{ - auto* cls = se::Class::create("RevoluteJoint", obj, nullptr, _SE(js_physics_RevoluteJoint_constructor)); - - cls->defineFunction("getImpl", _SE(js_physics_RevoluteJoint_getImpl)); - cls->defineFunction("initialize", _SE(js_physics_RevoluteJoint_initialize)); - cls->defineFunction("onDestroy", _SE(js_physics_RevoluteJoint_onDestroy)); - cls->defineFunction("onDisable", _SE(js_physics_RevoluteJoint_onDisable)); - cls->defineFunction("onEnable", _SE(js_physics_RevoluteJoint_onEnable)); - cls->defineFunction("setAxis", _SE(js_physics_RevoluteJoint_setAxis)); - cls->defineFunction("setConnectedBody", _SE(js_physics_RevoluteJoint_setConnectedBody)); - cls->defineFunction("setEnableCollision", _SE(js_physics_RevoluteJoint_setEnableCollision)); - cls->defineFunction("setPivotA", _SE(js_physics_RevoluteJoint_setPivotA)); - cls->defineFunction("setPivotB", _SE(js_physics_RevoluteJoint_setPivotB)); - cls->defineFinalizeFunction(_SE(js_cc_physics_RevoluteJoint_finalize)); - cls->install(); - JSBClassType::registerClass(cls); - - __jsb_cc_physics_RevoluteJoint_proto = cls->getProto(); - __jsb_cc_physics_RevoluteJoint_class = cls; - - se::ScriptEngine::getInstance()->clearException(); - return true; -} -se::Object* __jsb_cc_physics_DistanceJoint_proto = nullptr; -se::Class* __jsb_cc_physics_DistanceJoint_class = nullptr; - -static bool js_physics_DistanceJoint_getImpl(se::State& s) // NOLINT(readability-identifier-naming) -{ - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_physics_DistanceJoint_getImpl : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; - if (argc == 0) { - uintptr_t result = cobj->getImpl(); + std::vector>& result = cobj->getTriggerEventPairs(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); - SE_PRECONDITION2(ok, false, "js_physics_DistanceJoint_getImpl : Error processing arguments"); + SE_PRECONDITION2(ok, false, "js_physics_World_getTriggerEventPairs : 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_physics_DistanceJoint_getImpl) +SE_BIND_FUNC(js_physics_World_getTriggerEventPairs) -static bool js_physics_DistanceJoint_initialize(se::State& s) // NOLINT(readability-identifier-naming) +static bool js_physics_World_raycast(se::State& s) // NOLINT(readability-identifier-naming) { - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_physics_DistanceJoint_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_physics_World_raycast : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType arg0 = {}; + HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - SE_PRECONDITION2(ok, false, "js_physics_DistanceJoint_initialize : Error processing arguments"); - cobj->initialize(arg0.value()); + SE_PRECONDITION2(ok, false, "js_physics_World_raycast : Error processing arguments"); + bool result = cobj->raycast(arg0.value()); + ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); + SE_PRECONDITION2(ok, false, "js_physics_World_raycast : 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, 1); return false; } -SE_BIND_FUNC(js_physics_DistanceJoint_initialize) +SE_BIND_FUNC(js_physics_World_raycast) -static bool js_physics_DistanceJoint_onDestroy(se::State& s) // NOLINT(readability-identifier-naming) +static bool js_physics_World_raycastClosest(se::State& s) // NOLINT(readability-identifier-naming) { - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_physics_DistanceJoint_onDestroy : Invalid Native Object"); + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_physics_World_raycastClosest : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); - if (argc == 0) { - cobj->onDestroy(); - return true; - } - SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0); - return false; -} -SE_BIND_FUNC(js_physics_DistanceJoint_onDestroy) - -static bool js_physics_DistanceJoint_onDisable(se::State& s) // NOLINT(readability-identifier-naming) -{ - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_physics_DistanceJoint_onDisable : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - if (argc == 0) { - cobj->onDisable(); - return true; - } - SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0); - return false; -} -SE_BIND_FUNC(js_physics_DistanceJoint_onDisable) - -static bool js_physics_DistanceJoint_onEnable(se::State& s) // NOLINT(readability-identifier-naming) -{ - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_physics_DistanceJoint_onEnable : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - if (argc == 0) { - cobj->onEnable(); - return true; - } - SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0); - return false; -} -SE_BIND_FUNC(js_physics_DistanceJoint_onEnable) - -static bool js_physics_DistanceJoint_setConnectedBody(se::State& s) // NOLINT(readability-identifier-naming) -{ - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_physics_DistanceJoint_setConnectedBody : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType arg0 = {}; + HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - SE_PRECONDITION2(ok, false, "js_physics_DistanceJoint_setConnectedBody : Error processing arguments"); - cobj->setConnectedBody(arg0.value()); + SE_PRECONDITION2(ok, false, "js_physics_World_raycastClosest : Error processing arguments"); + bool result = cobj->raycastClosest(arg0.value()); + ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); + SE_PRECONDITION2(ok, false, "js_physics_World_raycastClosest : 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, 1); return false; } -SE_BIND_FUNC(js_physics_DistanceJoint_setConnectedBody) +SE_BIND_FUNC(js_physics_World_raycastClosest) -static bool js_physics_DistanceJoint_setEnableCollision(se::State& s) // NOLINT(readability-identifier-naming) +static bool js_physics_World_raycastClosestResult(se::State& s) // NOLINT(readability-identifier-naming) { - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_physics_DistanceJoint_setEnableCollision : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_physics_World_raycastClosestResult : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 0) { + cc::physics::RaycastResult& result = cobj->raycastClosestResult(); + ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); + SE_PRECONDITION2(ok, false, "js_physics_World_raycastClosestResult : 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_physics_World_raycastClosestResult) + +static bool js_physics_World_raycastResult(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_physics_World_raycastResult : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 0) { + std::vector& result = cobj->raycastResult(); + ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); + SE_PRECONDITION2(ok, false, "js_physics_World_raycastResult : 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_physics_World_raycastResult) + +static bool js_physics_World_setAllowSleep(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_physics_World_setAllowSleep : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - SE_PRECONDITION2(ok, false, "js_physics_DistanceJoint_setEnableCollision : Error processing arguments"); - cobj->setEnableCollision(arg0.value()); + SE_PRECONDITION2(ok, false, "js_physics_World_setAllowSleep : Error processing arguments"); + cobj->setAllowSleep(arg0.value()); return true; } SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1); return false; } -SE_BIND_FUNC(js_physics_DistanceJoint_setEnableCollision) +SE_BIND_FUNC(js_physics_World_setAllowSleep) -static bool js_physics_DistanceJoint_setPivotA(se::State& s) // NOLINT(readability-identifier-naming) +static bool js_physics_World_setCollisionMatrix(se::State& s) // NOLINT(readability-identifier-naming) { - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_physics_DistanceJoint_setPivotA : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_physics_World_setCollisionMatrix : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 2) { + HolderType arg0 = {}; + HolderType arg1 = {}; + ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); + ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); + SE_PRECONDITION2(ok, false, "js_physics_World_setCollisionMatrix : Error processing arguments"); + cobj->setCollisionMatrix(arg0.value(), arg1.value()); + return true; + } + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 2); + return false; +} +SE_BIND_FUNC(js_physics_World_setCollisionMatrix) + +static bool js_physics_World_setGravity(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_physics_World_setGravity : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -4725,95 +4723,136 @@ static bool js_physics_DistanceJoint_setPivotA(se::State& s) // NOLINT(readabili ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - SE_PRECONDITION2(ok, false, "js_physics_DistanceJoint_setPivotA : Error processing arguments"); - cobj->setPivotA(arg0.value(), arg1.value(), arg2.value()); + SE_PRECONDITION2(ok, false, "js_physics_World_setGravity : Error processing arguments"); + cobj->setGravity(arg0.value(), arg1.value(), arg2.value()); return true; } SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 3); return false; } -SE_BIND_FUNC(js_physics_DistanceJoint_setPivotA) +SE_BIND_FUNC(js_physics_World_setGravity) -static bool js_physics_DistanceJoint_setPivotB(se::State& s) // NOLINT(readability-identifier-naming) +static bool js_physics_World_step(se::State& s) // NOLINT(readability-identifier-naming) { - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_physics_DistanceJoint_setPivotB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; - if (argc == 3) { + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_physics_World_step : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 1) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - SE_PRECONDITION2(ok, false, "js_physics_DistanceJoint_setPivotB : Error processing arguments"); - cobj->setPivotB(arg0.value(), arg1.value(), arg2.value()); + SE_PRECONDITION2(ok, false, "js_physics_World_step : Error processing arguments"); + cobj->step(arg0.value()); return true; } - SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 3); + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1); return false; } -SE_BIND_FUNC(js_physics_DistanceJoint_setPivotB) +SE_BIND_FUNC(js_physics_World_step) -SE_DECLARE_FINALIZE_FUNC(js_cc_physics_DistanceJoint_finalize) - -static bool js_physics_DistanceJoint_constructor(se::State& s) // NOLINT(readability-identifier-naming) constructor.c +static bool js_physics_World_syncSceneToPhysics(se::State& s) // NOLINT(readability-identifier-naming) { - cc::physics::DistanceJoint* cobj = JSB_ALLOC(cc::physics::DistanceJoint); + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_physics_World_syncSceneToPhysics : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + if (argc == 0) { + cobj->syncSceneToPhysics(); + return true; + } + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0); + return false; +} +SE_BIND_FUNC(js_physics_World_syncSceneToPhysics) + +static bool js_physics_World_syncSceneWithCheck(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_physics_World_syncSceneWithCheck : Invalid Native Object"); + const auto& args = s.args(); + size_t argc = args.size(); + if (argc == 0) { + cobj->syncSceneWithCheck(); + return true; + } + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0); + return false; +} +SE_BIND_FUNC(js_physics_World_syncSceneWithCheck) + +SE_DECLARE_FINALIZE_FUNC(js_cc_physics_World_finalize) + +static bool js_physics_World_constructor(se::State& s) // NOLINT(readability-identifier-naming) constructor.c +{ + cc::physics::World* cobj = JSB_ALLOC(cc::physics::World); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } -SE_BIND_CTOR(js_physics_DistanceJoint_constructor, __jsb_cc_physics_DistanceJoint_class, js_cc_physics_DistanceJoint_finalize) +SE_BIND_CTOR(js_physics_World_constructor, __jsb_cc_physics_World_class, js_cc_physics_World_finalize) -static bool js_cc_physics_DistanceJoint_finalize(se::State& s) // NOLINT(readability-identifier-naming) + + +static bool js_cc_physics_World_finalize(se::State& s) // NOLINT(readability-identifier-naming) { - auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); } return true; } -SE_BIND_FINALIZE_FUNC(js_cc_physics_DistanceJoint_finalize) +SE_BIND_FINALIZE_FUNC(js_cc_physics_World_finalize) -bool js_register_physics_DistanceJoint(se::Object* obj) // NOLINT(readability-identifier-naming) +bool js_register_physics_World(se::Object* obj) // NOLINT(readability-identifier-naming) { - auto* cls = se::Class::create("DistanceJoint", obj, nullptr, _SE(js_physics_DistanceJoint_constructor)); + auto* cls = se::Class::create("World", obj, nullptr, _SE(js_physics_World_constructor)); - cls->defineFunction("getImpl", _SE(js_physics_DistanceJoint_getImpl)); - cls->defineFunction("initialize", _SE(js_physics_DistanceJoint_initialize)); - cls->defineFunction("onDestroy", _SE(js_physics_DistanceJoint_onDestroy)); - cls->defineFunction("onDisable", _SE(js_physics_DistanceJoint_onDisable)); - cls->defineFunction("onEnable", _SE(js_physics_DistanceJoint_onEnable)); - cls->defineFunction("setConnectedBody", _SE(js_physics_DistanceJoint_setConnectedBody)); - cls->defineFunction("setEnableCollision", _SE(js_physics_DistanceJoint_setEnableCollision)); - cls->defineFunction("setPivotA", _SE(js_physics_DistanceJoint_setPivotA)); - cls->defineFunction("setPivotB", _SE(js_physics_DistanceJoint_setPivotB)); - cls->defineFinalizeFunction(_SE(js_cc_physics_DistanceJoint_finalize)); + cls->defineFunction("createConvex", _SE(js_physics_World_createConvex)); + cls->defineFunction("createHeightField", _SE(js_physics_World_createHeightField)); + cls->defineFunction("createMaterial", _SE(js_physics_World_createMaterial)); + cls->defineFunction("createTrimesh", _SE(js_physics_World_createTrimesh)); + cls->defineFunction("destroy", _SE(js_physics_World_destroy)); + cls->defineFunction("emitEvents", _SE(js_physics_World_emitEvents)); + cls->defineFunction("getContactEventPairs", _SE(js_physics_World_getContactEventPairs)); + cls->defineFunction("getTriggerEventPairs", _SE(js_physics_World_getTriggerEventPairs)); + cls->defineFunction("raycast", _SE(js_physics_World_raycast)); + cls->defineFunction("raycastClosest", _SE(js_physics_World_raycastClosest)); + cls->defineFunction("raycastClosestResult", _SE(js_physics_World_raycastClosestResult)); + cls->defineFunction("raycastResult", _SE(js_physics_World_raycastResult)); + cls->defineFunction("setAllowSleep", _SE(js_physics_World_setAllowSleep)); + cls->defineFunction("setCollisionMatrix", _SE(js_physics_World_setCollisionMatrix)); + cls->defineFunction("setGravity", _SE(js_physics_World_setGravity)); + cls->defineFunction("step", _SE(js_physics_World_step)); + cls->defineFunction("syncSceneToPhysics", _SE(js_physics_World_syncSceneToPhysics)); + cls->defineFunction("syncSceneWithCheck", _SE(js_physics_World_syncSceneWithCheck)); + cls->defineFinalizeFunction(_SE(js_cc_physics_World_finalize)); cls->install(); - JSBClassType::registerClass(cls); + JSBClassType::registerClass(cls); - __jsb_cc_physics_DistanceJoint_proto = cls->getProto(); - __jsb_cc_physics_DistanceJoint_class = cls; + __jsb_cc_physics_World_proto = cls->getProto(); + __jsb_cc_physics_World_class = cls; se::ScriptEngine::getInstance()->clearException(); return true; } -bool register_all_physics(se::Object* obj) { +bool register_all_physics(se::Object* obj) +{ // Get the ns se::Value nsVal; - if (!obj->getProperty("jsb.physics", &nsVal)) { + if (!obj->getProperty("jsb.physics", &nsVal)) + { se::HandleObject jsobj(se::Object::createPlainObject()); nsVal.setObject(jsobj); obj->setProperty("jsb.physics", nsVal); } se::Object* ns = nsVal.toObject(); - js_register_physics_World(ns); + js_register_physics_RevoluteJoint(ns); + js_register_physics_DistanceJoint(ns); js_register_physics_RigidBody(ns); js_register_physics_SphereShape(ns); js_register_physics_BoxShape(ns); @@ -4823,7 +4862,7 @@ bool register_all_physics(se::Object* obj) { js_register_physics_CylinderShape(ns); js_register_physics_ConeShape(ns); js_register_physics_TerrainShape(ns); - js_register_physics_RevoluteJoint(ns); - js_register_physics_DistanceJoint(ns); + js_register_physics_World(ns); return true; } + diff --git a/native/cocos/bindings/auto/jsb_physics_auto.h b/native/cocos/bindings/auto/jsb_physics_auto.h index 568eab2c39..0c49ed7e32 100644 --- a/native/cocos/bindings/auto/jsb_physics_auto.h +++ b/native/cocos/bindings/auto/jsb_physics_auto.h @@ -24,43 +24,53 @@ ****************************************************************************/ #pragma once -#include #include "base/Config.h" -#include "cocos/bindings/auto/jsb_gfx_auto.h" -#include "cocos/bindings/auto/jsb_scene_auto.h" +#include #include "cocos/bindings/jswrapper/SeApi.h" #include "cocos/bindings/manual/jsb_conversions.h" +#include "cocos/bindings/auto/jsb_gfx_auto.h" +#include "cocos/bindings/auto/jsb_scene_auto.h" #include "cocos/physics/PhysicsSDK.h" -extern se::Object* __jsb_cc_physics_World_proto; -extern se::Class* __jsb_cc_physics_World_class; +extern se::Object* __jsb_cc_physics_RevoluteJoint_proto; +extern se::Class* __jsb_cc_physics_RevoluteJoint_class; -bool js_register_cc_physics_World(se::Object* obj); +bool js_register_cc_physics_RevoluteJoint(se::Object* obj); bool register_all_physics(se::Object* obj); -JSB_REGISTER_OBJECT_TYPE(cc::physics::World); -SE_DECLARE_FUNC(js_physics_World_createConvex); -SE_DECLARE_FUNC(js_physics_World_createHeightField); -SE_DECLARE_FUNC(js_physics_World_createMaterial); -SE_DECLARE_FUNC(js_physics_World_createTrimesh); -SE_DECLARE_FUNC(js_physics_World_destroy); -SE_DECLARE_FUNC(js_physics_World_emitEvents); -SE_DECLARE_FUNC(js_physics_World_getContactEventPairs); -SE_DECLARE_FUNC(js_physics_World_getTriggerEventPairs); -SE_DECLARE_FUNC(js_physics_World_raycast); -SE_DECLARE_FUNC(js_physics_World_raycastClosest); -SE_DECLARE_FUNC(js_physics_World_raycastClosestResult); -SE_DECLARE_FUNC(js_physics_World_raycastResult); -SE_DECLARE_FUNC(js_physics_World_setAllowSleep); -SE_DECLARE_FUNC(js_physics_World_setCollisionMatrix); -SE_DECLARE_FUNC(js_physics_World_setGravity); -SE_DECLARE_FUNC(js_physics_World_step); -SE_DECLARE_FUNC(js_physics_World_syncSceneToPhysics); -SE_DECLARE_FUNC(js_physics_World_syncSceneWithCheck); -SE_DECLARE_FUNC(js_physics_World_World); +JSB_REGISTER_OBJECT_TYPE(cc::physics::RevoluteJoint); +SE_DECLARE_FUNC(js_physics_RevoluteJoint_getImpl); +SE_DECLARE_FUNC(js_physics_RevoluteJoint_initialize); +SE_DECLARE_FUNC(js_physics_RevoluteJoint_onDestroy); +SE_DECLARE_FUNC(js_physics_RevoluteJoint_onDisable); +SE_DECLARE_FUNC(js_physics_RevoluteJoint_onEnable); +SE_DECLARE_FUNC(js_physics_RevoluteJoint_setAxis); +SE_DECLARE_FUNC(js_physics_RevoluteJoint_setConnectedBody); +SE_DECLARE_FUNC(js_physics_RevoluteJoint_setEnableCollision); +SE_DECLARE_FUNC(js_physics_RevoluteJoint_setPivotA); +SE_DECLARE_FUNC(js_physics_RevoluteJoint_setPivotB); +SE_DECLARE_FUNC(js_physics_RevoluteJoint_RevoluteJoint); + +extern se::Object* __jsb_cc_physics_DistanceJoint_proto; +extern se::Class* __jsb_cc_physics_DistanceJoint_class; + +bool js_register_cc_physics_DistanceJoint(se::Object* obj); +bool register_all_physics(se::Object* obj); + +JSB_REGISTER_OBJECT_TYPE(cc::physics::DistanceJoint); +SE_DECLARE_FUNC(js_physics_DistanceJoint_getImpl); +SE_DECLARE_FUNC(js_physics_DistanceJoint_initialize); +SE_DECLARE_FUNC(js_physics_DistanceJoint_onDestroy); +SE_DECLARE_FUNC(js_physics_DistanceJoint_onDisable); +SE_DECLARE_FUNC(js_physics_DistanceJoint_onEnable); +SE_DECLARE_FUNC(js_physics_DistanceJoint_setConnectedBody); +SE_DECLARE_FUNC(js_physics_DistanceJoint_setEnableCollision); +SE_DECLARE_FUNC(js_physics_DistanceJoint_setPivotA); +SE_DECLARE_FUNC(js_physics_DistanceJoint_setPivotB); +SE_DECLARE_FUNC(js_physics_DistanceJoint_DistanceJoint); extern se::Object* __jsb_cc_physics_RigidBody_proto; -extern se::Class* __jsb_cc_physics_RigidBody_class; +extern se::Class* __jsb_cc_physics_RigidBody_class; bool js_register_cc_physics_RigidBody(se::Object* obj); bool register_all_physics(se::Object* obj); @@ -108,7 +118,7 @@ SE_DECLARE_FUNC(js_physics_RigidBody_wakeUp); SE_DECLARE_FUNC(js_physics_RigidBody_RigidBody); extern se::Object* __jsb_cc_physics_SphereShape_proto; -extern se::Class* __jsb_cc_physics_SphereShape_class; +extern se::Class* __jsb_cc_physics_SphereShape_class; bool js_register_cc_physics_SphereShape(se::Object* obj); bool register_all_physics(se::Object* obj); @@ -133,7 +143,7 @@ SE_DECLARE_FUNC(js_physics_SphereShape_updateEventListener); SE_DECLARE_FUNC(js_physics_SphereShape_SphereShape); extern se::Object* __jsb_cc_physics_BoxShape_proto; -extern se::Class* __jsb_cc_physics_BoxShape_class; +extern se::Class* __jsb_cc_physics_BoxShape_class; bool js_register_cc_physics_BoxShape(se::Object* obj); bool register_all_physics(se::Object* obj); @@ -158,7 +168,7 @@ SE_DECLARE_FUNC(js_physics_BoxShape_updateEventListener); SE_DECLARE_FUNC(js_physics_BoxShape_BoxShape); extern se::Object* __jsb_cc_physics_CapsuleShape_proto; -extern se::Class* __jsb_cc_physics_CapsuleShape_class; +extern se::Class* __jsb_cc_physics_CapsuleShape_class; bool js_register_cc_physics_CapsuleShape(se::Object* obj); bool register_all_physics(se::Object* obj); @@ -185,7 +195,7 @@ SE_DECLARE_FUNC(js_physics_CapsuleShape_updateEventListener); SE_DECLARE_FUNC(js_physics_CapsuleShape_CapsuleShape); extern se::Object* __jsb_cc_physics_PlaneShape_proto; -extern se::Class* __jsb_cc_physics_PlaneShape_class; +extern se::Class* __jsb_cc_physics_PlaneShape_class; bool js_register_cc_physics_PlaneShape(se::Object* obj); bool register_all_physics(se::Object* obj); @@ -211,7 +221,7 @@ SE_DECLARE_FUNC(js_physics_PlaneShape_updateEventListener); SE_DECLARE_FUNC(js_physics_PlaneShape_PlaneShape); extern se::Object* __jsb_cc_physics_TrimeshShape_proto; -extern se::Class* __jsb_cc_physics_TrimeshShape_class; +extern se::Class* __jsb_cc_physics_TrimeshShape_class; bool js_register_cc_physics_TrimeshShape(se::Object* obj); bool register_all_physics(se::Object* obj); @@ -237,7 +247,7 @@ SE_DECLARE_FUNC(js_physics_TrimeshShape_useConvex); SE_DECLARE_FUNC(js_physics_TrimeshShape_TrimeshShape); extern se::Object* __jsb_cc_physics_CylinderShape_proto; -extern se::Class* __jsb_cc_physics_CylinderShape_class; +extern se::Class* __jsb_cc_physics_CylinderShape_class; bool js_register_cc_physics_CylinderShape(se::Object* obj); bool register_all_physics(se::Object* obj); @@ -263,7 +273,7 @@ SE_DECLARE_FUNC(js_physics_CylinderShape_updateEventListener); SE_DECLARE_FUNC(js_physics_CylinderShape_CylinderShape); extern se::Object* __jsb_cc_physics_ConeShape_proto; -extern se::Class* __jsb_cc_physics_ConeShape_class; +extern se::Class* __jsb_cc_physics_ConeShape_class; bool js_register_cc_physics_ConeShape(se::Object* obj); bool register_all_physics(se::Object* obj); @@ -289,7 +299,7 @@ SE_DECLARE_FUNC(js_physics_ConeShape_updateEventListener); SE_DECLARE_FUNC(js_physics_ConeShape_ConeShape); extern se::Object* __jsb_cc_physics_TerrainShape_proto; -extern se::Class* __jsb_cc_physics_TerrainShape_class; +extern se::Class* __jsb_cc_physics_TerrainShape_class; bool js_register_cc_physics_TerrainShape(se::Object* obj); bool register_all_physics(se::Object* obj); @@ -313,39 +323,30 @@ SE_DECLARE_FUNC(js_physics_TerrainShape_setTerrain); SE_DECLARE_FUNC(js_physics_TerrainShape_updateEventListener); SE_DECLARE_FUNC(js_physics_TerrainShape_TerrainShape); -extern se::Object* __jsb_cc_physics_RevoluteJoint_proto; -extern se::Class* __jsb_cc_physics_RevoluteJoint_class; +extern se::Object* __jsb_cc_physics_World_proto; +extern se::Class* __jsb_cc_physics_World_class; -bool js_register_cc_physics_RevoluteJoint(se::Object* obj); +bool js_register_cc_physics_World(se::Object* obj); bool register_all_physics(se::Object* obj); -JSB_REGISTER_OBJECT_TYPE(cc::physics::RevoluteJoint); -SE_DECLARE_FUNC(js_physics_RevoluteJoint_getImpl); -SE_DECLARE_FUNC(js_physics_RevoluteJoint_initialize); -SE_DECLARE_FUNC(js_physics_RevoluteJoint_onDestroy); -SE_DECLARE_FUNC(js_physics_RevoluteJoint_onDisable); -SE_DECLARE_FUNC(js_physics_RevoluteJoint_onEnable); -SE_DECLARE_FUNC(js_physics_RevoluteJoint_setAxis); -SE_DECLARE_FUNC(js_physics_RevoluteJoint_setConnectedBody); -SE_DECLARE_FUNC(js_physics_RevoluteJoint_setEnableCollision); -SE_DECLARE_FUNC(js_physics_RevoluteJoint_setPivotA); -SE_DECLARE_FUNC(js_physics_RevoluteJoint_setPivotB); -SE_DECLARE_FUNC(js_physics_RevoluteJoint_RevoluteJoint); +JSB_REGISTER_OBJECT_TYPE(cc::physics::World); +SE_DECLARE_FUNC(js_physics_World_createConvex); +SE_DECLARE_FUNC(js_physics_World_createHeightField); +SE_DECLARE_FUNC(js_physics_World_createMaterial); +SE_DECLARE_FUNC(js_physics_World_createTrimesh); +SE_DECLARE_FUNC(js_physics_World_destroy); +SE_DECLARE_FUNC(js_physics_World_emitEvents); +SE_DECLARE_FUNC(js_physics_World_getContactEventPairs); +SE_DECLARE_FUNC(js_physics_World_getTriggerEventPairs); +SE_DECLARE_FUNC(js_physics_World_raycast); +SE_DECLARE_FUNC(js_physics_World_raycastClosest); +SE_DECLARE_FUNC(js_physics_World_raycastClosestResult); +SE_DECLARE_FUNC(js_physics_World_raycastResult); +SE_DECLARE_FUNC(js_physics_World_setAllowSleep); +SE_DECLARE_FUNC(js_physics_World_setCollisionMatrix); +SE_DECLARE_FUNC(js_physics_World_setGravity); +SE_DECLARE_FUNC(js_physics_World_step); +SE_DECLARE_FUNC(js_physics_World_syncSceneToPhysics); +SE_DECLARE_FUNC(js_physics_World_syncSceneWithCheck); +SE_DECLARE_FUNC(js_physics_World_World); -extern se::Object* __jsb_cc_physics_DistanceJoint_proto; -extern se::Class* __jsb_cc_physics_DistanceJoint_class; - -bool js_register_cc_physics_DistanceJoint(se::Object* obj); -bool register_all_physics(se::Object* obj); - -JSB_REGISTER_OBJECT_TYPE(cc::physics::DistanceJoint); -SE_DECLARE_FUNC(js_physics_DistanceJoint_getImpl); -SE_DECLARE_FUNC(js_physics_DistanceJoint_initialize); -SE_DECLARE_FUNC(js_physics_DistanceJoint_onDestroy); -SE_DECLARE_FUNC(js_physics_DistanceJoint_onDisable); -SE_DECLARE_FUNC(js_physics_DistanceJoint_onEnable); -SE_DECLARE_FUNC(js_physics_DistanceJoint_setConnectedBody); -SE_DECLARE_FUNC(js_physics_DistanceJoint_setEnableCollision); -SE_DECLARE_FUNC(js_physics_DistanceJoint_setPivotA); -SE_DECLARE_FUNC(js_physics_DistanceJoint_setPivotB); -SE_DECLARE_FUNC(js_physics_DistanceJoint_DistanceJoint); diff --git a/native/cocos/bindings/auto/jsb_pipeline_auto.cpp b/native/cocos/bindings/auto/jsb_pipeline_auto.cpp index 509f8506a1..22be9380ee 100644 --- a/native/cocos/bindings/auto/jsb_pipeline_auto.cpp +++ b/native/cocos/bindings/auto/jsb_pipeline_auto.cpp @@ -26,35 +26,35 @@ #include "cocos/bindings/auto/jsb_pipeline_auto.h" #include "cocos/bindings/manual/jsb_conversions.h" #include "cocos/bindings/manual/jsb_global.h" -#include "cocos/renderer/gfx-base/GFXDevice.h" -#include "renderer/pipeline/Define.h" -#include "renderer/pipeline/GeometryRenderer.h" -#include "renderer/pipeline/GlobalDescriptorSetManager.h" -#include "renderer/pipeline/InstancedBuffer.h" -#include "renderer/pipeline/RenderFlow.h" -#include "renderer/pipeline/RenderPipeline.h" -#include "renderer/pipeline/RenderStage.h" -#include "renderer/pipeline/deferred/BloomStage.h" -#include "renderer/pipeline/deferred/DeferredPipeline.h" -#include "renderer/pipeline/deferred/GbufferStage.h" -#include "renderer/pipeline/deferred/LightingStage.h" -#include "renderer/pipeline/deferred/MainFlow.h" -#include "renderer/pipeline/deferred/PostProcessStage.h" -#include "renderer/pipeline/forward/ForwardFlow.h" #include "renderer/pipeline/forward/ForwardPipeline.h" +#include "renderer/pipeline/forward/ForwardFlow.h" #include "renderer/pipeline/forward/ForwardStage.h" #include "renderer/pipeline/shadow/ShadowFlow.h" #include "renderer/pipeline/shadow/ShadowStage.h" +#include "renderer/pipeline/RenderPipeline.h" +#include "renderer/pipeline/RenderFlow.h" +#include "renderer/pipeline/RenderStage.h" +#include "renderer/pipeline/Define.h" +#include "renderer/pipeline/GlobalDescriptorSetManager.h" +#include "renderer/pipeline/InstancedBuffer.h" +#include "renderer/pipeline/deferred/DeferredPipeline.h" +#include "renderer/pipeline/deferred/MainFlow.h" +#include "renderer/pipeline/deferred/GbufferStage.h" +#include "renderer/pipeline/deferred/LightingStage.h" +#include "renderer/pipeline/deferred/BloomStage.h" +#include "renderer/pipeline/deferred/PostProcessStage.h" +#include "renderer/pipeline/GeometryRenderer.h" +#include "cocos/renderer/gfx-base/GFXDevice.h" #ifndef JSB_ALLOC - #define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) +#define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) #endif #ifndef JSB_FREE - #define JSB_FREE(ptr) delete ptr +#define JSB_FREE(ptr) delete ptr #endif se::Object* __jsb_cc_pipeline_RenderQueueDesc_proto = nullptr; -se::Class* __jsb_cc_pipeline_RenderQueueDesc_class = nullptr; +se::Class* __jsb_cc_pipeline_RenderQueueDesc_class = nullptr; static bool js_pipeline_RenderQueueDesc_get_isTransparent(se::State& s) // NOLINT(readability-identifier-naming) { @@ -62,7 +62,7 @@ static bool js_pipeline_RenderQueueDesc_get_isTransparent(se::State& s) // NOLIN SE_PRECONDITION2(cobj, false, "js_pipeline_RenderQueueDesc_get_isTransparent : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->isTransparent, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->isTransparent, s.thisObject(), s.rval()); @@ -73,7 +73,7 @@ SE_BIND_PROP_GET(js_pipeline_RenderQueueDesc_get_isTransparent) static bool js_pipeline_RenderQueueDesc_set_isTransparent(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderQueueDesc_set_isTransparent : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -89,7 +89,7 @@ static bool js_pipeline_RenderQueueDesc_get_sortMode(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_pipeline_RenderQueueDesc_get_sortMode : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->sortMode, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->sortMode, s.thisObject(), s.rval()); @@ -100,7 +100,7 @@ SE_BIND_PROP_GET(js_pipeline_RenderQueueDesc_get_sortMode) static bool js_pipeline_RenderQueueDesc_set_sortMode(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderQueueDesc_set_sortMode : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -116,7 +116,7 @@ static bool js_pipeline_RenderQueueDesc_get_stages(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_pipeline_RenderQueueDesc_get_stages : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stages, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stages, s.thisObject(), s.rval()); @@ -127,7 +127,7 @@ SE_BIND_PROP_GET(js_pipeline_RenderQueueDesc_get_stages) static bool js_pipeline_RenderQueueDesc_set_stages(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderQueueDesc_set_stages : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -137,27 +137,29 @@ static bool js_pipeline_RenderQueueDesc_set_stages(se::State& s) // NOLINT(reada } SE_BIND_PROP_SET(js_pipeline_RenderQueueDesc_set_stages) -template <> -bool sevalue_to_native(const se::Value& from, cc::pipeline::RenderQueueDesc* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::pipeline::RenderQueueDesc * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("isTransparent", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->isTransparent), ctx); } json->getProperty("sortMode", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->sortMode), ctx); } json->getProperty("stages", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stages), ctx); } return ok; @@ -167,24 +169,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_pipeline_RenderQueueDesc_finalize) static bool js_pipeline_RenderQueueDesc_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::pipeline::RenderQueueDesc* cobj = JSB_ALLOC(cc::pipeline::RenderQueueDesc); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::pipeline::RenderQueueDesc* cobj = JSB_ALLOC(cc::pipeline::RenderQueueDesc); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -206,7 +210,7 @@ static bool js_pipeline_RenderQueueDesc_constructor(se::State& s) // NOLINT(read ok &= sevalue_to_native(args[2], &(cobj->stages), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -218,10 +222,13 @@ static bool js_pipeline_RenderQueueDesc_constructor(se::State& s) // NOLINT(read } SE_BIND_CTOR(js_pipeline_RenderQueueDesc_constructor, __jsb_cc_pipeline_RenderQueueDesc_class, js_cc_pipeline_RenderQueueDesc_finalize) + + static bool js_cc_pipeline_RenderQueueDesc_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -248,17 +255,17 @@ bool js_register_pipeline_RenderQueueDesc(se::Object* obj) // NOLINT(readability return true; } se::Object* __jsb_cc_pipeline_GlobalDSManager_proto = nullptr; -se::Class* __jsb_cc_pipeline_GlobalDSManager_class = nullptr; +se::Class* __jsb_cc_pipeline_GlobalDSManager_class = nullptr; static bool js_pipeline_GlobalDSManager_bindBuffer(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_GlobalDSManager_bindBuffer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -275,11 +282,11 @@ static bool js_pipeline_GlobalDSManager_bindSampler(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_GlobalDSManager_bindSampler : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -296,11 +303,11 @@ static bool js_pipeline_GlobalDSManager_bindTexture(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_GlobalDSManager_bindTexture : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -317,9 +324,9 @@ static bool js_pipeline_GlobalDSManager_getDescriptorSetLayout(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_GlobalDSManager_getDescriptorSetLayout : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::DescriptorSetLayout* result = cobj->getDescriptorSetLayout(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -336,11 +343,11 @@ static bool js_pipeline_GlobalDSManager_getDescriptorSetMap(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_GlobalDSManager_getDescriptorSetMap : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - std::unordered_map result = cobj->getDescriptorSetMap(); + std::unordered_map result = cobj->getDescriptorSetMap(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_pipeline_GlobalDSManager_getDescriptorSetMap : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -355,9 +362,9 @@ static bool js_pipeline_GlobalDSManager_getGlobalDescriptorSet(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_GlobalDSManager_getGlobalDescriptorSet : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::DescriptorSet* result = cobj->getGlobalDescriptorSet(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -374,9 +381,9 @@ static bool js_pipeline_GlobalDSManager_getLinearSampler(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_GlobalDSManager_getLinearSampler : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::Sampler* result = cobj->getLinearSampler(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -393,9 +400,9 @@ static bool js_pipeline_GlobalDSManager_getOrCreateDescriptorSet(se::State& s) / { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_GlobalDSManager_getOrCreateDescriptorSet : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -415,9 +422,9 @@ static bool js_pipeline_GlobalDSManager_getPointSampler(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_GlobalDSManager_getPointSampler : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::Sampler* result = cobj->getPointSampler(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -435,7 +442,7 @@ static bool js_pipeline_GlobalDSManager_update(se::State& s) // NOLINT(readabili auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_GlobalDSManager_update : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->update(); return true; @@ -456,10 +463,13 @@ static bool js_pipeline_GlobalDSManager_constructor(se::State& s) // NOLINT(read } SE_BIND_CTOR(js_pipeline_GlobalDSManager_constructor, __jsb_cc_pipeline_GlobalDSManager_class, js_cc_pipeline_GlobalDSManager_finalize) + + static bool js_cc_pipeline_GlobalDSManager_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -493,7 +503,7 @@ bool js_register_pipeline_GlobalDSManager(se::Object* obj) // NOLINT(readability return true; } se::Object* __jsb_cc_pipeline_RenderPipelineInfo_proto = nullptr; -se::Class* __jsb_cc_pipeline_RenderPipelineInfo_class = nullptr; +se::Class* __jsb_cc_pipeline_RenderPipelineInfo_class = nullptr; static bool js_pipeline_RenderPipelineInfo_get_tag(se::State& s) // NOLINT(readability-identifier-naming) { @@ -501,7 +511,7 @@ static bool js_pipeline_RenderPipelineInfo_get_tag(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipelineInfo_get_tag : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->tag, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->tag, s.thisObject(), s.rval()); @@ -512,7 +522,7 @@ SE_BIND_PROP_GET(js_pipeline_RenderPipelineInfo_get_tag) static bool js_pipeline_RenderPipelineInfo_set_tag(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipelineInfo_set_tag : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -528,7 +538,7 @@ static bool js_pipeline_RenderPipelineInfo_get_flows(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipelineInfo_get_flows : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->flows, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->flows, s.thisObject(), s.rval()); @@ -539,7 +549,7 @@ SE_BIND_PROP_GET(js_pipeline_RenderPipelineInfo_get_flows) static bool js_pipeline_RenderPipelineInfo_set_flows(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipelineInfo_set_flows : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -549,23 +559,25 @@ static bool js_pipeline_RenderPipelineInfo_set_flows(se::State& s) // NOLINT(rea } SE_BIND_PROP_SET(js_pipeline_RenderPipelineInfo_set_flows) -template <> -bool sevalue_to_native(const se::Value& from, cc::pipeline::RenderPipelineInfo* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::pipeline::RenderPipelineInfo * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("tag", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->tag), ctx); } json->getProperty("flows", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->flows), ctx); } return ok; @@ -575,24 +587,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_pipeline_RenderPipelineInfo_finalize) static bool js_pipeline_RenderPipelineInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::pipeline::RenderPipelineInfo* cobj = JSB_ALLOC(cc::pipeline::RenderPipelineInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::pipeline::RenderPipelineInfo* cobj = JSB_ALLOC(cc::pipeline::RenderPipelineInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -611,7 +625,7 @@ static bool js_pipeline_RenderPipelineInfo_constructor(se::State& s) // NOLINT(r ok &= sevalue_to_native(args[1], &(cobj->flows), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -623,10 +637,13 @@ static bool js_pipeline_RenderPipelineInfo_constructor(se::State& s) // NOLINT(r } SE_BIND_CTOR(js_pipeline_RenderPipelineInfo_constructor, __jsb_cc_pipeline_RenderPipelineInfo_class, js_cc_pipeline_RenderPipelineInfo_finalize) + + static bool js_cc_pipeline_RenderPipelineInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -652,15 +669,15 @@ bool js_register_pipeline_RenderPipelineInfo(se::Object* obj) // NOLINT(readabil return true; } se::Object* __jsb_cc_pipeline_RenderPipeline_proto = nullptr; -se::Class* __jsb_cc_pipeline_RenderPipeline_class = nullptr; +se::Class* __jsb_cc_pipeline_RenderPipeline_class = nullptr; static bool js_pipeline_RenderPipeline_activate(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_activate : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -680,12 +697,12 @@ static bool js_pipeline_RenderPipeline_createQuadInputAssembler(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_createQuadInputAssembler : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { - HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -707,7 +724,7 @@ static bool js_pipeline_RenderPipeline_destroy(se::State& s) // NOLINT(readabili auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_destroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->destroy(); return true; @@ -721,11 +738,11 @@ static bool js_pipeline_RenderPipeline_ensureEnoughSize(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_ensureEnoughSize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); SE_PRECONDITION2(ok, false, "js_pipeline_RenderPipeline_ensureEnoughSize : Error processing arguments"); cobj->ensureEnoughSize(arg0.value()); @@ -740,12 +757,12 @@ static bool js_pipeline_RenderPipeline_genQuadVertexData(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_genQuadVertexData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_pipeline_RenderPipeline_genQuadVertexData : Error processing arguments"); @@ -761,9 +778,9 @@ static bool js_pipeline_RenderPipeline_getBloomEnabled(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_getBloomEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getBloomEnabled(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -780,9 +797,9 @@ static bool js_pipeline_RenderPipeline_getClearcolor(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_getClearcolor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -802,9 +819,9 @@ static bool js_pipeline_RenderPipeline_getClusterEnabled(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_getClusterEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getClusterEnabled(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -821,9 +838,9 @@ static bool js_pipeline_RenderPipeline_getConstantMacros(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_getConstantMacros : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::String& result = cobj->getConstantMacros(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -840,9 +857,9 @@ static bool js_pipeline_RenderPipeline_getDescriptorSet(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_getDescriptorSet : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::DescriptorSet* result = cobj->getDescriptorSet(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -859,9 +876,9 @@ static bool js_pipeline_RenderPipeline_getDescriptorSetLayout(se::State& s) // N { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_getDescriptorSetLayout : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::DescriptorSetLayout* result = cobj->getDescriptorSetLayout(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -878,9 +895,9 @@ static bool js_pipeline_RenderPipeline_getDevice(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_getDevice : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::Device* result = cobj->getDevice(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -897,9 +914,9 @@ static bool js_pipeline_RenderPipeline_getFrameGraph(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_getFrameGraph : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::framegraph::FrameGraph& result = cobj->getFrameGraph(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -916,9 +933,9 @@ static bool js_pipeline_RenderPipeline_getGeometryRenderer(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_getGeometryRenderer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::pipeline::GeometryRenderer* result = cobj->getGeometryRenderer(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -935,9 +952,9 @@ static bool js_pipeline_RenderPipeline_getGlobalDSManager(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_getGlobalDSManager : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::pipeline::GlobalDSManager* result = cobj->getGlobalDSManager(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -954,9 +971,9 @@ static bool js_pipeline_RenderPipeline_getHeight(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_getHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getHeight(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -973,9 +990,9 @@ static bool js_pipeline_RenderPipeline_getIAByRenderArea(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_getIAByRenderArea : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -995,9 +1012,9 @@ static bool js_pipeline_RenderPipeline_getOcclusionQueryEnabled(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_getOcclusionQueryEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getOcclusionQueryEnabled(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1014,9 +1031,9 @@ static bool js_pipeline_RenderPipeline_getProfiler(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_getProfiler : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::Model* result = cobj->getProfiler(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1033,11 +1050,11 @@ static bool js_pipeline_RenderPipeline_getQueryPools(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_getQueryPools : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - const std::vector& result = cobj->getQueryPools(); + const std::vector& result = cobj->getQueryPools(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_pipeline_RenderPipeline_getQueryPools : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -1052,9 +1069,9 @@ static bool js_pipeline_RenderPipeline_getRenderstageByName(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_getRenderstageByName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1074,9 +1091,9 @@ static bool js_pipeline_RenderPipeline_getScissor(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_getScissor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1096,9 +1113,9 @@ static bool js_pipeline_RenderPipeline_getViewport(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_getViewport : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1118,9 +1135,9 @@ static bool js_pipeline_RenderPipeline_getWidth(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_getWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getWidth(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1137,9 +1154,9 @@ static bool js_pipeline_RenderPipeline_initialize(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1159,9 +1176,9 @@ static bool js_pipeline_RenderPipeline_isEnvmapEnabled(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_isEnvmapEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isEnvmapEnabled(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1178,11 +1195,11 @@ static bool js_pipeline_RenderPipeline_isOccluded(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_isOccluded : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -1202,11 +1219,11 @@ static bool js_pipeline_RenderPipeline_render(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_render : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); SE_PRECONDITION2(ok, false, "js_pipeline_RenderPipeline_render : Error processing arguments"); cobj->render(arg0.value()); @@ -1221,9 +1238,9 @@ static bool js_pipeline_RenderPipeline_setBloomEnabled(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_setBloomEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1240,9 +1257,9 @@ static bool js_pipeline_RenderPipeline_setClusterEnabled(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_setClusterEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1259,9 +1276,9 @@ static bool js_pipeline_RenderPipeline_setGeometryRenderer(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_setGeometryRenderer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1278,9 +1295,9 @@ static bool js_pipeline_RenderPipeline_setOcclusionQueryEnabled(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_setOcclusionQueryEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1297,9 +1314,9 @@ static bool js_pipeline_RenderPipeline_setPipelineSharedSceneData(se::State& s) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_setPipelineSharedSceneData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1316,9 +1333,9 @@ static bool js_pipeline_RenderPipeline_setProfiler(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_setProfiler : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1335,12 +1352,12 @@ static bool js_pipeline_RenderPipeline_setValue(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_setValue : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_pipeline_RenderPipeline_setValue : Error processing arguments"); @@ -1356,11 +1373,11 @@ static bool js_pipeline_RenderPipeline_updateQuadVertexData(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_updateQuadVertexData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -1375,9 +1392,9 @@ SE_BIND_FUNC(js_pipeline_RenderPipeline_updateQuadVertexData) static bool js_pipeline_RenderPipeline_getInstance(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::pipeline::RenderPipeline* result = cc::pipeline::RenderPipeline::getInstance(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1392,9 +1409,9 @@ SE_BIND_FUNC(js_pipeline_RenderPipeline_getInstance) static bool js_pipeline_RenderPipeline_getRenderArea(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -1410,6 +1427,8 @@ static bool js_pipeline_RenderPipeline_getRenderArea(se::State& s) // NOLINT(rea } SE_BIND_FUNC(js_pipeline_RenderPipeline_getRenderArea) + + bool js_register_pipeline_RenderPipeline(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("RenderPipeline", obj, nullptr, nullptr); @@ -1460,7 +1479,7 @@ bool js_register_pipeline_RenderPipeline(se::Object* obj) // NOLINT(readability- return true; } se::Object* __jsb_cc_pipeline_ForwardPipeline_proto = nullptr; -se::Class* __jsb_cc_pipeline_ForwardPipeline_class = nullptr; +se::Class* __jsb_cc_pipeline_ForwardPipeline_class = nullptr; SE_DECLARE_FINALIZE_FUNC(js_cc_pipeline_ForwardPipeline_finalize) @@ -1473,10 +1492,13 @@ static bool js_pipeline_ForwardPipeline_constructor(se::State& s) // NOLINT(read } SE_BIND_CTOR(js_pipeline_ForwardPipeline_constructor, __jsb_cc_pipeline_ForwardPipeline_class, js_cc_pipeline_ForwardPipeline_finalize) + + static bool js_cc_pipeline_ForwardPipeline_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -1500,7 +1522,7 @@ bool js_register_pipeline_ForwardPipeline(se::Object* obj) // NOLINT(readability return true; } se::Object* __jsb_cc_pipeline_RenderFlowInfo_proto = nullptr; -se::Class* __jsb_cc_pipeline_RenderFlowInfo_class = nullptr; +se::Class* __jsb_cc_pipeline_RenderFlowInfo_class = nullptr; static bool js_pipeline_RenderFlowInfo_get_name(se::State& s) // NOLINT(readability-identifier-naming) { @@ -1508,7 +1530,7 @@ static bool js_pipeline_RenderFlowInfo_get_name(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_pipeline_RenderFlowInfo_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -1519,7 +1541,7 @@ SE_BIND_PROP_GET(js_pipeline_RenderFlowInfo_get_name) static bool js_pipeline_RenderFlowInfo_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderFlowInfo_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1535,7 +1557,7 @@ static bool js_pipeline_RenderFlowInfo_get_priority(se::State& s) // NOLINT(read SE_PRECONDITION2(cobj, false, "js_pipeline_RenderFlowInfo_get_priority : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->priority, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->priority, s.thisObject(), s.rval()); @@ -1546,7 +1568,7 @@ SE_BIND_PROP_GET(js_pipeline_RenderFlowInfo_get_priority) static bool js_pipeline_RenderFlowInfo_set_priority(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderFlowInfo_set_priority : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1562,7 +1584,7 @@ static bool js_pipeline_RenderFlowInfo_get_tag(se::State& s) // NOLINT(readabili SE_PRECONDITION2(cobj, false, "js_pipeline_RenderFlowInfo_get_tag : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->tag, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->tag, s.thisObject(), s.rval()); @@ -1573,7 +1595,7 @@ SE_BIND_PROP_GET(js_pipeline_RenderFlowInfo_get_tag) static bool js_pipeline_RenderFlowInfo_set_tag(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderFlowInfo_set_tag : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1589,7 +1611,7 @@ static bool js_pipeline_RenderFlowInfo_get_stages(se::State& s) // NOLINT(readab SE_PRECONDITION2(cobj, false, "js_pipeline_RenderFlowInfo_get_stages : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stages, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stages, s.thisObject(), s.rval()); @@ -1600,7 +1622,7 @@ SE_BIND_PROP_GET(js_pipeline_RenderFlowInfo_get_stages) static bool js_pipeline_RenderFlowInfo_set_stages(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderFlowInfo_set_stages : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1610,31 +1632,33 @@ static bool js_pipeline_RenderFlowInfo_set_stages(se::State& s) // NOLINT(readab } SE_BIND_PROP_SET(js_pipeline_RenderFlowInfo_set_stages) -template <> -bool sevalue_to_native(const se::Value& from, cc::pipeline::RenderFlowInfo* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::pipeline::RenderFlowInfo * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("name", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->name), ctx); } json->getProperty("priority", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->priority), ctx); } json->getProperty("tag", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->tag), ctx); } json->getProperty("stages", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stages), ctx); } return ok; @@ -1644,24 +1668,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_pipeline_RenderFlowInfo_finalize) static bool js_pipeline_RenderFlowInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::pipeline::RenderFlowInfo* cobj = JSB_ALLOC(cc::pipeline::RenderFlowInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::pipeline::RenderFlowInfo* cobj = JSB_ALLOC(cc::pipeline::RenderFlowInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -1686,7 +1712,7 @@ static bool js_pipeline_RenderFlowInfo_constructor(se::State& s) // NOLINT(reada ok &= sevalue_to_native(args[3], &(cobj->stages), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -1698,10 +1724,13 @@ static bool js_pipeline_RenderFlowInfo_constructor(se::State& s) // NOLINT(reada } SE_BIND_CTOR(js_pipeline_RenderFlowInfo_constructor, __jsb_cc_pipeline_RenderFlowInfo_class, js_cc_pipeline_RenderFlowInfo_finalize) + + static bool js_cc_pipeline_RenderFlowInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -1729,15 +1758,15 @@ bool js_register_pipeline_RenderFlowInfo(se::Object* obj) // NOLINT(readability- return true; } se::Object* __jsb_cc_pipeline_RenderFlow_proto = nullptr; -se::Class* __jsb_cc_pipeline_RenderFlow_class = nullptr; +se::Class* __jsb_cc_pipeline_RenderFlow_class = nullptr; static bool js_pipeline_RenderFlow_activate(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderFlow_activate : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1754,9 +1783,9 @@ static bool js_pipeline_RenderFlow_getRenderstageByName(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderFlow_getRenderstageByName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1776,9 +1805,9 @@ static bool js_pipeline_RenderFlow_getTag(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderFlow_getTag : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getTag(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1795,9 +1824,9 @@ static bool js_pipeline_RenderFlow_initialize(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderFlow_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1813,6 +1842,8 @@ static bool js_pipeline_RenderFlow_initialize(se::State& s) // NOLINT(readabilit } SE_BIND_FUNC(js_pipeline_RenderFlow_initialize) + + bool js_register_pipeline_RenderFlow(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("RenderFlow", obj, nullptr, nullptr); @@ -1831,13 +1862,13 @@ bool js_register_pipeline_RenderFlow(se::Object* obj) // NOLINT(readability-iden return true; } se::Object* __jsb_cc_pipeline_ForwardFlow_proto = nullptr; -se::Class* __jsb_cc_pipeline_ForwardFlow_class = nullptr; +se::Class* __jsb_cc_pipeline_ForwardFlow_class = nullptr; static bool js_pipeline_ForwardFlow_getInitializeInfo(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::pipeline::RenderFlowInfo& result = cc::pipeline::ForwardFlow::getInitializeInfo(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1861,10 +1892,13 @@ static bool js_pipeline_ForwardFlow_constructor(se::State& s) // NOLINT(readabil } SE_BIND_CTOR(js_pipeline_ForwardFlow_constructor, __jsb_cc_pipeline_ForwardFlow_class, js_cc_pipeline_ForwardFlow_finalize) + + static bool js_cc_pipeline_ForwardFlow_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -1889,7 +1923,7 @@ bool js_register_pipeline_ForwardFlow(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_cc_pipeline_RenderStageInfo_proto = nullptr; -se::Class* __jsb_cc_pipeline_RenderStageInfo_class = nullptr; +se::Class* __jsb_cc_pipeline_RenderStageInfo_class = nullptr; static bool js_pipeline_RenderStageInfo_get_name(se::State& s) // NOLINT(readability-identifier-naming) { @@ -1897,7 +1931,7 @@ static bool js_pipeline_RenderStageInfo_get_name(se::State& s) // NOLINT(readabi SE_PRECONDITION2(cobj, false, "js_pipeline_RenderStageInfo_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -1908,7 +1942,7 @@ SE_BIND_PROP_GET(js_pipeline_RenderStageInfo_get_name) static bool js_pipeline_RenderStageInfo_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderStageInfo_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1924,7 +1958,7 @@ static bool js_pipeline_RenderStageInfo_get_priority(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_pipeline_RenderStageInfo_get_priority : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->priority, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->priority, s.thisObject(), s.rval()); @@ -1935,7 +1969,7 @@ SE_BIND_PROP_GET(js_pipeline_RenderStageInfo_get_priority) static bool js_pipeline_RenderStageInfo_set_priority(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderStageInfo_set_priority : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1951,7 +1985,7 @@ static bool js_pipeline_RenderStageInfo_get_tag(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_pipeline_RenderStageInfo_get_tag : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->tag, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->tag, s.thisObject(), s.rval()); @@ -1962,7 +1996,7 @@ SE_BIND_PROP_GET(js_pipeline_RenderStageInfo_get_tag) static bool js_pipeline_RenderStageInfo_set_tag(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderStageInfo_set_tag : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1978,7 +2012,7 @@ static bool js_pipeline_RenderStageInfo_get_renderQueues(se::State& s) // NOLINT SE_PRECONDITION2(cobj, false, "js_pipeline_RenderStageInfo_get_renderQueues : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->renderQueues, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->renderQueues, s.thisObject(), s.rval()); @@ -1989,7 +2023,7 @@ SE_BIND_PROP_GET(js_pipeline_RenderStageInfo_get_renderQueues) static bool js_pipeline_RenderStageInfo_set_renderQueues(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderStageInfo_set_renderQueues : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1999,31 +2033,33 @@ static bool js_pipeline_RenderStageInfo_set_renderQueues(se::State& s) // NOLINT } SE_BIND_PROP_SET(js_pipeline_RenderStageInfo_set_renderQueues) -template <> -bool sevalue_to_native(const se::Value& from, cc::pipeline::RenderStageInfo* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::pipeline::RenderStageInfo * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("name", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->name), ctx); } json->getProperty("priority", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->priority), ctx); } json->getProperty("tag", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->tag), ctx); } json->getProperty("renderQueues", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->renderQueues), ctx); } return ok; @@ -2033,24 +2069,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_pipeline_RenderStageInfo_finalize) static bool js_pipeline_RenderStageInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::pipeline::RenderStageInfo* cobj = JSB_ALLOC(cc::pipeline::RenderStageInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::pipeline::RenderStageInfo* cobj = JSB_ALLOC(cc::pipeline::RenderStageInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -2075,7 +2113,7 @@ static bool js_pipeline_RenderStageInfo_constructor(se::State& s) // NOLINT(read ok &= sevalue_to_native(args[3], &(cobj->renderQueues), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -2087,10 +2125,13 @@ static bool js_pipeline_RenderStageInfo_constructor(se::State& s) // NOLINT(read } SE_BIND_CTOR(js_pipeline_RenderStageInfo_constructor, __jsb_cc_pipeline_RenderStageInfo_class, js_cc_pipeline_RenderStageInfo_finalize) + + static bool js_cc_pipeline_RenderStageInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -2118,18 +2159,18 @@ bool js_register_pipeline_RenderStageInfo(se::Object* obj) // NOLINT(readability return true; } se::Object* __jsb_cc_pipeline_RenderStage_proto = nullptr; -se::Class* __jsb_cc_pipeline_RenderStage_class = nullptr; +se::Class* __jsb_cc_pipeline_RenderStage_class = nullptr; static bool js_pipeline_RenderStage_activate(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderStage_activate : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_pipeline_RenderStage_activate : Error processing arguments"); @@ -2145,9 +2186,9 @@ static bool js_pipeline_RenderStage_getFlow(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderStage_getFlow : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::pipeline::RenderFlow* result = cobj->getFlow(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2164,9 +2205,9 @@ static bool js_pipeline_RenderStage_getTag(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderStage_getTag : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getTag(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2183,9 +2224,9 @@ static bool js_pipeline_RenderStage_initialize(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderStage_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2201,6 +2242,8 @@ static bool js_pipeline_RenderStage_initialize(se::State& s) // NOLINT(readabili } SE_BIND_FUNC(js_pipeline_RenderStage_initialize) + + bool js_register_pipeline_RenderStage(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("RenderStage", obj, nullptr, nullptr); @@ -2219,13 +2262,13 @@ bool js_register_pipeline_RenderStage(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_cc_pipeline_ForwardStage_proto = nullptr; -se::Class* __jsb_cc_pipeline_ForwardStage_class = nullptr; +se::Class* __jsb_cc_pipeline_ForwardStage_class = nullptr; static bool js_pipeline_ForwardStage_getInitializeInfo(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::pipeline::RenderStageInfo& result = cc::pipeline::ForwardStage::getInitializeInfo(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2249,10 +2292,13 @@ static bool js_pipeline_ForwardStage_constructor(se::State& s) // NOLINT(readabi } SE_BIND_CTOR(js_pipeline_ForwardStage_constructor, __jsb_cc_pipeline_ForwardStage_class, js_cc_pipeline_ForwardStage_finalize) + + static bool js_cc_pipeline_ForwardStage_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -2277,13 +2323,13 @@ bool js_register_pipeline_ForwardStage(se::Object* obj) // NOLINT(readability-id return true; } se::Object* __jsb_cc_pipeline_ShadowFlow_proto = nullptr; -se::Class* __jsb_cc_pipeline_ShadowFlow_class = nullptr; +se::Class* __jsb_cc_pipeline_ShadowFlow_class = nullptr; static bool js_pipeline_ShadowFlow_getInitializeInfo(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::pipeline::RenderFlowInfo& result = cc::pipeline::ShadowFlow::getInitializeInfo(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2307,10 +2353,13 @@ static bool js_pipeline_ShadowFlow_constructor(se::State& s) // NOLINT(readabili } SE_BIND_CTOR(js_pipeline_ShadowFlow_constructor, __jsb_cc_pipeline_ShadowFlow_class, js_cc_pipeline_ShadowFlow_finalize) + + static bool js_cc_pipeline_ShadowFlow_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -2335,15 +2384,15 @@ bool js_register_pipeline_ShadowFlow(se::Object* obj) // NOLINT(readability-iden return true; } se::Object* __jsb_cc_pipeline_ShadowStage_proto = nullptr; -se::Class* __jsb_cc_pipeline_ShadowStage_class = nullptr; +se::Class* __jsb_cc_pipeline_ShadowStage_class = nullptr; static bool js_pipeline_ShadowStage_setFramebuffer(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_ShadowStage_setFramebuffer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2360,13 +2409,13 @@ static bool js_pipeline_ShadowStage_setUsage(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_ShadowStage_setUsage : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -2381,9 +2430,9 @@ SE_BIND_FUNC(js_pipeline_ShadowStage_setUsage) static bool js_pipeline_ShadowStage_getInitializeInfo(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::pipeline::RenderStageInfo& result = cc::pipeline::ShadowStage::getInitializeInfo(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2407,10 +2456,13 @@ static bool js_pipeline_ShadowStage_constructor(se::State& s) // NOLINT(readabil } SE_BIND_CTOR(js_pipeline_ShadowStage_constructor, __jsb_cc_pipeline_ShadowStage_class, js_cc_pipeline_ShadowStage_finalize) + + static bool js_cc_pipeline_ShadowStage_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -2437,14 +2489,14 @@ bool js_register_pipeline_ShadowStage(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_cc_pipeline_InstancedBuffer_proto = nullptr; -se::Class* __jsb_cc_pipeline_InstancedBuffer_class = nullptr; +se::Class* __jsb_cc_pipeline_InstancedBuffer_class = nullptr; static bool js_pipeline_InstancedBuffer_destroy(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_InstancedBuffer_destroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->destroy(); return true; @@ -2458,9 +2510,9 @@ static bool js_pipeline_InstancedBuffer_setDynamicOffset(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_InstancedBuffer_setDynamicOffset : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -2477,23 +2529,17 @@ SE_BIND_FUNC(js_pipeline_InstancedBuffer_setDynamicOffset) static bool js_pipeline_InstancedBuffer_get(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); do { if (argc == 2) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } HolderType arg1 = {}; ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cc::pipeline::InstancedBuffer* result = cc::pipeline::InstancedBuffer::get(arg0.value(), arg1.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_pipeline_InstancedBuffer_get : Error processing arguments"); @@ -2505,10 +2551,7 @@ static bool js_pipeline_InstancedBuffer_get(se::State& s) // NOLINT(readability- if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cc::pipeline::InstancedBuffer* result = cc::pipeline::InstancedBuffer::get(arg0.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_pipeline_InstancedBuffer_get : Error processing arguments"); @@ -2524,7 +2567,7 @@ SE_BIND_FUNC(js_pipeline_InstancedBuffer_get) static bool js_pipeline_InstancedBuffer_destroyInstancedBuffer(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cc::pipeline::InstancedBuffer::destroyInstancedBuffer(); return true; @@ -2538,8 +2581,8 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_pipeline_InstancedBuffer_finalize) static bool js_pipeline_InstancedBuffer_constructor(se::State& s) // NOLINT(readability-identifier-naming) constructor.c { - CC_UNUSED bool ok = true; - const auto& args = s.args(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); const cc::scene::Pass* arg0 = nullptr; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); SE_PRECONDITION2(ok, false, "js_pipeline_InstancedBuffer_constructor : Error processing arguments"); @@ -2550,10 +2593,13 @@ static bool js_pipeline_InstancedBuffer_constructor(se::State& s) // NOLINT(read } SE_BIND_CTOR(js_pipeline_InstancedBuffer_constructor, __jsb_cc_pipeline_InstancedBuffer_class, js_cc_pipeline_InstancedBuffer_finalize) + + static bool js_cc_pipeline_InstancedBuffer_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -2581,7 +2627,7 @@ bool js_register_pipeline_InstancedBuffer(se::Object* obj) // NOLINT(readability return true; } se::Object* __jsb_cc_pipeline_DeferredPipeline_proto = nullptr; -se::Class* __jsb_cc_pipeline_DeferredPipeline_class = nullptr; +se::Class* __jsb_cc_pipeline_DeferredPipeline_class = nullptr; SE_DECLARE_FINALIZE_FUNC(js_cc_pipeline_DeferredPipeline_finalize) @@ -2594,10 +2640,13 @@ static bool js_pipeline_DeferredPipeline_constructor(se::State& s) // NOLINT(rea } SE_BIND_CTOR(js_pipeline_DeferredPipeline_constructor, __jsb_cc_pipeline_DeferredPipeline_class, js_cc_pipeline_DeferredPipeline_finalize) + + static bool js_cc_pipeline_DeferredPipeline_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -2621,13 +2670,13 @@ bool js_register_pipeline_DeferredPipeline(se::Object* obj) // NOLINT(readabilit return true; } se::Object* __jsb_cc_pipeline_MainFlow_proto = nullptr; -se::Class* __jsb_cc_pipeline_MainFlow_class = nullptr; +se::Class* __jsb_cc_pipeline_MainFlow_class = nullptr; static bool js_pipeline_MainFlow_getInitializeInfo(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::pipeline::RenderFlowInfo& result = cc::pipeline::MainFlow::getInitializeInfo(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2651,10 +2700,13 @@ static bool js_pipeline_MainFlow_constructor(se::State& s) // NOLINT(readability } SE_BIND_CTOR(js_pipeline_MainFlow_constructor, __jsb_cc_pipeline_MainFlow_class, js_cc_pipeline_MainFlow_finalize) + + static bool js_cc_pipeline_MainFlow_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -2679,13 +2731,13 @@ bool js_register_pipeline_MainFlow(se::Object* obj) // NOLINT(readability-identi return true; } se::Object* __jsb_cc_pipeline_GbufferStage_proto = nullptr; -se::Class* __jsb_cc_pipeline_GbufferStage_class = nullptr; +se::Class* __jsb_cc_pipeline_GbufferStage_class = nullptr; static bool js_pipeline_GbufferStage_getInitializeInfo(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::pipeline::RenderStageInfo& result = cc::pipeline::GbufferStage::getInitializeInfo(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2709,10 +2761,13 @@ static bool js_pipeline_GbufferStage_constructor(se::State& s) // NOLINT(readabi } SE_BIND_CTOR(js_pipeline_GbufferStage_constructor, __jsb_cc_pipeline_GbufferStage_class, js_cc_pipeline_GbufferStage_finalize) + + static bool js_cc_pipeline_GbufferStage_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -2737,13 +2792,13 @@ bool js_register_pipeline_GbufferStage(se::Object* obj) // NOLINT(readability-id return true; } se::Object* __jsb_cc_pipeline_LightingStage_proto = nullptr; -se::Class* __jsb_cc_pipeline_LightingStage_class = nullptr; +se::Class* __jsb_cc_pipeline_LightingStage_class = nullptr; static bool js_pipeline_LightingStage_getInitializeInfo(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::pipeline::RenderStageInfo& result = cc::pipeline::LightingStage::getInitializeInfo(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2767,10 +2822,13 @@ static bool js_pipeline_LightingStage_constructor(se::State& s) // NOLINT(readab } SE_BIND_CTOR(js_pipeline_LightingStage_constructor, __jsb_cc_pipeline_LightingStage_class, js_cc_pipeline_LightingStage_finalize) + + static bool js_cc_pipeline_LightingStage_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -2795,15 +2853,15 @@ bool js_register_pipeline_LightingStage(se::Object* obj) // NOLINT(readability-i return true; } se::Object* __jsb_cc_pipeline_BloomStage_proto = nullptr; -se::Class* __jsb_cc_pipeline_BloomStage_class = nullptr; +se::Class* __jsb_cc_pipeline_BloomStage_class = nullptr; static bool js_pipeline_BloomStage_getCombineUBO(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_BloomStage_getCombineUBO : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::Buffer* result = cobj->getCombineUBO(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2820,11 +2878,11 @@ static bool js_pipeline_BloomStage_getDownsampelUBO(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_BloomStage_getDownsampelUBO : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - std::array& result = cobj->getDownsampelUBO(); + std::array& result = cobj->getDownsampelUBO(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_pipeline_BloomStage_getDownsampelUBO : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -2839,9 +2897,9 @@ static bool js_pipeline_BloomStage_getIntensity(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_BloomStage_getIntensity : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getIntensity(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2858,9 +2916,9 @@ static bool js_pipeline_BloomStage_getIterations(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_BloomStage_getIterations : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getIterations(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2877,9 +2935,9 @@ static bool js_pipeline_BloomStage_getPrefilterUBO(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_BloomStage_getPrefilterUBO : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::Buffer* result = cobj->getPrefilterUBO(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2896,9 +2954,9 @@ static bool js_pipeline_BloomStage_getSampler(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_BloomStage_getSampler : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::Sampler* result = cobj->getSampler(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2915,9 +2973,9 @@ static bool js_pipeline_BloomStage_getThreshold(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_BloomStage_getThreshold : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getThreshold(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2934,11 +2992,11 @@ static bool js_pipeline_BloomStage_getUpsampleUBO(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_BloomStage_getUpsampleUBO : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - std::array& result = cobj->getUpsampleUBO(); + std::array& result = cobj->getUpsampleUBO(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_pipeline_BloomStage_getUpsampleUBO : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -2953,9 +3011,9 @@ static bool js_pipeline_BloomStage_setIntensity(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_BloomStage_setIntensity : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2972,9 +3030,9 @@ static bool js_pipeline_BloomStage_setIterations(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_BloomStage_setIterations : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2991,9 +3049,9 @@ static bool js_pipeline_BloomStage_setThreshold(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_BloomStage_setThreshold : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3008,9 +3066,9 @@ SE_BIND_PROP_SET(js_pipeline_BloomStage_setThreshold) static bool js_pipeline_BloomStage_getInitializeInfo(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::pipeline::RenderStageInfo& result = cc::pipeline::BloomStage::getInitializeInfo(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3034,10 +3092,13 @@ static bool js_pipeline_BloomStage_constructor(se::State& s) // NOLINT(readabili } SE_BIND_CTOR(js_pipeline_BloomStage_constructor, __jsb_cc_pipeline_BloomStage_class, js_cc_pipeline_BloomStage_finalize) + + static bool js_cc_pipeline_BloomStage_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -3070,13 +3131,13 @@ bool js_register_pipeline_BloomStage(se::Object* obj) // NOLINT(readability-iden return true; } se::Object* __jsb_cc_pipeline_PostProcessStage_proto = nullptr; -se::Class* __jsb_cc_pipeline_PostProcessStage_class = nullptr; +se::Class* __jsb_cc_pipeline_PostProcessStage_class = nullptr; static bool js_pipeline_PostProcessStage_getInitializeInfo(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::pipeline::RenderStageInfo& result = cc::pipeline::PostProcessStage::getInitializeInfo(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3100,10 +3161,13 @@ static bool js_pipeline_PostProcessStage_constructor(se::State& s) // NOLINT(rea } SE_BIND_CTOR(js_pipeline_PostProcessStage_constructor, __jsb_cc_pipeline_PostProcessStage_class, js_cc_pipeline_PostProcessStage_finalize) + + static bool js_cc_pipeline_PostProcessStage_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -3128,7 +3192,7 @@ bool js_register_pipeline_PostProcessStage(se::Object* obj) // NOLINT(readabilit return true; } se::Object* __jsb_cc_pipeline_GeometryRenderer_proto = nullptr; -se::Class* __jsb_cc_pipeline_GeometryRenderer_class = nullptr; +se::Class* __jsb_cc_pipeline_GeometryRenderer_class = nullptr; SE_DECLARE_FINALIZE_FUNC(js_cc_pipeline_GeometryRenderer_finalize) @@ -3141,10 +3205,13 @@ static bool js_pipeline_GeometryRenderer_constructor(se::State& s) // NOLINT(rea } SE_BIND_CTOR(js_pipeline_GeometryRenderer_constructor, __jsb_cc_pipeline_GeometryRenderer_class, js_cc_pipeline_GeometryRenderer_finalize) + + static bool js_cc_pipeline_GeometryRenderer_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -3167,10 +3234,12 @@ bool js_register_pipeline_GeometryRenderer(se::Object* obj) // NOLINT(readabilit se::ScriptEngine::getInstance()->clearException(); return true; } -bool register_all_pipeline(se::Object* obj) { +bool register_all_pipeline(se::Object* obj) +{ // Get the ns se::Value nsVal; - if (!obj->getProperty("nr", &nsVal)) { + if (!obj->getProperty("nr", &nsVal)) + { se::HandleObject jsobj(se::Object::createPlainObject()); nsVal.setObject(jsobj); obj->setProperty("nr", nsVal); @@ -3200,3 +3269,4 @@ bool register_all_pipeline(se::Object* obj) { js_register_pipeline_GeometryRenderer(ns); return true; } + diff --git a/native/cocos/bindings/auto/jsb_pipeline_auto.h b/native/cocos/bindings/auto/jsb_pipeline_auto.h index a14a2c3b0e..9695821395 100644 --- a/native/cocos/bindings/auto/jsb_pipeline_auto.h +++ b/native/cocos/bindings/auto/jsb_pipeline_auto.h @@ -24,43 +24,43 @@ ****************************************************************************/ #pragma once -#include #include "base/Config.h" -#include "cocos/bindings/auto/jsb_gfx_auto.h" -#include "cocos/bindings/auto/jsb_scene_auto.h" +#include #include "cocos/bindings/jswrapper/SeApi.h" #include "cocos/bindings/manual/jsb_conversions.h" -#include "cocos/renderer/pipeline/Define.h" -#include "cocos/renderer/pipeline/GeometryRenderer.h" -#include "cocos/renderer/pipeline/GlobalDescriptorSetManager.h" -#include "cocos/renderer/pipeline/InstancedBuffer.h" -#include "cocos/renderer/pipeline/RenderFlow.h" -#include "cocos/renderer/pipeline/RenderPipeline.h" -#include "cocos/renderer/pipeline/RenderStage.h" -#include "cocos/renderer/pipeline/deferred/BloomStage.h" -#include "cocos/renderer/pipeline/deferred/DeferredPipeline.h" -#include "cocos/renderer/pipeline/deferred/GbufferStage.h" -#include "cocos/renderer/pipeline/deferred/LightingStage.h" -#include "cocos/renderer/pipeline/deferred/MainFlow.h" -#include "cocos/renderer/pipeline/deferred/PostProcessStage.h" -#include "cocos/renderer/pipeline/forward/ForwardFlow.h" +#include "cocos/bindings/auto/jsb_gfx_auto.h" +#include "cocos/bindings/auto/jsb_scene_auto.h" #include "cocos/renderer/pipeline/forward/ForwardPipeline.h" +#include "cocos/renderer/pipeline/forward/ForwardFlow.h" #include "cocos/renderer/pipeline/forward/ForwardStage.h" #include "cocos/renderer/pipeline/shadow/ShadowFlow.h" #include "cocos/renderer/pipeline/shadow/ShadowStage.h" +#include "cocos/renderer/pipeline/RenderPipeline.h" +#include "cocos/renderer/pipeline/RenderFlow.h" +#include "cocos/renderer/pipeline/RenderStage.h" +#include "cocos/renderer/pipeline/Define.h" +#include "cocos/renderer/pipeline/GlobalDescriptorSetManager.h" +#include "cocos/renderer/pipeline/InstancedBuffer.h" +#include "cocos/renderer/pipeline/deferred/DeferredPipeline.h" +#include "cocos/renderer/pipeline/deferred/MainFlow.h" +#include "cocos/renderer/pipeline/deferred/GbufferStage.h" +#include "cocos/renderer/pipeline/deferred/LightingStage.h" +#include "cocos/renderer/pipeline/deferred/BloomStage.h" +#include "cocos/renderer/pipeline/deferred/PostProcessStage.h" +#include "cocos/renderer/pipeline/GeometryRenderer.h" extern se::Object* __jsb_cc_pipeline_RenderQueueDesc_proto; -extern se::Class* __jsb_cc_pipeline_RenderQueueDesc_class; +extern se::Class* __jsb_cc_pipeline_RenderQueueDesc_class; bool js_register_cc_pipeline_RenderQueueDesc(se::Object* obj); bool register_all_pipeline(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::pipeline::RenderQueueDesc*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::pipeline::RenderQueueDesc *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::pipeline::RenderQueueDesc); extern se::Object* __jsb_cc_pipeline_GlobalDSManager_proto; -extern se::Class* __jsb_cc_pipeline_GlobalDSManager_class; +extern se::Class* __jsb_cc_pipeline_GlobalDSManager_class; bool js_register_cc_pipeline_GlobalDSManager(se::Object* obj); bool register_all_pipeline(se::Object* obj); @@ -79,17 +79,17 @@ SE_DECLARE_FUNC(js_pipeline_GlobalDSManager_update); SE_DECLARE_FUNC(js_pipeline_GlobalDSManager_GlobalDSManager); extern se::Object* __jsb_cc_pipeline_RenderPipelineInfo_proto; -extern se::Class* __jsb_cc_pipeline_RenderPipelineInfo_class; +extern se::Class* __jsb_cc_pipeline_RenderPipelineInfo_class; bool js_register_cc_pipeline_RenderPipelineInfo(se::Object* obj); bool register_all_pipeline(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::pipeline::RenderPipelineInfo*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::pipeline::RenderPipelineInfo *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::pipeline::RenderPipelineInfo); extern se::Object* __jsb_cc_pipeline_RenderPipeline_proto; -extern se::Class* __jsb_cc_pipeline_RenderPipeline_class; +extern se::Class* __jsb_cc_pipeline_RenderPipeline_class; bool js_register_cc_pipeline_RenderPipeline(se::Object* obj); bool register_all_pipeline(se::Object* obj); @@ -127,7 +127,7 @@ SE_DECLARE_FUNC(js_pipeline_RenderPipeline_getInstance); SE_DECLARE_FUNC(js_pipeline_RenderPipeline_getRenderArea); extern se::Object* __jsb_cc_pipeline_ForwardPipeline_proto; -extern se::Class* __jsb_cc_pipeline_ForwardPipeline_class; +extern se::Class* __jsb_cc_pipeline_ForwardPipeline_class; bool js_register_cc_pipeline_ForwardPipeline(se::Object* obj); bool register_all_pipeline(se::Object* obj); @@ -136,17 +136,17 @@ JSB_REGISTER_OBJECT_TYPE(cc::pipeline::ForwardPipeline); SE_DECLARE_FUNC(js_pipeline_ForwardPipeline_ForwardPipeline); extern se::Object* __jsb_cc_pipeline_RenderFlowInfo_proto; -extern se::Class* __jsb_cc_pipeline_RenderFlowInfo_class; +extern se::Class* __jsb_cc_pipeline_RenderFlowInfo_class; bool js_register_cc_pipeline_RenderFlowInfo(se::Object* obj); bool register_all_pipeline(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::pipeline::RenderFlowInfo*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::pipeline::RenderFlowInfo *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::pipeline::RenderFlowInfo); extern se::Object* __jsb_cc_pipeline_RenderFlow_proto; -extern se::Class* __jsb_cc_pipeline_RenderFlow_class; +extern se::Class* __jsb_cc_pipeline_RenderFlow_class; bool js_register_cc_pipeline_RenderFlow(se::Object* obj); bool register_all_pipeline(se::Object* obj); @@ -158,7 +158,7 @@ SE_DECLARE_FUNC(js_pipeline_RenderFlow_getTag); SE_DECLARE_FUNC(js_pipeline_RenderFlow_initialize); extern se::Object* __jsb_cc_pipeline_ForwardFlow_proto; -extern se::Class* __jsb_cc_pipeline_ForwardFlow_class; +extern se::Class* __jsb_cc_pipeline_ForwardFlow_class; bool js_register_cc_pipeline_ForwardFlow(se::Object* obj); bool register_all_pipeline(se::Object* obj); @@ -168,17 +168,17 @@ SE_DECLARE_FUNC(js_pipeline_ForwardFlow_getInitializeInfo); SE_DECLARE_FUNC(js_pipeline_ForwardFlow_ForwardFlow); extern se::Object* __jsb_cc_pipeline_RenderStageInfo_proto; -extern se::Class* __jsb_cc_pipeline_RenderStageInfo_class; +extern se::Class* __jsb_cc_pipeline_RenderStageInfo_class; bool js_register_cc_pipeline_RenderStageInfo(se::Object* obj); bool register_all_pipeline(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::pipeline::RenderStageInfo*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::pipeline::RenderStageInfo *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::pipeline::RenderStageInfo); extern se::Object* __jsb_cc_pipeline_RenderStage_proto; -extern se::Class* __jsb_cc_pipeline_RenderStage_class; +extern se::Class* __jsb_cc_pipeline_RenderStage_class; bool js_register_cc_pipeline_RenderStage(se::Object* obj); bool register_all_pipeline(se::Object* obj); @@ -190,7 +190,7 @@ SE_DECLARE_FUNC(js_pipeline_RenderStage_getTag); SE_DECLARE_FUNC(js_pipeline_RenderStage_initialize); extern se::Object* __jsb_cc_pipeline_ForwardStage_proto; -extern se::Class* __jsb_cc_pipeline_ForwardStage_class; +extern se::Class* __jsb_cc_pipeline_ForwardStage_class; bool js_register_cc_pipeline_ForwardStage(se::Object* obj); bool register_all_pipeline(se::Object* obj); @@ -200,7 +200,7 @@ SE_DECLARE_FUNC(js_pipeline_ForwardStage_getInitializeInfo); SE_DECLARE_FUNC(js_pipeline_ForwardStage_ForwardStage); extern se::Object* __jsb_cc_pipeline_ShadowFlow_proto; -extern se::Class* __jsb_cc_pipeline_ShadowFlow_class; +extern se::Class* __jsb_cc_pipeline_ShadowFlow_class; bool js_register_cc_pipeline_ShadowFlow(se::Object* obj); bool register_all_pipeline(se::Object* obj); @@ -210,7 +210,7 @@ SE_DECLARE_FUNC(js_pipeline_ShadowFlow_getInitializeInfo); SE_DECLARE_FUNC(js_pipeline_ShadowFlow_ShadowFlow); extern se::Object* __jsb_cc_pipeline_ShadowStage_proto; -extern se::Class* __jsb_cc_pipeline_ShadowStage_class; +extern se::Class* __jsb_cc_pipeline_ShadowStage_class; bool js_register_cc_pipeline_ShadowStage(se::Object* obj); bool register_all_pipeline(se::Object* obj); @@ -222,7 +222,7 @@ SE_DECLARE_FUNC(js_pipeline_ShadowStage_getInitializeInfo); SE_DECLARE_FUNC(js_pipeline_ShadowStage_ShadowStage); extern se::Object* __jsb_cc_pipeline_InstancedBuffer_proto; -extern se::Class* __jsb_cc_pipeline_InstancedBuffer_class; +extern se::Class* __jsb_cc_pipeline_InstancedBuffer_class; bool js_register_cc_pipeline_InstancedBuffer(se::Object* obj); bool register_all_pipeline(se::Object* obj); @@ -235,7 +235,7 @@ SE_DECLARE_FUNC(js_pipeline_InstancedBuffer_destroyInstancedBuffer); SE_DECLARE_FUNC(js_pipeline_InstancedBuffer_InstancedBuffer); extern se::Object* __jsb_cc_pipeline_DeferredPipeline_proto; -extern se::Class* __jsb_cc_pipeline_DeferredPipeline_class; +extern se::Class* __jsb_cc_pipeline_DeferredPipeline_class; bool js_register_cc_pipeline_DeferredPipeline(se::Object* obj); bool register_all_pipeline(se::Object* obj); @@ -244,7 +244,7 @@ JSB_REGISTER_OBJECT_TYPE(cc::pipeline::DeferredPipeline); SE_DECLARE_FUNC(js_pipeline_DeferredPipeline_DeferredPipeline); extern se::Object* __jsb_cc_pipeline_MainFlow_proto; -extern se::Class* __jsb_cc_pipeline_MainFlow_class; +extern se::Class* __jsb_cc_pipeline_MainFlow_class; bool js_register_cc_pipeline_MainFlow(se::Object* obj); bool register_all_pipeline(se::Object* obj); @@ -254,7 +254,7 @@ SE_DECLARE_FUNC(js_pipeline_MainFlow_getInitializeInfo); SE_DECLARE_FUNC(js_pipeline_MainFlow_MainFlow); extern se::Object* __jsb_cc_pipeline_GbufferStage_proto; -extern se::Class* __jsb_cc_pipeline_GbufferStage_class; +extern se::Class* __jsb_cc_pipeline_GbufferStage_class; bool js_register_cc_pipeline_GbufferStage(se::Object* obj); bool register_all_pipeline(se::Object* obj); @@ -264,7 +264,7 @@ SE_DECLARE_FUNC(js_pipeline_GbufferStage_getInitializeInfo); SE_DECLARE_FUNC(js_pipeline_GbufferStage_GbufferStage); extern se::Object* __jsb_cc_pipeline_LightingStage_proto; -extern se::Class* __jsb_cc_pipeline_LightingStage_class; +extern se::Class* __jsb_cc_pipeline_LightingStage_class; bool js_register_cc_pipeline_LightingStage(se::Object* obj); bool register_all_pipeline(se::Object* obj); @@ -274,7 +274,7 @@ SE_DECLARE_FUNC(js_pipeline_LightingStage_getInitializeInfo); SE_DECLARE_FUNC(js_pipeline_LightingStage_LightingStage); extern se::Object* __jsb_cc_pipeline_BloomStage_proto; -extern se::Class* __jsb_cc_pipeline_BloomStage_class; +extern se::Class* __jsb_cc_pipeline_BloomStage_class; bool js_register_cc_pipeline_BloomStage(se::Object* obj); bool register_all_pipeline(se::Object* obj); @@ -289,7 +289,7 @@ SE_DECLARE_FUNC(js_pipeline_BloomStage_getInitializeInfo); SE_DECLARE_FUNC(js_pipeline_BloomStage_BloomStage); extern se::Object* __jsb_cc_pipeline_PostProcessStage_proto; -extern se::Class* __jsb_cc_pipeline_PostProcessStage_class; +extern se::Class* __jsb_cc_pipeline_PostProcessStage_class; bool js_register_cc_pipeline_PostProcessStage(se::Object* obj); bool register_all_pipeline(se::Object* obj); @@ -299,10 +299,11 @@ SE_DECLARE_FUNC(js_pipeline_PostProcessStage_getInitializeInfo); SE_DECLARE_FUNC(js_pipeline_PostProcessStage_PostProcessStage); extern se::Object* __jsb_cc_pipeline_GeometryRenderer_proto; -extern se::Class* __jsb_cc_pipeline_GeometryRenderer_class; +extern se::Class* __jsb_cc_pipeline_GeometryRenderer_class; bool js_register_cc_pipeline_GeometryRenderer(se::Object* obj); bool register_all_pipeline(se::Object* obj); JSB_REGISTER_OBJECT_TYPE(cc::pipeline::GeometryRenderer); SE_DECLARE_FUNC(js_pipeline_GeometryRenderer_GeometryRenderer); + diff --git a/native/cocos/bindings/auto/jsb_scene_auto.cpp b/native/cocos/bindings/auto/jsb_scene_auto.cpp index 81097510c7..0d8ae29455 100644 --- a/native/cocos/bindings/auto/jsb_scene_auto.cpp +++ b/native/cocos/bindings/auto/jsb_scene_auto.cpp @@ -26,43 +26,44 @@ #include "cocos/bindings/auto/jsb_scene_auto.h" #include "cocos/bindings/manual/jsb_conversions.h" #include "cocos/bindings/manual/jsb_global.h" -#include "scene/AABB.h" -#include "scene/BaseNode.h" -#include "scene/Camera.h" -#include "scene/Define.h" -#include "scene/DirectionalLight.h" -#include "scene/DrawBatch2D.h" -#include "scene/Light.h" -#include "scene/Model.h" #include "scene/Node.h" +#include "scene/BaseNode.h" +#include "scene/Scene.h" +#include "scene/Light.h" +#include "scene/DirectionalLight.h" +#include "scene/SpotLight.h" +#include "scene/SphereLight.h" +#include "scene/Model.h" +#include "scene/SubModel.h" #include "scene/Pass.h" #include "scene/RenderScene.h" +#include "scene/DrawBatch2D.h" +#include "scene/Camera.h" #include "scene/RenderWindow.h" -#include "scene/Scene.h" +#include "scene/Camera.h" +#include "scene/Define.h" +#include "scene/AABB.h" #include "scene/Sphere.h" -#include "scene/SphereLight.h" -#include "scene/SpotLight.h" -#include "scene/SubModel.h" #ifndef JSB_ALLOC - #define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) +#define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) #endif #ifndef JSB_FREE - #define JSB_FREE(ptr) delete ptr +#define JSB_FREE(ptr) delete ptr #endif se::Object* __jsb_cc_scene_BaseNode_proto = nullptr; -se::Class* __jsb_cc_scene_BaseNode_class = nullptr; +se::Class* __jsb_cc_scene_BaseNode_class = nullptr; static bool js_scene_BaseNode_getChilds(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_BaseNode_getChilds : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - const std::vector& result = cobj->getChilds(); + const std::vector& result = cobj->getChilds(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_scene_BaseNode_getChilds : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -77,9 +78,9 @@ static bool js_scene_BaseNode_setParent(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_BaseNode_setParent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -103,10 +104,13 @@ static bool js_scene_BaseNode_constructor(se::State& s) // NOLINT(readability-id } SE_BIND_CTOR(js_scene_BaseNode_constructor, __jsb_cc_scene_BaseNode_class, js_cc_scene_BaseNode_finalize) + + static bool js_cc_scene_BaseNode_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -132,7 +136,7 @@ bool js_register_scene_BaseNode(se::Object* obj) // NOLINT(readability-identifie return true; } se::Object* __jsb_cc_scene_Scene_proto = nullptr; -se::Class* __jsb_cc_scene_Scene_class = nullptr; +se::Class* __jsb_cc_scene_Scene_class = nullptr; SE_DECLARE_FINALIZE_FUNC(js_cc_scene_Scene_finalize) @@ -145,10 +149,13 @@ static bool js_scene_Scene_constructor(se::State& s) // NOLINT(readability-ident } SE_BIND_CTOR(js_scene_Scene_constructor, __jsb_cc_scene_Scene_class, js_cc_scene_Scene_finalize) + + static bool js_cc_scene_Scene_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -172,19 +179,19 @@ bool js_register_scene_Scene(se::Object* obj) // NOLINT(readability-identifier-n return true; } se::Object* __jsb_cc_scene_Node_proto = nullptr; -se::Class* __jsb_cc_scene_Node_class = nullptr; +se::Class* __jsb_cc_scene_Node_class = nullptr; static bool js_scene_Node_initWithData(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Node_initWithData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -208,10 +215,13 @@ static bool js_scene_Node_constructor(se::State& s) // NOLINT(readability-identi } SE_BIND_CTOR(js_scene_Node_constructor, __jsb_cc_scene_Node_class, js_cc_scene_Node_finalize) + + static bool js_cc_scene_Node_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -236,15 +246,15 @@ bool js_register_scene_Node(se::Object* obj) // NOLINT(readability-identifier-na return true; } se::Object* __jsb_cc_scene_Light_proto = nullptr; -se::Class* __jsb_cc_scene_Light_class = nullptr; +se::Class* __jsb_cc_scene_Light_class = nullptr; static bool js_scene_Light_getBaked(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Light_getBaked : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getBaked(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -261,9 +271,9 @@ static bool js_scene_Light_setBaked(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Light_setBaked : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -280,9 +290,9 @@ static bool js_scene_Light_setColor(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Light_setColor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -299,9 +309,9 @@ static bool js_scene_Light_setColorTemperatureRGB(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Light_setColorTemperatureRGB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -318,9 +328,9 @@ static bool js_scene_Light_setNode(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Light_setNode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -337,9 +347,9 @@ static bool js_scene_Light_setType(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Light_setType : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -356,9 +366,9 @@ static bool js_scene_Light_setUseColorTemperature(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Light_setUseColorTemperature : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -376,7 +386,7 @@ static bool js_scene_Light_update(se::State& s) // NOLINT(readability-identifier auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Light_update : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->update(); return true; @@ -386,6 +396,8 @@ static bool js_scene_Light_update(se::State& s) // NOLINT(readability-identifier } SE_BIND_FUNC(js_scene_Light_update) + + bool js_register_scene_Light(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("Light", obj, nullptr, nullptr); @@ -408,15 +420,15 @@ bool js_register_scene_Light(se::Object* obj) // NOLINT(readability-identifier-n return true; } se::Object* __jsb_cc_scene_DirectionalLight_proto = nullptr; -se::Class* __jsb_cc_scene_DirectionalLight_class = nullptr; +se::Class* __jsb_cc_scene_DirectionalLight_class = nullptr; static bool js_scene_DirectionalLight_getShadowBias(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_getShadowBias : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getShadowBias(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -433,9 +445,9 @@ static bool js_scene_DirectionalLight_getShadowDistance(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_getShadowDistance : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getShadowDistance(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -452,9 +464,9 @@ static bool js_scene_DirectionalLight_getShadowEnabled(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_getShadowEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getShadowEnabled(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -471,9 +483,9 @@ static bool js_scene_DirectionalLight_getShadowFar(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_getShadowFar : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getShadowFar(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -490,9 +502,9 @@ static bool js_scene_DirectionalLight_getShadowFixedArea(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_getShadowFixedArea : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getShadowFixedArea(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -509,9 +521,9 @@ static bool js_scene_DirectionalLight_getShadowInvisibleOcclusionRange(se::State { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_getShadowInvisibleOcclusionRange : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getShadowInvisibleOcclusionRange(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -528,9 +540,9 @@ static bool js_scene_DirectionalLight_getShadowNear(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_getShadowNear : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getShadowNear(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -547,9 +559,9 @@ static bool js_scene_DirectionalLight_getShadowNormalBias(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_getShadowNormalBias : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getShadowNormalBias(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -566,9 +578,9 @@ static bool js_scene_DirectionalLight_getShadowOrthoSize(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_getShadowOrthoSize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getShadowOrthoSize(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -585,9 +597,9 @@ static bool js_scene_DirectionalLight_getShadowPcf(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_getShadowPcf : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getShadowPcf(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -604,9 +616,9 @@ static bool js_scene_DirectionalLight_getShadowSaturation(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_getShadowSaturation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getShadowSaturation(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -623,9 +635,9 @@ static bool js_scene_DirectionalLight_setDirection(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setDirection : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -642,9 +654,9 @@ static bool js_scene_DirectionalLight_setIlluminanceHDR(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setIlluminanceHDR : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -661,9 +673,9 @@ static bool js_scene_DirectionalLight_setIlluminanceLDR(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setIlluminanceLDR : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -680,9 +692,9 @@ static bool js_scene_DirectionalLight_setShadowBias(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setShadowBias : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -699,9 +711,9 @@ static bool js_scene_DirectionalLight_setShadowDistance(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setShadowDistance : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -718,9 +730,9 @@ static bool js_scene_DirectionalLight_setShadowEnabled(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setShadowEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -737,9 +749,9 @@ static bool js_scene_DirectionalLight_setShadowFar(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setShadowFar : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -756,9 +768,9 @@ static bool js_scene_DirectionalLight_setShadowFixedArea(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setShadowFixedArea : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -775,9 +787,9 @@ static bool js_scene_DirectionalLight_setShadowInvisibleOcclusionRange(se::State { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setShadowInvisibleOcclusionRange : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -794,9 +806,9 @@ static bool js_scene_DirectionalLight_setShadowNear(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setShadowNear : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -813,9 +825,9 @@ static bool js_scene_DirectionalLight_setShadowNormalBias(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setShadowNormalBias : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -832,9 +844,9 @@ static bool js_scene_DirectionalLight_setShadowOrthoSize(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setShadowOrthoSize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -851,9 +863,9 @@ static bool js_scene_DirectionalLight_setShadowPcf(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setShadowPcf : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -870,9 +882,9 @@ static bool js_scene_DirectionalLight_setShadowSaturation(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setShadowSaturation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -896,10 +908,13 @@ static bool js_scene_DirectionalLight_constructor(se::State& s) // NOLINT(readab } SE_BIND_CTOR(js_scene_DirectionalLight_constructor, __jsb_cc_scene_DirectionalLight_class, js_cc_scene_DirectionalLight_finalize) + + static bool js_cc_scene_DirectionalLight_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -948,15 +963,15 @@ bool js_register_scene_DirectionalLight(se::Object* obj) // NOLINT(readability-i return true; } se::Object* __jsb_cc_scene_Plane_proto = nullptr; -se::Class* __jsb_cc_scene_Plane_class = nullptr; +se::Class* __jsb_cc_scene_Plane_class = nullptr; static bool js_scene_Plane_clone(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Plane_clone : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::Plane result = cobj->clone(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -971,30 +986,24 @@ SE_BIND_FUNC(js_scene_Plane_clone) static bool js_scene_Plane_define(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_scene_Plane_define : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2( cobj, false, "js_scene_Plane_define : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->define(arg0.value(), arg1.value()); return true; } - } while (false); + } while(false); do { if (argc == 3) { @@ -1003,24 +1012,15 @@ static bool js_scene_Plane_define(se::State& s) // NOLINT(readability-identifier HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->define(arg0.value(), arg1.value(), arg2.value()); return true; } - } while (false); + } while(false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -1031,9 +1031,9 @@ static bool js_scene_Plane_distance(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Plane_distance : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1055,7 +1055,7 @@ static bool js_scene_Plane_get_d(se::State& s) // NOLINT(readability-identifier- SE_PRECONDITION2(cobj, false, "js_scene_Plane_get_d : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->d, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->d, s.thisObject(), s.rval()); @@ -1066,7 +1066,7 @@ SE_BIND_PROP_GET(js_scene_Plane_get_d) static bool js_scene_Plane_set_d(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Plane_set_d : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1082,7 +1082,7 @@ static bool js_scene_Plane_get_n(se::State& s) // NOLINT(readability-identifier- SE_PRECONDITION2(cobj, false, "js_scene_Plane_get_n : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->n, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->n, s.thisObject(), s.rval()); @@ -1093,7 +1093,7 @@ SE_BIND_PROP_GET(js_scene_Plane_get_n) static bool js_scene_Plane_set_n(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Plane_set_n : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1103,23 +1103,25 @@ static bool js_scene_Plane_set_n(se::State& s) // NOLINT(readability-identifier- } SE_BIND_PROP_SET(js_scene_Plane_set_n) -template <> -bool sevalue_to_native(const se::Value& from, cc::scene::Plane* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::scene::Plane * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("d", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->d), ctx); } json->getProperty("n", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->n), ctx); } return ok; @@ -1129,24 +1131,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_Plane_finalize) static bool js_scene_Plane_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::scene::Plane* cobj = JSB_ALLOC(cc::scene::Plane); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::scene::Plane* cobj = JSB_ALLOC(cc::scene::Plane); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -1165,7 +1169,7 @@ static bool js_scene_Plane_constructor(se::State& s) // NOLINT(readability-ident ok &= sevalue_to_native(args[1], &(cobj->n), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -1177,10 +1181,13 @@ static bool js_scene_Plane_constructor(se::State& s) // NOLINT(readability-ident } SE_BIND_CTOR(js_scene_Plane_constructor, __jsb_cc_scene_Plane_class, js_cc_scene_Plane_finalize) + + static bool js_cc_scene_Plane_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -1209,15 +1216,15 @@ bool js_register_scene_Plane(se::Object* obj) // NOLINT(readability-identifier-n return true; } se::Object* __jsb_cc_scene_Frustum_proto = nullptr; -se::Class* __jsb_cc_scene_Frustum_class = nullptr; +se::Class* __jsb_cc_scene_Frustum_class = nullptr; static bool js_scene_Frustum_clone(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Frustum_clone : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::Frustum result = cobj->clone(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1234,14 +1241,14 @@ static bool js_scene_Frustum_createOrtho(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Frustum_createOrtho : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 5) { - HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; HolderType arg4 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -1261,14 +1268,14 @@ static bool js_scene_Frustum_split(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Frustum_split : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 5) { - HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; HolderType arg4 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -1288,9 +1295,9 @@ static bool js_scene_Frustum_transform(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Frustum_transform : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1309,7 +1316,7 @@ static bool js_scene_Frustum_get_vertices(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_scene_Frustum_get_vertices : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->vertices, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->vertices, s.thisObject(), s.rval()); @@ -1320,7 +1327,7 @@ SE_BIND_PROP_GET(js_scene_Frustum_get_vertices) static bool js_scene_Frustum_set_vertices(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Frustum_set_vertices : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1336,7 +1343,7 @@ static bool js_scene_Frustum_get_planes(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_scene_Frustum_get_planes : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->planes, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->planes, s.thisObject(), s.rval()); @@ -1347,7 +1354,7 @@ SE_BIND_PROP_GET(js_scene_Frustum_get_planes) static bool js_scene_Frustum_set_planes(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Frustum_set_planes : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1357,27 +1364,29 @@ static bool js_scene_Frustum_set_planes(se::State& s) // NOLINT(readability-iden } SE_BIND_PROP_SET(js_scene_Frustum_set_planes) -template <> -bool sevalue_to_native(const se::Value& from, cc::scene::Frustum* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::scene::Frustum * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("vertices", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->vertices), ctx); } json->getProperty("planes", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->planes), ctx); } json->getProperty("type", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->type), ctx); } return ok; @@ -1387,24 +1396,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_Frustum_finalize) static bool js_scene_Frustum_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::scene::Frustum* cobj = JSB_ALLOC(cc::scene::Frustum); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::scene::Frustum* cobj = JSB_ALLOC(cc::scene::Frustum); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -1426,7 +1437,7 @@ static bool js_scene_Frustum_constructor(se::State& s) // NOLINT(readability-ide ok &= sevalue_to_native(args[2], &(cobj->type), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -1438,10 +1449,13 @@ static bool js_scene_Frustum_constructor(se::State& s) // NOLINT(readability-ide } SE_BIND_CTOR(js_scene_Frustum_constructor, __jsb_cc_scene_Frustum_class, js_cc_scene_Frustum_finalize) + + static bool js_cc_scene_Frustum_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -1471,15 +1485,15 @@ bool js_register_scene_Frustum(se::Object* obj) // NOLINT(readability-identifier return true; } se::Object* __jsb_cc_scene_AABB_proto = nullptr; -se::Class* __jsb_cc_scene_AABB_class = nullptr; +se::Class* __jsb_cc_scene_AABB_class = nullptr; static bool js_scene_AABB_contain(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_AABB_contain : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1499,9 +1513,9 @@ static bool js_scene_AABB_getLayout(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_AABB_getLayout : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::AABBLayout* result = cobj->getLayout(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1518,9 +1532,9 @@ static bool js_scene_AABB_initWithData(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_AABB_initWithData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1544,10 +1558,13 @@ static bool js_scene_AABB_constructor(se::State& s) // NOLINT(readability-identi } SE_BIND_CTOR(js_scene_AABB_constructor, __jsb_cc_scene_AABB_class, js_cc_scene_AABB_finalize) + + static bool js_cc_scene_AABB_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -1574,15 +1591,15 @@ bool js_register_scene_AABB(se::Object* obj) // NOLINT(readability-identifier-na return true; } se::Object* __jsb_cc_scene_SpotLight_proto = nullptr; -se::Class* __jsb_cc_scene_SpotLight_class = nullptr; +se::Class* __jsb_cc_scene_SpotLight_class = nullptr; static bool js_scene_SpotLight_getShadowBias(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_getShadowBias : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getShadowBias(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1599,9 +1616,9 @@ static bool js_scene_SpotLight_getShadowEnabled(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_getShadowEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getShadowEnabled(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1618,9 +1635,9 @@ static bool js_scene_SpotLight_getShadowNormalBias(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_getShadowNormalBias : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getShadowNormalBias(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1637,9 +1654,9 @@ static bool js_scene_SpotLight_getShadowPcf(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_getShadowPcf : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getShadowPcf(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1656,9 +1673,9 @@ static bool js_scene_SpotLight_setAABB(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setAABB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1675,9 +1692,9 @@ static bool js_scene_SpotLight_setAngle(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setAngle : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1694,9 +1711,9 @@ static bool js_scene_SpotLight_setAspect(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setAspect : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1713,9 +1730,9 @@ static bool js_scene_SpotLight_setDirection(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setDirection : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1732,9 +1749,9 @@ static bool js_scene_SpotLight_setFrustum(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setFrustum : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1751,9 +1768,9 @@ static bool js_scene_SpotLight_setLuminanceHDR(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setLuminanceHDR : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1770,9 +1787,9 @@ static bool js_scene_SpotLight_setLuminanceLDR(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setLuminanceLDR : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1789,9 +1806,9 @@ static bool js_scene_SpotLight_setNeedUpdate(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setNeedUpdate : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1808,9 +1825,9 @@ static bool js_scene_SpotLight_setPosition(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setPosition : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1827,9 +1844,9 @@ static bool js_scene_SpotLight_setRange(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setRange : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1846,9 +1863,9 @@ static bool js_scene_SpotLight_setShadowBias(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setShadowBias : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1865,9 +1882,9 @@ static bool js_scene_SpotLight_setShadowEnabled(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setShadowEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1884,9 +1901,9 @@ static bool js_scene_SpotLight_setShadowNormalBias(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setShadowNormalBias : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1903,9 +1920,9 @@ static bool js_scene_SpotLight_setShadowPcf(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setShadowPcf : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1922,9 +1939,9 @@ static bool js_scene_SpotLight_setSize(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setSize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1948,10 +1965,13 @@ static bool js_scene_SpotLight_constructor(se::State& s) // NOLINT(readability-i } SE_BIND_CTOR(js_scene_SpotLight_constructor, __jsb_cc_scene_SpotLight_class, js_cc_scene_SpotLight_finalize) + + static bool js_cc_scene_SpotLight_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -1994,15 +2014,15 @@ bool js_register_scene_SpotLight(se::Object* obj) // NOLINT(readability-identifi return true; } se::Object* __jsb_cc_scene_SphereLight_proto = nullptr; -se::Class* __jsb_cc_scene_SphereLight_class = nullptr; +se::Class* __jsb_cc_scene_SphereLight_class = nullptr; static bool js_scene_SphereLight_setAABB(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SphereLight_setAABB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2019,9 +2039,9 @@ static bool js_scene_SphereLight_setLuminanceHDR(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SphereLight_setLuminanceHDR : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2038,9 +2058,9 @@ static bool js_scene_SphereLight_setLuminanceLDR(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SphereLight_setLuminanceLDR : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2057,9 +2077,9 @@ static bool js_scene_SphereLight_setPosition(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SphereLight_setPosition : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2076,9 +2096,9 @@ static bool js_scene_SphereLight_setRange(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SphereLight_setRange : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2095,9 +2115,9 @@ static bool js_scene_SphereLight_setSize(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SphereLight_setSize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2121,10 +2141,13 @@ static bool js_scene_SphereLight_constructor(se::State& s) // NOLINT(readability } SE_BIND_CTOR(js_scene_SphereLight_constructor, __jsb_cc_scene_SphereLight_class, js_cc_scene_SphereLight_finalize) + + static bool js_cc_scene_SphereLight_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -2154,15 +2177,15 @@ bool js_register_scene_SphereLight(se::Object* obj) // NOLINT(readability-identi return true; } se::Object* __jsb_cc_scene_Model_proto = nullptr; -se::Class* __jsb_cc_scene_Model_class = nullptr; +se::Class* __jsb_cc_scene_Model_class = nullptr; static bool js_scene_Model_getCastShadow(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getCastShadow : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getCastShadow(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2179,9 +2202,9 @@ static bool js_scene_Model_getEnabled(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getEnabled(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2198,9 +2221,9 @@ static bool js_scene_Model_getInstMatWorldIdx(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getInstMatWorldIdx : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int32_t result = cobj->getInstMatWorldIdx(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2217,9 +2240,9 @@ static bool js_scene_Model_getInstanceAttributes(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getInstanceAttributes : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getInstanceAttributes(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2236,9 +2259,9 @@ static bool js_scene_Model_getInstancedAttributeBlock(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getInstancedAttributeBlock : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::InstancedAttributeBlock* result = cobj->getInstancedAttributeBlock(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2255,9 +2278,9 @@ static bool js_scene_Model_getInstancedBuffer(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getInstancedBuffer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned char* result = cobj->getInstancedBuffer(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2274,9 +2297,9 @@ static bool js_scene_Model_getInstancedBufferSize(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getInstancedBufferSize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getInstancedBufferSize(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2293,9 +2316,9 @@ static bool js_scene_Model_getLocalData(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getLocalData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float* result = cobj->getLocalData(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2312,9 +2335,9 @@ static bool js_scene_Model_getNode(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getNode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::Node* result = cobj->getNode(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2331,9 +2354,9 @@ static bool js_scene_Model_getReceiveShadow(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getReceiveShadow : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getReceiveShadow(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2350,11 +2373,11 @@ static bool js_scene_Model_getSubModels(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getSubModels : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - const std::vector& result = cobj->getSubModels(); + const std::vector& result = cobj->getSubModels(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_scene_Model_getSubModels : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -2369,9 +2392,9 @@ static bool js_scene_Model_getTransform(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getTransform : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::Node* result = cobj->getTransform(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2388,9 +2411,9 @@ static bool js_scene_Model_getTransformUpdated(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getTransformUpdated : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getTransformUpdated(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2407,9 +2430,9 @@ static bool js_scene_Model_getUpdatStamp(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getUpdatStamp : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int32_t result = cobj->getUpdatStamp(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2426,9 +2449,9 @@ static bool js_scene_Model_getVisFlags(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getVisFlags : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getVisFlags(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2445,9 +2468,9 @@ static bool js_scene_Model_getWorldBoundBuffer(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getWorldBoundBuffer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::Buffer* result = cobj->getWorldBoundBuffer(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2464,9 +2487,9 @@ static bool js_scene_Model_seVisFlag(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_seVisFlag : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2483,9 +2506,9 @@ static bool js_scene_Model_setBounds(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_setBounds : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2502,9 +2525,9 @@ static bool js_scene_Model_setCastShadow(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_setCastShadow : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2521,9 +2544,9 @@ static bool js_scene_Model_setEnabled(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_setEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2540,9 +2563,9 @@ static bool js_scene_Model_setInstMatWorldIdx(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_setInstMatWorldIdx : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2559,9 +2582,9 @@ static bool js_scene_Model_setLocalBuffer(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_setLocalBuffer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2578,9 +2601,9 @@ static bool js_scene_Model_setNode(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_setNode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2597,9 +2620,9 @@ static bool js_scene_Model_setReceiveShadow(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_setReceiveShadow : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2616,11 +2639,11 @@ static bool js_scene_Model_setSubModel(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_setSubModel : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -2637,9 +2660,9 @@ static bool js_scene_Model_setTransform(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_setTransform : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2656,9 +2679,9 @@ static bool js_scene_Model_setWorldBoundBuffer(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_setWorldBoundBuffer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2675,11 +2698,11 @@ static bool js_scene_Model_updateLightingmap(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_updateLightingmap : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2698,9 +2721,9 @@ static bool js_scene_Model_updateTransform(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_updateTransform : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2717,9 +2740,9 @@ static bool js_scene_Model_updateUBOs(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_updateUBOs : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2737,7 +2760,7 @@ static bool js_scene_Model_updateWorldBoundUBOs(se::State& s) // NOLINT(readabil auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_updateWorldBoundUBOs : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->updateWorldBoundUBOs(); return true; @@ -2758,10 +2781,13 @@ static bool js_scene_Model_constructor(se::State& s) // NOLINT(readability-ident } SE_BIND_CTOR(js_scene_Model_constructor, __jsb_cc_scene_Model_class, js_cc_scene_Model_finalize) + + static bool js_cc_scene_Model_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -2816,7 +2842,7 @@ bool js_register_scene_Model(se::Object* obj) // NOLINT(readability-identifier-n return true; } se::Object* __jsb_cc_scene_Fog_proto = nullptr; -se::Class* __jsb_cc_scene_Fog_class = nullptr; +se::Class* __jsb_cc_scene_Fog_class = nullptr; static bool js_scene_Fog_get_enabled(se::State& s) // NOLINT(readability-identifier-naming) { @@ -2824,7 +2850,7 @@ static bool js_scene_Fog_get_enabled(se::State& s) // NOLINT(readability-identif SE_PRECONDITION2(cobj, false, "js_scene_Fog_get_enabled : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->enabled, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->enabled, s.thisObject(), s.rval()); @@ -2835,7 +2861,7 @@ SE_BIND_PROP_GET(js_scene_Fog_get_enabled) static bool js_scene_Fog_set_enabled(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Fog_set_enabled : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2851,7 +2877,7 @@ static bool js_scene_Fog_get_accurate(se::State& s) // NOLINT(readability-identi SE_PRECONDITION2(cobj, false, "js_scene_Fog_get_accurate : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->accurate, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->accurate, s.thisObject(), s.rval()); @@ -2862,7 +2888,7 @@ SE_BIND_PROP_GET(js_scene_Fog_get_accurate) static bool js_scene_Fog_set_accurate(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Fog_set_accurate : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2878,7 +2904,7 @@ static bool js_scene_Fog_get_type(se::State& s) // NOLINT(readability-identifier SE_PRECONDITION2(cobj, false, "js_scene_Fog_get_type : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->type, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->type, s.thisObject(), s.rval()); @@ -2889,7 +2915,7 @@ SE_BIND_PROP_GET(js_scene_Fog_get_type) static bool js_scene_Fog_set_type(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Fog_set_type : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2905,7 +2931,7 @@ static bool js_scene_Fog_get_density(se::State& s) // NOLINT(readability-identif SE_PRECONDITION2(cobj, false, "js_scene_Fog_get_density : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->density, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->density, s.thisObject(), s.rval()); @@ -2916,7 +2942,7 @@ SE_BIND_PROP_GET(js_scene_Fog_get_density) static bool js_scene_Fog_set_density(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Fog_set_density : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2932,7 +2958,7 @@ static bool js_scene_Fog_get_start(se::State& s) // NOLINT(readability-identifie SE_PRECONDITION2(cobj, false, "js_scene_Fog_get_start : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->start, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->start, s.thisObject(), s.rval()); @@ -2943,7 +2969,7 @@ SE_BIND_PROP_GET(js_scene_Fog_get_start) static bool js_scene_Fog_set_start(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Fog_set_start : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2959,7 +2985,7 @@ static bool js_scene_Fog_get_end(se::State& s) // NOLINT(readability-identifier- SE_PRECONDITION2(cobj, false, "js_scene_Fog_get_end : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->end, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->end, s.thisObject(), s.rval()); @@ -2970,7 +2996,7 @@ SE_BIND_PROP_GET(js_scene_Fog_get_end) static bool js_scene_Fog_set_end(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Fog_set_end : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2986,7 +3012,7 @@ static bool js_scene_Fog_get_atten(se::State& s) // NOLINT(readability-identifie SE_PRECONDITION2(cobj, false, "js_scene_Fog_get_atten : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->atten, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->atten, s.thisObject(), s.rval()); @@ -2997,7 +3023,7 @@ SE_BIND_PROP_GET(js_scene_Fog_get_atten) static bool js_scene_Fog_set_atten(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Fog_set_atten : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3013,7 +3039,7 @@ static bool js_scene_Fog_get_top(se::State& s) // NOLINT(readability-identifier- SE_PRECONDITION2(cobj, false, "js_scene_Fog_get_top : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->top, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->top, s.thisObject(), s.rval()); @@ -3024,7 +3050,7 @@ SE_BIND_PROP_GET(js_scene_Fog_get_top) static bool js_scene_Fog_set_top(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Fog_set_top : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3040,7 +3066,7 @@ static bool js_scene_Fog_get_range(se::State& s) // NOLINT(readability-identifie SE_PRECONDITION2(cobj, false, "js_scene_Fog_get_range : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->range, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->range, s.thisObject(), s.rval()); @@ -3051,7 +3077,7 @@ SE_BIND_PROP_GET(js_scene_Fog_get_range) static bool js_scene_Fog_set_range(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Fog_set_range : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3067,7 +3093,7 @@ static bool js_scene_Fog_get_color(se::State& s) // NOLINT(readability-identifie SE_PRECONDITION2(cobj, false, "js_scene_Fog_get_color : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->color, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->color, s.thisObject(), s.rval()); @@ -3078,7 +3104,7 @@ SE_BIND_PROP_GET(js_scene_Fog_get_color) static bool js_scene_Fog_set_color(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Fog_set_color : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3088,55 +3114,57 @@ static bool js_scene_Fog_set_color(se::State& s) // NOLINT(readability-identifie } SE_BIND_PROP_SET(js_scene_Fog_set_color) -template <> -bool sevalue_to_native(const se::Value& from, cc::scene::Fog* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::scene::Fog * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("enabled", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->enabled), ctx); } json->getProperty("accurate", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->accurate), ctx); } json->getProperty("type", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->type), ctx); } json->getProperty("density", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->density), ctx); } json->getProperty("start", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->start), ctx); } json->getProperty("end", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->end), ctx); } json->getProperty("atten", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->atten), ctx); } json->getProperty("top", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->top), ctx); } json->getProperty("range", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->range), ctx); } json->getProperty("color", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->color), ctx); } return ok; @@ -3146,24 +3174,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_Fog_finalize) static bool js_scene_Fog_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::scene::Fog* cobj = JSB_ALLOC(cc::scene::Fog); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::scene::Fog* cobj = JSB_ALLOC(cc::scene::Fog); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -3206,7 +3236,7 @@ static bool js_scene_Fog_constructor(se::State& s) // NOLINT(readability-identif ok &= sevalue_to_native(args[9], &(cobj->color), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -3218,10 +3248,13 @@ static bool js_scene_Fog_constructor(se::State& s) // NOLINT(readability-identif } SE_BIND_CTOR(js_scene_Fog_constructor, __jsb_cc_scene_Fog_class, js_cc_scene_Fog_finalize) + + static bool js_cc_scene_Fog_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -3255,7 +3288,7 @@ bool js_register_scene_Fog(se::Object* obj) // NOLINT(readability-identifier-nam return true; } se::Object* __jsb_cc_scene_Shadow_proto = nullptr; -se::Class* __jsb_cc_scene_Shadow_class = nullptr; +se::Class* __jsb_cc_scene_Shadow_class = nullptr; static bool js_scene_Shadow_get_enabled(se::State& s) // NOLINT(readability-identifier-naming) { @@ -3263,7 +3296,7 @@ static bool js_scene_Shadow_get_enabled(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_enabled : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->enabled, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->enabled, s.thisObject(), s.rval()); @@ -3274,7 +3307,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_enabled) static bool js_scene_Shadow_set_enabled(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_enabled : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3290,7 +3323,7 @@ static bool js_scene_Shadow_get_shadowType(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_shadowType : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->shadowType, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->shadowType, s.thisObject(), s.rval()); @@ -3301,7 +3334,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_shadowType) static bool js_scene_Shadow_set_shadowType(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_shadowType : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3317,7 +3350,7 @@ static bool js_scene_Shadow_get_distance(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_distance : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->distance, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->distance, s.thisObject(), s.rval()); @@ -3328,7 +3361,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_distance) static bool js_scene_Shadow_set_distance(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_distance : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3344,7 +3377,7 @@ static bool js_scene_Shadow_get_dirty(se::State& s) // NOLINT(readability-identi SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_dirty : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->dirty, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->dirty, s.thisObject(), s.rval()); @@ -3355,7 +3388,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_dirty) static bool js_scene_Shadow_set_dirty(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_dirty : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3371,7 +3404,7 @@ static bool js_scene_Shadow_get_shadowMapDirty(se::State& s) // NOLINT(readabili SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_shadowMapDirty : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->shadowMapDirty, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->shadowMapDirty, s.thisObject(), s.rval()); @@ -3382,7 +3415,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_shadowMapDirty) static bool js_scene_Shadow_set_shadowMapDirty(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_shadowMapDirty : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3398,7 +3431,7 @@ static bool js_scene_Shadow_get_instancePass(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_instancePass : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->instancePass, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->instancePass, s.thisObject(), s.rval()); @@ -3409,7 +3442,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_instancePass) static bool js_scene_Shadow_set_instancePass(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_instancePass : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3425,7 +3458,7 @@ static bool js_scene_Shadow_get_planarPass(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_planarPass : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->planarPass, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->planarPass, s.thisObject(), s.rval()); @@ -3436,7 +3469,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_planarPass) static bool js_scene_Shadow_set_planarPass(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_planarPass : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3452,7 +3485,7 @@ static bool js_scene_Shadow_get_color(se::State& s) // NOLINT(readability-identi SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_color : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->color, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->color, s.thisObject(), s.rval()); @@ -3463,7 +3496,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_color) static bool js_scene_Shadow_set_color(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_color : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3479,7 +3512,7 @@ static bool js_scene_Shadow_get_size(se::State& s) // NOLINT(readability-identif SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_size : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->size, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->size, s.thisObject(), s.rval()); @@ -3490,7 +3523,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_size) static bool js_scene_Shadow_set_size(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_size : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3506,7 +3539,7 @@ static bool js_scene_Shadow_get_normal(se::State& s) // NOLINT(readability-ident SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_normal : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->normal, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->normal, s.thisObject(), s.rval()); @@ -3517,7 +3550,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_normal) static bool js_scene_Shadow_set_normal(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_normal : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3533,7 +3566,7 @@ static bool js_scene_Shadow_get_matLight(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_matLight : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->matLight, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->matLight, s.thisObject(), s.rval()); @@ -3544,7 +3577,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_matLight) static bool js_scene_Shadow_set_matLight(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_matLight : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3554,59 +3587,61 @@ static bool js_scene_Shadow_set_matLight(se::State& s) // NOLINT(readability-ide } SE_BIND_PROP_SET(js_scene_Shadow_set_matLight) -template <> -bool sevalue_to_native(const se::Value& from, cc::scene::Shadow* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::scene::Shadow * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("enabled", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->enabled), ctx); } json->getProperty("shadowType", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->shadowType), ctx); } json->getProperty("distance", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->distance), ctx); } json->getProperty("dirty", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->dirty), ctx); } json->getProperty("shadowMapDirty", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->shadowMapDirty), ctx); } json->getProperty("instancePass", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->instancePass), ctx); } json->getProperty("planarPass", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->planarPass), ctx); } json->getProperty("color", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->color), ctx); } json->getProperty("size", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->size), ctx); } json->getProperty("normal", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->normal), ctx); } json->getProperty("matLight", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->matLight), ctx); } return ok; @@ -3616,24 +3651,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_Shadow_finalize) static bool js_scene_Shadow_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::scene::Shadow* cobj = JSB_ALLOC(cc::scene::Shadow); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::scene::Shadow* cobj = JSB_ALLOC(cc::scene::Shadow); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -3679,7 +3716,7 @@ static bool js_scene_Shadow_constructor(se::State& s) // NOLINT(readability-iden ok &= sevalue_to_native(args[10], &(cobj->matLight), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -3691,10 +3728,13 @@ static bool js_scene_Shadow_constructor(se::State& s) // NOLINT(readability-iden } SE_BIND_CTOR(js_scene_Shadow_constructor, __jsb_cc_scene_Shadow_class, js_cc_scene_Shadow_finalize) + + static bool js_cc_scene_Shadow_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -3729,7 +3769,7 @@ bool js_register_scene_Shadow(se::Object* obj) // NOLINT(readability-identifier- return true; } se::Object* __jsb_cc_scene_Skybox_proto = nullptr; -se::Class* __jsb_cc_scene_Skybox_class = nullptr; +se::Class* __jsb_cc_scene_Skybox_class = nullptr; static bool js_scene_Skybox_get_enabled(se::State& s) // NOLINT(readability-identifier-naming) { @@ -3737,7 +3777,7 @@ static bool js_scene_Skybox_get_enabled(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_scene_Skybox_get_enabled : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->enabled, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->enabled, s.thisObject(), s.rval()); @@ -3748,7 +3788,7 @@ SE_BIND_PROP_GET(js_scene_Skybox_get_enabled) static bool js_scene_Skybox_set_enabled(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Skybox_set_enabled : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3764,7 +3804,7 @@ static bool js_scene_Skybox_get_isRGBE(se::State& s) // NOLINT(readability-ident SE_PRECONDITION2(cobj, false, "js_scene_Skybox_get_isRGBE : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->isRGBE, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->isRGBE, s.thisObject(), s.rval()); @@ -3775,7 +3815,7 @@ SE_BIND_PROP_GET(js_scene_Skybox_get_isRGBE) static bool js_scene_Skybox_set_isRGBE(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Skybox_set_isRGBE : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3791,7 +3831,7 @@ static bool js_scene_Skybox_get_useIBL(se::State& s) // NOLINT(readability-ident SE_PRECONDITION2(cobj, false, "js_scene_Skybox_get_useIBL : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->useIBL, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->useIBL, s.thisObject(), s.rval()); @@ -3802,7 +3842,7 @@ SE_BIND_PROP_GET(js_scene_Skybox_get_useIBL) static bool js_scene_Skybox_set_useIBL(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Skybox_set_useIBL : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3818,7 +3858,7 @@ static bool js_scene_Skybox_get_useHDR(se::State& s) // NOLINT(readability-ident SE_PRECONDITION2(cobj, false, "js_scene_Skybox_get_useHDR : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->useHDR, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->useHDR, s.thisObject(), s.rval()); @@ -3829,7 +3869,7 @@ SE_BIND_PROP_GET(js_scene_Skybox_get_useHDR) static bool js_scene_Skybox_set_useHDR(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Skybox_set_useHDR : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3845,7 +3885,7 @@ static bool js_scene_Skybox_get_useDiffuseMap(se::State& s) // NOLINT(readabilit SE_PRECONDITION2(cobj, false, "js_scene_Skybox_get_useDiffuseMap : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->useDiffuseMap, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->useDiffuseMap, s.thisObject(), s.rval()); @@ -3856,7 +3896,7 @@ SE_BIND_PROP_GET(js_scene_Skybox_get_useDiffuseMap) static bool js_scene_Skybox_set_useDiffuseMap(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Skybox_set_useDiffuseMap : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3872,7 +3912,7 @@ static bool js_scene_Skybox_get_model(se::State& s) // NOLINT(readability-identi SE_PRECONDITION2(cobj, false, "js_scene_Skybox_get_model : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->model, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->model, s.thisObject(), s.rval()); @@ -3883,7 +3923,7 @@ SE_BIND_PROP_GET(js_scene_Skybox_get_model) static bool js_scene_Skybox_set_model(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Skybox_set_model : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3893,39 +3933,41 @@ static bool js_scene_Skybox_set_model(se::State& s) // NOLINT(readability-identi } SE_BIND_PROP_SET(js_scene_Skybox_set_model) -template <> -bool sevalue_to_native(const se::Value& from, cc::scene::Skybox* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::scene::Skybox * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("enabled", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->enabled), ctx); } json->getProperty("isRGBE", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->isRGBE), ctx); } json->getProperty("useIBL", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->useIBL), ctx); } json->getProperty("useHDR", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->useHDR), ctx); } json->getProperty("useDiffuseMap", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->useDiffuseMap), ctx); } json->getProperty("model", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->model), ctx); } return ok; @@ -3935,24 +3977,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_Skybox_finalize) static bool js_scene_Skybox_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::scene::Skybox* cobj = JSB_ALLOC(cc::scene::Skybox); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::scene::Skybox* cobj = JSB_ALLOC(cc::scene::Skybox); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -3983,7 +4027,7 @@ static bool js_scene_Skybox_constructor(se::State& s) // NOLINT(readability-iden ok &= sevalue_to_native(args[5], &(cobj->model), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -3995,10 +4039,13 @@ static bool js_scene_Skybox_constructor(se::State& s) // NOLINT(readability-iden } SE_BIND_CTOR(js_scene_Skybox_constructor, __jsb_cc_scene_Skybox_class, js_cc_scene_Skybox_finalize) + + static bool js_cc_scene_Skybox_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -4028,7 +4075,7 @@ bool js_register_scene_Skybox(se::Object* obj) // NOLINT(readability-identifier- return true; } se::Object* __jsb_cc_scene_Ambient_proto = nullptr; -se::Class* __jsb_cc_scene_Ambient_class = nullptr; +se::Class* __jsb_cc_scene_Ambient_class = nullptr; static bool js_scene_Ambient_get_enabled(se::State& s) // NOLINT(readability-identifier-naming) { @@ -4036,7 +4083,7 @@ static bool js_scene_Ambient_get_enabled(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_scene_Ambient_get_enabled : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->enabled, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->enabled, s.thisObject(), s.rval()); @@ -4047,7 +4094,7 @@ SE_BIND_PROP_GET(js_scene_Ambient_get_enabled) static bool js_scene_Ambient_set_enabled(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Ambient_set_enabled : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4063,7 +4110,7 @@ static bool js_scene_Ambient_get_skyIllum(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_scene_Ambient_get_skyIllum : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->skyIllum, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->skyIllum, s.thisObject(), s.rval()); @@ -4074,7 +4121,7 @@ SE_BIND_PROP_GET(js_scene_Ambient_get_skyIllum) static bool js_scene_Ambient_set_skyIllum(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Ambient_set_skyIllum : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4090,7 +4137,7 @@ static bool js_scene_Ambient_get_skyColor(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_scene_Ambient_get_skyColor : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->skyColor, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->skyColor, s.thisObject(), s.rval()); @@ -4101,7 +4148,7 @@ SE_BIND_PROP_GET(js_scene_Ambient_get_skyColor) static bool js_scene_Ambient_set_skyColor(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Ambient_set_skyColor : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4117,7 +4164,7 @@ static bool js_scene_Ambient_get_groundAlbedo(se::State& s) // NOLINT(readabilit SE_PRECONDITION2(cobj, false, "js_scene_Ambient_get_groundAlbedo : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->groundAlbedo, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->groundAlbedo, s.thisObject(), s.rval()); @@ -4128,7 +4175,7 @@ SE_BIND_PROP_GET(js_scene_Ambient_get_groundAlbedo) static bool js_scene_Ambient_set_groundAlbedo(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Ambient_set_groundAlbedo : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4138,31 +4185,33 @@ static bool js_scene_Ambient_set_groundAlbedo(se::State& s) // NOLINT(readabilit } SE_BIND_PROP_SET(js_scene_Ambient_set_groundAlbedo) -template <> -bool sevalue_to_native(const se::Value& from, cc::scene::Ambient* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::scene::Ambient * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("enabled", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->enabled), ctx); } json->getProperty("skyIllum", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->skyIllum), ctx); } json->getProperty("skyColor", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->skyColor), ctx); } json->getProperty("groundAlbedo", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->groundAlbedo), ctx); } return ok; @@ -4172,24 +4221,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_Ambient_finalize) static bool js_scene_Ambient_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::scene::Ambient* cobj = JSB_ALLOC(cc::scene::Ambient); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::scene::Ambient* cobj = JSB_ALLOC(cc::scene::Ambient); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -4214,7 +4265,7 @@ static bool js_scene_Ambient_constructor(se::State& s) // NOLINT(readability-ide ok &= sevalue_to_native(args[3], &(cobj->groundAlbedo), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -4226,10 +4277,13 @@ static bool js_scene_Ambient_constructor(se::State& s) // NOLINT(readability-ide } SE_BIND_CTOR(js_scene_Ambient_constructor, __jsb_cc_scene_Ambient_class, js_cc_scene_Ambient_finalize) + + static bool js_cc_scene_Ambient_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -4257,7 +4311,7 @@ bool js_register_scene_Ambient(se::Object* obj) // NOLINT(readability-identifier return true; } se::Object* __jsb_cc_scene_OctreeInfo_proto = nullptr; -se::Class* __jsb_cc_scene_OctreeInfo_class = nullptr; +se::Class* __jsb_cc_scene_OctreeInfo_class = nullptr; static bool js_scene_OctreeInfo_get_enabled(se::State& s) // NOLINT(readability-identifier-naming) { @@ -4265,7 +4319,7 @@ static bool js_scene_OctreeInfo_get_enabled(se::State& s) // NOLINT(readability- SE_PRECONDITION2(cobj, false, "js_scene_OctreeInfo_get_enabled : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->enabled, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->enabled, s.thisObject(), s.rval()); @@ -4276,7 +4330,7 @@ SE_BIND_PROP_GET(js_scene_OctreeInfo_get_enabled) static bool js_scene_OctreeInfo_set_enabled(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_OctreeInfo_set_enabled : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4292,7 +4346,7 @@ static bool js_scene_OctreeInfo_get_minPos(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_scene_OctreeInfo_get_minPos : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->minPos, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->minPos, s.thisObject(), s.rval()); @@ -4303,7 +4357,7 @@ SE_BIND_PROP_GET(js_scene_OctreeInfo_get_minPos) static bool js_scene_OctreeInfo_set_minPos(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_OctreeInfo_set_minPos : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4319,7 +4373,7 @@ static bool js_scene_OctreeInfo_get_maxPos(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_scene_OctreeInfo_get_maxPos : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxPos, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxPos, s.thisObject(), s.rval()); @@ -4330,7 +4384,7 @@ SE_BIND_PROP_GET(js_scene_OctreeInfo_get_maxPos) static bool js_scene_OctreeInfo_set_maxPos(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_OctreeInfo_set_maxPos : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4346,7 +4400,7 @@ static bool js_scene_OctreeInfo_get_depth(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_scene_OctreeInfo_get_depth : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->depth, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->depth, s.thisObject(), s.rval()); @@ -4357,7 +4411,7 @@ SE_BIND_PROP_GET(js_scene_OctreeInfo_get_depth) static bool js_scene_OctreeInfo_set_depth(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_OctreeInfo_set_depth : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4367,31 +4421,33 @@ static bool js_scene_OctreeInfo_set_depth(se::State& s) // NOLINT(readability-id } SE_BIND_PROP_SET(js_scene_OctreeInfo_set_depth) -template <> -bool sevalue_to_native(const se::Value& from, cc::scene::OctreeInfo* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::scene::OctreeInfo * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("enabled", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->enabled), ctx); } json->getProperty("minPos", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->minPos), ctx); } json->getProperty("maxPos", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxPos), ctx); } json->getProperty("depth", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->depth), ctx); } return ok; @@ -4401,24 +4457,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_OctreeInfo_finalize) static bool js_scene_OctreeInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::scene::OctreeInfo* cobj = JSB_ALLOC(cc::scene::OctreeInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::scene::OctreeInfo* cobj = JSB_ALLOC(cc::scene::OctreeInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -4443,7 +4501,7 @@ static bool js_scene_OctreeInfo_constructor(se::State& s) // NOLINT(readability- ok &= sevalue_to_native(args[3], &(cobj->depth), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -4455,10 +4513,13 @@ static bool js_scene_OctreeInfo_constructor(se::State& s) // NOLINT(readability- } SE_BIND_CTOR(js_scene_OctreeInfo_constructor, __jsb_cc_scene_OctreeInfo_class, js_cc_scene_OctreeInfo_finalize) + + static bool js_cc_scene_OctreeInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -4486,7 +4547,7 @@ bool js_register_scene_OctreeInfo(se::Object* obj) // NOLINT(readability-identif return true; } se::Object* __jsb_cc_scene_PipelineSharedSceneData_proto = nullptr; -se::Class* __jsb_cc_scene_PipelineSharedSceneData_class = nullptr; +se::Class* __jsb_cc_scene_PipelineSharedSceneData_class = nullptr; static bool js_scene_PipelineSharedSceneData_get_isHDR(se::State& s) // NOLINT(readability-identifier-naming) { @@ -4494,7 +4555,7 @@ static bool js_scene_PipelineSharedSceneData_get_isHDR(se::State& s) // NOLINT(r SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_isHDR : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->isHDR, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->isHDR, s.thisObject(), s.rval()); @@ -4505,7 +4566,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_isHDR) static bool js_scene_PipelineSharedSceneData_set_isHDR(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_isHDR : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4521,7 +4582,7 @@ static bool js_scene_PipelineSharedSceneData_get_shadingScale(se::State& s) // N SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_shadingScale : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->shadingScale, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->shadingScale, s.thisObject(), s.rval()); @@ -4532,7 +4593,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_shadingScale) static bool js_scene_PipelineSharedSceneData_set_shadingScale(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_shadingScale : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4548,7 +4609,7 @@ static bool js_scene_PipelineSharedSceneData_get_ambient(se::State& s) // NOLINT SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_ambient : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->ambient, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->ambient, s.thisObject(), s.rval()); @@ -4559,7 +4620,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_ambient) static bool js_scene_PipelineSharedSceneData_set_ambient(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_ambient : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4575,7 +4636,7 @@ static bool js_scene_PipelineSharedSceneData_get_shadow(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_shadow : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->shadow, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->shadow, s.thisObject(), s.rval()); @@ -4586,7 +4647,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_shadow) static bool js_scene_PipelineSharedSceneData_set_shadow(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_shadow : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4602,7 +4663,7 @@ static bool js_scene_PipelineSharedSceneData_get_skybox(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_skybox : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->skybox, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->skybox, s.thisObject(), s.rval()); @@ -4613,7 +4674,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_skybox) static bool js_scene_PipelineSharedSceneData_set_skybox(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_skybox : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4629,7 +4690,7 @@ static bool js_scene_PipelineSharedSceneData_get_fog(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_fog : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->fog, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->fog, s.thisObject(), s.rval()); @@ -4640,7 +4701,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_fog) static bool js_scene_PipelineSharedSceneData_set_fog(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_fog : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4656,7 +4717,7 @@ static bool js_scene_PipelineSharedSceneData_get_octree(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_octree : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->octree, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->octree, s.thisObject(), s.rval()); @@ -4667,7 +4728,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_octree) static bool js_scene_PipelineSharedSceneData_set_octree(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_octree : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4683,7 +4744,7 @@ static bool js_scene_PipelineSharedSceneData_get_geometryRendererPasses(se::Stat SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_geometryRendererPasses : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->geometryRendererPasses, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->geometryRendererPasses, s.thisObject(), s.rval()); @@ -4694,7 +4755,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_geometryRendererPasses) static bool js_scene_PipelineSharedSceneData_set_geometryRendererPasses(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_geometryRendererPasses : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4710,7 +4771,7 @@ static bool js_scene_PipelineSharedSceneData_get_geometryRendererShaders(se::Sta SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_geometryRendererShaders : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->geometryRendererShaders, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->geometryRendererShaders, s.thisObject(), s.rval()); @@ -4721,7 +4782,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_geometryRendererShaders) static bool js_scene_PipelineSharedSceneData_set_geometryRendererShaders(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_geometryRendererShaders : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4737,7 +4798,7 @@ static bool js_scene_PipelineSharedSceneData_get_occlusionQueryInputAssembler(se SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_occlusionQueryInputAssembler : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->occlusionQueryInputAssembler, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->occlusionQueryInputAssembler, s.thisObject(), s.rval()); @@ -4748,7 +4809,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_occlusionQueryInputAssembl static bool js_scene_PipelineSharedSceneData_set_occlusionQueryInputAssembler(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_occlusionQueryInputAssembler : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4764,7 +4825,7 @@ static bool js_scene_PipelineSharedSceneData_get_occlusionQueryPass(se::State& s SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_occlusionQueryPass : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->occlusionQueryPass, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->occlusionQueryPass, s.thisObject(), s.rval()); @@ -4775,7 +4836,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_occlusionQueryPass) static bool js_scene_PipelineSharedSceneData_set_occlusionQueryPass(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_occlusionQueryPass : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4791,7 +4852,7 @@ static bool js_scene_PipelineSharedSceneData_get_occlusionQueryShader(se::State& SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_occlusionQueryShader : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->occlusionQueryShader, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->occlusionQueryShader, s.thisObject(), s.rval()); @@ -4802,7 +4863,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_occlusionQueryShader) static bool js_scene_PipelineSharedSceneData_set_occlusionQueryShader(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_occlusionQueryShader : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4818,7 +4879,7 @@ static bool js_scene_PipelineSharedSceneData_get_deferredLightPass(se::State& s) SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_deferredLightPass : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->deferredLightPass, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->deferredLightPass, s.thisObject(), s.rval()); @@ -4829,7 +4890,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_deferredLightPass) static bool js_scene_PipelineSharedSceneData_set_deferredLightPass(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_deferredLightPass : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4845,7 +4906,7 @@ static bool js_scene_PipelineSharedSceneData_get_deferredLightPassShader(se::Sta SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_deferredLightPassShader : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->deferredLightPassShader, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->deferredLightPassShader, s.thisObject(), s.rval()); @@ -4856,7 +4917,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_deferredLightPassShader) static bool js_scene_PipelineSharedSceneData_set_deferredLightPassShader(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_deferredLightPassShader : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4872,7 +4933,7 @@ static bool js_scene_PipelineSharedSceneData_get_bloomPrefilterPass(se::State& s SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_bloomPrefilterPass : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->bloomPrefilterPass, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->bloomPrefilterPass, s.thisObject(), s.rval()); @@ -4883,7 +4944,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_bloomPrefilterPass) static bool js_scene_PipelineSharedSceneData_set_bloomPrefilterPass(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_bloomPrefilterPass : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4899,7 +4960,7 @@ static bool js_scene_PipelineSharedSceneData_get_bloomPrefilterPassShader(se::St SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_bloomPrefilterPassShader : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->bloomPrefilterPassShader, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->bloomPrefilterPassShader, s.thisObject(), s.rval()); @@ -4910,7 +4971,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_bloomPrefilterPassShader) static bool js_scene_PipelineSharedSceneData_set_bloomPrefilterPassShader(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_bloomPrefilterPassShader : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4926,7 +4987,7 @@ static bool js_scene_PipelineSharedSceneData_get_bloomDownsamplePass(se::State& SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_bloomDownsamplePass : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->bloomDownsamplePass, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->bloomDownsamplePass, s.thisObject(), s.rval()); @@ -4937,7 +4998,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_bloomDownsamplePass) static bool js_scene_PipelineSharedSceneData_set_bloomDownsamplePass(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_bloomDownsamplePass : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4953,7 +5014,7 @@ static bool js_scene_PipelineSharedSceneData_get_bloomDownsamplePassShader(se::S SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_bloomDownsamplePassShader : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->bloomDownsamplePassShader, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->bloomDownsamplePassShader, s.thisObject(), s.rval()); @@ -4964,7 +5025,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_bloomDownsamplePassShader) static bool js_scene_PipelineSharedSceneData_set_bloomDownsamplePassShader(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_bloomDownsamplePassShader : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4980,7 +5041,7 @@ static bool js_scene_PipelineSharedSceneData_get_bloomUpsamplePass(se::State& s) SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_bloomUpsamplePass : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->bloomUpsamplePass, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->bloomUpsamplePass, s.thisObject(), s.rval()); @@ -4991,7 +5052,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_bloomUpsamplePass) static bool js_scene_PipelineSharedSceneData_set_bloomUpsamplePass(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_bloomUpsamplePass : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5007,7 +5068,7 @@ static bool js_scene_PipelineSharedSceneData_get_bloomUpsamplePassShader(se::Sta SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_bloomUpsamplePassShader : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->bloomUpsamplePassShader, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->bloomUpsamplePassShader, s.thisObject(), s.rval()); @@ -5018,7 +5079,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_bloomUpsamplePassShader) static bool js_scene_PipelineSharedSceneData_set_bloomUpsamplePassShader(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_bloomUpsamplePassShader : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5034,7 +5095,7 @@ static bool js_scene_PipelineSharedSceneData_get_bloomCombinePass(se::State& s) SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_bloomCombinePass : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->bloomCombinePass, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->bloomCombinePass, s.thisObject(), s.rval()); @@ -5045,7 +5106,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_bloomCombinePass) static bool js_scene_PipelineSharedSceneData_set_bloomCombinePass(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_bloomCombinePass : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5061,7 +5122,7 @@ static bool js_scene_PipelineSharedSceneData_get_bloomCombinePassShader(se::Stat SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_bloomCombinePassShader : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->bloomCombinePassShader, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->bloomCombinePassShader, s.thisObject(), s.rval()); @@ -5072,7 +5133,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_bloomCombinePassShader) static bool js_scene_PipelineSharedSceneData_set_bloomCombinePassShader(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_bloomCombinePassShader : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5088,7 +5149,7 @@ static bool js_scene_PipelineSharedSceneData_get_pipelinePostPass(se::State& s) SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_pipelinePostPass : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->pipelinePostPass, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->pipelinePostPass, s.thisObject(), s.rval()); @@ -5099,7 +5160,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_pipelinePostPass) static bool js_scene_PipelineSharedSceneData_set_pipelinePostPass(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_pipelinePostPass : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5115,7 +5176,7 @@ static bool js_scene_PipelineSharedSceneData_get_pipelinePostPassShader(se::Stat SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_pipelinePostPassShader : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->pipelinePostPassShader, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->pipelinePostPassShader, s.thisObject(), s.rval()); @@ -5126,7 +5187,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_pipelinePostPassShader) static bool js_scene_PipelineSharedSceneData_set_pipelinePostPassShader(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_pipelinePostPassShader : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5136,111 +5197,113 @@ static bool js_scene_PipelineSharedSceneData_set_pipelinePostPassShader(se::Stat } SE_BIND_PROP_SET(js_scene_PipelineSharedSceneData_set_pipelinePostPassShader) -template <> -bool sevalue_to_native(const se::Value& from, cc::scene::PipelineSharedSceneData* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::scene::PipelineSharedSceneData * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("isHDR", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->isHDR), ctx); } json->getProperty("shadingScale", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->shadingScale), ctx); } json->getProperty("ambient", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->ambient), ctx); } json->getProperty("shadow", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->shadow), ctx); } json->getProperty("skybox", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->skybox), ctx); } json->getProperty("fog", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->fog), ctx); } json->getProperty("octree", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->octree), ctx); } json->getProperty("geometryRendererPasses", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->geometryRendererPasses), ctx); } json->getProperty("geometryRendererShaders", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->geometryRendererShaders), ctx); } json->getProperty("occlusionQueryInputAssembler", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->occlusionQueryInputAssembler), ctx); } json->getProperty("occlusionQueryPass", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->occlusionQueryPass), ctx); } json->getProperty("occlusionQueryShader", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->occlusionQueryShader), ctx); } json->getProperty("deferredLightPass", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->deferredLightPass), ctx); } json->getProperty("deferredLightPassShader", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->deferredLightPassShader), ctx); } json->getProperty("bloomPrefilterPass", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bloomPrefilterPass), ctx); } json->getProperty("bloomPrefilterPassShader", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bloomPrefilterPassShader), ctx); } json->getProperty("bloomDownsamplePass", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bloomDownsamplePass), ctx); } json->getProperty("bloomDownsamplePassShader", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bloomDownsamplePassShader), ctx); } json->getProperty("bloomUpsamplePass", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bloomUpsamplePass), ctx); } json->getProperty("bloomUpsamplePassShader", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bloomUpsamplePassShader), ctx); } json->getProperty("bloomCombinePass", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bloomCombinePass), ctx); } json->getProperty("bloomCombinePassShader", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bloomCombinePassShader), ctx); } json->getProperty("pipelinePostPass", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->pipelinePostPass), ctx); } json->getProperty("pipelinePostPassShader", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->pipelinePostPassShader), ctx); } return ok; @@ -5250,24 +5313,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_PipelineSharedSceneData_finalize) static bool js_scene_PipelineSharedSceneData_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::scene::PipelineSharedSceneData* cobj = JSB_ALLOC(cc::scene::PipelineSharedSceneData); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::scene::PipelineSharedSceneData* cobj = JSB_ALLOC(cc::scene::PipelineSharedSceneData); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -5352,7 +5417,7 @@ static bool js_scene_PipelineSharedSceneData_constructor(se::State& s) // NOLINT ok &= sevalue_to_native(args[23], &(cobj->pipelinePostPassShader), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -5364,10 +5429,13 @@ static bool js_scene_PipelineSharedSceneData_constructor(se::State& s) // NOLINT } SE_BIND_CTOR(js_scene_PipelineSharedSceneData_constructor, __jsb_cc_scene_PipelineSharedSceneData_class, js_cc_scene_PipelineSharedSceneData_finalize) + + static bool js_cc_scene_PipelineSharedSceneData_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -5415,7 +5483,7 @@ bool js_register_scene_PipelineSharedSceneData(se::Object* obj) // NOLINT(readab return true; } se::Object* __jsb_cc_scene_Root_proto = nullptr; -se::Class* __jsb_cc_scene_Root_class = nullptr; +se::Class* __jsb_cc_scene_Root_class = nullptr; static bool js_scene_Root_get_cumulativeTime(se::State& s) // NOLINT(readability-identifier-naming) { @@ -5423,7 +5491,7 @@ static bool js_scene_Root_get_cumulativeTime(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_scene_Root_get_cumulativeTime : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->cumulativeTime, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->cumulativeTime, s.thisObject(), s.rval()); @@ -5434,7 +5502,7 @@ SE_BIND_PROP_GET(js_scene_Root_get_cumulativeTime) static bool js_scene_Root_set_cumulativeTime(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Root_set_cumulativeTime : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5450,7 +5518,7 @@ static bool js_scene_Root_get_frameTime(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_scene_Root_get_frameTime : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->frameTime, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->frameTime, s.thisObject(), s.rval()); @@ -5461,7 +5529,7 @@ SE_BIND_PROP_GET(js_scene_Root_get_frameTime) static bool js_scene_Root_set_frameTime(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Root_set_frameTime : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5471,23 +5539,25 @@ static bool js_scene_Root_set_frameTime(se::State& s) // NOLINT(readability-iden } SE_BIND_PROP_SET(js_scene_Root_set_frameTime) -template <> -bool sevalue_to_native(const se::Value& from, cc::scene::Root* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::scene::Root * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("cumulativeTime", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->cumulativeTime), ctx); } json->getProperty("frameTime", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->frameTime), ctx); } return ok; @@ -5497,24 +5567,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_Root_finalize) static bool js_scene_Root_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::scene::Root* cobj = JSB_ALLOC(cc::scene::Root); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::scene::Root* cobj = JSB_ALLOC(cc::scene::Root); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -5533,7 +5605,7 @@ static bool js_scene_Root_constructor(se::State& s) // NOLINT(readability-identi ok &= sevalue_to_native(args[1], &(cobj->frameTime), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -5545,10 +5617,13 @@ static bool js_scene_Root_constructor(se::State& s) // NOLINT(readability-identi } SE_BIND_CTOR(js_scene_Root_constructor, __jsb_cc_scene_Root_class, js_cc_scene_Root_finalize) + + static bool js_cc_scene_Root_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -5574,15 +5649,15 @@ bool js_register_scene_Root(se::Object* obj) // NOLINT(readability-identifier-na return true; } se::Object* __jsb_cc_scene_SubModel_proto = nullptr; -se::Class* __jsb_cc_scene_SubModel_class = nullptr; +se::Class* __jsb_cc_scene_SubModel_class = nullptr; static bool js_scene_SubModel_getId(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_getId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5599,9 +5674,9 @@ static bool js_scene_SubModel_getOwner(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_getOwner : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::Model* result = cobj->getOwner(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5618,9 +5693,9 @@ static bool js_scene_SubModel_getPass(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_getPass : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5640,11 +5715,11 @@ static bool js_scene_SubModel_getPasses(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_getPasses : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - const std::vector& result = cobj->getPasses(); + const std::vector& result = cobj->getPasses(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_scene_SubModel_getPasses : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -5659,9 +5734,9 @@ static bool js_scene_SubModel_getPlanarInstanceShader(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_getPlanarInstanceShader : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::Shader* result = cobj->getPlanarInstanceShader(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5678,9 +5753,9 @@ static bool js_scene_SubModel_getPlanarShader(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_getPlanarShader : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::Shader* result = cobj->getPlanarShader(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5697,9 +5772,9 @@ static bool js_scene_SubModel_getPriority(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_getPriority : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getPriority()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5716,9 +5791,9 @@ static bool js_scene_SubModel_getShader(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_getShader : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5738,11 +5813,11 @@ static bool js_scene_SubModel_getShaders(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_getShaders : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - std::vector& result = cobj->getShaders(); + std::vector& result = cobj->getShaders(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_scene_SubModel_getShaders : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -5757,9 +5832,9 @@ static bool js_scene_SubModel_getWorldBoundDescriptorSet(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_getWorldBoundDescriptorSet : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::DescriptorSet* result = cobj->getWorldBoundDescriptorSet(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5776,9 +5851,9 @@ static bool js_scene_SubModel_setDescriptorSet(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_setDescriptorSet : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5795,9 +5870,9 @@ static bool js_scene_SubModel_setInputAssembler(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_setInputAssembler : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5814,9 +5889,9 @@ static bool js_scene_SubModel_setOwner(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_setOwner : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5833,11 +5908,11 @@ static bool js_scene_SubModel_setPasses(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_setPasses : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); SE_PRECONDITION2(ok, false, "js_scene_SubModel_setPasses : Error processing arguments"); cobj->setPasses(arg0.value()); @@ -5852,9 +5927,9 @@ static bool js_scene_SubModel_setPlanarInstanceShader(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_setPlanarInstanceShader : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5871,9 +5946,9 @@ static bool js_scene_SubModel_setPlanarShader(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_setPlanarShader : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5890,9 +5965,9 @@ static bool js_scene_SubModel_setPriority(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_setPriority : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5909,11 +5984,11 @@ static bool js_scene_SubModel_setShaders(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_setShaders : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); SE_PRECONDITION2(ok, false, "js_scene_SubModel_setShaders : Error processing arguments"); cobj->setShaders(arg0.value()); @@ -5928,9 +6003,9 @@ static bool js_scene_SubModel_setWorldBoundDescriptorSet(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_setWorldBoundDescriptorSet : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5948,7 +6023,7 @@ static bool js_scene_SubModel_update(se::State& s) // NOLINT(readability-identif auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_update : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->update(); return true; @@ -5969,10 +6044,13 @@ static bool js_scene_SubModel_constructor(se::State& s) // NOLINT(readability-id } SE_BIND_CTOR(js_scene_SubModel_constructor, __jsb_cc_scene_SubModel_class, js_cc_scene_SubModel_finalize) + + static bool js_cc_scene_SubModel_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -6016,15 +6094,15 @@ bool js_register_scene_SubModel(se::Object* obj) // NOLINT(readability-identifie return true; } se::Object* __jsb_cc_scene_Pass_proto = nullptr; -se::Class* __jsb_cc_scene_Pass_class = nullptr; +se::Class* __jsb_cc_scene_Pass_class = nullptr; static bool js_scene_Pass_getBatchingScheme(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_getBatchingScheme : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getBatchingScheme()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6041,9 +6119,9 @@ static bool js_scene_Pass_getBlendState(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_getBlendState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::BlendState* result = cobj->getBlendState(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6060,9 +6138,9 @@ static bool js_scene_Pass_getDepthStencilState(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_getDepthStencilState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::DepthStencilState* result = cobj->getDepthStencilState(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6079,9 +6157,9 @@ static bool js_scene_Pass_getDescriptorSet(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_getDescriptorSet : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::DescriptorSet* result = cobj->getDescriptorSet(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6098,9 +6176,9 @@ static bool js_scene_Pass_getDynamicState(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_getDynamicState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getDynamicState()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6117,9 +6195,9 @@ static bool js_scene_Pass_getHash(se::State& s) // NOLINT(readability-identifier { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_getHash : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getHash(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6136,9 +6214,9 @@ static bool js_scene_Pass_getPhase(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_getPhase : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getPhase(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6155,9 +6233,9 @@ static bool js_scene_Pass_getPipelineLayout(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_getPipelineLayout : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::PipelineLayout* result = cobj->getPipelineLayout(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6174,9 +6252,9 @@ static bool js_scene_Pass_getPrimitive(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_getPrimitive : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getPrimitive()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6193,9 +6271,9 @@ static bool js_scene_Pass_getPriority(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_getPriority : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getPriority()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6212,9 +6290,9 @@ static bool js_scene_Pass_getRasterizerState(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_getRasterizerState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::RasterizerState* result = cobj->getRasterizerState(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6231,9 +6309,9 @@ static bool js_scene_Pass_getStage(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_getStage : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getStage()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6250,9 +6328,9 @@ static bool js_scene_Pass_initWithData(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_initWithData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6269,9 +6347,9 @@ static bool js_scene_Pass_setBatchingScheme(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setBatchingScheme : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6288,9 +6366,9 @@ static bool js_scene_Pass_setBlendState(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setBlendState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6307,9 +6385,9 @@ static bool js_scene_Pass_setDepthStencilState(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setDepthStencilState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6326,9 +6404,9 @@ static bool js_scene_Pass_setDescriptorSet(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setDescriptorSet : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6345,9 +6423,9 @@ static bool js_scene_Pass_setDynamicState(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setDynamicState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6364,9 +6442,9 @@ static bool js_scene_Pass_setHash(se::State& s) // NOLINT(readability-identifier { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setHash : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6383,9 +6461,9 @@ static bool js_scene_Pass_setPhase(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setPhase : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6402,9 +6480,9 @@ static bool js_scene_Pass_setPipelineLayout(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setPipelineLayout : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6421,9 +6499,9 @@ static bool js_scene_Pass_setPrimitive(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setPrimitive : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6440,9 +6518,9 @@ static bool js_scene_Pass_setPriority(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setPriority : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6459,9 +6537,9 @@ static bool js_scene_Pass_setRasterizerState(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setRasterizerState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6478,9 +6556,9 @@ static bool js_scene_Pass_setRootBufferDirty(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setRootBufferDirty : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6497,9 +6575,9 @@ static bool js_scene_Pass_setStage(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setStage : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6517,7 +6595,7 @@ static bool js_scene_Pass_update(se::State& s) // NOLINT(readability-identifier- auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_update : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->update(); return true; @@ -6538,10 +6616,13 @@ static bool js_scene_Pass_constructor(se::State& s) // NOLINT(readability-identi } SE_BIND_CTOR(js_scene_Pass_constructor, __jsb_cc_scene_Pass_class, js_cc_scene_Pass_finalize) + + static bool js_cc_scene_Pass_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -6592,15 +6673,15 @@ bool js_register_scene_Pass(se::Object* obj) // NOLINT(readability-identifier-na return true; } se::Object* __jsb_cc_scene_BakedAnimInfo_proto = nullptr; -se::Class* __jsb_cc_scene_BakedAnimInfo_class = nullptr; +se::Class* __jsb_cc_scene_BakedAnimInfo_class = nullptr; static bool js_scene_BakedAnimInfo_getDirty(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_BakedAnimInfo_getDirty : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getDirty(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6613,27 +6694,29 @@ static bool js_scene_BakedAnimInfo_getDirty(se::State& s) // NOLINT(readability- } SE_BIND_FUNC(js_scene_BakedAnimInfo_getDirty) -template <> -bool sevalue_to_native(const se::Value& from, cc::scene::BakedAnimInfo* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::scene::BakedAnimInfo * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("buffer", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->buffer), ctx); } json->getProperty("data", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->data), ctx); } json->getProperty("dirty", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->dirty), ctx); } return ok; @@ -6643,24 +6726,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_BakedAnimInfo_finalize) static bool js_scene_BakedAnimInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::scene::BakedAnimInfo* cobj = JSB_ALLOC(cc::scene::BakedAnimInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::scene::BakedAnimInfo* cobj = JSB_ALLOC(cc::scene::BakedAnimInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -6682,7 +6767,7 @@ static bool js_scene_BakedAnimInfo_constructor(se::State& s) // NOLINT(readabili ok &= sevalue_to_native(args[2], &(cobj->dirty), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -6694,10 +6779,13 @@ static bool js_scene_BakedAnimInfo_constructor(se::State& s) // NOLINT(readabili } SE_BIND_CTOR(js_scene_BakedAnimInfo_constructor, __jsb_cc_scene_BakedAnimInfo_class, js_cc_scene_BakedAnimInfo_finalize) + + static bool js_cc_scene_BakedAnimInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -6722,33 +6810,35 @@ bool js_register_scene_BakedAnimInfo(se::Object* obj) // NOLINT(readability-iden return true; } se::Object* __jsb_cc_scene_BakedJointInfo_proto = nullptr; -se::Class* __jsb_cc_scene_BakedJointInfo_class = nullptr; +se::Class* __jsb_cc_scene_BakedJointInfo_class = nullptr; -template <> -bool sevalue_to_native(const se::Value& from, cc::scene::BakedJointInfo* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::scene::BakedJointInfo * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("boundsInfo", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->boundsInfo), ctx); } json->getProperty("jointTextureInfo", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->jointTextureInfo), ctx); } json->getProperty("animInfo", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->animInfo), ctx); } json->getProperty("buffer", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->buffer), ctx); } return ok; @@ -6758,24 +6848,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_BakedJointInfo_finalize) static bool js_scene_BakedJointInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::scene::BakedJointInfo* cobj = JSB_ALLOC(cc::scene::BakedJointInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::scene::BakedJointInfo* cobj = JSB_ALLOC(cc::scene::BakedJointInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -6800,7 +6892,7 @@ static bool js_scene_BakedJointInfo_constructor(se::State& s) // NOLINT(readabil ok &= sevalue_to_native(args[3], &(cobj->buffer), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -6812,10 +6904,13 @@ static bool js_scene_BakedJointInfo_constructor(se::State& s) // NOLINT(readabil } SE_BIND_CTOR(js_scene_BakedJointInfo_constructor, __jsb_cc_scene_BakedJointInfo_class, js_cc_scene_BakedJointInfo_finalize) + + static bool js_cc_scene_BakedJointInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -6839,15 +6934,15 @@ bool js_register_scene_BakedJointInfo(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_cc_scene_BakedSkinningModel_proto = nullptr; -se::Class* __jsb_cc_scene_BakedSkinningModel_class = nullptr; +se::Class* __jsb_cc_scene_BakedSkinningModel_class = nullptr; static bool js_scene_BakedSkinningModel_setAnimInfoIdx(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_BakedSkinningModel_setAnimInfoIdx : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6864,11 +6959,11 @@ static bool js_scene_BakedSkinningModel_setJointMedium(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_BakedSkinningModel_setJointMedium : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -6885,9 +6980,9 @@ static bool js_scene_BakedSkinningModel_updateModelBounds(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_BakedSkinningModel_updateModelBounds : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6911,10 +7006,13 @@ static bool js_scene_BakedSkinningModel_constructor(se::State& s) // NOLINT(read } SE_BIND_CTOR(js_scene_BakedSkinningModel_constructor, __jsb_cc_scene_BakedSkinningModel_class, js_cc_scene_BakedSkinningModel_finalize) + + static bool js_cc_scene_BakedSkinningModel_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -6941,37 +7039,39 @@ bool js_register_scene_BakedSkinningModel(se::Object* obj) // NOLINT(readability return true; } se::Object* __jsb_cc_scene_DrawBatch2D_proto = nullptr; -se::Class* __jsb_cc_scene_DrawBatch2D_class = nullptr; +se::Class* __jsb_cc_scene_DrawBatch2D_class = nullptr; -template <> -bool sevalue_to_native(const se::Value& from, cc::scene::DrawBatch2D* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::scene::DrawBatch2D * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("visFlags", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->visFlags), ctx); } json->getProperty("descriptorSet", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->descriptorSet), ctx); } json->getProperty("inputAssembler", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->inputAssembler), ctx); } json->getProperty("passes", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->passes), ctx); } json->getProperty("shaders", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->shaders), ctx); } return ok; @@ -6981,24 +7081,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_DrawBatch2D_finalize) static bool js_scene_DrawBatch2D_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::scene::DrawBatch2D* cobj = JSB_ALLOC(cc::scene::DrawBatch2D); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::scene::DrawBatch2D* cobj = JSB_ALLOC(cc::scene::DrawBatch2D); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -7026,7 +7128,7 @@ static bool js_scene_DrawBatch2D_constructor(se::State& s) // NOLINT(readability ok &= sevalue_to_native(args[4], &(cobj->shaders), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -7038,10 +7140,13 @@ static bool js_scene_DrawBatch2D_constructor(se::State& s) // NOLINT(readability } SE_BIND_CTOR(js_scene_DrawBatch2D_constructor, __jsb_cc_scene_DrawBatch2D_class, js_cc_scene_DrawBatch2D_finalize) + + static bool js_cc_scene_DrawBatch2D_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -7065,33 +7170,35 @@ bool js_register_scene_DrawBatch2D(se::Object* obj) // NOLINT(readability-identi return true; } se::Object* __jsb_cc_scene_JointTransform_proto = nullptr; -se::Class* __jsb_cc_scene_JointTransform_class = nullptr; +se::Class* __jsb_cc_scene_JointTransform_class = nullptr; -template <> -bool sevalue_to_native(const se::Value& from, cc::scene::JointTransform* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::scene::JointTransform * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("node", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->node), ctx); } json->getProperty("local", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->local), ctx); } json->getProperty("world", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->world), ctx); } json->getProperty("stamp", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stamp), ctx); } return ok; @@ -7101,24 +7208,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_JointTransform_finalize) static bool js_scene_JointTransform_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::scene::JointTransform* cobj = JSB_ALLOC(cc::scene::JointTransform); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::scene::JointTransform* cobj = JSB_ALLOC(cc::scene::JointTransform); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -7143,7 +7252,7 @@ static bool js_scene_JointTransform_constructor(se::State& s) // NOLINT(readabil ok &= sevalue_to_native(args[3], &(cobj->stamp), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -7155,10 +7264,13 @@ static bool js_scene_JointTransform_constructor(se::State& s) // NOLINT(readabil } SE_BIND_CTOR(js_scene_JointTransform_constructor, __jsb_cc_scene_JointTransform_class, js_cc_scene_JointTransform_finalize) + + static bool js_cc_scene_JointTransform_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -7182,45 +7294,47 @@ bool js_register_scene_JointTransform(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_cc_scene_JointInfo_proto = nullptr; -se::Class* __jsb_cc_scene_JointInfo_class = nullptr; +se::Class* __jsb_cc_scene_JointInfo_class = nullptr; -template <> -bool sevalue_to_native(const se::Value& from, cc::scene::JointInfo* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::scene::JointInfo * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("bound", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bound), ctx); } json->getProperty("target", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->target), ctx); } json->getProperty("bindpose", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bindpose), ctx); } json->getProperty("transform", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->transform), ctx); } json->getProperty("parents", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->parents), ctx); } json->getProperty("buffers", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->buffers), ctx); } json->getProperty("indices", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->indices), ctx); } return ok; @@ -7230,24 +7344,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_JointInfo_finalize) static bool js_scene_JointInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::scene::JointInfo* cobj = JSB_ALLOC(cc::scene::JointInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::scene::JointInfo* cobj = JSB_ALLOC(cc::scene::JointInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -7281,7 +7397,7 @@ static bool js_scene_JointInfo_constructor(se::State& s) // NOLINT(readability-i ok &= sevalue_to_native(args[6], &(cobj->indices), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -7293,10 +7409,13 @@ static bool js_scene_JointInfo_constructor(se::State& s) // NOLINT(readability-i } SE_BIND_CTOR(js_scene_JointInfo_constructor, __jsb_cc_scene_JointInfo_class, js_cc_scene_JointInfo_finalize) + + static bool js_cc_scene_JointInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -7320,17 +7439,17 @@ bool js_register_scene_JointInfo(se::Object* obj) // NOLINT(readability-identifi return true; } se::Object* __jsb_cc_scene_SkinningModel_proto = nullptr; -se::Class* __jsb_cc_scene_SkinningModel_class = nullptr; +se::Class* __jsb_cc_scene_SkinningModel_class = nullptr; static bool js_scene_SkinningModel_setBuffers(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SkinningModel_setBuffers : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, false> arg0 = {}; + HolderType, false> arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); SE_PRECONDITION2(ok, false, "js_scene_SkinningModel_setBuffers : Error processing arguments"); cobj->setBuffers(arg0.value()); @@ -7345,11 +7464,11 @@ static bool js_scene_SkinningModel_setIndicesAndJoints(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SkinningModel_setIndicesAndJoints : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType, false> arg0 = {}; + HolderType, false> arg0 = {}; HolderType, false> arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -7366,9 +7485,9 @@ static bool js_scene_SkinningModel_setNeedUpdate(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SkinningModel_setNeedUpdate : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7385,11 +7504,11 @@ static bool js_scene_SkinningModel_updateLocalDescriptors(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SkinningModel_updateLocalDescriptors : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -7413,10 +7532,13 @@ static bool js_scene_SkinningModel_constructor(se::State& s) // NOLINT(readabili } SE_BIND_CTOR(js_scene_SkinningModel_constructor, __jsb_cc_scene_SkinningModel_class, js_cc_scene_SkinningModel_finalize) + + static bool js_cc_scene_SkinningModel_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -7444,14 +7566,14 @@ bool js_register_scene_SkinningModel(se::Object* obj) // NOLINT(readability-iden return true; } se::Object* __jsb_cc_scene_RenderScene_proto = nullptr; -se::Class* __jsb_cc_scene_RenderScene_class = nullptr; +se::Class* __jsb_cc_scene_RenderScene_class = nullptr; static bool js_scene_RenderScene_activate(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_activate : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->activate(); return true; @@ -7465,9 +7587,9 @@ static bool js_scene_RenderScene_addBakedSkinningModel(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_addBakedSkinningModel : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7484,9 +7606,9 @@ static bool js_scene_RenderScene_addBatch(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_addBatch : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7503,9 +7625,9 @@ static bool js_scene_RenderScene_addModel(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_addModel : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7522,9 +7644,9 @@ static bool js_scene_RenderScene_addSkinningModel(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_addSkinningModel : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7541,9 +7663,9 @@ static bool js_scene_RenderScene_addSphereLight(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_addSphereLight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7560,9 +7682,9 @@ static bool js_scene_RenderScene_addSpotLight(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_addSpotLight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7579,11 +7701,11 @@ static bool js_scene_RenderScene_getDrawBatch2Ds(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_getDrawBatch2Ds : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - const std::vector& result = cobj->getDrawBatch2Ds(); + const std::vector& result = cobj->getDrawBatch2Ds(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_scene_RenderScene_getDrawBatch2Ds : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -7598,9 +7720,9 @@ static bool js_scene_RenderScene_getMainLight(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_getMainLight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::DirectionalLight* result = cobj->getMainLight(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7617,11 +7739,11 @@ static bool js_scene_RenderScene_getModels(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_getModels : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - const std::vector& result = cobj->getModels(); + const std::vector& result = cobj->getModels(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_scene_RenderScene_getModels : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -7636,11 +7758,11 @@ static bool js_scene_RenderScene_getSphereLights(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_getSphereLights : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - const std::vector& result = cobj->getSphereLights(); + const std::vector& result = cobj->getSphereLights(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_scene_RenderScene_getSphereLights : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -7655,11 +7777,11 @@ static bool js_scene_RenderScene_getSpotLights(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_getSpotLights : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - const std::vector& result = cobj->getSpotLights(); + const std::vector& result = cobj->getSpotLights(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_scene_RenderScene_getSpotLights : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -7672,38 +7794,32 @@ SE_BIND_FUNC(js_scene_RenderScene_getSpotLights) static bool js_scene_RenderScene_removeBatch(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_removeBatch : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2( cobj, false, "js_scene_RenderScene_removeBatch : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->removeBatch(arg0.value()); return true; } - } while (false); + } while(false); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->removeBatch(arg0.value()); return true; } - } while (false); + } while(false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -7715,7 +7831,7 @@ static bool js_scene_RenderScene_removeBatches(se::State& s) // NOLINT(readabili auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_removeBatches : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->removeBatches(); return true; @@ -7729,9 +7845,9 @@ static bool js_scene_RenderScene_removeModel(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_removeModel : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7749,7 +7865,7 @@ static bool js_scene_RenderScene_removeModels(se::State& s) // NOLINT(readabilit auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_removeModels : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->removeModels(); return true; @@ -7763,9 +7879,9 @@ static bool js_scene_RenderScene_removeSphereLight(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_removeSphereLight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7783,7 +7899,7 @@ static bool js_scene_RenderScene_removeSphereLights(se::State& s) // NOLINT(read auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_removeSphereLights : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->removeSphereLights(); return true; @@ -7797,9 +7913,9 @@ static bool js_scene_RenderScene_removeSpotLight(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_removeSpotLight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7817,7 +7933,7 @@ static bool js_scene_RenderScene_removeSpotLights(se::State& s) // NOLINT(readab auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_removeSpotLights : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->removeSpotLights(); return true; @@ -7831,9 +7947,9 @@ static bool js_scene_RenderScene_setMainLight(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_setMainLight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7850,9 +7966,9 @@ static bool js_scene_RenderScene_update(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_update : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7876,10 +7992,13 @@ static bool js_scene_RenderScene_constructor(se::State& s) // NOLINT(readability } SE_BIND_CTOR(js_scene_RenderScene_constructor, __jsb_cc_scene_RenderScene_class, js_cc_scene_RenderScene_finalize) + + static bool js_cc_scene_RenderScene_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -7925,15 +8044,15 @@ bool js_register_scene_RenderScene(se::Object* obj) // NOLINT(readability-identi return true; } se::Object* __jsb_cc_scene_RenderWindow_proto = nullptr; -se::Class* __jsb_cc_scene_RenderWindow_class = nullptr; +se::Class* __jsb_cc_scene_RenderWindow_class = nullptr; static bool js_scene_RenderWindow_getHeight(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderWindow_getHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getHeight(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7950,9 +8069,9 @@ static bool js_scene_RenderWindow_getWidth(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderWindow_getWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getWidth(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7971,7 +8090,7 @@ static bool js_scene_RenderWindow_get_swapchain(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_scene_RenderWindow_get_swapchain : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->swapchain, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->swapchain, s.thisObject(), s.rval()); @@ -7982,7 +8101,7 @@ SE_BIND_PROP_GET(js_scene_RenderWindow_get_swapchain) static bool js_scene_RenderWindow_set_swapchain(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderWindow_set_swapchain : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7998,7 +8117,7 @@ static bool js_scene_RenderWindow_get_frameBuffer(se::State& s) // NOLINT(readab SE_PRECONDITION2(cobj, false, "js_scene_RenderWindow_get_frameBuffer : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->frameBuffer, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->frameBuffer, s.thisObject(), s.rval()); @@ -8009,7 +8128,7 @@ SE_BIND_PROP_GET(js_scene_RenderWindow_get_frameBuffer) static bool js_scene_RenderWindow_set_frameBuffer(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderWindow_set_frameBuffer : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8019,23 +8138,25 @@ static bool js_scene_RenderWindow_set_frameBuffer(se::State& s) // NOLINT(readab } SE_BIND_PROP_SET(js_scene_RenderWindow_set_frameBuffer) -template <> -bool sevalue_to_native(const se::Value& from, cc::scene::RenderWindow* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::scene::RenderWindow * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("swapchain", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->swapchain), ctx); } json->getProperty("frameBuffer", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->frameBuffer), ctx); } return ok; @@ -8045,24 +8166,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_RenderWindow_finalize) static bool js_scene_RenderWindow_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::scene::RenderWindow* cobj = JSB_ALLOC(cc::scene::RenderWindow); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::scene::RenderWindow* cobj = JSB_ALLOC(cc::scene::RenderWindow); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -8081,7 +8204,7 @@ static bool js_scene_RenderWindow_constructor(se::State& s) // NOLINT(readabilit ok &= sevalue_to_native(args[1], &(cobj->frameBuffer), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -8093,10 +8216,13 @@ static bool js_scene_RenderWindow_constructor(se::State& s) // NOLINT(readabilit } SE_BIND_CTOR(js_scene_RenderWindow_constructor, __jsb_cc_scene_RenderWindow_class, js_cc_scene_RenderWindow_finalize) + + static bool js_cc_scene_RenderWindow_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -8124,7 +8250,7 @@ bool js_register_scene_RenderWindow(se::Object* obj) // NOLINT(readability-ident return true; } se::Object* __jsb_cc_scene_Camera_proto = nullptr; -se::Class* __jsb_cc_scene_Camera_class = nullptr; +se::Class* __jsb_cc_scene_Camera_class = nullptr; static bool js_scene_Camera_get_width(se::State& s) // NOLINT(readability-identifier-naming) { @@ -8132,7 +8258,7 @@ static bool js_scene_Camera_get_width(se::State& s) // NOLINT(readability-identi SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_width : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->width, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->width, s.thisObject(), s.rval()); @@ -8143,7 +8269,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_width) static bool js_scene_Camera_set_width(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_width : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8159,7 +8285,7 @@ static bool js_scene_Camera_get_height(se::State& s) // NOLINT(readability-ident SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_height : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->height, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->height, s.thisObject(), s.rval()); @@ -8170,7 +8296,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_height) static bool js_scene_Camera_set_height(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_height : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8186,7 +8312,7 @@ static bool js_scene_Camera_get_nearClip(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_nearClip : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->nearClip, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->nearClip, s.thisObject(), s.rval()); @@ -8197,7 +8323,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_nearClip) static bool js_scene_Camera_set_nearClip(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_nearClip : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8213,7 +8339,7 @@ static bool js_scene_Camera_get_farClip(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_farClip : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->farClip, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->farClip, s.thisObject(), s.rval()); @@ -8224,7 +8350,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_farClip) static bool js_scene_Camera_set_farClip(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_farClip : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8240,7 +8366,7 @@ static bool js_scene_Camera_get_clearFlag(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_clearFlag : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->clearFlag, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->clearFlag, s.thisObject(), s.rval()); @@ -8251,7 +8377,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_clearFlag) static bool js_scene_Camera_set_clearFlag(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_clearFlag : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8267,7 +8393,7 @@ static bool js_scene_Camera_get_exposure(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_exposure : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->exposure, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->exposure, s.thisObject(), s.rval()); @@ -8278,7 +8404,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_exposure) static bool js_scene_Camera_set_exposure(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_exposure : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8294,7 +8420,7 @@ static bool js_scene_Camera_get_clearDepth(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_clearDepth : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->clearDepth, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->clearDepth, s.thisObject(), s.rval()); @@ -8305,7 +8431,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_clearDepth) static bool js_scene_Camera_set_clearDepth(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_clearDepth : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8321,7 +8447,7 @@ static bool js_scene_Camera_get_fov(se::State& s) // NOLINT(readability-identifi SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_fov : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->fov, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->fov, s.thisObject(), s.rval()); @@ -8332,7 +8458,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_fov) static bool js_scene_Camera_set_fov(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_fov : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8348,7 +8474,7 @@ static bool js_scene_Camera_get_aspect(se::State& s) // NOLINT(readability-ident SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_aspect : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->aspect, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->aspect, s.thisObject(), s.rval()); @@ -8359,7 +8485,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_aspect) static bool js_scene_Camera_set_aspect(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_aspect : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8375,7 +8501,7 @@ static bool js_scene_Camera_get_viewPort(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_viewPort : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->viewPort, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->viewPort, s.thisObject(), s.rval()); @@ -8386,7 +8512,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_viewPort) static bool js_scene_Camera_set_viewPort(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_viewPort : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8402,7 +8528,7 @@ static bool js_scene_Camera_get_clearStencil(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_clearStencil : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->clearStencil, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->clearStencil, s.thisObject(), s.rval()); @@ -8413,7 +8539,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_clearStencil) static bool js_scene_Camera_set_clearStencil(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_clearStencil : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8429,7 +8555,7 @@ static bool js_scene_Camera_get_visibility(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_visibility : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->visibility, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->visibility, s.thisObject(), s.rval()); @@ -8440,7 +8566,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_visibility) static bool js_scene_Camera_set_visibility(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_visibility : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8456,7 +8582,7 @@ static bool js_scene_Camera_get_node(se::State& s) // NOLINT(readability-identif SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_node : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->node, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->node, s.thisObject(), s.rval()); @@ -8467,7 +8593,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_node) static bool js_scene_Camera_set_node(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_node : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8483,7 +8609,7 @@ static bool js_scene_Camera_get_scene(se::State& s) // NOLINT(readability-identi SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_scene : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->scene, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->scene, s.thisObject(), s.rval()); @@ -8494,7 +8620,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_scene) static bool js_scene_Camera_set_scene(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_scene : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8510,7 +8636,7 @@ static bool js_scene_Camera_get_window(se::State& s) // NOLINT(readability-ident SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_window : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->window, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->window, s.thisObject(), s.rval()); @@ -8521,7 +8647,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_window) static bool js_scene_Camera_set_window(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_window : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8537,7 +8663,7 @@ static bool js_scene_Camera_get_frustum(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_frustum : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->frustum, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->frustum, s.thisObject(), s.rval()); @@ -8548,7 +8674,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_frustum) static bool js_scene_Camera_set_frustum(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_frustum : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8564,7 +8690,7 @@ static bool js_scene_Camera_get_forward(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_forward : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->forward, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->forward, s.thisObject(), s.rval()); @@ -8575,7 +8701,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_forward) static bool js_scene_Camera_set_forward(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_forward : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8591,7 +8717,7 @@ static bool js_scene_Camera_get_position(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_position : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->position, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->position, s.thisObject(), s.rval()); @@ -8602,7 +8728,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_position) static bool js_scene_Camera_set_position(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_position : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8618,7 +8744,7 @@ static bool js_scene_Camera_get_clearColor(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_clearColor : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->clearColor, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->clearColor, s.thisObject(), s.rval()); @@ -8629,7 +8755,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_clearColor) static bool js_scene_Camera_set_clearColor(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_clearColor : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8645,7 +8771,7 @@ static bool js_scene_Camera_get_matView(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_matView : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->matView, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->matView, s.thisObject(), s.rval()); @@ -8656,7 +8782,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_matView) static bool js_scene_Camera_set_matView(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_matView : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8672,7 +8798,7 @@ static bool js_scene_Camera_get_matViewProj(se::State& s) // NOLINT(readability- SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_matViewProj : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->matViewProj, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->matViewProj, s.thisObject(), s.rval()); @@ -8683,7 +8809,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_matViewProj) static bool js_scene_Camera_set_matViewProj(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_matViewProj : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8699,7 +8825,7 @@ static bool js_scene_Camera_get_matViewProjInv(se::State& s) // NOLINT(readabili SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_matViewProjInv : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->matViewProjInv, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->matViewProjInv, s.thisObject(), s.rval()); @@ -8710,7 +8836,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_matViewProjInv) static bool js_scene_Camera_set_matViewProjInv(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_matViewProjInv : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8726,7 +8852,7 @@ static bool js_scene_Camera_get_matProj(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_matProj : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->matProj, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->matProj, s.thisObject(), s.rval()); @@ -8737,7 +8863,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_matProj) static bool js_scene_Camera_set_matProj(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_matProj : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8753,7 +8879,7 @@ static bool js_scene_Camera_get_matProjInv(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_matProjInv : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->matProjInv, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->matProjInv, s.thisObject(), s.rval()); @@ -8764,7 +8890,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_matProjInv) static bool js_scene_Camera_set_matProjInv(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_matProjInv : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8780,7 +8906,7 @@ static bool js_scene_Camera_get_matViewProjOffscreen(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_matViewProjOffscreen : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->matViewProjOffscreen, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->matViewProjOffscreen, s.thisObject(), s.rval()); @@ -8791,7 +8917,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_matViewProjOffscreen) static bool js_scene_Camera_set_matViewProjOffscreen(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_matViewProjOffscreen : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8807,7 +8933,7 @@ static bool js_scene_Camera_get_matViewProjInvOffscreen(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_matViewProjInvOffscreen : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->matViewProjInvOffscreen, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->matViewProjInvOffscreen, s.thisObject(), s.rval()); @@ -8818,7 +8944,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_matViewProjInvOffscreen) static bool js_scene_Camera_set_matViewProjInvOffscreen(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_matViewProjInvOffscreen : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8834,7 +8960,7 @@ static bool js_scene_Camera_get_matProjOffscreen(se::State& s) // NOLINT(readabi SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_matProjOffscreen : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->matProjOffscreen, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->matProjOffscreen, s.thisObject(), s.rval()); @@ -8845,7 +8971,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_matProjOffscreen) static bool js_scene_Camera_set_matProjOffscreen(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_matProjOffscreen : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8861,7 +8987,7 @@ static bool js_scene_Camera_get_matProjInvOffscreen(se::State& s) // NOLINT(read SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_matProjInvOffscreen : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->matProjInvOffscreen, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->matProjInvOffscreen, s.thisObject(), s.rval()); @@ -8872,7 +8998,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_matProjInvOffscreen) static bool js_scene_Camera_set_matProjInvOffscreen(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_matProjInvOffscreen : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8882,127 +9008,129 @@ static bool js_scene_Camera_set_matProjInvOffscreen(se::State& s) // NOLINT(read } SE_BIND_PROP_SET(js_scene_Camera_set_matProjInvOffscreen) -template <> -bool sevalue_to_native(const se::Value& from, cc::scene::Camera* to, se::Object* ctx) { + +template<> +bool sevalue_to_native(const se::Value &from, cc::scene::Camera * to, se::Object *ctx) +{ assert(from.isObject()); - se::Object* json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object *json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("width", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->width), ctx); } json->getProperty("height", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->height), ctx); } json->getProperty("nearClip", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->nearClip), ctx); } json->getProperty("farClip", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->farClip), ctx); } json->getProperty("clearFlag", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->clearFlag), ctx); } json->getProperty("exposure", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->exposure), ctx); } json->getProperty("clearDepth", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->clearDepth), ctx); } json->getProperty("fov", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->fov), ctx); } json->getProperty("aspect", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->aspect), ctx); } json->getProperty("viewPort", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->viewPort), ctx); } json->getProperty("clearStencil", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->clearStencil), ctx); } json->getProperty("visibility", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->visibility), ctx); } json->getProperty("node", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->node), ctx); } json->getProperty("scene", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->scene), ctx); } json->getProperty("window", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->window), ctx); } json->getProperty("frustum", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->frustum), ctx); } json->getProperty("forward", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->forward), ctx); } json->getProperty("position", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->position), ctx); } json->getProperty("clearColor", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->clearColor), ctx); } json->getProperty("matView", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->matView), ctx); } json->getProperty("matViewProj", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->matViewProj), ctx); } json->getProperty("matViewProjInv", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->matViewProjInv), ctx); } json->getProperty("matProj", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->matProj), ctx); } json->getProperty("matProjInv", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->matProjInv), ctx); } json->getProperty("matViewProjOffscreen", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->matViewProjOffscreen), ctx); } json->getProperty("matViewProjInvOffscreen", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->matViewProjInvOffscreen), ctx); } json->getProperty("matProjOffscreen", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->matProjOffscreen), ctx); } json->getProperty("matProjInvOffscreen", &field); - if (!field.isNullOrUndefined()) { + if(!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->matProjInvOffscreen), ctx); } return ok; @@ -9012,24 +9140,26 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_Camera_finalize) static bool js_scene_Camera_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if (argc == 0) { + if(argc == 0) + { cc::scene::Camera* cobj = JSB_ALLOC(cc::scene::Camera); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if (argc == 1 && args[0].isObject()) { - se::Object* json = args[0].toObject(); - se::Value field; + if(argc == 1 && args[0].isObject()) + { + se::Object *json = args[0].toObject(); + se::Value field; cc::scene::Camera* cobj = JSB_ALLOC(cc::scene::Camera); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -9126,7 +9256,7 @@ static bool js_scene_Camera_constructor(se::State& s) // NOLINT(readability-iden ok &= sevalue_to_native(args[27], &(cobj->matProjInvOffscreen), nullptr); } - if (!ok) { + if(!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -9138,10 +9268,13 @@ static bool js_scene_Camera_constructor(se::State& s) // NOLINT(readability-iden } SE_BIND_CTOR(js_scene_Camera_constructor, __jsb_cc_scene_Camera_class, js_cc_scene_Camera_finalize) + + static bool js_cc_scene_Camera_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -9193,15 +9326,15 @@ bool js_register_scene_Camera(se::Object* obj) // NOLINT(readability-identifier- return true; } se::Object* __jsb_cc_scene_Sphere_proto = nullptr; -se::Class* __jsb_cc_scene_Sphere_class = nullptr; +se::Class* __jsb_cc_scene_Sphere_class = nullptr; static bool js_scene_Sphere_getCenter(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Sphere_getCenter : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::Vec3& result = cobj->getCenter(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -9218,9 +9351,9 @@ static bool js_scene_Sphere_getRadius(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Sphere_getRadius : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRadius(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -9237,9 +9370,9 @@ static bool js_scene_Sphere_setCenter(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Sphere_setCenter : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -9256,9 +9389,9 @@ static bool js_scene_Sphere_setRadius(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Sphere_setRadius : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -9282,10 +9415,13 @@ static bool js_scene_Sphere_constructor(se::State& s) // NOLINT(readability-iden } SE_BIND_CTOR(js_scene_Sphere_constructor, __jsb_cc_scene_Sphere_class, js_cc_scene_Sphere_finalize) + + static bool js_cc_scene_Sphere_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -9312,10 +9448,12 @@ bool js_register_scene_Sphere(se::Object* obj) // NOLINT(readability-identifier- se::ScriptEngine::getInstance()->clearException(); return true; } -bool register_all_scene(se::Object* obj) { +bool register_all_scene(se::Object* obj) +{ // Get the ns se::Value nsVal; - if (!obj->getProperty("ns", &nsVal)) { + if (!obj->getProperty("ns", &nsVal)) + { se::HandleObject jsobj(se::Object::createPlainObject()); nsVal.setObject(jsobj); obj->setProperty("ns", nsVal); @@ -9355,3 +9493,4 @@ bool register_all_scene(se::Object* obj) { js_register_scene_Sphere(ns); return true; } + diff --git a/native/cocos/bindings/auto/jsb_scene_auto.h b/native/cocos/bindings/auto/jsb_scene_auto.h index 7ce5795c15..1762de4105 100644 --- a/native/cocos/bindings/auto/jsb_scene_auto.h +++ b/native/cocos/bindings/auto/jsb_scene_auto.h @@ -24,31 +24,32 @@ ****************************************************************************/ #pragma once -#include #include "base/Config.h" -#include "cocos/bindings/auto/jsb_gfx_auto.h" +#include #include "cocos/bindings/jswrapper/SeApi.h" #include "cocos/bindings/manual/jsb_conversions.h" -#include "cocos/scene/AABB.h" -#include "cocos/scene/BaseNode.h" -#include "cocos/scene/Camera.h" -#include "cocos/scene/Define.h" -#include "cocos/scene/DirectionalLight.h" -#include "cocos/scene/DrawBatch2D.h" -#include "cocos/scene/Light.h" -#include "cocos/scene/Model.h" +#include "cocos/bindings/auto/jsb_gfx_auto.h" #include "cocos/scene/Node.h" +#include "cocos/scene/BaseNode.h" +#include "cocos/scene/Scene.h" +#include "cocos/scene/Light.h" +#include "cocos/scene/DirectionalLight.h" +#include "cocos/scene/SpotLight.h" +#include "cocos/scene/SphereLight.h" +#include "cocos/scene/Model.h" +#include "cocos/scene/SubModel.h" #include "cocos/scene/Pass.h" #include "cocos/scene/RenderScene.h" +#include "cocos/scene/DrawBatch2D.h" +#include "cocos/scene/Camera.h" #include "cocos/scene/RenderWindow.h" -#include "cocos/scene/Scene.h" +#include "cocos/scene/Camera.h" +#include "cocos/scene/Define.h" +#include "cocos/scene/AABB.h" #include "cocos/scene/Sphere.h" -#include "cocos/scene/SphereLight.h" -#include "cocos/scene/SpotLight.h" -#include "cocos/scene/SubModel.h" extern se::Object* __jsb_cc_scene_BaseNode_proto; -extern se::Class* __jsb_cc_scene_BaseNode_class; +extern se::Class* __jsb_cc_scene_BaseNode_class; bool js_register_cc_scene_BaseNode(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -59,7 +60,7 @@ SE_DECLARE_FUNC(js_scene_BaseNode_setParent); SE_DECLARE_FUNC(js_scene_BaseNode_BaseNode); extern se::Object* __jsb_cc_scene_Scene_proto; -extern se::Class* __jsb_cc_scene_Scene_class; +extern se::Class* __jsb_cc_scene_Scene_class; bool js_register_cc_scene_Scene(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -68,7 +69,7 @@ JSB_REGISTER_OBJECT_TYPE(cc::scene::Scene); SE_DECLARE_FUNC(js_scene_Scene_Scene); extern se::Object* __jsb_cc_scene_Node_proto; -extern se::Class* __jsb_cc_scene_Node_class; +extern se::Class* __jsb_cc_scene_Node_class; bool js_register_cc_scene_Node(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -78,7 +79,7 @@ SE_DECLARE_FUNC(js_scene_Node_initWithData); SE_DECLARE_FUNC(js_scene_Node_Node); extern se::Object* __jsb_cc_scene_Light_proto; -extern se::Class* __jsb_cc_scene_Light_class; +extern se::Class* __jsb_cc_scene_Light_class; bool js_register_cc_scene_Light(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -94,7 +95,7 @@ SE_DECLARE_FUNC(js_scene_Light_setUseColorTemperature); SE_DECLARE_FUNC(js_scene_Light_update); extern se::Object* __jsb_cc_scene_DirectionalLight_proto; -extern se::Class* __jsb_cc_scene_DirectionalLight_class; +extern se::Class* __jsb_cc_scene_DirectionalLight_class; bool js_register_cc_scene_DirectionalLight(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -128,26 +129,26 @@ SE_DECLARE_FUNC(js_scene_DirectionalLight_setShadowSaturation); SE_DECLARE_FUNC(js_scene_DirectionalLight_DirectionalLight); extern se::Object* __jsb_cc_scene_Plane_proto; -extern se::Class* __jsb_cc_scene_Plane_class; +extern se::Class* __jsb_cc_scene_Plane_class; bool js_register_cc_scene_Plane(se::Object* obj); bool register_all_scene(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::scene::Plane*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::scene::Plane *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::Plane); SE_DECLARE_FUNC(js_scene_Plane_clone); SE_DECLARE_FUNC(js_scene_Plane_define); SE_DECLARE_FUNC(js_scene_Plane_distance); extern se::Object* __jsb_cc_scene_Frustum_proto; -extern se::Class* __jsb_cc_scene_Frustum_class; +extern se::Class* __jsb_cc_scene_Frustum_class; bool js_register_cc_scene_Frustum(se::Object* obj); bool register_all_scene(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::scene::Frustum*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::scene::Frustum *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::Frustum); SE_DECLARE_FUNC(js_scene_Frustum_clone); SE_DECLARE_FUNC(js_scene_Frustum_createOrtho); @@ -155,7 +156,7 @@ SE_DECLARE_FUNC(js_scene_Frustum_split); SE_DECLARE_FUNC(js_scene_Frustum_transform); extern se::Object* __jsb_cc_scene_AABB_proto; -extern se::Class* __jsb_cc_scene_AABB_class; +extern se::Class* __jsb_cc_scene_AABB_class; bool js_register_cc_scene_AABB(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -167,7 +168,7 @@ SE_DECLARE_FUNC(js_scene_AABB_initWithData); SE_DECLARE_FUNC(js_scene_AABB_AABB); extern se::Object* __jsb_cc_scene_SpotLight_proto; -extern se::Class* __jsb_cc_scene_SpotLight_class; +extern se::Class* __jsb_cc_scene_SpotLight_class; bool js_register_cc_scene_SpotLight(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -195,7 +196,7 @@ SE_DECLARE_FUNC(js_scene_SpotLight_setSize); SE_DECLARE_FUNC(js_scene_SpotLight_SpotLight); extern se::Object* __jsb_cc_scene_SphereLight_proto; -extern se::Class* __jsb_cc_scene_SphereLight_class; +extern se::Class* __jsb_cc_scene_SphereLight_class; bool js_register_cc_scene_SphereLight(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -210,7 +211,7 @@ SE_DECLARE_FUNC(js_scene_SphereLight_setSize); SE_DECLARE_FUNC(js_scene_SphereLight_SphereLight); extern se::Object* __jsb_cc_scene_Model_proto; -extern se::Class* __jsb_cc_scene_Model_class; +extern se::Class* __jsb_cc_scene_Model_class; bool js_register_cc_scene_Model(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -250,77 +251,77 @@ SE_DECLARE_FUNC(js_scene_Model_updateWorldBoundUBOs); SE_DECLARE_FUNC(js_scene_Model_Model); extern se::Object* __jsb_cc_scene_Fog_proto; -extern se::Class* __jsb_cc_scene_Fog_class; +extern se::Class* __jsb_cc_scene_Fog_class; bool js_register_cc_scene_Fog(se::Object* obj); bool register_all_scene(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::scene::Fog*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::scene::Fog *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::Fog); extern se::Object* __jsb_cc_scene_Shadow_proto; -extern se::Class* __jsb_cc_scene_Shadow_class; +extern se::Class* __jsb_cc_scene_Shadow_class; bool js_register_cc_scene_Shadow(se::Object* obj); bool register_all_scene(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::scene::Shadow*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::scene::Shadow *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::Shadow); extern se::Object* __jsb_cc_scene_Skybox_proto; -extern se::Class* __jsb_cc_scene_Skybox_class; +extern se::Class* __jsb_cc_scene_Skybox_class; bool js_register_cc_scene_Skybox(se::Object* obj); bool register_all_scene(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::scene::Skybox*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::scene::Skybox *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::Skybox); extern se::Object* __jsb_cc_scene_Ambient_proto; -extern se::Class* __jsb_cc_scene_Ambient_class; +extern se::Class* __jsb_cc_scene_Ambient_class; bool js_register_cc_scene_Ambient(se::Object* obj); bool register_all_scene(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::scene::Ambient*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::scene::Ambient *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::Ambient); extern se::Object* __jsb_cc_scene_OctreeInfo_proto; -extern se::Class* __jsb_cc_scene_OctreeInfo_class; +extern se::Class* __jsb_cc_scene_OctreeInfo_class; bool js_register_cc_scene_OctreeInfo(se::Object* obj); bool register_all_scene(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::scene::OctreeInfo*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::scene::OctreeInfo *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::OctreeInfo); extern se::Object* __jsb_cc_scene_PipelineSharedSceneData_proto; -extern se::Class* __jsb_cc_scene_PipelineSharedSceneData_class; +extern se::Class* __jsb_cc_scene_PipelineSharedSceneData_class; bool js_register_cc_scene_PipelineSharedSceneData(se::Object* obj); bool register_all_scene(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::scene::PipelineSharedSceneData*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::scene::PipelineSharedSceneData *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::PipelineSharedSceneData); extern se::Object* __jsb_cc_scene_Root_proto; -extern se::Class* __jsb_cc_scene_Root_class; +extern se::Class* __jsb_cc_scene_Root_class; bool js_register_cc_scene_Root(se::Object* obj); bool register_all_scene(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::scene::Root*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::scene::Root *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::Root); extern se::Object* __jsb_cc_scene_SubModel_proto; -extern se::Class* __jsb_cc_scene_SubModel_class; +extern se::Class* __jsb_cc_scene_SubModel_class; bool js_register_cc_scene_SubModel(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -349,7 +350,7 @@ SE_DECLARE_FUNC(js_scene_SubModel_update); SE_DECLARE_FUNC(js_scene_SubModel_SubModel); extern se::Object* __jsb_cc_scene_Pass_proto; -extern se::Class* __jsb_cc_scene_Pass_class; +extern se::Class* __jsb_cc_scene_Pass_class; bool js_register_cc_scene_Pass(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -385,28 +386,28 @@ SE_DECLARE_FUNC(js_scene_Pass_update); SE_DECLARE_FUNC(js_scene_Pass_Pass); extern se::Object* __jsb_cc_scene_BakedAnimInfo_proto; -extern se::Class* __jsb_cc_scene_BakedAnimInfo_class; +extern se::Class* __jsb_cc_scene_BakedAnimInfo_class; bool js_register_cc_scene_BakedAnimInfo(se::Object* obj); bool register_all_scene(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::scene::BakedAnimInfo*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::scene::BakedAnimInfo *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::BakedAnimInfo); SE_DECLARE_FUNC(js_scene_BakedAnimInfo_getDirty); extern se::Object* __jsb_cc_scene_BakedJointInfo_proto; -extern se::Class* __jsb_cc_scene_BakedJointInfo_class; +extern se::Class* __jsb_cc_scene_BakedJointInfo_class; bool js_register_cc_scene_BakedJointInfo(se::Object* obj); bool register_all_scene(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::scene::BakedJointInfo*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::scene::BakedJointInfo *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::BakedJointInfo); extern se::Object* __jsb_cc_scene_BakedSkinningModel_proto; -extern se::Class* __jsb_cc_scene_BakedSkinningModel_class; +extern se::Class* __jsb_cc_scene_BakedSkinningModel_class; bool js_register_cc_scene_BakedSkinningModel(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -418,37 +419,37 @@ SE_DECLARE_FUNC(js_scene_BakedSkinningModel_updateModelBounds); SE_DECLARE_FUNC(js_scene_BakedSkinningModel_BakedSkinningModel); extern se::Object* __jsb_cc_scene_DrawBatch2D_proto; -extern se::Class* __jsb_cc_scene_DrawBatch2D_class; +extern se::Class* __jsb_cc_scene_DrawBatch2D_class; bool js_register_cc_scene_DrawBatch2D(se::Object* obj); bool register_all_scene(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::scene::DrawBatch2D*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::scene::DrawBatch2D *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::DrawBatch2D); extern se::Object* __jsb_cc_scene_JointTransform_proto; -extern se::Class* __jsb_cc_scene_JointTransform_class; +extern se::Class* __jsb_cc_scene_JointTransform_class; bool js_register_cc_scene_JointTransform(se::Object* obj); bool register_all_scene(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::scene::JointTransform*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::scene::JointTransform *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::JointTransform); extern se::Object* __jsb_cc_scene_JointInfo_proto; -extern se::Class* __jsb_cc_scene_JointInfo_class; +extern se::Class* __jsb_cc_scene_JointInfo_class; bool js_register_cc_scene_JointInfo(se::Object* obj); bool register_all_scene(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::scene::JointInfo*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::scene::JointInfo *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::JointInfo); extern se::Object* __jsb_cc_scene_SkinningModel_proto; -extern se::Class* __jsb_cc_scene_SkinningModel_class; +extern se::Class* __jsb_cc_scene_SkinningModel_class; bool js_register_cc_scene_SkinningModel(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -461,7 +462,7 @@ SE_DECLARE_FUNC(js_scene_SkinningModel_updateLocalDescriptors); SE_DECLARE_FUNC(js_scene_SkinningModel_SkinningModel); extern se::Object* __jsb_cc_scene_RenderScene_proto; -extern se::Class* __jsb_cc_scene_RenderScene_class; +extern se::Class* __jsb_cc_scene_RenderScene_class; bool js_register_cc_scene_RenderScene(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -492,29 +493,29 @@ SE_DECLARE_FUNC(js_scene_RenderScene_update); SE_DECLARE_FUNC(js_scene_RenderScene_RenderScene); extern se::Object* __jsb_cc_scene_RenderWindow_proto; -extern se::Class* __jsb_cc_scene_RenderWindow_class; +extern se::Class* __jsb_cc_scene_RenderWindow_class; bool js_register_cc_scene_RenderWindow(se::Object* obj); bool register_all_scene(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::scene::RenderWindow*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::scene::RenderWindow *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::RenderWindow); SE_DECLARE_FUNC(js_scene_RenderWindow_getHeight); SE_DECLARE_FUNC(js_scene_RenderWindow_getWidth); extern se::Object* __jsb_cc_scene_Camera_proto; -extern se::Class* __jsb_cc_scene_Camera_class; +extern se::Class* __jsb_cc_scene_Camera_class; bool js_register_cc_scene_Camera(se::Object* obj); bool register_all_scene(se::Object* obj); -template <> -bool sevalue_to_native(const se::Value&, cc::scene::Camera*, se::Object* ctx); +template<> +bool sevalue_to_native(const se::Value &, cc::scene::Camera *, se::Object *ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::Camera); extern se::Object* __jsb_cc_scene_Sphere_proto; -extern se::Class* __jsb_cc_scene_Sphere_class; +extern se::Class* __jsb_cc_scene_Sphere_class; bool js_register_cc_scene_Sphere(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -525,3 +526,4 @@ SE_DECLARE_FUNC(js_scene_Sphere_getRadius); SE_DECLARE_FUNC(js_scene_Sphere_setCenter); SE_DECLARE_FUNC(js_scene_Sphere_setRadius); SE_DECLARE_FUNC(js_scene_Sphere_Sphere); + diff --git a/native/cocos/bindings/auto/jsb_spine_auto.cpp b/native/cocos/bindings/auto/jsb_spine_auto.cpp index 37c36d97d0..36a563813c 100644 --- a/native/cocos/bindings/auto/jsb_spine_auto.cpp +++ b/native/cocos/bindings/auto/jsb_spine_auto.cpp @@ -29,22 +29,22 @@ #include "spine-creator-support/spine-cocos2dx.h" #ifndef JSB_ALLOC - #define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) +#define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) #endif #ifndef JSB_FREE - #define JSB_FREE(ptr) delete ptr +#define JSB_FREE(ptr) delete ptr #endif se::Object* __jsb_spine_Animation_proto = nullptr; -se::Class* __jsb_spine_Animation_class = nullptr; +se::Class* __jsb_spine_Animation_class = nullptr; static bool js_spine_Animation_getDuration(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Animation_getDuration : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getDuration(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -61,9 +61,9 @@ static bool js_spine_Animation_getName(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Animation_getName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::String& result = cobj->getName(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -80,11 +80,11 @@ static bool js_spine_Animation_getTimelines(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Animation_getTimelines : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getTimelines(); + spine::Vector& result = cobj->getTimelines(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_Animation_getTimelines : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -99,9 +99,9 @@ static bool js_spine_Animation_hasTimeline(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Animation_hasTimeline : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -121,9 +121,9 @@ static bool js_spine_Animation_setDuration(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Animation_setDuration : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -136,6 +136,8 @@ static bool js_spine_Animation_setDuration(se::State& s) // NOLINT(readability-i } SE_BIND_FUNC(js_spine_Animation_setDuration) + + bool js_register_spine_Animation(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("Animation", obj, nullptr, nullptr); @@ -155,15 +157,15 @@ bool js_register_spine_Animation(se::Object* obj) // NOLINT(readability-identifi return true; } se::Object* __jsb_spine_TrackEntry_proto = nullptr; -se::Class* __jsb_spine_TrackEntry_class = nullptr; +se::Class* __jsb_spine_TrackEntry_class = nullptr; static bool js_spine_TrackEntry_getAlpha(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getAlpha : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getAlpha(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -180,9 +182,9 @@ static bool js_spine_TrackEntry_getAnimation(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Animation* result = cobj->getAnimation(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -199,9 +201,9 @@ static bool js_spine_TrackEntry_getAnimationEnd(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getAnimationEnd : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getAnimationEnd(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -218,9 +220,9 @@ static bool js_spine_TrackEntry_getAnimationLast(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getAnimationLast : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getAnimationLast(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -237,9 +239,9 @@ static bool js_spine_TrackEntry_getAnimationStart(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getAnimationStart : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getAnimationStart(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -256,9 +258,9 @@ static bool js_spine_TrackEntry_getAnimationTime(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getAnimationTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getAnimationTime(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -275,9 +277,9 @@ static bool js_spine_TrackEntry_getAttachmentThreshold(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getAttachmentThreshold : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getAttachmentThreshold(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -294,9 +296,9 @@ static bool js_spine_TrackEntry_getDelay(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getDelay : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getDelay(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -313,9 +315,9 @@ static bool js_spine_TrackEntry_getDrawOrderThreshold(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getDrawOrderThreshold : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getDrawOrderThreshold(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -332,9 +334,9 @@ static bool js_spine_TrackEntry_getEventThreshold(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getEventThreshold : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getEventThreshold(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -351,9 +353,9 @@ static bool js_spine_TrackEntry_getHoldPrevious(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getHoldPrevious : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getHoldPrevious(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -370,9 +372,9 @@ static bool js_spine_TrackEntry_getLoop(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getLoop : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getLoop(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -389,9 +391,9 @@ static bool js_spine_TrackEntry_getMixBlend(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getMixBlend : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getMixBlend()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -408,9 +410,9 @@ static bool js_spine_TrackEntry_getMixDuration(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getMixDuration : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getMixDuration(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -427,9 +429,9 @@ static bool js_spine_TrackEntry_getMixTime(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getMixTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getMixTime(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -446,9 +448,9 @@ static bool js_spine_TrackEntry_getMixingFrom(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getMixingFrom : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::TrackEntry* result = cobj->getMixingFrom(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -465,9 +467,9 @@ static bool js_spine_TrackEntry_getMixingTo(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getMixingTo : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::TrackEntry* result = cobj->getMixingTo(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -484,9 +486,9 @@ static bool js_spine_TrackEntry_getNext(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getNext : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::TrackEntry* result = cobj->getNext(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -503,9 +505,9 @@ static bool js_spine_TrackEntry_getTimeScale(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getTimeScale : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getTimeScale(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -522,9 +524,9 @@ static bool js_spine_TrackEntry_getTrackEnd(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getTrackEnd : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getTrackEnd(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -541,9 +543,9 @@ static bool js_spine_TrackEntry_getTrackIndex(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getTrackIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getTrackIndex(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -560,9 +562,9 @@ static bool js_spine_TrackEntry_getTrackTime(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getTrackTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getTrackTime(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -579,9 +581,9 @@ static bool js_spine_TrackEntry_isComplete(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_isComplete : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isComplete(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -599,7 +601,7 @@ static bool js_spine_TrackEntry_resetRotationDirections(se::State& s) // NOLINT( auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_resetRotationDirections : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->resetRotationDirections(); return true; @@ -613,9 +615,9 @@ static bool js_spine_TrackEntry_setAlpha(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_setAlpha : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -632,9 +634,9 @@ static bool js_spine_TrackEntry_setAnimationEnd(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_setAnimationEnd : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -651,9 +653,9 @@ static bool js_spine_TrackEntry_setAnimationLast(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_setAnimationLast : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -670,9 +672,9 @@ static bool js_spine_TrackEntry_setAnimationStart(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_setAnimationStart : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -689,9 +691,9 @@ static bool js_spine_TrackEntry_setAttachmentThreshold(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_setAttachmentThreshold : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -708,9 +710,9 @@ static bool js_spine_TrackEntry_setDelay(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_setDelay : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -727,9 +729,9 @@ static bool js_spine_TrackEntry_setDrawOrderThreshold(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_setDrawOrderThreshold : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -746,9 +748,9 @@ static bool js_spine_TrackEntry_setEventThreshold(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_setEventThreshold : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -765,9 +767,9 @@ static bool js_spine_TrackEntry_setHoldPrevious(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_setHoldPrevious : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -784,9 +786,9 @@ static bool js_spine_TrackEntry_setLoop(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_setLoop : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -803,9 +805,9 @@ static bool js_spine_TrackEntry_setMixBlend(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_setMixBlend : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -822,9 +824,9 @@ static bool js_spine_TrackEntry_setMixDuration(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_setMixDuration : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -841,9 +843,9 @@ static bool js_spine_TrackEntry_setMixTime(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_setMixTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -860,9 +862,9 @@ static bool js_spine_TrackEntry_setTimeScale(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_setTimeScale : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -879,9 +881,9 @@ static bool js_spine_TrackEntry_setTrackEnd(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_setTrackEnd : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -898,9 +900,9 @@ static bool js_spine_TrackEntry_setTrackTime(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_setTrackTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -913,6 +915,8 @@ static bool js_spine_TrackEntry_setTrackTime(se::State& s) // NOLINT(readability } SE_BIND_FUNC(js_spine_TrackEntry_setTrackTime) + + bool js_register_spine_TrackEntry(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("TrackEntry", obj, nullptr, nullptr); @@ -967,76 +971,58 @@ bool js_register_spine_TrackEntry(se::Object* obj) // NOLINT(readability-identif return true; } se::Object* __jsb_spine_AnimationState_proto = nullptr; -se::Class* __jsb_spine_AnimationState_class = nullptr; +se::Class* __jsb_spine_AnimationState_class = nullptr; static bool js_spine_AnimationState_addAnimation(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_spine_AnimationState_addAnimation : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2( cobj, false, "js_spine_AnimationState_addAnimation : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 4) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); ok &= sevalue_to_native(args[3], &arg3, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } spine::TrackEntry* result = cobj->addAnimation(arg0.value(), arg1.value(), arg2.value(), arg3.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_AnimationState_addAnimation : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while (false); + } while(false); do { if (argc == 4) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); ok &= sevalue_to_native(args[3], &arg3, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } spine::TrackEntry* result = cobj->addAnimation(arg0.value(), arg1.value(), arg2.value(), arg3.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_AnimationState_addAnimation : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while (false); + } while(false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -1047,13 +1033,13 @@ static bool js_spine_AnimationState_addEmptyAnimation(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AnimationState_addEmptyAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -1073,9 +1059,9 @@ static bool js_spine_AnimationState_clearTrack(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AnimationState_clearTrack : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1093,7 +1079,7 @@ static bool js_spine_AnimationState_clearTracks(se::State& s) // NOLINT(readabil auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AnimationState_clearTracks : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->clearTracks(); return true; @@ -1108,7 +1094,7 @@ static bool js_spine_AnimationState_disableQueue(se::State& s) // NOLINT(readabi auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AnimationState_disableQueue : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->disableQueue(); return true; @@ -1123,7 +1109,7 @@ static bool js_spine_AnimationState_enableQueue(se::State& s) // NOLINT(readabil auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AnimationState_enableQueue : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->enableQueue(); return true; @@ -1137,9 +1123,9 @@ static bool js_spine_AnimationState_getCurrent(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AnimationState_getCurrent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1159,9 +1145,9 @@ static bool js_spine_AnimationState_getData(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AnimationState_getData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::AnimationStateData* result = cobj->getData(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1178,9 +1164,9 @@ static bool js_spine_AnimationState_getTimeScale(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AnimationState_getTimeScale : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getTimeScale(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1197,11 +1183,11 @@ static bool js_spine_AnimationState_getTracks(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AnimationState_getTracks : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getTracks(); + spine::Vector& result = cobj->getTracks(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_AnimationState_getTracks : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -1214,27 +1200,21 @@ SE_BIND_FUNC(js_spine_AnimationState_getTracks) static bool js_spine_AnimationState_setAnimation(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_spine_AnimationState_setAnimation : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2( cobj, false, "js_spine_AnimationState_setAnimation : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 3) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); spine::TrackEntry* result = cobj->setAnimation(arg0.value(), arg1.value(), arg2.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); @@ -1242,24 +1222,18 @@ static bool js_spine_AnimationState_setAnimation(se::State& s) // NOLINT(readabi SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while (false); + } while(false); do { if (argc == 3) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); spine::TrackEntry* result = cobj->setAnimation(arg0.value(), arg1.value(), arg2.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); @@ -1267,7 +1241,7 @@ static bool js_spine_AnimationState_setAnimation(se::State& s) // NOLINT(readabi SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while (false); + } while(false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -1278,12 +1252,12 @@ static bool js_spine_AnimationState_setEmptyAnimation(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AnimationState_setEmptyAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_spine_AnimationState_setEmptyAnimation : Error processing arguments"); @@ -1302,9 +1276,9 @@ static bool js_spine_AnimationState_setEmptyAnimations(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AnimationState_setEmptyAnimations : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1321,9 +1295,9 @@ static bool js_spine_AnimationState_setTimeScale(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AnimationState_setTimeScale : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1340,9 +1314,9 @@ static bool js_spine_AnimationState_update(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AnimationState_update : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1355,6 +1329,8 @@ static bool js_spine_AnimationState_update(se::State& s) // NOLINT(readability-i } SE_BIND_FUNC(js_spine_AnimationState_update) + + bool js_register_spine_AnimationState(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("AnimationState", obj, nullptr, nullptr); @@ -1384,15 +1360,15 @@ bool js_register_spine_AnimationState(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_spine_AnimationStateData_proto = nullptr; -se::Class* __jsb_spine_AnimationStateData_class = nullptr; +se::Class* __jsb_spine_AnimationStateData_class = nullptr; static bool js_spine_AnimationStateData_getDefaultMix(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AnimationStateData_getDefaultMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getDefaultMix(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1409,9 +1385,9 @@ static bool js_spine_AnimationStateData_getMix(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AnimationStateData_getMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -1433,9 +1409,9 @@ static bool js_spine_AnimationStateData_getSkeletonData(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AnimationStateData_getSkeletonData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::SkeletonData* result = cobj->getSkeletonData(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1452,9 +1428,9 @@ static bool js_spine_AnimationStateData_setDefaultMix(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AnimationStateData_setDefaultMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1469,68 +1445,52 @@ SE_BIND_FUNC(js_spine_AnimationStateData_setDefaultMix) static bool js_spine_AnimationStateData_setMix(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_spine_AnimationStateData_setMix : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2( cobj, false, "js_spine_AnimationStateData_setMix : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->setMix(arg0.value(), arg1.value(), arg2.value()); return true; } - } while (false); + } while(false); do { if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->setMix(arg0.value(), arg1.value(), arg2.value()); return true; } - } while (false); + } while(false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; } SE_BIND_FUNC(js_spine_AnimationStateData_setMix) + + bool js_register_spine_AnimationStateData(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("AnimationStateData", obj, nullptr, nullptr); @@ -1550,15 +1510,15 @@ bool js_register_spine_AnimationStateData(se::Object* obj) // NOLINT(readability return true; } se::Object* __jsb_spine_Attachment_proto = nullptr; -se::Class* __jsb_spine_Attachment_class = nullptr; +se::Class* __jsb_spine_Attachment_class = nullptr; static bool js_spine_Attachment_copy(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Attachment_copy : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Attachment* result = cobj->copy(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1576,7 +1536,7 @@ static bool js_spine_Attachment_dereference(se::State& s) // NOLINT(readability- auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Attachment_dereference : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->dereference(); return true; @@ -1590,9 +1550,9 @@ static bool js_spine_Attachment_getName(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Attachment_getName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::String& result = cobj->getName(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1609,9 +1569,9 @@ static bool js_spine_Attachment_getRefCount(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Attachment_getRefCount : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getRefCount(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1629,7 +1589,7 @@ static bool js_spine_Attachment_reference(se::State& s) // NOLINT(readability-id auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Attachment_reference : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->reference(); return true; @@ -1639,6 +1599,8 @@ static bool js_spine_Attachment_reference(se::State& s) // NOLINT(readability-id } SE_BIND_FUNC(js_spine_Attachment_reference) + + bool js_register_spine_Attachment(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("Attachment", obj, nullptr, nullptr); @@ -1658,15 +1620,15 @@ bool js_register_spine_Attachment(se::Object* obj) // NOLINT(readability-identif return true; } se::Object* __jsb_spine_Timeline_proto = nullptr; -se::Class* __jsb_spine_Timeline_class = nullptr; +se::Class* __jsb_spine_Timeline_class = nullptr; static bool js_spine_Timeline_getPropertyId(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Timeline_getPropertyId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getPropertyId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1679,6 +1641,8 @@ static bool js_spine_Timeline_getPropertyId(se::State& s) // NOLINT(readability- } SE_BIND_FUNC(js_spine_Timeline_getPropertyId) + + bool js_register_spine_Timeline(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("Timeline", obj, nullptr, nullptr); @@ -1694,15 +1658,15 @@ bool js_register_spine_Timeline(se::Object* obj) // NOLINT(readability-identifie return true; } se::Object* __jsb_spine_AttachmentTimeline_proto = nullptr; -se::Class* __jsb_spine_AttachmentTimeline_class = nullptr; +se::Class* __jsb_spine_AttachmentTimeline_class = nullptr; static bool js_spine_AttachmentTimeline_getAttachmentNames(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AttachmentTimeline_getAttachmentNames : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::Vector& result = cobj->getAttachmentNames(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1719,9 +1683,9 @@ static bool js_spine_AttachmentTimeline_getFrameCount(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AttachmentTimeline_getFrameCount : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { size_t result = cobj->getFrameCount(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1738,9 +1702,9 @@ static bool js_spine_AttachmentTimeline_getFrames(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AttachmentTimeline_getFrames : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::Vector& result = cobj->getFrames(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1757,9 +1721,9 @@ static bool js_spine_AttachmentTimeline_getPropertyId(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AttachmentTimeline_getPropertyId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getPropertyId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1776,9 +1740,9 @@ static bool js_spine_AttachmentTimeline_getSlotIndex(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AttachmentTimeline_getSlotIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { size_t result = cobj->getSlotIndex(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1795,12 +1759,12 @@ static bool js_spine_AttachmentTimeline_setFrame(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AttachmentTimeline_setFrame : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { - HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -1818,9 +1782,9 @@ static bool js_spine_AttachmentTimeline_setSlotIndex(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AttachmentTimeline_setSlotIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1833,6 +1797,8 @@ static bool js_spine_AttachmentTimeline_setSlotIndex(se::State& s) // NOLINT(rea } SE_BIND_FUNC(js_spine_AttachmentTimeline_setSlotIndex) + + bool js_register_spine_AttachmentTimeline(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("AttachmentTimeline", obj, __jsb_spine_Timeline_proto, nullptr); @@ -1854,15 +1820,15 @@ bool js_register_spine_AttachmentTimeline(se::Object* obj) // NOLINT(readability return true; } se::Object* __jsb_spine_Bone_proto = nullptr; -se::Class* __jsb_spine_Bone_class = nullptr; +se::Class* __jsb_spine_Bone_class = nullptr; static bool js_spine_Bone_getA(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getA : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getA(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1879,9 +1845,9 @@ static bool js_spine_Bone_getAScaleX(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getAScaleX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getAScaleX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1898,9 +1864,9 @@ static bool js_spine_Bone_getAScaleY(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getAScaleY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getAScaleY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1917,9 +1883,9 @@ static bool js_spine_Bone_getAShearX(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getAShearX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getAShearX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1936,9 +1902,9 @@ static bool js_spine_Bone_getAShearY(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getAShearY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getAShearY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1955,9 +1921,9 @@ static bool js_spine_Bone_getAX(se::State& s) // NOLINT(readability-identifier-n { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getAX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getAX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1974,9 +1940,9 @@ static bool js_spine_Bone_getAY(se::State& s) // NOLINT(readability-identifier-n { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getAY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getAY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1993,9 +1959,9 @@ static bool js_spine_Bone_getAppliedRotation(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getAppliedRotation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getAppliedRotation(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2012,9 +1978,9 @@ static bool js_spine_Bone_getB(se::State& s) // NOLINT(readability-identifier-na { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getB(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2031,9 +1997,9 @@ static bool js_spine_Bone_getC(se::State& s) // NOLINT(readability-identifier-na { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getC : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getC(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2050,11 +2016,11 @@ static bool js_spine_Bone_getChildren(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getChildren : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getChildren(); + spine::Vector& result = cobj->getChildren(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_Bone_getChildren : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -2069,9 +2035,9 @@ static bool js_spine_Bone_getD(se::State& s) // NOLINT(readability-identifier-na { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getD : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getD(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2088,9 +2054,9 @@ static bool js_spine_Bone_getData(se::State& s) // NOLINT(readability-identifier { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::BoneData& result = cobj->getData(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2107,9 +2073,9 @@ static bool js_spine_Bone_getParent(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getParent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Bone* result = cobj->getParent(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2126,9 +2092,9 @@ static bool js_spine_Bone_getRotation(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getRotation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRotation(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2145,9 +2111,9 @@ static bool js_spine_Bone_getScaleX(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getScaleX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getScaleX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2164,9 +2130,9 @@ static bool js_spine_Bone_getScaleY(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getScaleY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getScaleY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2183,9 +2149,9 @@ static bool js_spine_Bone_getShearX(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getShearX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getShearX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2202,9 +2168,9 @@ static bool js_spine_Bone_getShearY(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getShearY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getShearY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2221,9 +2187,9 @@ static bool js_spine_Bone_getSkeleton(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getSkeleton : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Skeleton& result = cobj->getSkeleton(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2240,9 +2206,9 @@ static bool js_spine_Bone_getWorldRotationX(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getWorldRotationX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getWorldRotationX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2259,9 +2225,9 @@ static bool js_spine_Bone_getWorldRotationY(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getWorldRotationY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getWorldRotationY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2278,9 +2244,9 @@ static bool js_spine_Bone_getWorldScaleX(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getWorldScaleX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getWorldScaleX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2297,9 +2263,9 @@ static bool js_spine_Bone_getWorldScaleY(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getWorldScaleY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getWorldScaleY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2316,9 +2282,9 @@ static bool js_spine_Bone_getWorldToLocalRotationX(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getWorldToLocalRotationX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getWorldToLocalRotationX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2335,9 +2301,9 @@ static bool js_spine_Bone_getWorldToLocalRotationY(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getWorldToLocalRotationY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getWorldToLocalRotationY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2354,9 +2320,9 @@ static bool js_spine_Bone_getWorldX(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getWorldX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getWorldX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2373,9 +2339,9 @@ static bool js_spine_Bone_getWorldY(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getWorldY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getWorldY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2392,9 +2358,9 @@ static bool js_spine_Bone_getX(se::State& s) // NOLINT(readability-identifier-na { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2411,9 +2377,9 @@ static bool js_spine_Bone_getY(se::State& s) // NOLINT(readability-identifier-na { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2430,9 +2396,9 @@ static bool js_spine_Bone_isActive(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_isActive : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isActive(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2449,9 +2415,9 @@ static bool js_spine_Bone_isAppliedValid(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_isAppliedValid : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isAppliedValid(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2468,9 +2434,9 @@ static bool js_spine_Bone_rotateWorld(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_rotateWorld : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2487,9 +2453,9 @@ static bool js_spine_Bone_setA(se::State& s) // NOLINT(readability-identifier-na { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setA : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2506,9 +2472,9 @@ static bool js_spine_Bone_setAScaleX(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setAScaleX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2525,9 +2491,9 @@ static bool js_spine_Bone_setAScaleY(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setAScaleY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2544,9 +2510,9 @@ static bool js_spine_Bone_setAShearX(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setAShearX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2563,9 +2529,9 @@ static bool js_spine_Bone_setAShearY(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setAShearY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2582,9 +2548,9 @@ static bool js_spine_Bone_setAX(se::State& s) // NOLINT(readability-identifier-n { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setAX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2601,9 +2567,9 @@ static bool js_spine_Bone_setAY(se::State& s) // NOLINT(readability-identifier-n { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setAY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2620,9 +2586,9 @@ static bool js_spine_Bone_setActive(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setActive : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2639,9 +2605,9 @@ static bool js_spine_Bone_setAppliedRotation(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setAppliedRotation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2658,9 +2624,9 @@ static bool js_spine_Bone_setAppliedValid(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setAppliedValid : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2677,9 +2643,9 @@ static bool js_spine_Bone_setB(se::State& s) // NOLINT(readability-identifier-na { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2696,9 +2662,9 @@ static bool js_spine_Bone_setC(se::State& s) // NOLINT(readability-identifier-na { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setC : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2715,9 +2681,9 @@ static bool js_spine_Bone_setD(se::State& s) // NOLINT(readability-identifier-na { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setD : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2734,9 +2700,9 @@ static bool js_spine_Bone_setRotation(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setRotation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2753,9 +2719,9 @@ static bool js_spine_Bone_setScaleX(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setScaleX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2772,9 +2738,9 @@ static bool js_spine_Bone_setScaleY(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setScaleY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2791,9 +2757,9 @@ static bool js_spine_Bone_setShearX(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setShearX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2810,9 +2776,9 @@ static bool js_spine_Bone_setShearY(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setShearY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2830,7 +2796,7 @@ static bool js_spine_Bone_setToSetupPose(se::State& s) // NOLINT(readability-ide auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setToSetupPose : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->setToSetupPose(); return true; @@ -2844,9 +2810,9 @@ static bool js_spine_Bone_setWorldX(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setWorldX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2863,9 +2829,9 @@ static bool js_spine_Bone_setWorldY(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setWorldY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2882,9 +2848,9 @@ static bool js_spine_Bone_setX(se::State& s) // NOLINT(readability-identifier-na { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2901,9 +2867,9 @@ static bool js_spine_Bone_setY(se::State& s) // NOLINT(readability-identifier-na { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2921,7 +2887,7 @@ static bool js_spine_Bone_update(se::State& s) // NOLINT(readability-identifier- auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_update : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->update(); return true; @@ -2933,11 +2899,11 @@ SE_BIND_FUNC(js_spine_Bone_update) static bool js_spine_Bone_updateWorldTransform(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_spine_Bone_updateWorldTransform : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2( cobj, false, "js_spine_Bone_updateWorldTransform : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 7) { HolderType arg0 = {}; @@ -2949,51 +2915,31 @@ static bool js_spine_Bone_updateWorldTransform(se::State& s) // NOLINT(readabili HolderType arg6 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[3], &arg3, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[4], &arg4, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[5], &arg5, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[6], &arg6, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->updateWorldTransform(arg0.value(), arg1.value(), arg2.value(), arg3.value(), arg4.value(), arg5.value(), arg6.value()); return true; } - } while (false); + } while(false); do { if (argc == 0) { + cobj->updateWorldTransform(); return true; } - } while (false); + } while(false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -3002,9 +2948,9 @@ SE_BIND_FUNC(js_spine_Bone_updateWorldTransform) static bool js_spine_Bone_setYDown(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -3019,9 +2965,9 @@ SE_BIND_FUNC(js_spine_Bone_setYDown) static bool js_spine_Bone_isYDown(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = spine::Bone::isYDown(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3034,6 +2980,8 @@ static bool js_spine_Bone_isYDown(se::State& s) // NOLINT(readability-identifier } SE_BIND_FUNC(js_spine_Bone_isYDown) + + bool js_register_spine_Bone(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("Bone", obj, nullptr, nullptr); @@ -3108,15 +3056,15 @@ bool js_register_spine_Bone(se::Object* obj) // NOLINT(readability-identifier-na return true; } se::Object* __jsb_spine_BoneData_proto = nullptr; -se::Class* __jsb_spine_BoneData_class = nullptr; +se::Class* __jsb_spine_BoneData_class = nullptr; static bool js_spine_BoneData_getIndex(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_getIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getIndex(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3133,9 +3081,9 @@ static bool js_spine_BoneData_getLength(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_getLength : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getLength(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3152,9 +3100,9 @@ static bool js_spine_BoneData_getName(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_getName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::String& result = cobj->getName(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3171,9 +3119,9 @@ static bool js_spine_BoneData_getParent(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_getParent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::BoneData* result = cobj->getParent(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3190,9 +3138,9 @@ static bool js_spine_BoneData_getRotation(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_getRotation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRotation(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3209,9 +3157,9 @@ static bool js_spine_BoneData_getScaleX(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_getScaleX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getScaleX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3228,9 +3176,9 @@ static bool js_spine_BoneData_getScaleY(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_getScaleY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getScaleY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3247,9 +3195,9 @@ static bool js_spine_BoneData_getShearX(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_getShearX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getShearX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3266,9 +3214,9 @@ static bool js_spine_BoneData_getShearY(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_getShearY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getShearY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3285,9 +3233,9 @@ static bool js_spine_BoneData_getTransformMode(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_getTransformMode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getTransformMode()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3304,9 +3252,9 @@ static bool js_spine_BoneData_getX(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_getX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3323,9 +3271,9 @@ static bool js_spine_BoneData_getY(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_getY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3342,9 +3290,9 @@ static bool js_spine_BoneData_isSkinRequired(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_isSkinRequired : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isSkinRequired(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3361,9 +3309,9 @@ static bool js_spine_BoneData_setLength(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_setLength : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3380,9 +3328,9 @@ static bool js_spine_BoneData_setRotation(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_setRotation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3399,9 +3347,9 @@ static bool js_spine_BoneData_setScaleX(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_setScaleX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3418,9 +3366,9 @@ static bool js_spine_BoneData_setScaleY(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_setScaleY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3437,9 +3385,9 @@ static bool js_spine_BoneData_setShearX(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_setShearX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3456,9 +3404,9 @@ static bool js_spine_BoneData_setShearY(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_setShearY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3475,9 +3423,9 @@ static bool js_spine_BoneData_setSkinRequired(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_setSkinRequired : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3494,9 +3442,9 @@ static bool js_spine_BoneData_setTransformMode(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_setTransformMode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3513,9 +3461,9 @@ static bool js_spine_BoneData_setX(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_setX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3532,9 +3480,9 @@ static bool js_spine_BoneData_setY(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_setY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3547,6 +3495,8 @@ static bool js_spine_BoneData_setY(se::State& s) // NOLINT(readability-identifie } SE_BIND_FUNC(js_spine_BoneData_setY) + + bool js_register_spine_BoneData(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("BoneData", obj, nullptr, nullptr); @@ -3584,15 +3534,15 @@ bool js_register_spine_BoneData(se::Object* obj) // NOLINT(readability-identifie return true; } se::Object* __jsb_spine_VertexAttachment_proto = nullptr; -se::Class* __jsb_spine_VertexAttachment_class = nullptr; +se::Class* __jsb_spine_VertexAttachment_class = nullptr; static bool js_spine_VertexAttachment_copyTo(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_VertexAttachment_copyTo : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3609,9 +3559,9 @@ static bool js_spine_VertexAttachment_getDeformAttachment(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_VertexAttachment_getDeformAttachment : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::VertexAttachment* result = cobj->getDeformAttachment(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3628,9 +3578,9 @@ static bool js_spine_VertexAttachment_getId(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_VertexAttachment_getId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3647,9 +3597,9 @@ static bool js_spine_VertexAttachment_getVertices(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_VertexAttachment_getVertices : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Vector& result = cobj->getVertices(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3666,9 +3616,9 @@ static bool js_spine_VertexAttachment_getWorldVerticesLength(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_VertexAttachment_getWorldVerticesLength : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { size_t result = cobj->getWorldVerticesLength(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3685,9 +3635,9 @@ static bool js_spine_VertexAttachment_setDeformAttachment(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_VertexAttachment_setDeformAttachment : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3704,9 +3654,9 @@ static bool js_spine_VertexAttachment_setWorldVerticesLength(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_VertexAttachment_setWorldVerticesLength : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3719,6 +3669,8 @@ static bool js_spine_VertexAttachment_setWorldVerticesLength(se::State& s) // NO } SE_BIND_FUNC(js_spine_VertexAttachment_setWorldVerticesLength) + + bool js_register_spine_VertexAttachment(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("VertexAttachment", obj, __jsb_spine_Attachment_proto, nullptr); @@ -3740,15 +3692,15 @@ bool js_register_spine_VertexAttachment(se::Object* obj) // NOLINT(readability-i return true; } se::Object* __jsb_spine_BoundingBoxAttachment_proto = nullptr; -se::Class* __jsb_spine_BoundingBoxAttachment_class = nullptr; +se::Class* __jsb_spine_BoundingBoxAttachment_class = nullptr; static bool js_spine_BoundingBoxAttachment_copy(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoundingBoxAttachment_copy : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Attachment* result = cobj->copy(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3761,6 +3713,8 @@ static bool js_spine_BoundingBoxAttachment_copy(se::State& s) // NOLINT(readabil } SE_BIND_FUNC(js_spine_BoundingBoxAttachment_copy) + + bool js_register_spine_BoundingBoxAttachment(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("BoundingBoxAttachment", obj, __jsb_spine_VertexAttachment_proto, nullptr); @@ -3776,15 +3730,15 @@ bool js_register_spine_BoundingBoxAttachment(se::Object* obj) // NOLINT(readabil return true; } se::Object* __jsb_spine_ClippingAttachment_proto = nullptr; -se::Class* __jsb_spine_ClippingAttachment_class = nullptr; +se::Class* __jsb_spine_ClippingAttachment_class = nullptr; static bool js_spine_ClippingAttachment_copy(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_ClippingAttachment_copy : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Attachment* result = cobj->copy(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3801,9 +3755,9 @@ static bool js_spine_ClippingAttachment_getEndSlot(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_ClippingAttachment_getEndSlot : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::SlotData* result = cobj->getEndSlot(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3820,9 +3774,9 @@ static bool js_spine_ClippingAttachment_setEndSlot(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_ClippingAttachment_setEndSlot : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3835,6 +3789,8 @@ static bool js_spine_ClippingAttachment_setEndSlot(se::State& s) // NOLINT(reada } SE_BIND_FUNC(js_spine_ClippingAttachment_setEndSlot) + + bool js_register_spine_ClippingAttachment(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("ClippingAttachment", obj, __jsb_spine_VertexAttachment_proto, nullptr); @@ -3852,15 +3808,15 @@ bool js_register_spine_ClippingAttachment(se::Object* obj) // NOLINT(readability return true; } se::Object* __jsb_spine_Color_proto = nullptr; -se::Class* __jsb_spine_Color_class = nullptr; +se::Class* __jsb_spine_Color_class = nullptr; static bool js_spine_Color_clamp(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Color_clamp : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Color& result = cobj->clamp(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3879,7 +3835,7 @@ static bool js_spine_Color_get_r(se::State& s) // NOLINT(readability-identifier- SE_PRECONDITION2(cobj, false, "js_spine_Color_get_r : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->r, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->r, s.thisObject(), s.rval()); @@ -3890,7 +3846,7 @@ SE_BIND_PROP_GET(js_spine_Color_get_r) static bool js_spine_Color_set_r(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Color_set_r : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3906,7 +3862,7 @@ static bool js_spine_Color_get_g(se::State& s) // NOLINT(readability-identifier- SE_PRECONDITION2(cobj, false, "js_spine_Color_get_g : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->g, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->g, s.thisObject(), s.rval()); @@ -3917,7 +3873,7 @@ SE_BIND_PROP_GET(js_spine_Color_get_g) static bool js_spine_Color_set_g(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Color_set_g : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3933,7 +3889,7 @@ static bool js_spine_Color_get_b(se::State& s) // NOLINT(readability-identifier- SE_PRECONDITION2(cobj, false, "js_spine_Color_get_b : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->b, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->b, s.thisObject(), s.rval()); @@ -3944,7 +3900,7 @@ SE_BIND_PROP_GET(js_spine_Color_get_b) static bool js_spine_Color_set_b(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Color_set_b : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3960,7 +3916,7 @@ static bool js_spine_Color_get_a(se::State& s) // NOLINT(readability-identifier- SE_PRECONDITION2(cobj, false, "js_spine_Color_get_a : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->a, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->a, s.thisObject(), s.rval()); @@ -3971,7 +3927,7 @@ SE_BIND_PROP_GET(js_spine_Color_get_a) static bool js_spine_Color_set_a(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Color_set_a : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3981,6 +3937,8 @@ static bool js_spine_Color_set_a(se::State& s) // NOLINT(readability-identifier- } SE_BIND_PROP_SET(js_spine_Color_set_a) + + bool js_register_spine_Color(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("Color", obj, nullptr, nullptr); @@ -4000,18 +3958,18 @@ bool js_register_spine_Color(se::Object* obj) // NOLINT(readability-identifier-n return true; } se::Object* __jsb_spine_CurveTimeline_proto = nullptr; -se::Class* __jsb_spine_CurveTimeline_class = nullptr; +se::Class* __jsb_spine_CurveTimeline_class = nullptr; static bool js_spine_CurveTimeline_getCurvePercent(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_CurveTimeline_getCurvePercent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_spine_CurveTimeline_getCurvePercent : Error processing arguments"); @@ -4030,9 +3988,9 @@ static bool js_spine_CurveTimeline_getCurveType(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_CurveTimeline_getCurveType : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4052,9 +4010,9 @@ static bool js_spine_CurveTimeline_getFrameCount(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_CurveTimeline_getFrameCount : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { size_t result = cobj->getFrameCount(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4071,9 +4029,9 @@ static bool js_spine_CurveTimeline_getPropertyId(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_CurveTimeline_getPropertyId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getPropertyId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4090,15 +4048,15 @@ static bool js_spine_CurveTimeline_setCurve(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_CurveTimeline_setCurve : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 5) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; - HolderType arg4 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; + HolderType arg4 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -4117,9 +4075,9 @@ static bool js_spine_CurveTimeline_setLinear(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_CurveTimeline_setLinear : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4136,9 +4094,9 @@ static bool js_spine_CurveTimeline_setStepped(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_CurveTimeline_setStepped : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4151,6 +4109,8 @@ static bool js_spine_CurveTimeline_setStepped(se::State& s) // NOLINT(readabilit } SE_BIND_FUNC(js_spine_CurveTimeline_setStepped) + + bool js_register_spine_CurveTimeline(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("CurveTimeline", obj, __jsb_spine_Timeline_proto, nullptr); @@ -4172,15 +4132,15 @@ bool js_register_spine_CurveTimeline(se::Object* obj) // NOLINT(readability-iden return true; } se::Object* __jsb_spine_ColorTimeline_proto = nullptr; -se::Class* __jsb_spine_ColorTimeline_class = nullptr; +se::Class* __jsb_spine_ColorTimeline_class = nullptr; static bool js_spine_ColorTimeline_getFrames(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_ColorTimeline_getFrames : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Vector& result = cobj->getFrames(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4197,9 +4157,9 @@ static bool js_spine_ColorTimeline_getPropertyId(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_ColorTimeline_getPropertyId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getPropertyId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4216,9 +4176,9 @@ static bool js_spine_ColorTimeline_getSlotIndex(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_ColorTimeline_getSlotIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getSlotIndex(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4235,11 +4195,11 @@ static bool js_spine_ColorTimeline_setFrame(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_ColorTimeline_setFrame : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 6) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; HolderType arg2 = {}; HolderType arg3 = {}; @@ -4264,9 +4224,9 @@ static bool js_spine_ColorTimeline_setSlotIndex(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_ColorTimeline_setSlotIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4279,6 +4239,8 @@ static bool js_spine_ColorTimeline_setSlotIndex(se::State& s) // NOLINT(readabil } SE_BIND_FUNC(js_spine_ColorTimeline_setSlotIndex) + + bool js_register_spine_ColorTimeline(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("ColorTimeline", obj, __jsb_spine_CurveTimeline_proto, nullptr); @@ -4298,15 +4260,15 @@ bool js_register_spine_ColorTimeline(se::Object* obj) // NOLINT(readability-iden return true; } se::Object* __jsb_spine_ConstraintData_proto = nullptr; -se::Class* __jsb_spine_ConstraintData_class = nullptr; +se::Class* __jsb_spine_ConstraintData_class = nullptr; static bool js_spine_ConstraintData_getName(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_ConstraintData_getName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::String& result = cobj->getName(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4323,9 +4285,9 @@ static bool js_spine_ConstraintData_getOrder(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_ConstraintData_getOrder : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { size_t result = cobj->getOrder(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4342,9 +4304,9 @@ static bool js_spine_ConstraintData_isSkinRequired(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_ConstraintData_isSkinRequired : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isSkinRequired(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4361,9 +4323,9 @@ static bool js_spine_ConstraintData_setOrder(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_ConstraintData_setOrder : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4380,9 +4342,9 @@ static bool js_spine_ConstraintData_setSkinRequired(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_ConstraintData_setSkinRequired : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4395,6 +4357,8 @@ static bool js_spine_ConstraintData_setSkinRequired(se::State& s) // NOLINT(read } SE_BIND_FUNC(js_spine_ConstraintData_setSkinRequired) + + bool js_register_spine_ConstraintData(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("ConstraintData", obj, nullptr, nullptr); @@ -4414,15 +4378,15 @@ bool js_register_spine_ConstraintData(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_spine_DeformTimeline_proto = nullptr; -se::Class* __jsb_spine_DeformTimeline_class = nullptr; +se::Class* __jsb_spine_DeformTimeline_class = nullptr; static bool js_spine_DeformTimeline_getAttachment(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_DeformTimeline_getAttachment : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::VertexAttachment* result = cobj->getAttachment(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4439,9 +4403,9 @@ static bool js_spine_DeformTimeline_getFrames(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_DeformTimeline_getFrames : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Vector& result = cobj->getFrames(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4458,9 +4422,9 @@ static bool js_spine_DeformTimeline_getPropertyId(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_DeformTimeline_getPropertyId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getPropertyId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4477,9 +4441,9 @@ static bool js_spine_DeformTimeline_getSlotIndex(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_DeformTimeline_getSlotIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getSlotIndex(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4496,9 +4460,9 @@ static bool js_spine_DeformTimeline_setAttachment(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_DeformTimeline_setAttachment : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4515,9 +4479,9 @@ static bool js_spine_DeformTimeline_setSlotIndex(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_DeformTimeline_setSlotIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4530,6 +4494,8 @@ static bool js_spine_DeformTimeline_setSlotIndex(se::State& s) // NOLINT(readabi } SE_BIND_FUNC(js_spine_DeformTimeline_setSlotIndex) + + bool js_register_spine_DeformTimeline(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("DeformTimeline", obj, __jsb_spine_CurveTimeline_proto, nullptr); @@ -4550,15 +4516,15 @@ bool js_register_spine_DeformTimeline(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_spine_DrawOrderTimeline_proto = nullptr; -se::Class* __jsb_spine_DrawOrderTimeline_class = nullptr; +se::Class* __jsb_spine_DrawOrderTimeline_class = nullptr; static bool js_spine_DrawOrderTimeline_getFrameCount(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_DrawOrderTimeline_getFrameCount : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { size_t result = cobj->getFrameCount(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4575,9 +4541,9 @@ static bool js_spine_DrawOrderTimeline_getFrames(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_DrawOrderTimeline_getFrames : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Vector& result = cobj->getFrames(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4594,9 +4560,9 @@ static bool js_spine_DrawOrderTimeline_getPropertyId(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_DrawOrderTimeline_getPropertyId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getPropertyId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4609,6 +4575,8 @@ static bool js_spine_DrawOrderTimeline_getPropertyId(se::State& s) // NOLINT(rea } SE_BIND_FUNC(js_spine_DrawOrderTimeline_getPropertyId) + + bool js_register_spine_DrawOrderTimeline(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("DrawOrderTimeline", obj, __jsb_spine_Timeline_proto, nullptr); @@ -4626,15 +4594,15 @@ bool js_register_spine_DrawOrderTimeline(se::Object* obj) // NOLINT(readability- return true; } se::Object* __jsb_spine_Event_proto = nullptr; -se::Class* __jsb_spine_Event_class = nullptr; +se::Class* __jsb_spine_Event_class = nullptr; static bool js_spine_Event_getBalance(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Event_getBalance : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getBalance(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4651,9 +4619,9 @@ static bool js_spine_Event_getData(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Event_getData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::EventData& result = cobj->getData(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4670,9 +4638,9 @@ static bool js_spine_Event_getFloatValue(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Event_getFloatValue : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getFloatValue(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4689,9 +4657,9 @@ static bool js_spine_Event_getIntValue(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Event_getIntValue : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getIntValue(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4708,9 +4676,9 @@ static bool js_spine_Event_getStringValue(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Event_getStringValue : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::String& result = cobj->getStringValue(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4727,9 +4695,9 @@ static bool js_spine_Event_getTime(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Event_getTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getTime(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4746,9 +4714,9 @@ static bool js_spine_Event_getVolume(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Event_getVolume : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getVolume(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4765,9 +4733,9 @@ static bool js_spine_Event_setBalance(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Event_setBalance : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4784,9 +4752,9 @@ static bool js_spine_Event_setFloatValue(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Event_setFloatValue : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4803,9 +4771,9 @@ static bool js_spine_Event_setIntValue(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Event_setIntValue : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4822,9 +4790,9 @@ static bool js_spine_Event_setStringValue(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Event_setStringValue : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4841,9 +4809,9 @@ static bool js_spine_Event_setVolume(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Event_setVolume : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4856,6 +4824,8 @@ static bool js_spine_Event_setVolume(se::State& s) // NOLINT(readability-identif } SE_BIND_FUNC(js_spine_Event_setVolume) + + bool js_register_spine_Event(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("Event", obj, nullptr, nullptr); @@ -4882,15 +4852,15 @@ bool js_register_spine_Event(se::Object* obj) // NOLINT(readability-identifier-n return true; } se::Object* __jsb_spine_EventData_proto = nullptr; -se::Class* __jsb_spine_EventData_class = nullptr; +se::Class* __jsb_spine_EventData_class = nullptr; static bool js_spine_EventData_getAudioPath(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_EventData_getAudioPath : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::String& result = cobj->getAudioPath(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4907,9 +4877,9 @@ static bool js_spine_EventData_getBalance(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_EventData_getBalance : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getBalance(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4926,9 +4896,9 @@ static bool js_spine_EventData_getFloatValue(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_EventData_getFloatValue : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getFloatValue(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4945,9 +4915,9 @@ static bool js_spine_EventData_getIntValue(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_EventData_getIntValue : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getIntValue(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4964,9 +4934,9 @@ static bool js_spine_EventData_getName(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_EventData_getName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::String& result = cobj->getName(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4983,9 +4953,9 @@ static bool js_spine_EventData_getStringValue(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_EventData_getStringValue : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::String& result = cobj->getStringValue(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5002,9 +4972,9 @@ static bool js_spine_EventData_getVolume(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_EventData_getVolume : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getVolume(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5021,9 +4991,9 @@ static bool js_spine_EventData_setAudioPath(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_EventData_setAudioPath : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5040,9 +5010,9 @@ static bool js_spine_EventData_setBalance(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_EventData_setBalance : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5059,9 +5029,9 @@ static bool js_spine_EventData_setFloatValue(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_EventData_setFloatValue : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5078,9 +5048,9 @@ static bool js_spine_EventData_setIntValue(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_EventData_setIntValue : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5097,9 +5067,9 @@ static bool js_spine_EventData_setStringValue(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_EventData_setStringValue : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5116,9 +5086,9 @@ static bool js_spine_EventData_setVolume(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_EventData_setVolume : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5131,6 +5101,8 @@ static bool js_spine_EventData_setVolume(se::State& s) // NOLINT(readability-ide } SE_BIND_FUNC(js_spine_EventData_setVolume) + + bool js_register_spine_EventData(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("EventData", obj, nullptr, nullptr); @@ -5158,17 +5130,17 @@ bool js_register_spine_EventData(se::Object* obj) // NOLINT(readability-identifi return true; } se::Object* __jsb_spine_EventTimeline_proto = nullptr; -se::Class* __jsb_spine_EventTimeline_class = nullptr; +se::Class* __jsb_spine_EventTimeline_class = nullptr; static bool js_spine_EventTimeline_getEvents(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_EventTimeline_getEvents : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getEvents(); + spine::Vector& result = cobj->getEvents(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_EventTimeline_getEvents : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -5183,9 +5155,9 @@ static bool js_spine_EventTimeline_getFrameCount(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_EventTimeline_getFrameCount : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { size_t result = cobj->getFrameCount(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5202,9 +5174,9 @@ static bool js_spine_EventTimeline_getFrames(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_EventTimeline_getFrames : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Vector result = cobj->getFrames(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5221,9 +5193,9 @@ static bool js_spine_EventTimeline_getPropertyId(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_EventTimeline_getPropertyId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getPropertyId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5240,11 +5212,11 @@ static bool js_spine_EventTimeline_setFrame(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_EventTimeline_setFrame : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -5257,6 +5229,8 @@ static bool js_spine_EventTimeline_setFrame(se::State& s) // NOLINT(readability- } SE_BIND_FUNC(js_spine_EventTimeline_setFrame) + + bool js_register_spine_EventTimeline(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("EventTimeline", obj, __jsb_spine_Timeline_proto, nullptr); @@ -5276,15 +5250,15 @@ bool js_register_spine_EventTimeline(se::Object* obj) // NOLINT(readability-iden return true; } se::Object* __jsb_spine_IkConstraint_proto = nullptr; -se::Class* __jsb_spine_IkConstraint_class = nullptr; +se::Class* __jsb_spine_IkConstraint_class = nullptr; static bool js_spine_IkConstraint_getBendDirection(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraint_getBendDirection : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getBendDirection(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5301,11 +5275,11 @@ static bool js_spine_IkConstraint_getBones(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraint_getBones : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getBones(); + spine::Vector& result = cobj->getBones(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_IkConstraint_getBones : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -5320,9 +5294,9 @@ static bool js_spine_IkConstraint_getCompress(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraint_getCompress : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getCompress(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5339,9 +5313,9 @@ static bool js_spine_IkConstraint_getData(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraint_getData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::IkConstraintData& result = cobj->getData(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5358,9 +5332,9 @@ static bool js_spine_IkConstraint_getMix(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraint_getMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getMix(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5377,9 +5351,9 @@ static bool js_spine_IkConstraint_getOrder(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraint_getOrder : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getOrder(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5396,9 +5370,9 @@ static bool js_spine_IkConstraint_getSoftness(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraint_getSoftness : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getSoftness(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5415,9 +5389,9 @@ static bool js_spine_IkConstraint_getStretch(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraint_getStretch : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getStretch(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5434,9 +5408,9 @@ static bool js_spine_IkConstraint_getTarget(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraint_getTarget : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Bone* result = cobj->getTarget(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5453,9 +5427,9 @@ static bool js_spine_IkConstraint_isActive(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraint_isActive : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isActive(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5472,9 +5446,9 @@ static bool js_spine_IkConstraint_setActive(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraint_setActive : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5491,9 +5465,9 @@ static bool js_spine_IkConstraint_setBendDirection(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraint_setBendDirection : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5510,9 +5484,9 @@ static bool js_spine_IkConstraint_setCompress(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraint_setCompress : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5529,9 +5503,9 @@ static bool js_spine_IkConstraint_setMix(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraint_setMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5548,9 +5522,9 @@ static bool js_spine_IkConstraint_setSoftness(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraint_setSoftness : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5567,9 +5541,9 @@ static bool js_spine_IkConstraint_setStretch(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraint_setStretch : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5586,9 +5560,9 @@ static bool js_spine_IkConstraint_setTarget(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraint_setTarget : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5606,7 +5580,7 @@ static bool js_spine_IkConstraint_update(se::State& s) // NOLINT(readability-ide auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraint_update : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->update(); return true; @@ -5616,6 +5590,8 @@ static bool js_spine_IkConstraint_update(se::State& s) // NOLINT(readability-ide } SE_BIND_FUNC(js_spine_IkConstraint_update) + + bool js_register_spine_IkConstraint(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("IkConstraint", obj, nullptr, nullptr); @@ -5648,15 +5624,15 @@ bool js_register_spine_IkConstraint(se::Object* obj) // NOLINT(readability-ident return true; } se::Object* __jsb_spine_IkConstraintData_proto = nullptr; -se::Class* __jsb_spine_IkConstraintData_class = nullptr; +se::Class* __jsb_spine_IkConstraintData_class = nullptr; static bool js_spine_IkConstraintData_getBendDirection(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraintData_getBendDirection : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getBendDirection(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5673,11 +5649,11 @@ static bool js_spine_IkConstraintData_getBones(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraintData_getBones : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getBones(); + spine::Vector& result = cobj->getBones(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_IkConstraintData_getBones : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -5692,9 +5668,9 @@ static bool js_spine_IkConstraintData_getCompress(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraintData_getCompress : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getCompress(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5711,9 +5687,9 @@ static bool js_spine_IkConstraintData_getMix(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraintData_getMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getMix(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5730,9 +5706,9 @@ static bool js_spine_IkConstraintData_getSoftness(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraintData_getSoftness : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getSoftness(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5749,9 +5725,9 @@ static bool js_spine_IkConstraintData_getStretch(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraintData_getStretch : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getStretch(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5768,9 +5744,9 @@ static bool js_spine_IkConstraintData_getTarget(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraintData_getTarget : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::BoneData* result = cobj->getTarget(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5787,9 +5763,9 @@ static bool js_spine_IkConstraintData_getUniform(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraintData_getUniform : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getUniform(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5806,9 +5782,9 @@ static bool js_spine_IkConstraintData_setBendDirection(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraintData_setBendDirection : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5825,9 +5801,9 @@ static bool js_spine_IkConstraintData_setCompress(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraintData_setCompress : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5844,9 +5820,9 @@ static bool js_spine_IkConstraintData_setMix(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraintData_setMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5863,9 +5839,9 @@ static bool js_spine_IkConstraintData_setSoftness(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraintData_setSoftness : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5882,9 +5858,9 @@ static bool js_spine_IkConstraintData_setStretch(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraintData_setStretch : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5901,9 +5877,9 @@ static bool js_spine_IkConstraintData_setTarget(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraintData_setTarget : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5920,9 +5896,9 @@ static bool js_spine_IkConstraintData_setUniform(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraintData_setUniform : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5935,6 +5911,8 @@ static bool js_spine_IkConstraintData_setUniform(se::State& s) // NOLINT(readabi } SE_BIND_FUNC(js_spine_IkConstraintData_setUniform) + + bool js_register_spine_IkConstraintData(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("IkConstraintData", obj, __jsb_spine_ConstraintData_proto, nullptr); @@ -5964,15 +5942,15 @@ bool js_register_spine_IkConstraintData(se::Object* obj) // NOLINT(readability-i return true; } se::Object* __jsb_spine_IkConstraintTimeline_proto = nullptr; -se::Class* __jsb_spine_IkConstraintTimeline_class = nullptr; +se::Class* __jsb_spine_IkConstraintTimeline_class = nullptr; static bool js_spine_IkConstraintTimeline_getPropertyId(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraintTimeline_getPropertyId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getPropertyId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5989,17 +5967,17 @@ static bool js_spine_IkConstraintTimeline_setFrame(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraintTimeline_setFrame : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 7) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; HolderType arg2 = {}; HolderType arg3 = {}; - HolderType arg4 = {}; - HolderType arg5 = {}; - HolderType arg6 = {}; + HolderType arg4 = {}; + HolderType arg5 = {}; + HolderType arg6 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -6016,6 +5994,8 @@ static bool js_spine_IkConstraintTimeline_setFrame(se::State& s) // NOLINT(reada } SE_BIND_FUNC(js_spine_IkConstraintTimeline_setFrame) + + bool js_register_spine_IkConstraintTimeline(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("IkConstraintTimeline", obj, __jsb_spine_CurveTimeline_proto, nullptr); @@ -6032,15 +6012,15 @@ bool js_register_spine_IkConstraintTimeline(se::Object* obj) // NOLINT(readabili return true; } se::Object* __jsb_spine_MeshAttachment_proto = nullptr; -se::Class* __jsb_spine_MeshAttachment_class = nullptr; +se::Class* __jsb_spine_MeshAttachment_class = nullptr; static bool js_spine_MeshAttachment_copy(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_copy : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Attachment* result = cobj->copy(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6057,9 +6037,9 @@ static bool js_spine_MeshAttachment_getColor(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getColor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Color& result = cobj->getColor(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6076,9 +6056,9 @@ static bool js_spine_MeshAttachment_getEdges(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getEdges : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Vector& result = cobj->getEdges(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6095,9 +6075,9 @@ static bool js_spine_MeshAttachment_getHeight(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getHeight(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6114,9 +6094,9 @@ static bool js_spine_MeshAttachment_getHullLength(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getHullLength : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getHullLength(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6133,9 +6113,9 @@ static bool js_spine_MeshAttachment_getParentMesh(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getParentMesh : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::MeshAttachment* result = cobj->getParentMesh(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6152,9 +6132,9 @@ static bool js_spine_MeshAttachment_getPath(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getPath : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::String& result = cobj->getPath(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6171,9 +6151,9 @@ static bool js_spine_MeshAttachment_getRegionDegrees(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getRegionDegrees : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getRegionDegrees(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6190,9 +6170,9 @@ static bool js_spine_MeshAttachment_getRegionHeight(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getRegionHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRegionHeight(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6209,9 +6189,9 @@ static bool js_spine_MeshAttachment_getRegionOffsetX(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getRegionOffsetX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRegionOffsetX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6228,9 +6208,9 @@ static bool js_spine_MeshAttachment_getRegionOffsetY(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getRegionOffsetY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRegionOffsetY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6247,9 +6227,9 @@ static bool js_spine_MeshAttachment_getRegionOriginalHeight(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getRegionOriginalHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRegionOriginalHeight(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6266,9 +6246,9 @@ static bool js_spine_MeshAttachment_getRegionOriginalWidth(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getRegionOriginalWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRegionOriginalWidth(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6285,9 +6265,9 @@ static bool js_spine_MeshAttachment_getRegionRotate(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getRegionRotate : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getRegionRotate(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6304,9 +6284,9 @@ static bool js_spine_MeshAttachment_getRegionU(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getRegionU : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRegionU(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6323,9 +6303,9 @@ static bool js_spine_MeshAttachment_getRegionU2(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getRegionU2 : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRegionU2(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6342,9 +6322,9 @@ static bool js_spine_MeshAttachment_getRegionUVs(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getRegionUVs : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Vector& result = cobj->getRegionUVs(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6361,9 +6341,9 @@ static bool js_spine_MeshAttachment_getRegionV(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getRegionV : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRegionV(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6380,9 +6360,9 @@ static bool js_spine_MeshAttachment_getRegionV2(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getRegionV2 : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRegionV2(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6399,9 +6379,9 @@ static bool js_spine_MeshAttachment_getRegionWidth(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getRegionWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRegionWidth(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6418,9 +6398,9 @@ static bool js_spine_MeshAttachment_getTriangles(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getTriangles : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Vector& result = cobj->getTriangles(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6437,9 +6417,9 @@ static bool js_spine_MeshAttachment_getUVs(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getUVs : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Vector& result = cobj->getUVs(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6456,9 +6436,9 @@ static bool js_spine_MeshAttachment_getWidth(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getWidth(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6475,9 +6455,9 @@ static bool js_spine_MeshAttachment_newLinkedMesh(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_newLinkedMesh : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::MeshAttachment* result = cobj->newLinkedMesh(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6494,9 +6474,9 @@ static bool js_spine_MeshAttachment_setHeight(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_setHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6513,9 +6493,9 @@ static bool js_spine_MeshAttachment_setHullLength(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_setHullLength : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6532,9 +6512,9 @@ static bool js_spine_MeshAttachment_setParentMesh(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_setParentMesh : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6551,9 +6531,9 @@ static bool js_spine_MeshAttachment_setPath(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_setPath : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6570,9 +6550,9 @@ static bool js_spine_MeshAttachment_setRegionDegrees(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_setRegionDegrees : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6589,9 +6569,9 @@ static bool js_spine_MeshAttachment_setRegionHeight(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_setRegionHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6608,9 +6588,9 @@ static bool js_spine_MeshAttachment_setRegionOffsetX(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_setRegionOffsetX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6627,9 +6607,9 @@ static bool js_spine_MeshAttachment_setRegionOffsetY(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_setRegionOffsetY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6646,9 +6626,9 @@ static bool js_spine_MeshAttachment_setRegionOriginalHeight(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_setRegionOriginalHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6665,9 +6645,9 @@ static bool js_spine_MeshAttachment_setRegionOriginalWidth(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_setRegionOriginalWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6684,9 +6664,9 @@ static bool js_spine_MeshAttachment_setRegionRotate(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_setRegionRotate : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6703,9 +6683,9 @@ static bool js_spine_MeshAttachment_setRegionU(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_setRegionU : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6722,9 +6702,9 @@ static bool js_spine_MeshAttachment_setRegionU2(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_setRegionU2 : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6741,9 +6721,9 @@ static bool js_spine_MeshAttachment_setRegionV(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_setRegionV : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6760,9 +6740,9 @@ static bool js_spine_MeshAttachment_setRegionV2(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_setRegionV2 : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6779,9 +6759,9 @@ static bool js_spine_MeshAttachment_setRegionWidth(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_setRegionWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6798,9 +6778,9 @@ static bool js_spine_MeshAttachment_setWidth(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_setWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6818,7 +6798,7 @@ static bool js_spine_MeshAttachment_updateUVs(se::State& s) // NOLINT(readabilit auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_updateUVs : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->updateUVs(); return true; @@ -6828,6 +6808,8 @@ static bool js_spine_MeshAttachment_updateUVs(se::State& s) // NOLINT(readabilit } SE_BIND_FUNC(js_spine_MeshAttachment_updateUVs) + + bool js_register_spine_MeshAttachment(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("MeshAttachment", obj, __jsb_spine_VertexAttachment_proto, nullptr); @@ -6884,15 +6866,15 @@ bool js_register_spine_MeshAttachment(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_spine_PathAttachment_proto = nullptr; -se::Class* __jsb_spine_PathAttachment_class = nullptr; +se::Class* __jsb_spine_PathAttachment_class = nullptr; static bool js_spine_PathAttachment_copy(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathAttachment_copy : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Attachment* result = cobj->copy(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6909,9 +6891,9 @@ static bool js_spine_PathAttachment_getLengths(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathAttachment_getLengths : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Vector& result = cobj->getLengths(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6928,9 +6910,9 @@ static bool js_spine_PathAttachment_isClosed(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathAttachment_isClosed : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isClosed(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6947,9 +6929,9 @@ static bool js_spine_PathAttachment_isConstantSpeed(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathAttachment_isConstantSpeed : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isConstantSpeed(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6966,9 +6948,9 @@ static bool js_spine_PathAttachment_setClosed(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathAttachment_setClosed : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6985,9 +6967,9 @@ static bool js_spine_PathAttachment_setConstantSpeed(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathAttachment_setConstantSpeed : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7000,6 +6982,8 @@ static bool js_spine_PathAttachment_setConstantSpeed(se::State& s) // NOLINT(rea } SE_BIND_FUNC(js_spine_PathAttachment_setConstantSpeed) + + bool js_register_spine_PathAttachment(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("PathAttachment", obj, __jsb_spine_VertexAttachment_proto, nullptr); @@ -7020,14 +7004,14 @@ bool js_register_spine_PathAttachment(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_spine_PathConstraint_proto = nullptr; -se::Class* __jsb_spine_PathConstraint_class = nullptr; +se::Class* __jsb_spine_PathConstraint_class = nullptr; static bool js_spine_PathConstraint_apply(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraint_apply : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->apply(); return true; @@ -7041,11 +7025,11 @@ static bool js_spine_PathConstraint_getBones(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraint_getBones : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getBones(); + spine::Vector& result = cobj->getBones(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_PathConstraint_getBones : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -7060,9 +7044,9 @@ static bool js_spine_PathConstraint_getData(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraint_getData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::PathConstraintData& result = cobj->getData(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7079,9 +7063,9 @@ static bool js_spine_PathConstraint_getOrder(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraint_getOrder : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getOrder(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7098,9 +7082,9 @@ static bool js_spine_PathConstraint_getPosition(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraint_getPosition : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getPosition(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7117,9 +7101,9 @@ static bool js_spine_PathConstraint_getRotateMix(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraint_getRotateMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRotateMix(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7136,9 +7120,9 @@ static bool js_spine_PathConstraint_getSpacing(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraint_getSpacing : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getSpacing(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7155,9 +7139,9 @@ static bool js_spine_PathConstraint_getTarget(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraint_getTarget : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Slot* result = cobj->getTarget(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7174,9 +7158,9 @@ static bool js_spine_PathConstraint_getTranslateMix(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraint_getTranslateMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getTranslateMix(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7193,9 +7177,9 @@ static bool js_spine_PathConstraint_isActive(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraint_isActive : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isActive(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7212,9 +7196,9 @@ static bool js_spine_PathConstraint_setActive(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraint_setActive : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7231,9 +7215,9 @@ static bool js_spine_PathConstraint_setPosition(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraint_setPosition : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7250,9 +7234,9 @@ static bool js_spine_PathConstraint_setRotateMix(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraint_setRotateMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7269,9 +7253,9 @@ static bool js_spine_PathConstraint_setSpacing(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraint_setSpacing : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7288,9 +7272,9 @@ static bool js_spine_PathConstraint_setTarget(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraint_setTarget : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7307,9 +7291,9 @@ static bool js_spine_PathConstraint_setTranslateMix(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraint_setTranslateMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7327,7 +7311,7 @@ static bool js_spine_PathConstraint_update(se::State& s) // NOLINT(readability-i auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraint_update : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->update(); return true; @@ -7337,6 +7321,8 @@ static bool js_spine_PathConstraint_update(se::State& s) // NOLINT(readability-i } SE_BIND_FUNC(js_spine_PathConstraint_update) + + bool js_register_spine_PathConstraint(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("PathConstraint", obj, nullptr, nullptr); @@ -7368,17 +7354,17 @@ bool js_register_spine_PathConstraint(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_spine_PathConstraintData_proto = nullptr; -se::Class* __jsb_spine_PathConstraintData_class = nullptr; +se::Class* __jsb_spine_PathConstraintData_class = nullptr; static bool js_spine_PathConstraintData_getBones(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintData_getBones : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getBones(); + spine::Vector& result = cobj->getBones(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_PathConstraintData_getBones : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -7393,9 +7379,9 @@ static bool js_spine_PathConstraintData_getOffsetRotation(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintData_getOffsetRotation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getOffsetRotation(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7412,9 +7398,9 @@ static bool js_spine_PathConstraintData_getPosition(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintData_getPosition : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getPosition(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7431,9 +7417,9 @@ static bool js_spine_PathConstraintData_getPositionMode(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintData_getPositionMode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getPositionMode()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7450,9 +7436,9 @@ static bool js_spine_PathConstraintData_getRotateMix(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintData_getRotateMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRotateMix(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7469,9 +7455,9 @@ static bool js_spine_PathConstraintData_getRotateMode(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintData_getRotateMode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getRotateMode()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7488,9 +7474,9 @@ static bool js_spine_PathConstraintData_getSpacing(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintData_getSpacing : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getSpacing(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7507,9 +7493,9 @@ static bool js_spine_PathConstraintData_getSpacingMode(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintData_getSpacingMode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getSpacingMode()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7526,9 +7512,9 @@ static bool js_spine_PathConstraintData_getTarget(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintData_getTarget : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::SlotData* result = cobj->getTarget(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7545,9 +7531,9 @@ static bool js_spine_PathConstraintData_getTranslateMix(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintData_getTranslateMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getTranslateMix(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7564,9 +7550,9 @@ static bool js_spine_PathConstraintData_setOffsetRotation(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintData_setOffsetRotation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7583,9 +7569,9 @@ static bool js_spine_PathConstraintData_setPosition(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintData_setPosition : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7602,9 +7588,9 @@ static bool js_spine_PathConstraintData_setPositionMode(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintData_setPositionMode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7621,9 +7607,9 @@ static bool js_spine_PathConstraintData_setRotateMix(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintData_setRotateMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7640,9 +7626,9 @@ static bool js_spine_PathConstraintData_setRotateMode(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintData_setRotateMode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7659,9 +7645,9 @@ static bool js_spine_PathConstraintData_setSpacing(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintData_setSpacing : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7678,9 +7664,9 @@ static bool js_spine_PathConstraintData_setSpacingMode(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintData_setSpacingMode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7697,9 +7683,9 @@ static bool js_spine_PathConstraintData_setTarget(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintData_setTarget : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7716,9 +7702,9 @@ static bool js_spine_PathConstraintData_setTranslateMix(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintData_setTranslateMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7731,6 +7717,8 @@ static bool js_spine_PathConstraintData_setTranslateMix(se::State& s) // NOLINT( } SE_BIND_FUNC(js_spine_PathConstraintData_setTranslateMix) + + bool js_register_spine_PathConstraintData(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("PathConstraintData", obj, __jsb_spine_ConstraintData_proto, nullptr); @@ -7764,15 +7752,15 @@ bool js_register_spine_PathConstraintData(se::Object* obj) // NOLINT(readability return true; } se::Object* __jsb_spine_PathConstraintMixTimeline_proto = nullptr; -se::Class* __jsb_spine_PathConstraintMixTimeline_class = nullptr; +se::Class* __jsb_spine_PathConstraintMixTimeline_class = nullptr; static bool js_spine_PathConstraintMixTimeline_getPropertyId(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintMixTimeline_getPropertyId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getPropertyId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7785,6 +7773,8 @@ static bool js_spine_PathConstraintMixTimeline_getPropertyId(se::State& s) // NO } SE_BIND_FUNC(js_spine_PathConstraintMixTimeline_getPropertyId) + + bool js_register_spine_PathConstraintMixTimeline(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("PathConstraintMixTimeline", obj, __jsb_spine_CurveTimeline_proto, nullptr); @@ -7800,15 +7790,15 @@ bool js_register_spine_PathConstraintMixTimeline(se::Object* obj) // NOLINT(read return true; } se::Object* __jsb_spine_PathConstraintPositionTimeline_proto = nullptr; -se::Class* __jsb_spine_PathConstraintPositionTimeline_class = nullptr; +se::Class* __jsb_spine_PathConstraintPositionTimeline_class = nullptr; static bool js_spine_PathConstraintPositionTimeline_getPropertyId(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintPositionTimeline_getPropertyId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getPropertyId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7825,11 +7815,11 @@ static bool js_spine_PathConstraintPositionTimeline_setFrame(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintPositionTimeline_setFrame : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7844,6 +7834,8 @@ static bool js_spine_PathConstraintPositionTimeline_setFrame(se::State& s) // NO } SE_BIND_FUNC(js_spine_PathConstraintPositionTimeline_setFrame) + + bool js_register_spine_PathConstraintPositionTimeline(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("PathConstraintPositionTimeline", obj, __jsb_spine_CurveTimeline_proto, nullptr); @@ -7860,15 +7852,15 @@ bool js_register_spine_PathConstraintPositionTimeline(se::Object* obj) // NOLINT return true; } se::Object* __jsb_spine_PathConstraintSpacingTimeline_proto = nullptr; -se::Class* __jsb_spine_PathConstraintSpacingTimeline_class = nullptr; +se::Class* __jsb_spine_PathConstraintSpacingTimeline_class = nullptr; static bool js_spine_PathConstraintSpacingTimeline_getPropertyId(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintSpacingTimeline_getPropertyId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getPropertyId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7881,6 +7873,8 @@ static bool js_spine_PathConstraintSpacingTimeline_getPropertyId(se::State& s) / } SE_BIND_FUNC(js_spine_PathConstraintSpacingTimeline_getPropertyId) + + bool js_register_spine_PathConstraintSpacingTimeline(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("PathConstraintSpacingTimeline", obj, __jsb_spine_PathConstraintPositionTimeline_proto, nullptr); @@ -7896,15 +7890,15 @@ bool js_register_spine_PathConstraintSpacingTimeline(se::Object* obj) // NOLINT( return true; } se::Object* __jsb_spine_PointAttachment_proto = nullptr; -se::Class* __jsb_spine_PointAttachment_class = nullptr; +se::Class* __jsb_spine_PointAttachment_class = nullptr; static bool js_spine_PointAttachment_copy(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PointAttachment_copy : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Attachment* result = cobj->copy(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7921,9 +7915,9 @@ static bool js_spine_PointAttachment_getRotation(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PointAttachment_getRotation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRotation(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7940,9 +7934,9 @@ static bool js_spine_PointAttachment_getX(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PointAttachment_getX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7959,9 +7953,9 @@ static bool js_spine_PointAttachment_getY(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PointAttachment_getY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7978,9 +7972,9 @@ static bool js_spine_PointAttachment_setRotation(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PointAttachment_setRotation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7997,9 +7991,9 @@ static bool js_spine_PointAttachment_setX(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PointAttachment_setX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -8016,9 +8010,9 @@ static bool js_spine_PointAttachment_setY(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PointAttachment_setY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -8031,6 +8025,8 @@ static bool js_spine_PointAttachment_setY(se::State& s) // NOLINT(readability-id } SE_BIND_FUNC(js_spine_PointAttachment_setY) + + bool js_register_spine_PointAttachment(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("PointAttachment", obj, __jsb_spine_Attachment_proto, nullptr); @@ -8052,15 +8048,15 @@ bool js_register_spine_PointAttachment(se::Object* obj) // NOLINT(readability-id return true; } se::Object* __jsb_spine_RegionAttachment_proto = nullptr; -se::Class* __jsb_spine_RegionAttachment_class = nullptr; +se::Class* __jsb_spine_RegionAttachment_class = nullptr; static bool js_spine_RegionAttachment_copy(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_copy : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Attachment* result = cobj->copy(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8077,9 +8073,9 @@ static bool js_spine_RegionAttachment_getColor(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_getColor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Color& result = cobj->getColor(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8096,9 +8092,9 @@ static bool js_spine_RegionAttachment_getHeight(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_getHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getHeight(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8115,9 +8111,9 @@ static bool js_spine_RegionAttachment_getOffset(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_getOffset : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Vector& result = cobj->getOffset(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8134,9 +8130,9 @@ static bool js_spine_RegionAttachment_getPath(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_getPath : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::String& result = cobj->getPath(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8153,9 +8149,9 @@ static bool js_spine_RegionAttachment_getRegionHeight(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_getRegionHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRegionHeight(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8172,9 +8168,9 @@ static bool js_spine_RegionAttachment_getRegionOffsetX(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_getRegionOffsetX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRegionOffsetX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8191,9 +8187,9 @@ static bool js_spine_RegionAttachment_getRegionOffsetY(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_getRegionOffsetY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRegionOffsetY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8210,9 +8206,9 @@ static bool js_spine_RegionAttachment_getRegionOriginalHeight(se::State& s) // N { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_getRegionOriginalHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRegionOriginalHeight(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8229,9 +8225,9 @@ static bool js_spine_RegionAttachment_getRegionOriginalWidth(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_getRegionOriginalWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRegionOriginalWidth(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8248,9 +8244,9 @@ static bool js_spine_RegionAttachment_getRegionWidth(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_getRegionWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRegionWidth(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8267,9 +8263,9 @@ static bool js_spine_RegionAttachment_getRotation(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_getRotation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRotation(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8286,9 +8282,9 @@ static bool js_spine_RegionAttachment_getScaleX(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_getScaleX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getScaleX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8305,9 +8301,9 @@ static bool js_spine_RegionAttachment_getScaleY(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_getScaleY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getScaleY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8324,9 +8320,9 @@ static bool js_spine_RegionAttachment_getUVs(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_getUVs : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Vector& result = cobj->getUVs(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8343,9 +8339,9 @@ static bool js_spine_RegionAttachment_getWidth(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_getWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getWidth(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8362,9 +8358,9 @@ static bool js_spine_RegionAttachment_getX(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_getX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8381,9 +8377,9 @@ static bool js_spine_RegionAttachment_getY(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_getY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8400,9 +8396,9 @@ static bool js_spine_RegionAttachment_setHeight(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_setHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -8419,9 +8415,9 @@ static bool js_spine_RegionAttachment_setPath(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_setPath : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -8438,9 +8434,9 @@ static bool js_spine_RegionAttachment_setRegionHeight(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_setRegionHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -8457,9 +8453,9 @@ static bool js_spine_RegionAttachment_setRegionOffsetX(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_setRegionOffsetX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -8476,9 +8472,9 @@ static bool js_spine_RegionAttachment_setRegionOffsetY(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_setRegionOffsetY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -8495,9 +8491,9 @@ static bool js_spine_RegionAttachment_setRegionOriginalHeight(se::State& s) // N { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_setRegionOriginalHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -8514,9 +8510,9 @@ static bool js_spine_RegionAttachment_setRegionOriginalWidth(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_setRegionOriginalWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -8533,9 +8529,9 @@ static bool js_spine_RegionAttachment_setRegionWidth(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_setRegionWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -8552,9 +8548,9 @@ static bool js_spine_RegionAttachment_setRotation(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_setRotation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -8571,9 +8567,9 @@ static bool js_spine_RegionAttachment_setScaleX(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_setScaleX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -8590,9 +8586,9 @@ static bool js_spine_RegionAttachment_setScaleY(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_setScaleY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -8609,15 +8605,15 @@ static bool js_spine_RegionAttachment_setUVs(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_setUVs : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 5) { HolderType arg0 = {}; HolderType arg1 = {}; HolderType arg2 = {}; HolderType arg3 = {}; - HolderType arg4 = {}; + HolderType arg4 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -8636,9 +8632,9 @@ static bool js_spine_RegionAttachment_setWidth(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_setWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -8655,9 +8651,9 @@ static bool js_spine_RegionAttachment_setX(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_setX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -8674,9 +8670,9 @@ static bool js_spine_RegionAttachment_setY(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_setY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -8694,7 +8690,7 @@ static bool js_spine_RegionAttachment_updateOffset(se::State& s) // NOLINT(reada auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_updateOffset : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->updateOffset(); return true; @@ -8704,6 +8700,8 @@ static bool js_spine_RegionAttachment_updateOffset(se::State& s) // NOLINT(reada } SE_BIND_FUNC(js_spine_RegionAttachment_updateOffset) + + bool js_register_spine_RegionAttachment(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("RegionAttachment", obj, __jsb_spine_Attachment_proto, nullptr); @@ -8752,15 +8750,15 @@ bool js_register_spine_RegionAttachment(se::Object* obj) // NOLINT(readability-i return true; } se::Object* __jsb_spine_RotateTimeline_proto = nullptr; -se::Class* __jsb_spine_RotateTimeline_class = nullptr; +se::Class* __jsb_spine_RotateTimeline_class = nullptr; static bool js_spine_RotateTimeline_getBoneIndex(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RotateTimeline_getBoneIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getBoneIndex(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8777,9 +8775,9 @@ static bool js_spine_RotateTimeline_getFrames(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RotateTimeline_getFrames : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Vector& result = cobj->getFrames(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8796,9 +8794,9 @@ static bool js_spine_RotateTimeline_getPropertyId(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RotateTimeline_getPropertyId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getPropertyId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8815,9 +8813,9 @@ static bool js_spine_RotateTimeline_setBoneIndex(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RotateTimeline_setBoneIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -8834,11 +8832,11 @@ static bool js_spine_RotateTimeline_setFrame(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RotateTimeline_setFrame : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -8853,6 +8851,8 @@ static bool js_spine_RotateTimeline_setFrame(se::State& s) // NOLINT(readability } SE_BIND_FUNC(js_spine_RotateTimeline_setFrame) + + bool js_register_spine_RotateTimeline(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("RotateTimeline", obj, __jsb_spine_CurveTimeline_proto, nullptr); @@ -8872,15 +8872,15 @@ bool js_register_spine_RotateTimeline(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_spine_TranslateTimeline_proto = nullptr; -se::Class* __jsb_spine_TranslateTimeline_class = nullptr; +se::Class* __jsb_spine_TranslateTimeline_class = nullptr; static bool js_spine_TranslateTimeline_getPropertyId(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TranslateTimeline_getPropertyId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getPropertyId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8897,11 +8897,11 @@ static bool js_spine_TranslateTimeline_setFrame(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TranslateTimeline_setFrame : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 4) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; HolderType arg2 = {}; HolderType arg3 = {}; @@ -8918,6 +8918,8 @@ static bool js_spine_TranslateTimeline_setFrame(se::State& s) // NOLINT(readabil } SE_BIND_FUNC(js_spine_TranslateTimeline_setFrame) + + bool js_register_spine_TranslateTimeline(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("TranslateTimeline", obj, __jsb_spine_CurveTimeline_proto, nullptr); @@ -8934,15 +8936,15 @@ bool js_register_spine_TranslateTimeline(se::Object* obj) // NOLINT(readability- return true; } se::Object* __jsb_spine_ScaleTimeline_proto = nullptr; -se::Class* __jsb_spine_ScaleTimeline_class = nullptr; +se::Class* __jsb_spine_ScaleTimeline_class = nullptr; static bool js_spine_ScaleTimeline_getPropertyId(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_ScaleTimeline_getPropertyId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getPropertyId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8955,6 +8957,8 @@ static bool js_spine_ScaleTimeline_getPropertyId(se::State& s) // NOLINT(readabi } SE_BIND_FUNC(js_spine_ScaleTimeline_getPropertyId) + + bool js_register_spine_ScaleTimeline(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("ScaleTimeline", obj, __jsb_spine_TranslateTimeline_proto, nullptr); @@ -8970,15 +8974,15 @@ bool js_register_spine_ScaleTimeline(se::Object* obj) // NOLINT(readability-iden return true; } se::Object* __jsb_spine_ShearTimeline_proto = nullptr; -se::Class* __jsb_spine_ShearTimeline_class = nullptr; +se::Class* __jsb_spine_ShearTimeline_class = nullptr; static bool js_spine_ShearTimeline_getPropertyId(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_ShearTimeline_getPropertyId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getPropertyId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8991,6 +8995,8 @@ static bool js_spine_ShearTimeline_getPropertyId(se::State& s) // NOLINT(readabi } SE_BIND_FUNC(js_spine_ShearTimeline_getPropertyId) + + bool js_register_spine_ShearTimeline(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("ShearTimeline", obj, __jsb_spine_TranslateTimeline_proto, nullptr); @@ -9006,15 +9012,15 @@ bool js_register_spine_ShearTimeline(se::Object* obj) // NOLINT(readability-iden return true; } se::Object* __jsb_spine_Skeleton_proto = nullptr; -se::Class* __jsb_spine_Skeleton_class = nullptr; +se::Class* __jsb_spine_Skeleton_class = nullptr; static bool js_spine_Skeleton_findBone(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_findBone : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -9034,9 +9040,9 @@ static bool js_spine_Skeleton_findBoneIndex(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_findBoneIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -9056,9 +9062,9 @@ static bool js_spine_Skeleton_findIkConstraint(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_findIkConstraint : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -9078,9 +9084,9 @@ static bool js_spine_Skeleton_findPathConstraint(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_findPathConstraint : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -9100,9 +9106,9 @@ static bool js_spine_Skeleton_findSlot(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_findSlot : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -9122,9 +9128,9 @@ static bool js_spine_Skeleton_findSlotIndex(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_findSlotIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -9144,9 +9150,9 @@ static bool js_spine_Skeleton_findTransformConstraint(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_findTransformConstraint : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -9164,33 +9170,27 @@ SE_BIND_FUNC(js_spine_Skeleton_findTransformConstraint) static bool js_spine_Skeleton_getAttachment(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_getAttachment : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2( cobj, false, "js_spine_Skeleton_getAttachment : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } spine::Attachment* result = cobj->getAttachment(arg0.value(), arg1.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_Skeleton_getAttachment : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while (false); + } while(false); do { if (argc == 2) { @@ -9198,22 +9198,16 @@ static bool js_spine_Skeleton_getAttachment(se::State& s) // NOLINT(readability- HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } spine::Attachment* result = cobj->getAttachment(arg0.value(), arg1.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_Skeleton_getAttachment : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while (false); + } while(false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -9224,11 +9218,11 @@ static bool js_spine_Skeleton_getBones(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_getBones : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getBones(); + spine::Vector& result = cobj->getBones(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_Skeleton_getBones : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -9243,9 +9237,9 @@ static bool js_spine_Skeleton_getColor(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_getColor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Color& result = cobj->getColor(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -9262,9 +9256,9 @@ static bool js_spine_Skeleton_getData(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_getData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::SkeletonData* result = cobj->getData(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -9281,11 +9275,11 @@ static bool js_spine_Skeleton_getDrawOrder(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_getDrawOrder : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getDrawOrder(); + spine::Vector& result = cobj->getDrawOrder(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_Skeleton_getDrawOrder : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -9300,11 +9294,11 @@ static bool js_spine_Skeleton_getIkConstraints(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_getIkConstraints : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getIkConstraints(); + spine::Vector& result = cobj->getIkConstraints(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_Skeleton_getIkConstraints : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -9319,11 +9313,11 @@ static bool js_spine_Skeleton_getPathConstraints(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_getPathConstraints : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getPathConstraints(); + spine::Vector& result = cobj->getPathConstraints(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_Skeleton_getPathConstraints : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -9338,9 +9332,9 @@ static bool js_spine_Skeleton_getRootBone(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_getRootBone : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Bone* result = cobj->getRootBone(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -9357,9 +9351,9 @@ static bool js_spine_Skeleton_getScaleX(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_getScaleX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getScaleX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -9376,9 +9370,9 @@ static bool js_spine_Skeleton_getScaleY(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_getScaleY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getScaleY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -9395,9 +9389,9 @@ static bool js_spine_Skeleton_getSkin(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_getSkin : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Skin* result = cobj->getSkin(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -9414,11 +9408,11 @@ static bool js_spine_Skeleton_getSlots(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_getSlots : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getSlots(); + spine::Vector& result = cobj->getSlots(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_Skeleton_getSlots : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -9433,9 +9427,9 @@ static bool js_spine_Skeleton_getTime(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_getTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getTime(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -9452,11 +9446,11 @@ static bool js_spine_Skeleton_getTransformConstraints(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_getTransformConstraints : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getTransformConstraints(); + spine::Vector& result = cobj->getTransformConstraints(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_Skeleton_getTransformConstraints : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -9471,11 +9465,11 @@ static bool js_spine_Skeleton_getUpdateCacheList(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_getUpdateCacheList : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getUpdateCacheList(); + spine::Vector& result = cobj->getUpdateCacheList(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_Skeleton_getUpdateCacheList : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -9490,9 +9484,9 @@ static bool js_spine_Skeleton_getX(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_getX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -9509,9 +9503,9 @@ static bool js_spine_Skeleton_getY(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_getY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -9529,7 +9523,7 @@ static bool js_spine_Skeleton_printUpdateCache(se::State& s) // NOLINT(readabili auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_printUpdateCache : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->printUpdateCache(); return true; @@ -9543,9 +9537,9 @@ static bool js_spine_Skeleton_setAttachment(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_setAttachment : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -9565,7 +9559,7 @@ static bool js_spine_Skeleton_setBonesToSetupPose(se::State& s) // NOLINT(readab auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_setBonesToSetupPose : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->setBonesToSetupPose(); return true; @@ -9579,9 +9573,9 @@ static bool js_spine_Skeleton_setPosition(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_setPosition : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -9600,9 +9594,9 @@ static bool js_spine_Skeleton_setScaleX(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_setScaleX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -9619,9 +9613,9 @@ static bool js_spine_Skeleton_setScaleY(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_setScaleY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -9636,38 +9630,32 @@ SE_BIND_FUNC(js_spine_Skeleton_setScaleY) static bool js_spine_Skeleton_setSkin(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_setSkin : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2( cobj, false, "js_spine_Skeleton_setSkin : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->setSkin(arg0.value()); return true; } - } while (false); + } while(false); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->setSkin(arg0.value()); return true; } - } while (false); + } while(false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -9679,7 +9667,7 @@ static bool js_spine_Skeleton_setSlotsToSetupPose(se::State& s) // NOLINT(readab auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_setSlotsToSetupPose : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->setSlotsToSetupPose(); return true; @@ -9693,9 +9681,9 @@ static bool js_spine_Skeleton_setTime(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_setTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -9713,7 +9701,7 @@ static bool js_spine_Skeleton_setToSetupPose(se::State& s) // NOLINT(readability auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_setToSetupPose : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->setToSetupPose(); return true; @@ -9727,9 +9715,9 @@ static bool js_spine_Skeleton_setX(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_setX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -9746,9 +9734,9 @@ static bool js_spine_Skeleton_setY(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_setY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -9765,9 +9753,9 @@ static bool js_spine_Skeleton_update(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_update : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -9785,7 +9773,7 @@ static bool js_spine_Skeleton_updateCache(se::State& s) // NOLINT(readability-id auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_updateCache : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->updateCache(); return true; @@ -9800,7 +9788,7 @@ static bool js_spine_Skeleton_updateWorldTransform(se::State& s) // NOLINT(reada auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_updateWorldTransform : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->updateWorldTransform(); return true; @@ -9810,6 +9798,8 @@ static bool js_spine_Skeleton_updateWorldTransform(se::State& s) // NOLINT(reada } SE_BIND_FUNC(js_spine_Skeleton_updateWorldTransform) + + bool js_register_spine_Skeleton(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("Skeleton", obj, nullptr, nullptr); @@ -9863,15 +9853,15 @@ bool js_register_spine_Skeleton(se::Object* obj) // NOLINT(readability-identifie return true; } se::Object* __jsb_spine_SkeletonBounds_proto = nullptr; -se::Class* __jsb_spine_SkeletonBounds_class = nullptr; +se::Class* __jsb_spine_SkeletonBounds_class = nullptr; static bool js_spine_SkeletonBounds_aabbcontainsPoint(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonBounds_aabbcontainsPoint : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -9893,9 +9883,9 @@ static bool js_spine_SkeletonBounds_aabbintersectsSegment(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonBounds_aabbintersectsSegment : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 4) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -9919,62 +9909,47 @@ SE_BIND_FUNC(js_spine_SkeletonBounds_aabbintersectsSegment) static bool js_spine_SkeletonBounds_containsPoint(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_spine_SkeletonBounds_containsPoint : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2( cobj, false, "js_spine_SkeletonBounds_containsPoint : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } spine::BoundingBoxAttachment* result = cobj->containsPoint(arg0.value(), arg1.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_SkeletonBounds_containsPoint : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while (false); + } while(false); do { if (argc == 3) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } bool result = cobj->containsPoint(arg0.value(), arg1.value(), arg2.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_SkeletonBounds_containsPoint : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while (false); + } while(false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -9985,9 +9960,9 @@ static bool js_spine_SkeletonBounds_getHeight(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonBounds_getHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getHeight(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -10004,9 +9979,9 @@ static bool js_spine_SkeletonBounds_getPolygon(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonBounds_getPolygon : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10026,9 +10001,9 @@ static bool js_spine_SkeletonBounds_getWidth(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonBounds_getWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getWidth(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -10043,51 +10018,36 @@ SE_BIND_FUNC(js_spine_SkeletonBounds_getWidth) static bool js_spine_SkeletonBounds_intersectsSegment(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_spine_SkeletonBounds_intersectsSegment : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2( cobj, false, "js_spine_SkeletonBounds_intersectsSegment : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 5) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; - HolderType arg4 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; + HolderType arg4 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[3], &arg3, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[4], &arg4, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } bool result = cobj->intersectsSegment(arg0.value(), arg1.value(), arg2.value(), arg3.value(), arg4.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_SkeletonBounds_intersectsSegment : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while (false); + } while(false); do { if (argc == 4) { @@ -10097,38 +10057,28 @@ static bool js_spine_SkeletonBounds_intersectsSegment(se::State& s) // NOLINT(re HolderType arg3 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[3], &arg3, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } spine::BoundingBoxAttachment* result = cobj->intersectsSegment(arg0.value(), arg1.value(), arg2.value(), arg3.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_SkeletonBounds_intersectsSegment : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while (false); + } while(false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; } SE_BIND_FUNC(js_spine_SkeletonBounds_intersectsSegment) + + bool js_register_spine_SkeletonBounds(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("SkeletonBounds", obj, nullptr, nullptr); @@ -10150,7 +10100,9 @@ bool js_register_spine_SkeletonBounds(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_spine_Polygon_proto = nullptr; -se::Class* __jsb_spine_Polygon_class = nullptr; +se::Class* __jsb_spine_Polygon_class = nullptr; + + bool js_register_spine_Polygon(se::Object* obj) // NOLINT(readability-identifier-naming) { @@ -10166,15 +10118,15 @@ bool js_register_spine_Polygon(se::Object* obj) // NOLINT(readability-identifier return true; } se::Object* __jsb_spine_SkeletonData_proto = nullptr; -se::Class* __jsb_spine_SkeletonData_class = nullptr; +se::Class* __jsb_spine_SkeletonData_class = nullptr; static bool js_spine_SkeletonData_findAnimation(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_findAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10194,9 +10146,9 @@ static bool js_spine_SkeletonData_findBone(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_findBone : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10216,9 +10168,9 @@ static bool js_spine_SkeletonData_findBoneIndex(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_findBoneIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10238,9 +10190,9 @@ static bool js_spine_SkeletonData_findEvent(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_findEvent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10260,9 +10212,9 @@ static bool js_spine_SkeletonData_findIkConstraint(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_findIkConstraint : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10282,9 +10234,9 @@ static bool js_spine_SkeletonData_findPathConstraint(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_findPathConstraint : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10304,9 +10256,9 @@ static bool js_spine_SkeletonData_findPathConstraintIndex(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_findPathConstraintIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10326,9 +10278,9 @@ static bool js_spine_SkeletonData_findSkin(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_findSkin : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10348,9 +10300,9 @@ static bool js_spine_SkeletonData_findSlot(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_findSlot : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10370,9 +10322,9 @@ static bool js_spine_SkeletonData_findSlotIndex(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_findSlotIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10392,9 +10344,9 @@ static bool js_spine_SkeletonData_findTransformConstraint(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_findTransformConstraint : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10414,11 +10366,11 @@ static bool js_spine_SkeletonData_getAnimations(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_getAnimations : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getAnimations(); + spine::Vector& result = cobj->getAnimations(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_SkeletonData_getAnimations : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -10433,9 +10385,9 @@ static bool js_spine_SkeletonData_getAudioPath(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_getAudioPath : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::String& result = cobj->getAudioPath(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -10452,11 +10404,11 @@ static bool js_spine_SkeletonData_getBones(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_getBones : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getBones(); + spine::Vector& result = cobj->getBones(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_SkeletonData_getBones : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -10471,9 +10423,9 @@ static bool js_spine_SkeletonData_getDefaultSkin(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_getDefaultSkin : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Skin* result = cobj->getDefaultSkin(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -10490,11 +10442,11 @@ static bool js_spine_SkeletonData_getEvents(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_getEvents : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getEvents(); + spine::Vector& result = cobj->getEvents(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_SkeletonData_getEvents : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -10509,9 +10461,9 @@ static bool js_spine_SkeletonData_getFps(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_getFps : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getFps(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -10528,9 +10480,9 @@ static bool js_spine_SkeletonData_getHash(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_getHash : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::String& result = cobj->getHash(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -10547,9 +10499,9 @@ static bool js_spine_SkeletonData_getHeight(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_getHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getHeight(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -10566,11 +10518,11 @@ static bool js_spine_SkeletonData_getIkConstraints(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_getIkConstraints : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getIkConstraints(); + spine::Vector& result = cobj->getIkConstraints(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_SkeletonData_getIkConstraints : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -10585,9 +10537,9 @@ static bool js_spine_SkeletonData_getImagesPath(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_getImagesPath : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::String& result = cobj->getImagesPath(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -10604,9 +10556,9 @@ static bool js_spine_SkeletonData_getName(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_getName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::String& result = cobj->getName(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -10623,11 +10575,11 @@ static bool js_spine_SkeletonData_getPathConstraints(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_getPathConstraints : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getPathConstraints(); + spine::Vector& result = cobj->getPathConstraints(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_SkeletonData_getPathConstraints : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -10642,11 +10594,11 @@ static bool js_spine_SkeletonData_getSkins(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_getSkins : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getSkins(); + spine::Vector& result = cobj->getSkins(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_SkeletonData_getSkins : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -10661,11 +10613,11 @@ static bool js_spine_SkeletonData_getSlots(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_getSlots : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getSlots(); + spine::Vector& result = cobj->getSlots(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_SkeletonData_getSlots : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -10680,11 +10632,11 @@ static bool js_spine_SkeletonData_getTransformConstraints(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_getTransformConstraints : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getTransformConstraints(); + spine::Vector& result = cobj->getTransformConstraints(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_SkeletonData_getTransformConstraints : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -10699,9 +10651,9 @@ static bool js_spine_SkeletonData_getVersion(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_getVersion : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::String& result = cobj->getVersion(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -10718,9 +10670,9 @@ static bool js_spine_SkeletonData_getWidth(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_getWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getWidth(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -10737,9 +10689,9 @@ static bool js_spine_SkeletonData_getX(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_getX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -10756,9 +10708,9 @@ static bool js_spine_SkeletonData_getY(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_getY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -10775,9 +10727,9 @@ static bool js_spine_SkeletonData_setAudioPath(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_setAudioPath : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10794,9 +10746,9 @@ static bool js_spine_SkeletonData_setDefaultSkin(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_setDefaultSkin : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10813,9 +10765,9 @@ static bool js_spine_SkeletonData_setFps(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_setFps : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10832,9 +10784,9 @@ static bool js_spine_SkeletonData_setHash(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_setHash : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10851,9 +10803,9 @@ static bool js_spine_SkeletonData_setHeight(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_setHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10870,9 +10822,9 @@ static bool js_spine_SkeletonData_setImagesPath(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_setImagesPath : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10889,9 +10841,9 @@ static bool js_spine_SkeletonData_setName(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_setName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10908,9 +10860,9 @@ static bool js_spine_SkeletonData_setVersion(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_setVersion : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10927,9 +10879,9 @@ static bool js_spine_SkeletonData_setWidth(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_setWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10946,9 +10898,9 @@ static bool js_spine_SkeletonData_setX(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_setX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10965,9 +10917,9 @@ static bool js_spine_SkeletonData_setY(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_setY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10980,6 +10932,8 @@ static bool js_spine_SkeletonData_setY(se::State& s) // NOLINT(readability-ident } SE_BIND_FUNC(js_spine_SkeletonData_setY) + + bool js_register_spine_SkeletonData(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("SkeletonData", obj, nullptr, nullptr); @@ -11035,15 +10989,15 @@ bool js_register_spine_SkeletonData(se::Object* obj) // NOLINT(readability-ident return true; } se::Object* __jsb_spine_Skin_proto = nullptr; -se::Class* __jsb_spine_Skin_class = nullptr; +se::Class* __jsb_spine_Skin_class = nullptr; static bool js_spine_Skin_addSkin(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skin_addSkin : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -11060,9 +11014,9 @@ static bool js_spine_Skin_copySkin(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skin_copySkin : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -11079,11 +11033,11 @@ static bool js_spine_Skin_getAttachment(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skin_getAttachment : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -11103,11 +11057,11 @@ static bool js_spine_Skin_getBones(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skin_getBones : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getBones(); + spine::Vector& result = cobj->getBones(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_Skin_getBones : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -11122,11 +11076,11 @@ static bool js_spine_Skin_getConstraints(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skin_getConstraints : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getConstraints(); + spine::Vector& result = cobj->getConstraints(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_Skin_getConstraints : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -11141,9 +11095,9 @@ static bool js_spine_Skin_getName(se::State& s) // NOLINT(readability-identifier { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skin_getName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::String& result = cobj->getName(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11160,11 +11114,11 @@ static bool js_spine_Skin_removeAttachment(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skin_removeAttachment : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -11181,12 +11135,12 @@ static bool js_spine_Skin_setAttachment(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skin_setAttachment : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { - HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -11200,6 +11154,8 @@ static bool js_spine_Skin_setAttachment(se::State& s) // NOLINT(readability-iden } SE_BIND_FUNC(js_spine_Skin_setAttachment) + + bool js_register_spine_Skin(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("Skin", obj, nullptr, nullptr); @@ -11222,15 +11178,15 @@ bool js_register_spine_Skin(se::Object* obj) // NOLINT(readability-identifier-na return true; } se::Object* __jsb_spine_Slot_proto = nullptr; -se::Class* __jsb_spine_Slot_class = nullptr; +se::Class* __jsb_spine_Slot_class = nullptr; static bool js_spine_Slot_getAttachment(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Slot_getAttachment : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Attachment* result = cobj->getAttachment(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11247,9 +11203,9 @@ static bool js_spine_Slot_getAttachmentTime(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Slot_getAttachmentTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getAttachmentTime(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11266,9 +11222,9 @@ static bool js_spine_Slot_getBone(se::State& s) // NOLINT(readability-identifier { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Slot_getBone : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Bone& result = cobj->getBone(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11285,9 +11241,9 @@ static bool js_spine_Slot_getColor(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Slot_getColor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Color& result = cobj->getColor(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11304,9 +11260,9 @@ static bool js_spine_Slot_getDarkColor(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Slot_getDarkColor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Color& result = cobj->getDarkColor(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11323,9 +11279,9 @@ static bool js_spine_Slot_getData(se::State& s) // NOLINT(readability-identifier { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Slot_getData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::SlotData& result = cobj->getData(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11342,9 +11298,9 @@ static bool js_spine_Slot_getDeform(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Slot_getDeform : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Vector& result = cobj->getDeform(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11361,9 +11317,9 @@ static bool js_spine_Slot_getSkeleton(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Slot_getSkeleton : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Skeleton& result = cobj->getSkeleton(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11380,9 +11336,9 @@ static bool js_spine_Slot_hasDarkColor(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Slot_hasDarkColor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->hasDarkColor(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11399,9 +11355,9 @@ static bool js_spine_Slot_setAttachment(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Slot_setAttachment : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -11418,9 +11374,9 @@ static bool js_spine_Slot_setAttachmentTime(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Slot_setAttachmentTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -11438,7 +11394,7 @@ static bool js_spine_Slot_setToSetupPose(se::State& s) // NOLINT(readability-ide auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Slot_setToSetupPose : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->setToSetupPose(); return true; @@ -11448,6 +11404,8 @@ static bool js_spine_Slot_setToSetupPose(se::State& s) // NOLINT(readability-ide } SE_BIND_FUNC(js_spine_Slot_setToSetupPose) + + bool js_register_spine_Slot(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("Slot", obj, nullptr, nullptr); @@ -11474,15 +11432,15 @@ bool js_register_spine_Slot(se::Object* obj) // NOLINT(readability-identifier-na return true; } se::Object* __jsb_spine_SlotData_proto = nullptr; -se::Class* __jsb_spine_SlotData_class = nullptr; +se::Class* __jsb_spine_SlotData_class = nullptr; static bool js_spine_SlotData_getAttachmentName(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SlotData_getAttachmentName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::String& result = cobj->getAttachmentName(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11499,9 +11457,9 @@ static bool js_spine_SlotData_getBlendMode(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SlotData_getBlendMode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getBlendMode()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11518,9 +11476,9 @@ static bool js_spine_SlotData_getBoneData(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SlotData_getBoneData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::BoneData& result = cobj->getBoneData(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11537,9 +11495,9 @@ static bool js_spine_SlotData_getColor(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SlotData_getColor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Color& result = cobj->getColor(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11556,9 +11514,9 @@ static bool js_spine_SlotData_getDarkColor(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SlotData_getDarkColor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Color& result = cobj->getDarkColor(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11575,9 +11533,9 @@ static bool js_spine_SlotData_getIndex(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SlotData_getIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getIndex(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11594,9 +11552,9 @@ static bool js_spine_SlotData_getName(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SlotData_getName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::String& result = cobj->getName(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11613,9 +11571,9 @@ static bool js_spine_SlotData_hasDarkColor(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SlotData_hasDarkColor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->hasDarkColor(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11632,9 +11590,9 @@ static bool js_spine_SlotData_setAttachmentName(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SlotData_setAttachmentName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -11651,9 +11609,9 @@ static bool js_spine_SlotData_setBlendMode(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SlotData_setBlendMode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -11670,9 +11628,9 @@ static bool js_spine_SlotData_setHasDarkColor(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SlotData_setHasDarkColor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -11685,6 +11643,8 @@ static bool js_spine_SlotData_setHasDarkColor(se::State& s) // NOLINT(readabilit } SE_BIND_FUNC(js_spine_SlotData_setHasDarkColor) + + bool js_register_spine_SlotData(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("SlotData", obj, nullptr, nullptr); @@ -11710,14 +11670,14 @@ bool js_register_spine_SlotData(se::Object* obj) // NOLINT(readability-identifie return true; } se::Object* __jsb_spine_TransformConstraint_proto = nullptr; -se::Class* __jsb_spine_TransformConstraint_class = nullptr; +se::Class* __jsb_spine_TransformConstraint_class = nullptr; static bool js_spine_TransformConstraint_apply(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraint_apply : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->apply(); return true; @@ -11731,11 +11691,11 @@ static bool js_spine_TransformConstraint_getBones(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraint_getBones : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getBones(); + spine::Vector& result = cobj->getBones(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_TransformConstraint_getBones : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -11750,9 +11710,9 @@ static bool js_spine_TransformConstraint_getData(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraint_getData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::TransformConstraintData& result = cobj->getData(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11769,9 +11729,9 @@ static bool js_spine_TransformConstraint_getOrder(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraint_getOrder : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getOrder(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11788,9 +11748,9 @@ static bool js_spine_TransformConstraint_getRotateMix(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraint_getRotateMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRotateMix(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11807,9 +11767,9 @@ static bool js_spine_TransformConstraint_getScaleMix(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraint_getScaleMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getScaleMix(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11826,9 +11786,9 @@ static bool js_spine_TransformConstraint_getShearMix(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraint_getShearMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getShearMix(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11845,9 +11805,9 @@ static bool js_spine_TransformConstraint_getTarget(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraint_getTarget : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Bone* result = cobj->getTarget(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11864,9 +11824,9 @@ static bool js_spine_TransformConstraint_getTranslateMix(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraint_getTranslateMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getTranslateMix(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11883,9 +11843,9 @@ static bool js_spine_TransformConstraint_isActive(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraint_isActive : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isActive(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11902,9 +11862,9 @@ static bool js_spine_TransformConstraint_setActive(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraint_setActive : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -11921,9 +11881,9 @@ static bool js_spine_TransformConstraint_setRotateMix(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraint_setRotateMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -11940,9 +11900,9 @@ static bool js_spine_TransformConstraint_setScaleMix(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraint_setScaleMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -11959,9 +11919,9 @@ static bool js_spine_TransformConstraint_setShearMix(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraint_setShearMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -11978,9 +11938,9 @@ static bool js_spine_TransformConstraint_setTarget(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraint_setTarget : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -11997,9 +11957,9 @@ static bool js_spine_TransformConstraint_setTranslateMix(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraint_setTranslateMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -12017,7 +11977,7 @@ static bool js_spine_TransformConstraint_update(se::State& s) // NOLINT(readabil auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraint_update : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->update(); return true; @@ -12027,6 +11987,8 @@ static bool js_spine_TransformConstraint_update(se::State& s) // NOLINT(readabil } SE_BIND_FUNC(js_spine_TransformConstraint_update) + + bool js_register_spine_TransformConstraint(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("TransformConstraint", obj, nullptr, nullptr); @@ -12058,17 +12020,17 @@ bool js_register_spine_TransformConstraint(se::Object* obj) // NOLINT(readabilit return true; } se::Object* __jsb_spine_TransformConstraintData_proto = nullptr; -se::Class* __jsb_spine_TransformConstraintData_class = nullptr; +se::Class* __jsb_spine_TransformConstraintData_class = nullptr; static bool js_spine_TransformConstraintData_getBones(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraintData_getBones : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getBones(); + spine::Vector& result = cobj->getBones(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_TransformConstraintData_getBones : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -12083,9 +12045,9 @@ static bool js_spine_TransformConstraintData_getOffsetRotation(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraintData_getOffsetRotation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getOffsetRotation(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12102,9 +12064,9 @@ static bool js_spine_TransformConstraintData_getOffsetScaleX(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraintData_getOffsetScaleX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getOffsetScaleX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12121,9 +12083,9 @@ static bool js_spine_TransformConstraintData_getOffsetScaleY(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraintData_getOffsetScaleY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getOffsetScaleY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12140,9 +12102,9 @@ static bool js_spine_TransformConstraintData_getOffsetShearY(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraintData_getOffsetShearY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getOffsetShearY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12159,9 +12121,9 @@ static bool js_spine_TransformConstraintData_getOffsetX(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraintData_getOffsetX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getOffsetX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12178,9 +12140,9 @@ static bool js_spine_TransformConstraintData_getOffsetY(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraintData_getOffsetY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getOffsetY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12197,9 +12159,9 @@ static bool js_spine_TransformConstraintData_getRotateMix(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraintData_getRotateMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRotateMix(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12216,9 +12178,9 @@ static bool js_spine_TransformConstraintData_getScaleMix(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraintData_getScaleMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getScaleMix(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12235,9 +12197,9 @@ static bool js_spine_TransformConstraintData_getShearMix(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraintData_getShearMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getShearMix(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12254,9 +12216,9 @@ static bool js_spine_TransformConstraintData_getTarget(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraintData_getTarget : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::BoneData* result = cobj->getTarget(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12273,9 +12235,9 @@ static bool js_spine_TransformConstraintData_getTranslateMix(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraintData_getTranslateMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getTranslateMix(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12292,9 +12254,9 @@ static bool js_spine_TransformConstraintData_isLocal(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraintData_isLocal : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isLocal(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12311,9 +12273,9 @@ static bool js_spine_TransformConstraintData_isRelative(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraintData_isRelative : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isRelative(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12326,6 +12288,8 @@ static bool js_spine_TransformConstraintData_isRelative(se::State& s) // NOLINT( } SE_BIND_FUNC(js_spine_TransformConstraintData_isRelative) + + bool js_register_spine_TransformConstraintData(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("TransformConstraintData", obj, __jsb_spine_ConstraintData_proto, nullptr); @@ -12354,15 +12318,15 @@ bool js_register_spine_TransformConstraintData(se::Object* obj) // NOLINT(readab return true; } se::Object* __jsb_spine_TransformConstraintTimeline_proto = nullptr; -se::Class* __jsb_spine_TransformConstraintTimeline_class = nullptr; +se::Class* __jsb_spine_TransformConstraintTimeline_class = nullptr; static bool js_spine_TransformConstraintTimeline_getPropertyId(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraintTimeline_getPropertyId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getPropertyId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12379,16 +12343,16 @@ static bool js_spine_TransformConstraintTimeline_setFrame(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraintTimeline_setFrame : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 6) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; - HolderType arg4 = {}; - HolderType arg5 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; + HolderType arg4 = {}; + HolderType arg5 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -12404,6 +12368,8 @@ static bool js_spine_TransformConstraintTimeline_setFrame(se::State& s) // NOLIN } SE_BIND_FUNC(js_spine_TransformConstraintTimeline_setFrame) + + bool js_register_spine_TransformConstraintTimeline(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("TransformConstraintTimeline", obj, __jsb_spine_CurveTimeline_proto, nullptr); @@ -12420,15 +12386,15 @@ bool js_register_spine_TransformConstraintTimeline(se::Object* obj) // NOLINT(re return true; } se::Object* __jsb_spine_TwoColorTimeline_proto = nullptr; -se::Class* __jsb_spine_TwoColorTimeline_class = nullptr; +se::Class* __jsb_spine_TwoColorTimeline_class = nullptr; static bool js_spine_TwoColorTimeline_getPropertyId(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TwoColorTimeline_getPropertyId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getPropertyId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12445,9 +12411,9 @@ static bool js_spine_TwoColorTimeline_getSlotIndex(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TwoColorTimeline_getSlotIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getSlotIndex(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12464,11 +12430,11 @@ static bool js_spine_TwoColorTimeline_setFrame(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TwoColorTimeline_setFrame : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 9) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; HolderType arg2 = {}; HolderType arg3 = {}; @@ -12499,9 +12465,9 @@ static bool js_spine_TwoColorTimeline_setSlotIndex(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TwoColorTimeline_setSlotIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -12514,6 +12480,8 @@ static bool js_spine_TwoColorTimeline_setSlotIndex(se::State& s) // NOLINT(reada } SE_BIND_FUNC(js_spine_TwoColorTimeline_setSlotIndex) + + bool js_register_spine_TwoColorTimeline(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("TwoColorTimeline", obj, __jsb_spine_CurveTimeline_proto, nullptr); @@ -12532,7 +12500,9 @@ bool js_register_spine_TwoColorTimeline(se::Object* obj) // NOLINT(readability-i return true; } se::Object* __jsb_spine_VertexEffect_proto = nullptr; -se::Class* __jsb_spine_VertexEffect_class = nullptr; +se::Class* __jsb_spine_VertexEffect_class = nullptr; + + bool js_register_spine_VertexEffect(se::Object* obj) // NOLINT(readability-identifier-naming) { @@ -12548,15 +12518,15 @@ bool js_register_spine_VertexEffect(se::Object* obj) // NOLINT(readability-ident return true; } se::Object* __jsb_spine_JitterVertexEffect_proto = nullptr; -se::Class* __jsb_spine_JitterVertexEffect_class = nullptr; +se::Class* __jsb_spine_JitterVertexEffect_class = nullptr; static bool js_spine_JitterVertexEffect_getJitterX(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_JitterVertexEffect_getJitterX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getJitterX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12573,9 +12543,9 @@ static bool js_spine_JitterVertexEffect_getJitterY(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_JitterVertexEffect_getJitterY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getJitterY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12592,9 +12562,9 @@ static bool js_spine_JitterVertexEffect_setJitterX(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_JitterVertexEffect_setJitterX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -12611,9 +12581,9 @@ static bool js_spine_JitterVertexEffect_setJitterY(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_JitterVertexEffect_setJitterY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -12626,6 +12596,8 @@ static bool js_spine_JitterVertexEffect_setJitterY(se::State& s) // NOLINT(reada } SE_BIND_FUNC(js_spine_JitterVertexEffect_setJitterY) + + bool js_register_spine_JitterVertexEffect(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("JitterVertexEffect", obj, __jsb_spine_VertexEffect_proto, nullptr); @@ -12644,15 +12616,15 @@ bool js_register_spine_JitterVertexEffect(se::Object* obj) // NOLINT(readability return true; } se::Object* __jsb_spine_SwirlVertexEffect_proto = nullptr; -se::Class* __jsb_spine_SwirlVertexEffect_class = nullptr; +se::Class* __jsb_spine_SwirlVertexEffect_class = nullptr; static bool js_spine_SwirlVertexEffect_getAngle(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SwirlVertexEffect_getAngle : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getAngle(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12669,9 +12641,9 @@ static bool js_spine_SwirlVertexEffect_getCenterX(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SwirlVertexEffect_getCenterX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getCenterX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12688,9 +12660,9 @@ static bool js_spine_SwirlVertexEffect_getCenterY(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SwirlVertexEffect_getCenterY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getCenterY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12707,9 +12679,9 @@ static bool js_spine_SwirlVertexEffect_getRadius(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SwirlVertexEffect_getRadius : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRadius(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12726,9 +12698,9 @@ static bool js_spine_SwirlVertexEffect_getWorldX(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SwirlVertexEffect_getWorldX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getWorldX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12745,9 +12717,9 @@ static bool js_spine_SwirlVertexEffect_getWorldY(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SwirlVertexEffect_getWorldY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getWorldY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12764,9 +12736,9 @@ static bool js_spine_SwirlVertexEffect_setAngle(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SwirlVertexEffect_setAngle : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -12783,9 +12755,9 @@ static bool js_spine_SwirlVertexEffect_setCenterX(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SwirlVertexEffect_setCenterX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -12802,9 +12774,9 @@ static bool js_spine_SwirlVertexEffect_setCenterY(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SwirlVertexEffect_setCenterY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -12821,9 +12793,9 @@ static bool js_spine_SwirlVertexEffect_setRadius(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SwirlVertexEffect_setRadius : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -12840,9 +12812,9 @@ static bool js_spine_SwirlVertexEffect_setWorldX(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SwirlVertexEffect_setWorldX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -12859,9 +12831,9 @@ static bool js_spine_SwirlVertexEffect_setWorldY(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SwirlVertexEffect_setWorldY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -12874,6 +12846,8 @@ static bool js_spine_SwirlVertexEffect_setWorldY(se::State& s) // NOLINT(readabi } SE_BIND_FUNC(js_spine_SwirlVertexEffect_setWorldY) + + bool js_register_spine_SwirlVertexEffect(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("SwirlVertexEffect", obj, __jsb_spine_VertexEffect_proto, nullptr); @@ -12900,14 +12874,14 @@ bool js_register_spine_SwirlVertexEffect(se::Object* obj) // NOLINT(readability- return true; } se::Object* __jsb_spine_VertexEffectDelegate_proto = nullptr; -se::Class* __jsb_spine_VertexEffectDelegate_class = nullptr; +se::Class* __jsb_spine_VertexEffectDelegate_class = nullptr; static bool js_spine_VertexEffectDelegate_clear(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_VertexEffectDelegate_clear : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->clear(); return true; @@ -12921,9 +12895,9 @@ static bool js_spine_VertexEffectDelegate_getEffectType(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_VertexEffectDelegate_getEffectType : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::string& result = cobj->getEffectType(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12940,9 +12914,9 @@ static bool js_spine_VertexEffectDelegate_getJitterVertexEffect(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_VertexEffectDelegate_getJitterVertexEffect : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::JitterVertexEffect* result = cobj->getJitterVertexEffect(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12959,9 +12933,9 @@ static bool js_spine_VertexEffectDelegate_getSwirlVertexEffect(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_VertexEffectDelegate_getSwirlVertexEffect : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::SwirlVertexEffect* result = cobj->getSwirlVertexEffect(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12978,9 +12952,9 @@ static bool js_spine_VertexEffectDelegate_getVertexEffect(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_VertexEffectDelegate_getVertexEffect : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::VertexEffect* result = cobj->getVertexEffect(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12997,9 +12971,9 @@ static bool js_spine_VertexEffectDelegate_initJitter(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_VertexEffectDelegate_initJitter : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -13021,12 +12995,12 @@ static bool js_spine_VertexEffectDelegate_initSwirlWithPow(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_VertexEffectDelegate_initSwirlWithPow : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_spine_VertexEffectDelegate_initSwirlWithPow : Error processing arguments"); @@ -13045,12 +13019,12 @@ static bool js_spine_VertexEffectDelegate_initSwirlWithPowOut(se::State& s) // N { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_VertexEffectDelegate_initSwirlWithPowOut : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_spine_VertexEffectDelegate_initSwirlWithPowOut : Error processing arguments"); @@ -13075,9 +13049,11 @@ static bool js_spine_VertexEffectDelegate_constructor(se::State& s) // NOLINT(re } SE_BIND_CTOR(js_spine_VertexEffectDelegate_constructor, __jsb_spine_VertexEffectDelegate_class, js_spine_VertexEffectDelegate_finalize) + + static bool js_spine_VertexEffectDelegate_finalize(se::State& s) // NOLINT(readability-identifier-naming) { - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj =SE_THIS_OBJECT(s); cobj->release(); return true; } @@ -13106,14 +13082,14 @@ bool js_register_spine_VertexEffectDelegate(se::Object* obj) // NOLINT(readabili return true; } se::Object* __jsb_spine_SkeletonRenderer_proto = nullptr; -se::Class* __jsb_spine_SkeletonRenderer_class = nullptr; +se::Class* __jsb_spine_SkeletonRenderer_class = nullptr; static bool js_spine_SkeletonRenderer_beginSchedule(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_beginSchedule : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->beginSchedule(); return true; @@ -13127,9 +13103,9 @@ static bool js_spine_SkeletonRenderer_findBone(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_findBone : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -13149,9 +13125,9 @@ static bool js_spine_SkeletonRenderer_findSlot(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_findSlot : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -13171,9 +13147,9 @@ static bool js_spine_SkeletonRenderer_getAttachment(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_getAttachment : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -13195,9 +13171,9 @@ static bool js_spine_SkeletonRenderer_getBoundingBox(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_getBoundingBox : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::Rect result = cobj->getBoundingBox(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -13214,9 +13190,9 @@ static bool js_spine_SkeletonRenderer_getDebugData(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_getDebugData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { se::Object* result = cobj->getDebugData(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -13233,9 +13209,9 @@ static bool js_spine_SkeletonRenderer_getParamsBuffer(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_getParamsBuffer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { se::Object* result = cobj->getParamsBuffer(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -13252,9 +13228,9 @@ static bool js_spine_SkeletonRenderer_getSharedBufferOffset(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_getSharedBufferOffset : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { se::Object* result = cobj->getSharedBufferOffset(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -13271,9 +13247,9 @@ static bool js_spine_SkeletonRenderer_getSkeleton(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_getSkeleton : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Skeleton* result = cobj->getSkeleton(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -13290,9 +13266,9 @@ static bool js_spine_SkeletonRenderer_getTimeScale(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_getTimeScale : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getTimeScale(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -13309,9 +13285,9 @@ static bool js_spine_SkeletonRenderer_initWithSkeleton(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_initWithSkeleton : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -13321,7 +13297,7 @@ static bool js_spine_SkeletonRenderer_initWithSkeleton(se::State& s) // NOLINT(r } if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_spine_SkeletonRenderer_initWithSkeleton : Error processing arguments"); @@ -13330,8 +13306,8 @@ static bool js_spine_SkeletonRenderer_initWithSkeleton(se::State& s) // NOLINT(r } if (argc == 3) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -13341,9 +13317,9 @@ static bool js_spine_SkeletonRenderer_initWithSkeleton(se::State& s) // NOLINT(r } if (argc == 4) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -13361,9 +13337,9 @@ static bool js_spine_SkeletonRenderer_initWithUUID(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_initWithUUID : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -13381,7 +13357,7 @@ static bool js_spine_SkeletonRenderer_initialize(se::State& s) // NOLINT(readabi auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_initialize : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->initialize(); return true; @@ -13395,9 +13371,9 @@ static bool js_spine_SkeletonRenderer_isOpacityModifyRGB(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_isOpacityModifyRGB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isOpacityModifyRGB(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -13415,7 +13391,7 @@ static bool js_spine_SkeletonRenderer_onDisable(se::State& s) // NOLINT(readabil auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_onDisable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDisable(); return true; @@ -13430,7 +13406,7 @@ static bool js_spine_SkeletonRenderer_onEnable(se::State& s) // NOLINT(readabili auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_onEnable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onEnable(); return true; @@ -13444,9 +13420,9 @@ static bool js_spine_SkeletonRenderer_paused(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_paused : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -13463,9 +13439,9 @@ static bool js_spine_SkeletonRenderer_render(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_render : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -13482,9 +13458,9 @@ static bool js_spine_SkeletonRenderer_setAttachEnabled(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_setAttachEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -13499,33 +13475,27 @@ SE_BIND_FUNC(js_spine_SkeletonRenderer_setAttachEnabled) static bool js_spine_SkeletonRenderer_setAttachment(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_setAttachment : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2( cobj, false, "js_spine_SkeletonRenderer_setAttachment : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } bool result = cobj->setAttachment(arg0.value(), arg1.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_SkeletonRenderer_setAttachment : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while (false); + } while(false); do { if (argc == 2) { @@ -13533,22 +13503,16 @@ static bool js_spine_SkeletonRenderer_setAttachment(se::State& s) // NOLINT(read HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } bool result = cobj->setAttachment(arg0.value(), arg1.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_SkeletonRenderer_setAttachment : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while (false); + } while(false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -13559,9 +13523,9 @@ static bool js_spine_SkeletonRenderer_setBatchEnabled(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_setBatchEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -13579,7 +13543,7 @@ static bool js_spine_SkeletonRenderer_setBonesToSetupPose(se::State& s) // NOLIN auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_setBonesToSetupPose : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->setBonesToSetupPose(); return true; @@ -13593,9 +13557,9 @@ static bool js_spine_SkeletonRenderer_setColor(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_setColor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 4) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -13618,9 +13582,9 @@ static bool js_spine_SkeletonRenderer_setDebugBonesEnabled(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_setDebugBonesEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -13637,9 +13601,9 @@ static bool js_spine_SkeletonRenderer_setDebugMeshEnabled(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_setDebugMeshEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -13656,9 +13620,9 @@ static bool js_spine_SkeletonRenderer_setDebugSlotsEnabled(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_setDebugSlotsEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -13675,9 +13639,9 @@ static bool js_spine_SkeletonRenderer_setOpacityModifyRGB(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_setOpacityModifyRGB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -13692,38 +13656,32 @@ SE_BIND_FUNC(js_spine_SkeletonRenderer_setOpacityModifyRGB) static bool js_spine_SkeletonRenderer_setSkin(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_setSkin : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2( cobj, false, "js_spine_SkeletonRenderer_setSkin : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->setSkin(arg0.value()); return true; } - } while (false); + } while(false); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->setSkin(arg0.value()); return true; } - } while (false); + } while(false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -13734,9 +13692,9 @@ static bool js_spine_SkeletonRenderer_setSlotsRange(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_setSlotsRange : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -13756,7 +13714,7 @@ static bool js_spine_SkeletonRenderer_setSlotsToSetupPose(se::State& s) // NOLIN auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_setSlotsToSetupPose : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->setSlotsToSetupPose(); return true; @@ -13770,9 +13728,9 @@ static bool js_spine_SkeletonRenderer_setTimeScale(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_setTimeScale : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -13790,7 +13748,7 @@ static bool js_spine_SkeletonRenderer_setToSetupPose(se::State& s) // NOLINT(rea auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_setToSetupPose : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->setToSetupPose(); return true; @@ -13804,9 +13762,9 @@ static bool js_spine_SkeletonRenderer_setUseTint(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_setUseTint : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -13823,9 +13781,9 @@ static bool js_spine_SkeletonRenderer_setVertexEffectDelegate(se::State& s) // N { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_setVertexEffectDelegate : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -13843,7 +13801,7 @@ static bool js_spine_SkeletonRenderer_stopSchedule(se::State& s) // NOLINT(reada auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_stopSchedule : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->stopSchedule(); return true; @@ -13857,9 +13815,9 @@ static bool js_spine_SkeletonRenderer_update(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_update : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -13877,7 +13835,7 @@ static bool js_spine_SkeletonRenderer_updateWorldTransform(se::State& s) // NOLI auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_updateWorldTransform : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->updateWorldTransform(); return true; @@ -13891,188 +13849,136 @@ SE_DECLARE_FINALIZE_FUNC(js_spine_SkeletonRenderer_finalize) static bool js_spine_SkeletonRenderer_constructor(se::State& s) // NOLINT(readability-identifier-naming) constructor_overloaded.c { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } spine::SkeletonRenderer* cobj = JSB_ALLOC(spine::SkeletonRenderer, arg0.value()); s.thisObject()->setPrivateData(cobj); return true; } - } while (false); + } while(false); do { if (argc == 2) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } HolderType arg1 = {}; ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } spine::SkeletonRenderer* cobj = JSB_ALLOC(spine::SkeletonRenderer, arg0.value(), arg1.value()); s.thisObject()->setPrivateData(cobj); return true; } - } while (false); + } while(false); do { if (argc == 3) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } HolderType arg1 = {}; ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } HolderType arg2 = {}; ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } spine::SkeletonRenderer* cobj = JSB_ALLOC(spine::SkeletonRenderer, arg0.value(), arg1.value(), arg2.value()); s.thisObject()->setPrivateData(cobj); return true; } - } while (false); + } while(false); do { if (argc == 4) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } HolderType arg1 = {}; ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } HolderType arg2 = {}; ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } HolderType arg3 = {}; ok &= sevalue_to_native(args[3], &arg3, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } spine::SkeletonRenderer* cobj = JSB_ALLOC(spine::SkeletonRenderer, arg0.value(), arg1.value(), arg2.value(), arg3.value()); s.thisObject()->setPrivateData(cobj); return true; } - } while (false); + } while(false); do { if (argc == 0) { spine::SkeletonRenderer* cobj = JSB_ALLOC(spine::SkeletonRenderer); s.thisObject()->setPrivateData(cobj); return true; } - } while (false); + } while(false); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } spine::SkeletonRenderer* cobj = JSB_ALLOC(spine::SkeletonRenderer, arg0.value()); s.thisObject()->setPrivateData(cobj); return true; } - } while (false); + } while(false); do { if (argc == 2) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } HolderType arg1 = {}; ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } spine::SkeletonRenderer* cobj = JSB_ALLOC(spine::SkeletonRenderer, arg0.value(), arg1.value()); s.thisObject()->setPrivateData(cobj); return true; } - } while (false); + } while(false); do { if (argc == 2) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } HolderType arg1 = {}; ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } spine::SkeletonRenderer* cobj = JSB_ALLOC(spine::SkeletonRenderer, arg0.value(), arg1.value()); s.thisObject()->setPrivateData(cobj); return true; } - } while (false); + } while(false); do { if (argc == 3) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } HolderType arg1 = {}; ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } HolderType arg2 = {}; ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } spine::SkeletonRenderer* cobj = JSB_ALLOC(spine::SkeletonRenderer, arg0.value(), arg1.value(), arg2.value()); s.thisObject()->setPrivateData(cobj); return true; } - } while (false); + } while(false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; } SE_BIND_CTOR(js_spine_SkeletonRenderer_constructor, __jsb_spine_SkeletonRenderer_class, js_spine_SkeletonRenderer_finalize) + + static bool js_spine_SkeletonRenderer_finalize(se::State& s) // NOLINT(readability-identifier-naming) { - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj =SE_THIS_OBJECT(s); cobj->release(); return true; } @@ -14130,19 +14036,19 @@ bool js_register_spine_SkeletonRenderer(se::Object* obj) // NOLINT(readability-i return true; } se::Object* __jsb_spine_SkeletonAnimation_proto = nullptr; -se::Class* __jsb_spine_SkeletonAnimation_class = nullptr; +se::Class* __jsb_spine_SkeletonAnimation_class = nullptr; static bool js_spine_SkeletonAnimation_addAnimation(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_addAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -14154,10 +14060,10 @@ static bool js_spine_SkeletonAnimation_addAnimation(se::State& s) // NOLINT(read return true; } if (argc == 4) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -14178,11 +14084,11 @@ static bool js_spine_SkeletonAnimation_addEmptyAnimation(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_addEmptyAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -14194,7 +14100,7 @@ static bool js_spine_SkeletonAnimation_addEmptyAnimation(se::State& s) // NOLINT return true; } if (argc == 3) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -14216,9 +14122,9 @@ static bool js_spine_SkeletonAnimation_clearTrack(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_clearTrack : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cobj->clearTrack(); return true; @@ -14240,7 +14146,7 @@ static bool js_spine_SkeletonAnimation_clearTracks(se::State& s) // NOLINT(reada auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_clearTracks : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->clearTracks(); return true; @@ -14254,9 +14160,9 @@ static bool js_spine_SkeletonAnimation_findAnimation(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_findAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -14276,9 +14182,9 @@ static bool js_spine_SkeletonAnimation_getCurrent(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_getCurrent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::TrackEntry* result = cobj->getCurrent(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -14305,9 +14211,9 @@ static bool js_spine_SkeletonAnimation_getState(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_getState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::AnimationState* result = cobj->getState(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -14324,13 +14230,13 @@ static bool js_spine_SkeletonAnimation_setAnimation(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_setAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -14350,9 +14256,9 @@ static bool js_spine_SkeletonAnimation_setAnimationStateData(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_setAnimationStateData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -14369,37 +14275,41 @@ static bool js_spine_SkeletonAnimation_setCompleteListener(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_setCompleteListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) { + if (args[0].isObject() && args[0].toObject()->isFunction()) + { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](spine::TrackEntry* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } else { + } + else + { arg0.data = nullptr; } - } while (false); + } while(false) + ; SE_PRECONDITION2(ok, false, "js_spine_SkeletonAnimation_setCompleteListener : Error processing arguments"); cobj->setCompleteListener(arg0.value()); return true; @@ -14413,37 +14323,41 @@ static bool js_spine_SkeletonAnimation_setDisposeListener(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_setDisposeListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) { + if (args[0].isObject() && args[0].toObject()->isFunction()) + { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](spine::TrackEntry* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } else { + } + else + { arg0.data = nullptr; } - } while (false); + } while(false) + ; SE_PRECONDITION2(ok, false, "js_spine_SkeletonAnimation_setDisposeListener : Error processing arguments"); cobj->setDisposeListener(arg0.value()); return true; @@ -14457,11 +14371,11 @@ static bool js_spine_SkeletonAnimation_setEmptyAnimation(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_setEmptyAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -14481,9 +14395,9 @@ static bool js_spine_SkeletonAnimation_setEmptyAnimations(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_setEmptyAnimations : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -14500,37 +14414,41 @@ static bool js_spine_SkeletonAnimation_setEndListener(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_setEndListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) { + if (args[0].isObject() && args[0].toObject()->isFunction()) + { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](spine::TrackEntry* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } else { + } + else + { arg0.data = nullptr; } - } while (false); + } while(false) + ; SE_PRECONDITION2(ok, false, "js_spine_SkeletonAnimation_setEndListener : Error processing arguments"); cobj->setEndListener(arg0.value()); return true; @@ -14544,38 +14462,42 @@ static bool js_spine_SkeletonAnimation_setEventListener(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_setEventListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) { + if (args[0].isObject() && args[0].toObject()->isFunction()) + { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](spine::TrackEntry* larg0, spine::Event* larg1) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(2); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); ok &= nativevalue_to_se(larg1, args[1], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } else { + } + else + { arg0.data = nullptr; } - } while (false); + } while(false) + ; SE_PRECONDITION2(ok, false, "js_spine_SkeletonAnimation_setEventListener : Error processing arguments"); cobj->setEventListener(arg0.value()); return true; @@ -14589,37 +14511,41 @@ static bool js_spine_SkeletonAnimation_setInterruptListener(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_setInterruptListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) { + if (args[0].isObject() && args[0].toObject()->isFunction()) + { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](spine::TrackEntry* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } else { + } + else + { arg0.data = nullptr; } - } while (false); + } while(false) + ; SE_PRECONDITION2(ok, false, "js_spine_SkeletonAnimation_setInterruptListener : Error processing arguments"); cobj->setInterruptListener(arg0.value()); return true; @@ -14633,13 +14559,13 @@ static bool js_spine_SkeletonAnimation_setMix(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_setMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -14656,37 +14582,41 @@ static bool js_spine_SkeletonAnimation_setStartListener(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_setStartListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) { + if (args[0].isObject() && args[0].toObject()->isFunction()) + { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](spine::TrackEntry* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } else { + } + else + { arg0.data = nullptr; } - } while (false); + } while(false) + ; SE_PRECONDITION2(ok, false, "js_spine_SkeletonAnimation_setStartListener : Error processing arguments"); cobj->setStartListener(arg0.value()); return true; @@ -14700,39 +14630,43 @@ static bool js_spine_SkeletonAnimation_setTrackCompleteListener(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_setTrackCompleteListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; - HolderType, true> arg1 = {}; + HolderType arg0 = {}; + HolderType, true> arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); do { - if (args[1].isObject() && args[1].toObject()->isFunction()) { + if (args[1].isObject() && args[1].toObject()->isFunction()) + { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[1]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](spine::TrackEntry* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg1.data = lambda; - } else { + } + else + { arg1.data = nullptr; } - } while (false); + } while(false) + ; SE_PRECONDITION2(ok, false, "js_spine_SkeletonAnimation_setTrackCompleteListener : Error processing arguments"); cobj->setTrackCompleteListener(arg0.value(), arg1.value()); return true; @@ -14746,39 +14680,43 @@ static bool js_spine_SkeletonAnimation_setTrackDisposeListener(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_setTrackDisposeListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; - HolderType, true> arg1 = {}; + HolderType arg0 = {}; + HolderType, true> arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); do { - if (args[1].isObject() && args[1].toObject()->isFunction()) { + if (args[1].isObject() && args[1].toObject()->isFunction()) + { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[1]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](spine::TrackEntry* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg1.data = lambda; - } else { + } + else + { arg1.data = nullptr; } - } while (false); + } while(false) + ; SE_PRECONDITION2(ok, false, "js_spine_SkeletonAnimation_setTrackDisposeListener : Error processing arguments"); cobj->setTrackDisposeListener(arg0.value(), arg1.value()); return true; @@ -14792,39 +14730,43 @@ static bool js_spine_SkeletonAnimation_setTrackEndListener(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_setTrackEndListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; - HolderType, true> arg1 = {}; + HolderType arg0 = {}; + HolderType, true> arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); do { - if (args[1].isObject() && args[1].toObject()->isFunction()) { + if (args[1].isObject() && args[1].toObject()->isFunction()) + { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[1]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](spine::TrackEntry* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg1.data = lambda; - } else { + } + else + { arg1.data = nullptr; } - } while (false); + } while(false) + ; SE_PRECONDITION2(ok, false, "js_spine_SkeletonAnimation_setTrackEndListener : Error processing arguments"); cobj->setTrackEndListener(arg0.value(), arg1.value()); return true; @@ -14838,40 +14780,44 @@ static bool js_spine_SkeletonAnimation_setTrackEventListener(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_setTrackEventListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; - HolderType, true> arg1 = {}; + HolderType arg0 = {}; + HolderType, true> arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); do { - if (args[1].isObject() && args[1].toObject()->isFunction()) { + if (args[1].isObject() && args[1].toObject()->isFunction()) + { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[1]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](spine::TrackEntry* larg0, spine::Event* larg1) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(2); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); ok &= nativevalue_to_se(larg1, args[1], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg1.data = lambda; - } else { + } + else + { arg1.data = nullptr; } - } while (false); + } while(false) + ; SE_PRECONDITION2(ok, false, "js_spine_SkeletonAnimation_setTrackEventListener : Error processing arguments"); cobj->setTrackEventListener(arg0.value(), arg1.value()); return true; @@ -14885,39 +14831,43 @@ static bool js_spine_SkeletonAnimation_setTrackInterruptListener(se::State& s) / { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_setTrackInterruptListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; - HolderType, true> arg1 = {}; + HolderType arg0 = {}; + HolderType, true> arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); do { - if (args[1].isObject() && args[1].toObject()->isFunction()) { + if (args[1].isObject() && args[1].toObject()->isFunction()) + { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[1]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](spine::TrackEntry* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg1.data = lambda; - } else { + } + else + { arg1.data = nullptr; } - } while (false); + } while(false) + ; SE_PRECONDITION2(ok, false, "js_spine_SkeletonAnimation_setTrackInterruptListener : Error processing arguments"); cobj->setTrackInterruptListener(arg0.value(), arg1.value()); return true; @@ -14931,39 +14881,43 @@ static bool js_spine_SkeletonAnimation_setTrackStartListener(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_setTrackStartListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; - HolderType, true> arg1 = {}; + HolderType arg0 = {}; + HolderType, true> arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); do { - if (args[1].isObject() && args[1].toObject()->isFunction()) { + if (args[1].isObject() && args[1].toObject()->isFunction()) + { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[1]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](spine::TrackEntry* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg1.data = lambda; - } else { + } + else + { arg1.data = nullptr; } - } while (false); + } while(false) + ; SE_PRECONDITION2(ok, false, "js_spine_SkeletonAnimation_setTrackStartListener : Error processing arguments"); cobj->setTrackStartListener(arg0.value(), arg1.value()); return true; @@ -14975,9 +14929,9 @@ SE_BIND_FUNC(js_spine_SkeletonAnimation_setTrackStartListener) static bool js_spine_SkeletonAnimation_create(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = spine::SkeletonAnimation::create(); result->retain(); @@ -14993,9 +14947,9 @@ SE_BIND_FUNC(js_spine_SkeletonAnimation_create) static bool js_spine_SkeletonAnimation_createWithJsonFile(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -15012,7 +14966,7 @@ static bool js_spine_SkeletonAnimation_createWithJsonFile(se::State& s) // NOLIN if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); ok &= sevalue_to_native(args[1], &arg1, nullptr); ok &= sevalue_to_native(args[2], &arg2, nullptr); @@ -15031,9 +14985,9 @@ SE_BIND_FUNC(js_spine_SkeletonAnimation_createWithJsonFile) static bool js_spine_SkeletonAnimation_createWithBinaryFile(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -15050,7 +15004,7 @@ static bool js_spine_SkeletonAnimation_createWithBinaryFile(se::State& s) // NOL if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); ok &= sevalue_to_native(args[1], &arg1, nullptr); ok &= sevalue_to_native(args[2], &arg2, nullptr); @@ -15069,9 +15023,9 @@ SE_BIND_FUNC(js_spine_SkeletonAnimation_createWithBinaryFile) static bool js_spine_SkeletonAnimation_setGlobalTimeScale(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -15102,9 +15056,12 @@ static bool js_spine_SkeletonAnimation_ctor(se::State& s) // NOLINT(readability- } SE_BIND_SUB_CLS_CTOR(js_spine_SkeletonAnimation_ctor, __jsb_spine_SkeletonAnimation_class, js_spine_SkeletonAnimation_finalize) + + + static bool js_spine_SkeletonAnimation_finalize(se::State& s) // NOLINT(readability-identifier-naming) { - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj =SE_THIS_OBJECT(s); cobj->release(); return true; } @@ -15155,18 +15112,18 @@ bool js_register_spine_SkeletonAnimation(se::Object* obj) // NOLINT(readability- return true; } se::Object* __jsb_spine_SkeletonCacheAnimation_proto = nullptr; -se::Class* __jsb_spine_SkeletonCacheAnimation_class = nullptr; +se::Class* __jsb_spine_SkeletonCacheAnimation_class = nullptr; static bool js_spine_SkeletonCacheAnimation_addAnimation(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_addAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_spine_SkeletonCacheAnimation_addAnimation : Error processing arguments"); @@ -15175,8 +15132,8 @@ static bool js_spine_SkeletonCacheAnimation_addAnimation(se::State& s) // NOLINT } if (argc == 3) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -15194,7 +15151,7 @@ static bool js_spine_SkeletonCacheAnimation_beginSchedule(se::State& s) // NOLIN auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_beginSchedule : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->beginSchedule(); return true; @@ -15208,9 +15165,9 @@ static bool js_spine_SkeletonCacheAnimation_findAnimation(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_findAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -15230,9 +15187,9 @@ static bool js_spine_SkeletonCacheAnimation_findBone(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_findBone : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -15252,9 +15209,9 @@ static bool js_spine_SkeletonCacheAnimation_findSlot(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_findSlot : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -15274,9 +15231,9 @@ static bool js_spine_SkeletonCacheAnimation_getAttachment(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_getAttachment : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -15298,9 +15255,9 @@ static bool js_spine_SkeletonCacheAnimation_getParamsBuffer(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_getParamsBuffer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { se::Object* result = cobj->getParamsBuffer(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -15317,9 +15274,9 @@ static bool js_spine_SkeletonCacheAnimation_getSharedBufferOffset(se::State& s) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_getSharedBufferOffset : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { se::Object* result = cobj->getSharedBufferOffset(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -15336,9 +15293,9 @@ static bool js_spine_SkeletonCacheAnimation_getSkeleton(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_getSkeleton : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Skeleton* result = cobj->getSkeleton(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -15355,9 +15312,9 @@ static bool js_spine_SkeletonCacheAnimation_getTimeScale(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_getTimeScale : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getTimeScale(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -15374,9 +15331,9 @@ static bool js_spine_SkeletonCacheAnimation_isOpacityModifyRGB(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_isOpacityModifyRGB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isOpacityModifyRGB(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -15394,7 +15351,7 @@ static bool js_spine_SkeletonCacheAnimation_onDisable(se::State& s) // NOLINT(re auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_onDisable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDisable(); return true; @@ -15409,7 +15366,7 @@ static bool js_spine_SkeletonCacheAnimation_onEnable(se::State& s) // NOLINT(rea auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_onEnable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onEnable(); return true; @@ -15423,9 +15380,9 @@ static bool js_spine_SkeletonCacheAnimation_paused(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_paused : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -15442,12 +15399,12 @@ static bool js_spine_SkeletonCacheAnimation_setAnimation(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_setAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_spine_SkeletonCacheAnimation_setAnimation : Error processing arguments"); @@ -15463,9 +15420,9 @@ static bool js_spine_SkeletonCacheAnimation_setAttachEnabled(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_setAttachEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -15480,33 +15437,27 @@ SE_BIND_FUNC(js_spine_SkeletonCacheAnimation_setAttachEnabled) static bool js_spine_SkeletonCacheAnimation_setAttachment(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_setAttachment : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2( cobj, false, "js_spine_SkeletonCacheAnimation_setAttachment : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } bool result = cobj->setAttachment(arg0.value(), arg1.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_SkeletonCacheAnimation_setAttachment : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while (false); + } while(false); do { if (argc == 2) { @@ -15514,22 +15465,16 @@ static bool js_spine_SkeletonCacheAnimation_setAttachment(se::State& s) // NOLIN HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } bool result = cobj->setAttachment(arg0.value(), arg1.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_SkeletonCacheAnimation_setAttachment : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while (false); + } while(false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -15540,9 +15485,9 @@ static bool js_spine_SkeletonCacheAnimation_setBatchEnabled(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_setBatchEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -15560,7 +15505,7 @@ static bool js_spine_SkeletonCacheAnimation_setBonesToSetupPose(se::State& s) // auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_setBonesToSetupPose : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->setBonesToSetupPose(); return true; @@ -15574,9 +15519,9 @@ static bool js_spine_SkeletonCacheAnimation_setColor(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_setColor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 4) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -15599,37 +15544,41 @@ static bool js_spine_SkeletonCacheAnimation_setCompleteListener(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_setCompleteListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) { + if (args[0].isObject() && args[0].toObject()->isFunction()) + { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](std::string larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } else { + } + else + { arg0.data = nullptr; } - } while (false); + } while(false) + ; SE_PRECONDITION2(ok, false, "js_spine_SkeletonCacheAnimation_setCompleteListener : Error processing arguments"); cobj->setCompleteListener(arg0.value()); return true; @@ -15643,37 +15592,41 @@ static bool js_spine_SkeletonCacheAnimation_setEndListener(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_setEndListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) { + if (args[0].isObject() && args[0].toObject()->isFunction()) + { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](std::string larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } else { + } + else + { arg0.data = nullptr; } - } while (false); + } while(false) + ; SE_PRECONDITION2(ok, false, "js_spine_SkeletonCacheAnimation_setEndListener : Error processing arguments"); cobj->setEndListener(arg0.value()); return true; @@ -15687,9 +15640,9 @@ static bool js_spine_SkeletonCacheAnimation_setOpacityModifyRGB(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_setOpacityModifyRGB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -15704,38 +15657,32 @@ SE_BIND_FUNC(js_spine_SkeletonCacheAnimation_setOpacityModifyRGB) static bool js_spine_SkeletonCacheAnimation_setSkin(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_setSkin : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2( cobj, false, "js_spine_SkeletonCacheAnimation_setSkin : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->setSkin(arg0.value()); return true; } - } while (false); + } while(false); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { - ok = true; - break; - } + if (!ok) { ok = true; break; } cobj->setSkin(arg0.value()); return true; } - } while (false); + } while(false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -15747,7 +15694,7 @@ static bool js_spine_SkeletonCacheAnimation_setSlotsToSetupPose(se::State& s) // auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_setSlotsToSetupPose : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->setSlotsToSetupPose(); return true; @@ -15761,37 +15708,41 @@ static bool js_spine_SkeletonCacheAnimation_setStartListener(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_setStartListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) { + if (args[0].isObject() && args[0].toObject()->isFunction()) + { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](std::string larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } else { + } + else + { arg0.data = nullptr; } - } while (false); + } while(false) + ; SE_PRECONDITION2(ok, false, "js_spine_SkeletonCacheAnimation_setStartListener : Error processing arguments"); cobj->setStartListener(arg0.value()); return true; @@ -15805,9 +15756,9 @@ static bool js_spine_SkeletonCacheAnimation_setTimeScale(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_setTimeScale : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -15825,7 +15776,7 @@ static bool js_spine_SkeletonCacheAnimation_setToSetupPose(se::State& s) // NOLI auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_setToSetupPose : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->setToSetupPose(); return true; @@ -15839,9 +15790,9 @@ static bool js_spine_SkeletonCacheAnimation_setUseTint(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_setUseTint : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -15859,7 +15810,7 @@ static bool js_spine_SkeletonCacheAnimation_stopSchedule(se::State& s) // NOLINT auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_stopSchedule : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->stopSchedule(); return true; @@ -15873,9 +15824,9 @@ static bool js_spine_SkeletonCacheAnimation_update(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_update : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -15893,7 +15844,7 @@ static bool js_spine_SkeletonCacheAnimation_updateAllAnimationCache(se::State& s auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_updateAllAnimationCache : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->updateAllAnimationCache(); return true; @@ -15907,9 +15858,9 @@ static bool js_spine_SkeletonCacheAnimation_updateAnimationCache(se::State& s) / { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_updateAnimationCache : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -15926,10 +15877,10 @@ SE_DECLARE_FINALIZE_FUNC(js_spine_SkeletonCacheAnimation_finalize) static bool js_spine_SkeletonCacheAnimation_constructor(se::State& s) // NOLINT(readability-identifier-naming) constructor.c { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - std::string arg0; - bool arg1; + CC_UNUSED bool ok = true; + const auto& args = s.args(); + std::string arg0; + bool arg1; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_spine_SkeletonCacheAnimation_constructor : Error processing arguments"); @@ -15939,9 +15890,11 @@ static bool js_spine_SkeletonCacheAnimation_constructor(se::State& s) // NOLINT( } SE_BIND_CTOR(js_spine_SkeletonCacheAnimation_constructor, __jsb_spine_SkeletonCacheAnimation_class, js_spine_SkeletonCacheAnimation_finalize) + + static bool js_spine_SkeletonCacheAnimation_finalize(se::State& s) // NOLINT(readability-identifier-naming) { - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj =SE_THIS_OBJECT(s); cobj->release(); return true; } @@ -15995,15 +15948,15 @@ bool js_register_spine_SkeletonCacheAnimation(se::Object* obj) // NOLINT(readabi return true; } se::Object* __jsb_spine_SkeletonCacheMgr_proto = nullptr; -se::Class* __jsb_spine_SkeletonCacheMgr_class = nullptr; +se::Class* __jsb_spine_SkeletonCacheMgr_class = nullptr; static bool js_spine_SkeletonCacheMgr_buildSkeletonCache(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheMgr_buildSkeletonCache : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -16023,9 +15976,9 @@ static bool js_spine_SkeletonCacheMgr_removeSkeletonCache(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheMgr_removeSkeletonCache : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -16040,9 +15993,9 @@ SE_BIND_FUNC(js_spine_SkeletonCacheMgr_removeSkeletonCache) static bool js_spine_SkeletonCacheMgr_getInstance(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::SkeletonCacheMgr* result = spine::SkeletonCacheMgr::getInstance(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -16058,7 +16011,7 @@ SE_BIND_FUNC(js_spine_SkeletonCacheMgr_getInstance) static bool js_spine_SkeletonCacheMgr_destroyInstance(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { spine::SkeletonCacheMgr::destroyInstance(); return true; @@ -16068,10 +16021,12 @@ static bool js_spine_SkeletonCacheMgr_destroyInstance(se::State& s) // NOLINT(re } SE_BIND_FUNC(js_spine_SkeletonCacheMgr_destroyInstance) + static bool js_spine_SkeletonCacheMgr_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -16099,43 +16054,47 @@ bool js_register_spine_SkeletonCacheMgr(se::Object* obj) // NOLINT(readability-i return true; } se::Object* __jsb_spine_SkeletonDataMgr_proto = nullptr; -se::Class* __jsb_spine_SkeletonDataMgr_class = nullptr; +se::Class* __jsb_spine_SkeletonDataMgr_class = nullptr; static bool js_spine_SkeletonDataMgr_setDestroyCallback(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonDataMgr_setDestroyCallback : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, false> arg0 = {}; + HolderType, false> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) { + if (args[0].isObject() && args[0].toObject()->isFunction()) + { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](int larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } else { + } + else + { arg0.data = nullptr; } - } while (false); + } while(false) + ; SE_PRECONDITION2(ok, false, "js_spine_SkeletonDataMgr_setDestroyCallback : Error processing arguments"); cobj->setDestroyCallback(arg0.value()); return true; @@ -16147,9 +16106,9 @@ SE_BIND_FUNC(js_spine_SkeletonDataMgr_setDestroyCallback) static bool js_spine_SkeletonDataMgr_getInstance(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::SkeletonDataMgr* result = spine::SkeletonDataMgr::getInstance(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -16173,10 +16132,13 @@ static bool js_spine_SkeletonDataMgr_constructor(se::State& s) // NOLINT(readabi } SE_BIND_CTOR(js_spine_SkeletonDataMgr_constructor, __jsb_spine_SkeletonDataMgr_class, js_spine_SkeletonDataMgr_finalize) + + static bool js_spine_SkeletonDataMgr_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) + { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -16201,10 +16163,12 @@ bool js_register_spine_SkeletonDataMgr(se::Object* obj) // NOLINT(readability-id se::ScriptEngine::getInstance()->clearException(); return true; } -bool register_all_spine(se::Object* obj) { +bool register_all_spine(se::Object* obj) +{ // Get the ns se::Value nsVal; - if (!obj->getProperty("spine", &nsVal)) { + if (!obj->getProperty("spine", &nsVal)) + { se::HandleObject jsobj(se::Object::createPlainObject()); nsVal.setObject(jsobj); obj->setProperty("spine", nsVal); @@ -16270,3 +16234,4 @@ bool register_all_spine(se::Object* obj) { js_register_spine_SkeletonDataMgr(ns); return true; } + diff --git a/native/cocos/bindings/auto/jsb_spine_auto.h b/native/cocos/bindings/auto/jsb_spine_auto.h index 6a22d5591f..e8eca3688d 100644 --- a/native/cocos/bindings/auto/jsb_spine_auto.h +++ b/native/cocos/bindings/auto/jsb_spine_auto.h @@ -24,14 +24,14 @@ ****************************************************************************/ #pragma once -#include #include "base/Config.h" +#include #include "cocos/bindings/jswrapper/SeApi.h" #include "cocos/bindings/manual/jsb_conversions.h" #include "cocos/editor-support/spine-creator-support/spine-cocos2dx.h" extern se::Object* __jsb_spine_Animation_proto; -extern se::Class* __jsb_spine_Animation_class; +extern se::Class* __jsb_spine_Animation_class; bool js_register_spine_Animation(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -44,7 +44,7 @@ SE_DECLARE_FUNC(js_spine_Animation_hasTimeline); SE_DECLARE_FUNC(js_spine_Animation_setDuration); extern se::Object* __jsb_spine_TrackEntry_proto; -extern se::Class* __jsb_spine_TrackEntry_class; +extern se::Class* __jsb_spine_TrackEntry_class; bool js_register_spine_TrackEntry(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -92,7 +92,7 @@ SE_DECLARE_FUNC(js_spine_TrackEntry_setTrackEnd); SE_DECLARE_FUNC(js_spine_TrackEntry_setTrackTime); extern se::Object* __jsb_spine_AnimationState_proto; -extern se::Class* __jsb_spine_AnimationState_class; +extern se::Class* __jsb_spine_AnimationState_class; bool js_register_spine_AnimationState(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -115,7 +115,7 @@ SE_DECLARE_FUNC(js_spine_AnimationState_setTimeScale); SE_DECLARE_FUNC(js_spine_AnimationState_update); extern se::Object* __jsb_spine_AnimationStateData_proto; -extern se::Class* __jsb_spine_AnimationStateData_class; +extern se::Class* __jsb_spine_AnimationStateData_class; bool js_register_spine_AnimationStateData(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -128,7 +128,7 @@ SE_DECLARE_FUNC(js_spine_AnimationStateData_setDefaultMix); SE_DECLARE_FUNC(js_spine_AnimationStateData_setMix); extern se::Object* __jsb_spine_Attachment_proto; -extern se::Class* __jsb_spine_Attachment_class; +extern se::Class* __jsb_spine_Attachment_class; bool js_register_spine_Attachment(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -141,7 +141,7 @@ SE_DECLARE_FUNC(js_spine_Attachment_getRefCount); SE_DECLARE_FUNC(js_spine_Attachment_reference); extern se::Object* __jsb_spine_Timeline_proto; -extern se::Class* __jsb_spine_Timeline_class; +extern se::Class* __jsb_spine_Timeline_class; bool js_register_spine_Timeline(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -150,7 +150,7 @@ JSB_REGISTER_OBJECT_TYPE(spine::Timeline); SE_DECLARE_FUNC(js_spine_Timeline_getPropertyId); extern se::Object* __jsb_spine_AttachmentTimeline_proto; -extern se::Class* __jsb_spine_AttachmentTimeline_class; +extern se::Class* __jsb_spine_AttachmentTimeline_class; bool js_register_spine_AttachmentTimeline(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -165,7 +165,7 @@ SE_DECLARE_FUNC(js_spine_AttachmentTimeline_setFrame); SE_DECLARE_FUNC(js_spine_AttachmentTimeline_setSlotIndex); extern se::Object* __jsb_spine_Bone_proto; -extern se::Class* __jsb_spine_Bone_class; +extern se::Class* __jsb_spine_Bone_class; bool js_register_spine_Bone(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -233,7 +233,7 @@ SE_DECLARE_FUNC(js_spine_Bone_setYDown); SE_DECLARE_FUNC(js_spine_Bone_isYDown); extern se::Object* __jsb_spine_BoneData_proto; -extern se::Class* __jsb_spine_BoneData_class; +extern se::Class* __jsb_spine_BoneData_class; bool js_register_spine_BoneData(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -264,7 +264,7 @@ SE_DECLARE_FUNC(js_spine_BoneData_setX); SE_DECLARE_FUNC(js_spine_BoneData_setY); extern se::Object* __jsb_spine_VertexAttachment_proto; -extern se::Class* __jsb_spine_VertexAttachment_class; +extern se::Class* __jsb_spine_VertexAttachment_class; bool js_register_spine_VertexAttachment(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -279,7 +279,7 @@ SE_DECLARE_FUNC(js_spine_VertexAttachment_setDeformAttachment); SE_DECLARE_FUNC(js_spine_VertexAttachment_setWorldVerticesLength); extern se::Object* __jsb_spine_BoundingBoxAttachment_proto; -extern se::Class* __jsb_spine_BoundingBoxAttachment_class; +extern se::Class* __jsb_spine_BoundingBoxAttachment_class; bool js_register_spine_BoundingBoxAttachment(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -288,7 +288,7 @@ JSB_REGISTER_OBJECT_TYPE(spine::BoundingBoxAttachment); SE_DECLARE_FUNC(js_spine_BoundingBoxAttachment_copy); extern se::Object* __jsb_spine_ClippingAttachment_proto; -extern se::Class* __jsb_spine_ClippingAttachment_class; +extern se::Class* __jsb_spine_ClippingAttachment_class; bool js_register_spine_ClippingAttachment(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -299,7 +299,7 @@ SE_DECLARE_FUNC(js_spine_ClippingAttachment_getEndSlot); SE_DECLARE_FUNC(js_spine_ClippingAttachment_setEndSlot); extern se::Object* __jsb_spine_Color_proto; -extern se::Class* __jsb_spine_Color_class; +extern se::Class* __jsb_spine_Color_class; bool js_register_spine_Color(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -308,7 +308,7 @@ JSB_REGISTER_OBJECT_TYPE(spine::Color); SE_DECLARE_FUNC(js_spine_Color_clamp); extern se::Object* __jsb_spine_CurveTimeline_proto; -extern se::Class* __jsb_spine_CurveTimeline_class; +extern se::Class* __jsb_spine_CurveTimeline_class; bool js_register_spine_CurveTimeline(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -323,7 +323,7 @@ SE_DECLARE_FUNC(js_spine_CurveTimeline_setLinear); SE_DECLARE_FUNC(js_spine_CurveTimeline_setStepped); extern se::Object* __jsb_spine_ColorTimeline_proto; -extern se::Class* __jsb_spine_ColorTimeline_class; +extern se::Class* __jsb_spine_ColorTimeline_class; bool js_register_spine_ColorTimeline(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -336,7 +336,7 @@ SE_DECLARE_FUNC(js_spine_ColorTimeline_setFrame); SE_DECLARE_FUNC(js_spine_ColorTimeline_setSlotIndex); extern se::Object* __jsb_spine_ConstraintData_proto; -extern se::Class* __jsb_spine_ConstraintData_class; +extern se::Class* __jsb_spine_ConstraintData_class; bool js_register_spine_ConstraintData(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -349,7 +349,7 @@ SE_DECLARE_FUNC(js_spine_ConstraintData_setOrder); SE_DECLARE_FUNC(js_spine_ConstraintData_setSkinRequired); extern se::Object* __jsb_spine_DeformTimeline_proto; -extern se::Class* __jsb_spine_DeformTimeline_class; +extern se::Class* __jsb_spine_DeformTimeline_class; bool js_register_spine_DeformTimeline(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -363,7 +363,7 @@ SE_DECLARE_FUNC(js_spine_DeformTimeline_setAttachment); SE_DECLARE_FUNC(js_spine_DeformTimeline_setSlotIndex); extern se::Object* __jsb_spine_DrawOrderTimeline_proto; -extern se::Class* __jsb_spine_DrawOrderTimeline_class; +extern se::Class* __jsb_spine_DrawOrderTimeline_class; bool js_register_spine_DrawOrderTimeline(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -374,7 +374,7 @@ SE_DECLARE_FUNC(js_spine_DrawOrderTimeline_getFrames); SE_DECLARE_FUNC(js_spine_DrawOrderTimeline_getPropertyId); extern se::Object* __jsb_spine_Event_proto; -extern se::Class* __jsb_spine_Event_class; +extern se::Class* __jsb_spine_Event_class; bool js_register_spine_Event(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -394,7 +394,7 @@ SE_DECLARE_FUNC(js_spine_Event_setStringValue); SE_DECLARE_FUNC(js_spine_Event_setVolume); extern se::Object* __jsb_spine_EventData_proto; -extern se::Class* __jsb_spine_EventData_class; +extern se::Class* __jsb_spine_EventData_class; bool js_register_spine_EventData(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -415,7 +415,7 @@ SE_DECLARE_FUNC(js_spine_EventData_setStringValue); SE_DECLARE_FUNC(js_spine_EventData_setVolume); extern se::Object* __jsb_spine_EventTimeline_proto; -extern se::Class* __jsb_spine_EventTimeline_class; +extern se::Class* __jsb_spine_EventTimeline_class; bool js_register_spine_EventTimeline(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -428,7 +428,7 @@ SE_DECLARE_FUNC(js_spine_EventTimeline_getPropertyId); SE_DECLARE_FUNC(js_spine_EventTimeline_setFrame); extern se::Object* __jsb_spine_IkConstraint_proto; -extern se::Class* __jsb_spine_IkConstraint_class; +extern se::Class* __jsb_spine_IkConstraint_class; bool js_register_spine_IkConstraint(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -454,7 +454,7 @@ SE_DECLARE_FUNC(js_spine_IkConstraint_setTarget); SE_DECLARE_FUNC(js_spine_IkConstraint_update); extern se::Object* __jsb_spine_IkConstraintData_proto; -extern se::Class* __jsb_spine_IkConstraintData_class; +extern se::Class* __jsb_spine_IkConstraintData_class; bool js_register_spine_IkConstraintData(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -477,7 +477,7 @@ SE_DECLARE_FUNC(js_spine_IkConstraintData_setTarget); SE_DECLARE_FUNC(js_spine_IkConstraintData_setUniform); extern se::Object* __jsb_spine_IkConstraintTimeline_proto; -extern se::Class* __jsb_spine_IkConstraintTimeline_class; +extern se::Class* __jsb_spine_IkConstraintTimeline_class; bool js_register_spine_IkConstraintTimeline(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -487,7 +487,7 @@ SE_DECLARE_FUNC(js_spine_IkConstraintTimeline_getPropertyId); SE_DECLARE_FUNC(js_spine_IkConstraintTimeline_setFrame); extern se::Object* __jsb_spine_MeshAttachment_proto; -extern se::Class* __jsb_spine_MeshAttachment_class; +extern se::Class* __jsb_spine_MeshAttachment_class; bool js_register_spine_MeshAttachment(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -537,7 +537,7 @@ SE_DECLARE_FUNC(js_spine_MeshAttachment_setWidth); SE_DECLARE_FUNC(js_spine_MeshAttachment_updateUVs); extern se::Object* __jsb_spine_PathAttachment_proto; -extern se::Class* __jsb_spine_PathAttachment_class; +extern se::Class* __jsb_spine_PathAttachment_class; bool js_register_spine_PathAttachment(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -551,7 +551,7 @@ SE_DECLARE_FUNC(js_spine_PathAttachment_setClosed); SE_DECLARE_FUNC(js_spine_PathAttachment_setConstantSpeed); extern se::Object* __jsb_spine_PathConstraint_proto; -extern se::Class* __jsb_spine_PathConstraint_class; +extern se::Class* __jsb_spine_PathConstraint_class; bool js_register_spine_PathConstraint(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -576,7 +576,7 @@ SE_DECLARE_FUNC(js_spine_PathConstraint_setTranslateMix); SE_DECLARE_FUNC(js_spine_PathConstraint_update); extern se::Object* __jsb_spine_PathConstraintData_proto; -extern se::Class* __jsb_spine_PathConstraintData_class; +extern se::Class* __jsb_spine_PathConstraintData_class; bool js_register_spine_PathConstraintData(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -603,7 +603,7 @@ SE_DECLARE_FUNC(js_spine_PathConstraintData_setTarget); SE_DECLARE_FUNC(js_spine_PathConstraintData_setTranslateMix); extern se::Object* __jsb_spine_PathConstraintMixTimeline_proto; -extern se::Class* __jsb_spine_PathConstraintMixTimeline_class; +extern se::Class* __jsb_spine_PathConstraintMixTimeline_class; bool js_register_spine_PathConstraintMixTimeline(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -612,7 +612,7 @@ JSB_REGISTER_OBJECT_TYPE(spine::PathConstraintMixTimeline); SE_DECLARE_FUNC(js_spine_PathConstraintMixTimeline_getPropertyId); extern se::Object* __jsb_spine_PathConstraintPositionTimeline_proto; -extern se::Class* __jsb_spine_PathConstraintPositionTimeline_class; +extern se::Class* __jsb_spine_PathConstraintPositionTimeline_class; bool js_register_spine_PathConstraintPositionTimeline(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -622,7 +622,7 @@ SE_DECLARE_FUNC(js_spine_PathConstraintPositionTimeline_getPropertyId); SE_DECLARE_FUNC(js_spine_PathConstraintPositionTimeline_setFrame); extern se::Object* __jsb_spine_PathConstraintSpacingTimeline_proto; -extern se::Class* __jsb_spine_PathConstraintSpacingTimeline_class; +extern se::Class* __jsb_spine_PathConstraintSpacingTimeline_class; bool js_register_spine_PathConstraintSpacingTimeline(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -631,7 +631,7 @@ JSB_REGISTER_OBJECT_TYPE(spine::PathConstraintSpacingTimeline); SE_DECLARE_FUNC(js_spine_PathConstraintSpacingTimeline_getPropertyId); extern se::Object* __jsb_spine_PointAttachment_proto; -extern se::Class* __jsb_spine_PointAttachment_class; +extern se::Class* __jsb_spine_PointAttachment_class; bool js_register_spine_PointAttachment(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -646,7 +646,7 @@ SE_DECLARE_FUNC(js_spine_PointAttachment_setX); SE_DECLARE_FUNC(js_spine_PointAttachment_setY); extern se::Object* __jsb_spine_RegionAttachment_proto; -extern se::Class* __jsb_spine_RegionAttachment_class; +extern se::Class* __jsb_spine_RegionAttachment_class; bool js_register_spine_RegionAttachment(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -688,7 +688,7 @@ SE_DECLARE_FUNC(js_spine_RegionAttachment_setY); SE_DECLARE_FUNC(js_spine_RegionAttachment_updateOffset); extern se::Object* __jsb_spine_RotateTimeline_proto; -extern se::Class* __jsb_spine_RotateTimeline_class; +extern se::Class* __jsb_spine_RotateTimeline_class; bool js_register_spine_RotateTimeline(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -701,7 +701,7 @@ SE_DECLARE_FUNC(js_spine_RotateTimeline_setBoneIndex); SE_DECLARE_FUNC(js_spine_RotateTimeline_setFrame); extern se::Object* __jsb_spine_TranslateTimeline_proto; -extern se::Class* __jsb_spine_TranslateTimeline_class; +extern se::Class* __jsb_spine_TranslateTimeline_class; bool js_register_spine_TranslateTimeline(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -711,7 +711,7 @@ SE_DECLARE_FUNC(js_spine_TranslateTimeline_getPropertyId); SE_DECLARE_FUNC(js_spine_TranslateTimeline_setFrame); extern se::Object* __jsb_spine_ScaleTimeline_proto; -extern se::Class* __jsb_spine_ScaleTimeline_class; +extern se::Class* __jsb_spine_ScaleTimeline_class; bool js_register_spine_ScaleTimeline(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -720,7 +720,7 @@ JSB_REGISTER_OBJECT_TYPE(spine::ScaleTimeline); SE_DECLARE_FUNC(js_spine_ScaleTimeline_getPropertyId); extern se::Object* __jsb_spine_ShearTimeline_proto; -extern se::Class* __jsb_spine_ShearTimeline_class; +extern se::Class* __jsb_spine_ShearTimeline_class; bool js_register_spine_ShearTimeline(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -729,7 +729,7 @@ JSB_REGISTER_OBJECT_TYPE(spine::ShearTimeline); SE_DECLARE_FUNC(js_spine_ShearTimeline_getPropertyId); extern se::Object* __jsb_spine_Skeleton_proto; -extern se::Class* __jsb_spine_Skeleton_class; +extern se::Class* __jsb_spine_Skeleton_class; bool js_register_spine_Skeleton(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -776,7 +776,7 @@ SE_DECLARE_FUNC(js_spine_Skeleton_updateCache); SE_DECLARE_FUNC(js_spine_Skeleton_updateWorldTransform); extern se::Object* __jsb_spine_SkeletonBounds_proto; -extern se::Class* __jsb_spine_SkeletonBounds_class; +extern se::Class* __jsb_spine_SkeletonBounds_class; bool js_register_spine_SkeletonBounds(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -791,7 +791,7 @@ SE_DECLARE_FUNC(js_spine_SkeletonBounds_getWidth); SE_DECLARE_FUNC(js_spine_SkeletonBounds_intersectsSegment); extern se::Object* __jsb_spine_Polygon_proto; -extern se::Class* __jsb_spine_Polygon_class; +extern se::Class* __jsb_spine_Polygon_class; bool js_register_spine_Polygon(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -799,7 +799,7 @@ bool register_all_spine(se::Object* obj); JSB_REGISTER_OBJECT_TYPE(spine::Polygon); extern se::Object* __jsb_spine_SkeletonData_proto; -extern se::Class* __jsb_spine_SkeletonData_class; +extern se::Class* __jsb_spine_SkeletonData_class; bool js_register_spine_SkeletonData(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -848,7 +848,7 @@ SE_DECLARE_FUNC(js_spine_SkeletonData_setX); SE_DECLARE_FUNC(js_spine_SkeletonData_setY); extern se::Object* __jsb_spine_Skin_proto; -extern se::Class* __jsb_spine_Skin_class; +extern se::Class* __jsb_spine_Skin_class; bool js_register_spine_Skin(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -864,7 +864,7 @@ SE_DECLARE_FUNC(js_spine_Skin_removeAttachment); SE_DECLARE_FUNC(js_spine_Skin_setAttachment); extern se::Object* __jsb_spine_Slot_proto; -extern se::Class* __jsb_spine_Slot_class; +extern se::Class* __jsb_spine_Slot_class; bool js_register_spine_Slot(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -884,7 +884,7 @@ SE_DECLARE_FUNC(js_spine_Slot_setAttachmentTime); SE_DECLARE_FUNC(js_spine_Slot_setToSetupPose); extern se::Object* __jsb_spine_SlotData_proto; -extern se::Class* __jsb_spine_SlotData_class; +extern se::Class* __jsb_spine_SlotData_class; bool js_register_spine_SlotData(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -903,7 +903,7 @@ SE_DECLARE_FUNC(js_spine_SlotData_setBlendMode); SE_DECLARE_FUNC(js_spine_SlotData_setHasDarkColor); extern se::Object* __jsb_spine_TransformConstraint_proto; -extern se::Class* __jsb_spine_TransformConstraint_class; +extern se::Class* __jsb_spine_TransformConstraint_class; bool js_register_spine_TransformConstraint(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -928,7 +928,7 @@ SE_DECLARE_FUNC(js_spine_TransformConstraint_setTranslateMix); SE_DECLARE_FUNC(js_spine_TransformConstraint_update); extern se::Object* __jsb_spine_TransformConstraintData_proto; -extern se::Class* __jsb_spine_TransformConstraintData_class; +extern se::Class* __jsb_spine_TransformConstraintData_class; bool js_register_spine_TransformConstraintData(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -950,7 +950,7 @@ SE_DECLARE_FUNC(js_spine_TransformConstraintData_isLocal); SE_DECLARE_FUNC(js_spine_TransformConstraintData_isRelative); extern se::Object* __jsb_spine_TransformConstraintTimeline_proto; -extern se::Class* __jsb_spine_TransformConstraintTimeline_class; +extern se::Class* __jsb_spine_TransformConstraintTimeline_class; bool js_register_spine_TransformConstraintTimeline(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -960,7 +960,7 @@ SE_DECLARE_FUNC(js_spine_TransformConstraintTimeline_getPropertyId); SE_DECLARE_FUNC(js_spine_TransformConstraintTimeline_setFrame); extern se::Object* __jsb_spine_TwoColorTimeline_proto; -extern se::Class* __jsb_spine_TwoColorTimeline_class; +extern se::Class* __jsb_spine_TwoColorTimeline_class; bool js_register_spine_TwoColorTimeline(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -972,7 +972,7 @@ SE_DECLARE_FUNC(js_spine_TwoColorTimeline_setFrame); SE_DECLARE_FUNC(js_spine_TwoColorTimeline_setSlotIndex); extern se::Object* __jsb_spine_VertexEffect_proto; -extern se::Class* __jsb_spine_VertexEffect_class; +extern se::Class* __jsb_spine_VertexEffect_class; bool js_register_spine_VertexEffect(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -980,7 +980,7 @@ bool register_all_spine(se::Object* obj); JSB_REGISTER_OBJECT_TYPE(spine::VertexEffect); extern se::Object* __jsb_spine_JitterVertexEffect_proto; -extern se::Class* __jsb_spine_JitterVertexEffect_class; +extern se::Class* __jsb_spine_JitterVertexEffect_class; bool js_register_spine_JitterVertexEffect(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -992,7 +992,7 @@ SE_DECLARE_FUNC(js_spine_JitterVertexEffect_setJitterX); SE_DECLARE_FUNC(js_spine_JitterVertexEffect_setJitterY); extern se::Object* __jsb_spine_SwirlVertexEffect_proto; -extern se::Class* __jsb_spine_SwirlVertexEffect_class; +extern se::Class* __jsb_spine_SwirlVertexEffect_class; bool js_register_spine_SwirlVertexEffect(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -1012,7 +1012,7 @@ SE_DECLARE_FUNC(js_spine_SwirlVertexEffect_setWorldX); SE_DECLARE_FUNC(js_spine_SwirlVertexEffect_setWorldY); extern se::Object* __jsb_spine_VertexEffectDelegate_proto; -extern se::Class* __jsb_spine_VertexEffectDelegate_class; +extern se::Class* __jsb_spine_VertexEffectDelegate_class; bool js_register_spine_VertexEffectDelegate(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -1029,7 +1029,7 @@ SE_DECLARE_FUNC(js_spine_VertexEffectDelegate_initSwirlWithPowOut); SE_DECLARE_FUNC(js_spine_VertexEffectDelegate_VertexEffectDelegate); extern se::Object* __jsb_spine_SkeletonRenderer_proto; -extern se::Class* __jsb_spine_SkeletonRenderer_class; +extern se::Class* __jsb_spine_SkeletonRenderer_class; bool js_register_spine_SkeletonRenderer(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -1075,7 +1075,7 @@ SE_DECLARE_FUNC(js_spine_SkeletonRenderer_updateWorldTransform); SE_DECLARE_FUNC(js_spine_SkeletonRenderer_SkeletonRenderer); extern se::Object* __jsb_spine_SkeletonAnimation_proto; -extern se::Class* __jsb_spine_SkeletonAnimation_class; +extern se::Class* __jsb_spine_SkeletonAnimation_class; bool js_register_spine_SkeletonAnimation(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -1112,7 +1112,7 @@ SE_DECLARE_FUNC(js_spine_SkeletonAnimation_setGlobalTimeScale); SE_DECLARE_FUNC(js_spine_SkeletonAnimation_SkeletonAnimation); extern se::Object* __jsb_spine_SkeletonCacheAnimation_proto; -extern se::Class* __jsb_spine_SkeletonCacheAnimation_class; +extern se::Class* __jsb_spine_SkeletonCacheAnimation_class; bool js_register_spine_SkeletonCacheAnimation(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -1154,7 +1154,7 @@ SE_DECLARE_FUNC(js_spine_SkeletonCacheAnimation_updateAnimationCache); SE_DECLARE_FUNC(js_spine_SkeletonCacheAnimation_SkeletonCacheAnimation); extern se::Object* __jsb_spine_SkeletonCacheMgr_proto; -extern se::Class* __jsb_spine_SkeletonCacheMgr_class; +extern se::Class* __jsb_spine_SkeletonCacheMgr_class; bool js_register_spine_SkeletonCacheMgr(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -1166,7 +1166,7 @@ SE_DECLARE_FUNC(js_spine_SkeletonCacheMgr_getInstance); SE_DECLARE_FUNC(js_spine_SkeletonCacheMgr_destroyInstance); extern se::Object* __jsb_spine_SkeletonDataMgr_proto; -extern se::Class* __jsb_spine_SkeletonDataMgr_class; +extern se::Class* __jsb_spine_SkeletonDataMgr_class; bool js_register_spine_SkeletonDataMgr(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -1175,3 +1175,4 @@ JSB_REGISTER_OBJECT_TYPE(spine::SkeletonDataMgr); SE_DECLARE_FUNC(js_spine_SkeletonDataMgr_setDestroyCallback); SE_DECLARE_FUNC(js_spine_SkeletonDataMgr_getInstance); SE_DECLARE_FUNC(js_spine_SkeletonDataMgr_SkeletonDataMgr); + diff --git a/native/cocos/bindings/auto/jsb_video_auto.cpp b/native/cocos/bindings/auto/jsb_video_auto.cpp index c4ac38e957..f07271278a 100644 --- a/native/cocos/bindings/auto/jsb_video_auto.cpp +++ b/native/cocos/bindings/auto/jsb_video_auto.cpp @@ -25,53 +25,57 @@ #include "cocos/bindings/auto/jsb_video_auto.h" #if (USE_VIDEO > 0) - #include "cocos/bindings/manual/jsb_conversions.h" - #include "cocos/bindings/manual/jsb_global.h" - #include "ui/videoplayer/VideoPlayer.h" +#include "cocos/bindings/manual/jsb_conversions.h" +#include "cocos/bindings/manual/jsb_global.h" +#include "ui/videoplayer/VideoPlayer.h" - #ifndef JSB_ALLOC - #define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) - #endif +#ifndef JSB_ALLOC +#define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) +#endif - #ifndef JSB_FREE - #define JSB_FREE(ptr) delete ptr - #endif +#ifndef JSB_FREE +#define JSB_FREE(ptr) delete ptr +#endif se::Object* __jsb_cc_VideoPlayer_proto = nullptr; -se::Class* __jsb_cc_VideoPlayer_class = nullptr; +se::Class* __jsb_cc_VideoPlayer_class = nullptr; static bool js_video_VideoPlayer_addEventListener(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_video_VideoPlayer_addEventListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; - HolderType, true> arg1 = {}; + HolderType arg0 = {}; + HolderType, true> arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); do { - if (args[1].isObject() && args[1].toObject()->isFunction()) { + if (args[1].isObject() && args[1].toObject()->isFunction()) + { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[1]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=]() -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - - se::Value rval; + + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(se::EmptyValueArray, thisObj, &rval); + bool succeed = funcObj->call(se::EmptyValueArray, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg1.data = lambda; - } else { + } + else + { arg1.data = nullptr; } - } while (false); + } while(false) + ; SE_PRECONDITION2(ok, false, "js_video_VideoPlayer_addEventListener : Error processing arguments"); cobj->addEventListener(arg0.value(), arg1.value()); return true; @@ -85,9 +89,9 @@ static bool js_video_VideoPlayer_currentTime(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_video_VideoPlayer_currentTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->currentTime(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -104,9 +108,9 @@ static bool js_video_VideoPlayer_duration(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_video_VideoPlayer_duration : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->duration(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -123,9 +127,9 @@ static bool js_video_VideoPlayer_isKeepAspectRatioEnabled(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_video_VideoPlayer_isKeepAspectRatioEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isKeepAspectRatioEnabled(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -142,9 +146,9 @@ static bool js_video_VideoPlayer_onPlayEvent(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_video_VideoPlayer_onPlayEvent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -162,7 +166,7 @@ static bool js_video_VideoPlayer_pause(se::State& s) // NOLINT(readability-ident auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_video_VideoPlayer_pause : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->pause(); return true; @@ -177,7 +181,7 @@ static bool js_video_VideoPlayer_play(se::State& s) // NOLINT(readability-identi auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_video_VideoPlayer_play : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->play(); return true; @@ -191,9 +195,9 @@ static bool js_video_VideoPlayer_seekTo(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_video_VideoPlayer_seekTo : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -210,9 +214,9 @@ static bool js_video_VideoPlayer_setFrame(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_video_VideoPlayer_setFrame : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 4) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -235,9 +239,9 @@ static bool js_video_VideoPlayer_setFullScreenEnabled(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_video_VideoPlayer_setFullScreenEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -254,9 +258,9 @@ static bool js_video_VideoPlayer_setKeepAspectRatioEnabled(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_video_VideoPlayer_setKeepAspectRatioEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -273,9 +277,9 @@ static bool js_video_VideoPlayer_setURL(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_video_VideoPlayer_setURL : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -292,9 +296,9 @@ static bool js_video_VideoPlayer_setVisible(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_video_VideoPlayer_setVisible : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -312,7 +316,7 @@ static bool js_video_VideoPlayer_stop(se::State& s) // NOLINT(readability-identi auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_video_VideoPlayer_stop : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->stop(); return true; @@ -332,6 +336,8 @@ static bool js_video_VideoPlayer_constructor(se::State& s) // NOLINT(readability } SE_BIND_CTOR(js_video_VideoPlayer_constructor, __jsb_cc_VideoPlayer_class, js_cc_VideoPlayer_finalize) + + static bool js_cc_VideoPlayer_finalize(se::State& s) // NOLINT(readability-identifier-naming) { // destructor is skipped @@ -344,7 +350,8 @@ static bool js_cc_VideoPlayer_destroy(se::State& s) // NOLINT(readability-identi auto* cobj = SE_THIS_OBJECT(s); cobj->release(); auto objIter = se::NativePtrToObjectMap::find(SE_THIS_OBJECT(s)); - if (objIter != se::NativePtrToObjectMap::end()) { + if(objIter != se::NativePtrToObjectMap::end()) + { objIter->second->clearPrivateData(true); } return true; @@ -380,10 +387,12 @@ bool js_register_video_VideoPlayer(se::Object* obj) // NOLINT(readability-identi se::ScriptEngine::getInstance()->clearException(); return true; } -bool register_all_video(se::Object* obj) { +bool register_all_video(se::Object* obj) +{ // Get the ns se::Value nsVal; - if (!obj->getProperty("jsb", &nsVal)) { + if (!obj->getProperty("jsb", &nsVal)) + { se::HandleObject jsobj(se::Object::createPlainObject()); nsVal.setObject(jsobj); obj->setProperty("jsb", nsVal); diff --git a/native/cocos/bindings/auto/jsb_video_auto.h b/native/cocos/bindings/auto/jsb_video_auto.h index 464435f341..1c640690af 100644 --- a/native/cocos/bindings/auto/jsb_video_auto.h +++ b/native/cocos/bindings/auto/jsb_video_auto.h @@ -26,13 +26,13 @@ #pragma once #include "base/Config.h" #if (USE_VIDEO > 0) - #include - #include "cocos/bindings/jswrapper/SeApi.h" - #include "cocos/bindings/manual/jsb_conversions.h" - #include "cocos/ui/videoplayer/VideoPlayer.h" +#include +#include "cocos/bindings/jswrapper/SeApi.h" +#include "cocos/bindings/manual/jsb_conversions.h" +#include "cocos/ui/videoplayer/VideoPlayer.h" extern se::Object* __jsb_cc_VideoPlayer_proto; -extern se::Class* __jsb_cc_VideoPlayer_class; +extern se::Class* __jsb_cc_VideoPlayer_class; bool js_register_cc_VideoPlayer(se::Object* obj); bool register_all_video(se::Object* obj); diff --git a/native/cocos/bindings/auto/jsb_webview_auto.cpp b/native/cocos/bindings/auto/jsb_webview_auto.cpp index e30b440b89..1fdeca6eff 100644 --- a/native/cocos/bindings/auto/jsb_webview_auto.cpp +++ b/native/cocos/bindings/auto/jsb_webview_auto.cpp @@ -25,27 +25,27 @@ #include "cocos/bindings/auto/jsb_webview_auto.h" #if USE_WEBVIEW > 0 - #include "cocos/bindings/manual/jsb_conversions.h" - #include "cocos/bindings/manual/jsb_global.h" - #include "ui/webview/WebView.h" +#include "cocos/bindings/manual/jsb_conversions.h" +#include "cocos/bindings/manual/jsb_global.h" +#include "ui/webview/WebView.h" - #ifndef JSB_ALLOC - #define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) - #endif +#ifndef JSB_ALLOC +#define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) +#endif - #ifndef JSB_FREE - #define JSB_FREE(ptr) delete ptr - #endif +#ifndef JSB_FREE +#define JSB_FREE(ptr) delete ptr +#endif se::Object* __jsb_cc_WebView_proto = nullptr; -se::Class* __jsb_cc_WebView_class = nullptr; +se::Class* __jsb_cc_WebView_class = nullptr; static bool js_webview_WebView_canGoBack(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_canGoBack : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->canGoBack(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -62,9 +62,9 @@ static bool js_webview_WebView_canGoForward(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_canGoForward : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->canGoForward(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -81,9 +81,9 @@ static bool js_webview_WebView_evaluateJS(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_evaluateJS : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -100,9 +100,9 @@ static bool js_webview_WebView_getOnDidFailLoading(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_getOnDidFailLoading : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::WebView::ccWebViewCallback result = cobj->getOnDidFailLoading(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -119,9 +119,9 @@ static bool js_webview_WebView_getOnDidFinishLoading(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_getOnDidFinishLoading : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::WebView::ccWebViewCallback result = cobj->getOnDidFinishLoading(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -138,9 +138,9 @@ static bool js_webview_WebView_getOnJSCallback(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_getOnJSCallback : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::WebView::ccWebViewCallback result = cobj->getOnJSCallback(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -157,11 +157,11 @@ static bool js_webview_WebView_getOnShouldStartLoading(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_getOnShouldStartLoading : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - std::function result = cobj->getOnShouldStartLoading(); + std::function result = cobj->getOnShouldStartLoading(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_webview_WebView_getOnShouldStartLoading : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -177,7 +177,7 @@ static bool js_webview_WebView_goBack(se::State& s) // NOLINT(readability-identi auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_goBack : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->goBack(); return true; @@ -192,7 +192,7 @@ static bool js_webview_WebView_goForward(se::State& s) // NOLINT(readability-ide auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_goForward : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->goForward(); return true; @@ -206,11 +206,11 @@ static bool js_webview_WebView_loadData(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_loadData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 4) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; HolderType arg2 = {}; HolderType arg3 = {}; @@ -231,9 +231,9 @@ static bool js_webview_WebView_loadFile(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_loadFile : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -250,9 +250,9 @@ static bool js_webview_WebView_loadHTMLString(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_loadHTMLString : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -278,9 +278,9 @@ static bool js_webview_WebView_loadURL(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_loadURL : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -298,7 +298,7 @@ static bool js_webview_WebView_reload(se::State& s) // NOLINT(readability-identi auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_reload : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->reload(); return true; @@ -312,9 +312,9 @@ static bool js_webview_WebView_setBackgroundTransparent(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_setBackgroundTransparent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -331,9 +331,9 @@ static bool js_webview_WebView_setBounces(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_setBounces : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -350,9 +350,9 @@ static bool js_webview_WebView_setFrame(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_setFrame : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 4) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -375,9 +375,9 @@ static bool js_webview_WebView_setJavascriptInterfaceScheme(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_setJavascriptInterfaceScheme : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -394,38 +394,42 @@ static bool js_webview_WebView_setOnDidFailLoading(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_setOnDidFailLoading : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) { + if (args[0].isObject() && args[0].toObject()->isFunction()) + { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](cc::WebView* larg0, const std::string larg1) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(2); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); ok &= nativevalue_to_se(larg1, args[1], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } else { + } + else + { arg0.data = nullptr; } - } while (false); + } while(false) + ; SE_PRECONDITION2(ok, false, "js_webview_WebView_setOnDidFailLoading : Error processing arguments"); cobj->setOnDidFailLoading(arg0.value()); return true; @@ -439,38 +443,42 @@ static bool js_webview_WebView_setOnDidFinishLoading(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_setOnDidFinishLoading : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) { + if (args[0].isObject() && args[0].toObject()->isFunction()) + { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](cc::WebView* larg0, const std::string larg1) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(2); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); ok &= nativevalue_to_se(larg1, args[1], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } else { + } + else + { arg0.data = nullptr; } - } while (false); + } while(false) + ; SE_PRECONDITION2(ok, false, "js_webview_WebView_setOnDidFinishLoading : Error processing arguments"); cobj->setOnDidFinishLoading(arg0.value()); return true; @@ -484,38 +492,42 @@ static bool js_webview_WebView_setOnJSCallback(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_setOnJSCallback : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) { + if (args[0].isObject() && args[0].toObject()->isFunction()) + { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](cc::WebView* larg0, const std::string larg1) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(2); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); ok &= nativevalue_to_se(larg1, args[1], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } else { + } + else + { arg0.data = nullptr; } - } while (false); + } while(false) + ; SE_PRECONDITION2(ok, false, "js_webview_WebView_setOnJSCallback : Error processing arguments"); cobj->setOnJSCallback(arg0.value()); return true; @@ -529,29 +541,30 @@ static bool js_webview_WebView_setOnShouldStartLoading(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_setOnShouldStartLoading : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) { + if (args[0].isObject() && args[0].toObject()->isFunction()) + { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](cc::WebView* larg0, const std::string larg1) -> bool { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(2); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); ok &= nativevalue_to_se(larg1, args[1], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } @@ -561,10 +574,13 @@ static bool js_webview_WebView_setOnShouldStartLoading(se::State& s) // NOLINT(r return result; }; arg0.data = lambda; - } else { + } + else + { arg0.data = nullptr; } - } while (false); + } while(false) + ; SE_PRECONDITION2(ok, false, "js_webview_WebView_setOnShouldStartLoading : Error processing arguments"); cobj->setOnShouldStartLoading(arg0.value()); return true; @@ -578,9 +594,9 @@ static bool js_webview_WebView_setScalesPageToFit(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_setScalesPageToFit : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -597,9 +613,9 @@ static bool js_webview_WebView_setVisible(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_setVisible : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -617,7 +633,7 @@ static bool js_webview_WebView_stopLoading(se::State& s) // NOLINT(readability-i auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_stopLoading : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->stopLoading(); return true; @@ -629,9 +645,9 @@ SE_BIND_FUNC(js_webview_WebView_stopLoading) static bool js_webview_WebView_create(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = cc::WebView::create(); result->retain(); @@ -645,6 +661,7 @@ static bool js_webview_WebView_create(se::State& s) // NOLINT(readability-identi } SE_BIND_FUNC(js_webview_WebView_create) + static bool js_cc_WebView_finalize(se::State& s) // NOLINT(readability-identifier-naming) { // destructor is skipped @@ -657,7 +674,8 @@ static bool js_cc_WebView_destroy(se::State& s) // NOLINT(readability-identifier auto* cobj = SE_THIS_OBJECT(s); cobj->release(); auto objIter = se::NativePtrToObjectMap::find(SE_THIS_OBJECT(s)); - if (objIter != se::NativePtrToObjectMap::end()) { + if(objIter != se::NativePtrToObjectMap::end()) + { objIter->second->clearPrivateData(true); } return true; @@ -705,10 +723,12 @@ bool js_register_webview_WebView(se::Object* obj) // NOLINT(readability-identifi se::ScriptEngine::getInstance()->clearException(); return true; } -bool register_all_webview(se::Object* obj) { +bool register_all_webview(se::Object* obj) +{ // Get the ns se::Value nsVal; - if (!obj->getProperty("jsb", &nsVal)) { + if (!obj->getProperty("jsb", &nsVal)) + { se::HandleObject jsobj(se::Object::createPlainObject()); nsVal.setObject(jsobj); obj->setProperty("jsb", nsVal); diff --git a/native/cocos/bindings/auto/jsb_webview_auto.h b/native/cocos/bindings/auto/jsb_webview_auto.h index 94e27d18ab..a19341b01d 100644 --- a/native/cocos/bindings/auto/jsb_webview_auto.h +++ b/native/cocos/bindings/auto/jsb_webview_auto.h @@ -26,13 +26,13 @@ #pragma once #include "base/Config.h" #if USE_WEBVIEW > 0 - #include - #include "cocos/bindings/jswrapper/SeApi.h" - #include "cocos/bindings/manual/jsb_conversions.h" - #include "cocos/ui/webview/WebView.h" +#include +#include "cocos/bindings/jswrapper/SeApi.h" +#include "cocos/bindings/manual/jsb_conversions.h" +#include "cocos/ui/webview/WebView.h" extern se::Object* __jsb_cc_WebView_proto; -extern se::Class* __jsb_cc_WebView_class; +extern se::Class* __jsb_cc_WebView_class; bool js_register_cc_WebView(se::Object* obj); bool register_all_webview(se::Object* obj);