Commit Graph

17466 Commits

Author SHA1 Message Date
mmyduckx 9e081d2314 fix .tmx not found (#8428)
* fix .tmx not found

* correct spelling
2021-04-12 11:55:56 +08:00
Cocos Robot cb21e05848 [ci skip][AUTO]: updating jsbinding automatically: e1c240f2 (#3390)
Co-authored-by: cocos-robot <engine-deploy@cocos.com>
2021-04-12 10:17:12 +08:00
minggo a7f44e2c04 Coding style doc (#3345) 2021-04-12 09:42:36 +08:00
Yun Hsiao Wu 24b1c6695d update CommandBuffer.draw (#8423)
* update CommandBuffer.draw

* effect: runtime constants
2021-04-12 09:41:35 +08:00
Yun Hsiao Wu e1c240f2d0 Clang-Tidy adaptations (#3379)
* gfx: CommandBuffer.draw accept DrawInfo

* clang-tidy config

* tidy adapt

* enable function name check

* better workflow
2021-04-12 09:41:28 +08:00
PP 831722c121 optimize pal (#8405)
* rename mg

* optimize audioMgr

* remove implement class

update

* add src property for AudioPlayer

* fix multiple audioSource reference the same audioClip

* support operation-queue

update

* fix operation deadlock

* update

* fix esLint

update

update

* remove ensureStop

remove stop in play

* fix audio-dom loading

* optimize operation queue in AudioSource component

* HACK on runtime

* fix esLint

* update esLint

* HACK on WeChat DevTools

* lowercase enqueueOperationDecorator

* remve ! with @ts-expect-error

* Revert "HACK on WeChat DevTools"

This reverts commit 230a2ec9223f21fc34e8435b962c0b41c18d4e91.

* fix esLint

* rename clip.ts to audio-clip.ts

* add audio meta

* use fastRemoveAt

* change ClassDecorator to MethodDecorator

* remove  player reference in audio-clip

* destroy temporary AudioPlayer after loading

* optimize syncPlayer

* fix esLint

* fix esLint

* optimize audio-manager

* optimize operation-queue

update

* fix eslint
2021-04-09 15:21:11 +08:00
troublemaker52025 05a72cdee1 Delete private node for v3.1 (#8382)
* delete private node

# Conflicts:
#	cocos/core/scene-graph/private-node.ts

* update

* Alias of Node

* update

* dont use enum ALL

* fix bug for editor

* update

* update

* update

* Retaining deprecated objects

* update

* update

* update

* using warnID and update EngineErrorMap.md
2021-04-08 17:47:05 +08:00
minggo 919b10ec72 fix crash (#3385)
* fix crash

- native width/height should plus device ratio
- should make sure auto release pool manager will not be empty

* pass by value instead
detail information please check clang tidy config: modernize-pass-by-value
2021-04-08 10:18:36 +08:00
minggo ba309bbca7 change readability rule (#3384)
readability-* will check many rules that are not needed
2021-04-07 15:25:29 +08:00
mmyduckx af4e63f478 treat warning as error (#3382)
* treat warning as error
2021-04-07 10:57:46 +08:00
minggo 74f2fa8208 modify clang tidy config (#3377) 2021-04-02 18:13:51 +08:00
cary cb2dddea27 Fix gfx attaibute export of jsb. (#8410) 2021-04-02 14:26:24 +08:00
dependabot[bot] 170f2eae75 Bump y18n from 3.2.1 to 3.2.2 (#8411)
Bumps [y18n](https://github.com/yargs/y18n) from 3.2.1 to 3.2.2.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-02 13:34:09 +08:00
Leslie Leigh (李的序) dd238ebcdd Circular reference CI (#8417)
* Circular reference CI

* let build-engine CLI return error codes
2021-04-02 11:56:26 +08:00
dependabot[bot] 111d0c7481 Bump y18n from 4.0.0 to 4.0.1 in /scripts/build-engine (#8416)
Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-02 11:32:05 +08:00
Cocos Robot e0924f7019 [ci skip][AUTO]: updating jsbinding automatically: a9f42d9c (#3376)
Co-authored-by: cocos-robot <engine-deploy@cocos.com>
2021-04-02 10:50:21 +08:00
PP a9f42d9c1f fix simulator compiling (#3373) 2021-04-02 09:59:06 +08:00
minggo d8824f8a11 fix coding style (#3371) 2021-04-02 09:55:12 +08:00
minggo 768e71e1aa fix crash on macOS (#3370)
* fix crash on macOS

* fix coding style
2021-04-01 09:47:37 +08:00
YuLei Liao a7b726bfad make assert() as valid assertion function (#8408) 2021-03-31 13:43:39 +08:00
mmyduckx b524be818f fix warnings (#3368) 2021-03-31 13:40:14 +08:00
minggo 813eb75b1d fix coding style (#3366) 2021-03-31 11:12:01 +08:00
Cocos Robot f8ef265172 [ci skip][AUTO]: updating jsbinding automatically: d6df7bfd (#3369)
Co-authored-by: cocos-robot <engine-deploy@cocos.com>
2021-03-31 09:16:38 +08:00
mmyduckx d6df7bfd2a update external libs (#3367) 2021-03-30 18:07:16 +08:00
Cocos Robot 0c7d795171 [ci skip][AUTO]: updating jsbinding automatically: 65d4274a (#3365)
Co-authored-by: cocos-robot <engine-deploy@cocos.com>
2021-03-30 17:09:52 +08:00
minggo 65d4274a46 remove unneeded files (#3364) 2021-03-30 13:38:15 +08:00
江战 037d831291 Update run-script.sh (#3356) 2021-03-30 10:10:18 +08:00
Cocos Robot 1fe79f660a [ci skip][AUTO]: updating jsbinding automatically: f4fd7a24 (#3362)
Co-authored-by: cocos-robot <engine-deploy@cocos.com>
2021-03-30 10:09:59 +08:00
Yun Hsiao Wu f4fd7a2496 base should not depend on se (#3359)
* base should not depend on se

* formatting
2021-03-30 09:43:25 +08:00
Yun Hsiao Wu 9af19dd82b update effects (#8404)
* minor

* update effect
2021-03-29 19:00:44 +08:00
mmyduckx 14561d91f6 fix mac warning (#3361) 2021-03-29 18:25:52 +08:00
Leslie Leigh (李的序) d2a0a61cfc Solve the high severity problem (#8403)
* Update lock

* Bump rollup-plugin-terser to solve the high serverity of serialize-javascript

* Bump jest,ts-jest to solve the high serverity of qs

* Bump http-server to solve the high serverity of qs
2021-03-29 11:49:10 +08:00
Cocos Robot 14f30ff1d3 [ci skip][AUTO]: updating jsbinding automatically: 8a301c5c (#3358)
Co-authored-by: cocos-robot <engine-deploy@cocos.com>
2021-03-29 10:47:24 +08:00
minggo 8a301c5cc7 remove Array.cpp/.h and uthash.h (#3350) 2021-03-29 10:34:29 +08:00
江战 aa85896302 Allow exclude files from clang-tidy (#3353) 2021-03-29 10:11:44 +08:00
Cocos Robot a695f5c603 [ci skip][AUTO]: updating jsbinding automatically: 1c227f03 (#3357)
Co-authored-by: cocos-robot <engine-deploy@cocos.com>
2021-03-29 09:48:16 +08:00
fish9167 1c227f0363 add githup action job for unit test (#3355) 2021-03-26 18:30:12 +08:00
Cocos Robot c1cd251f8e [ci skip][AUTO]: updating jsbinding automatically: 9593a54b (#3354)
Co-authored-by: cocos-robot <engine-deploy@cocos.com>
2021-03-26 17:19:56 +08:00
Yun Hsiao Wu 9593a54b76 gfx: lifecyle validations (#3341)
* gfx: lifecyle validations

* better noexcept workaround

* more validations

* device layer reflection

* fix release build
2021-03-26 16:30:09 +08:00
mmyduckx dfdd66732a treat warning as error (#3349) 2021-03-26 16:12:24 +08:00
PP f1cb3cc469 update build-engine version for pal compiling (#8399) 2021-03-25 15:29:34 +08:00
Cocos Robot 33b0583147 [ci skip][AUTO]: updating jsbinding automatically: fe6da4a1 (#3348)
Co-authored-by: cocos-robot <engine-deploy@cocos.com>
2021-03-25 14:30:55 +08:00
PP cd7e644694 implement audio on pal (#8255)
* Update logo in README

* add pal/audio

* deprecate property

* support wechat  game AudioPlayer

* unify minigame interface

* optimize module name

* support  native audio

# Conflicts:
#	@types/jsb.d.ts

* add runtime platform

* fix module

* support build native virtual module

update

update

* update module name

* remove jsb-audio.js

* revert @rollup/plugin-alias

* add quickCompiler field in cc.config.json

* fix audio can't stop when paused

* fix esLint & ci

* fix ci

update

* update ccConfigJson

* add NOTE

* readonly maxAudioChannel

* add description for interface OneShotAudio

* volume range

* range for seeking

* loadNative return Promise<unknown>

* remove quickCompile field in cc.config.json

Co-authored-by: pandamicro <lphuabin@gmail.com>
Co-authored-by: Jare Guo <jareguo@users.noreply.github.com>
2021-03-25 14:30:13 +08:00
江战 fe6da4a1d2 [sync] Travis compile vulkan (#3343) 2021-03-25 13:48:03 +08:00
mmyduckx 24359b0b85 fix native spine premultiliedAlpha bug (#8396)
* fix native spine premultiliedAlpha bug

* ci
2021-03-25 13:42:32 +08:00
Zeqiang Li b6a78bd153 fix crash issue port to NSView (#3339)
* fix crash issue port to NSView

* remove redundant header
2021-03-25 10:46:02 +08:00
江战 b6384e4e3f [CI] Warning as errors (#3342) 2021-03-25 09:53:06 +08:00
江战 1788564ebf Update cocos2dx files (#3346)
* update cocos2dx-files.json

* update cocos2dx-files.json
2021-03-24 18:41:54 +08:00
江战 286acde0e4 [CI] GitHub Action - ClangTidy / Android (#3338) 2021-03-23 18:13:10 +08:00
minggo 6c1ab93ebe treat warning as error for base files (#3336)
* treat warning as error for base files

* remove UTFString as std::iterator template is deprecated in c++17
2021-03-23 09:43:12 +08:00