mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
67e9aa1f33
* use getClassById instead of _getClassById * use getClassId instead of _getClassId * public cc.js.getClassId api * allow className already exists, new one will replace old classObject * create component use cid * allow className exist when registing * custom script className allow duplicated * revert some comments * preserve api and deprecate _getClassById and _getClassId * revert some comments * revert comment * Update cocos/core/utils/js-typed.ts Co-authored-by: PP <chinese1236@qq.com> Co-authored-by: PP <chinese1236@qq.com>
cocos-engine native part
It is the native backend of Cocos Creator. It works on iOS, Android, macOS and Windows.
Coding format and coding style
The coding format file is .clang-format, and the coding style fomat file is .clang-tidy. Please use clang-format to format the codes and use clang-tidy to fix the coding style before commiting codes. See the linter auto-fix guide for more information.
Build Requirements
- macOS 10.14+, Xcode 11.5+ to build mac games
- with iOS 11.0+ to build iOS games
- or Windows 7+, Visual Studio 2017 15.7+ / Visual Studio 2019 to build win64 games
- NDK 18-21 is required to build Android games (22+ is not supported)
- Cmake 3.8+ is required
C++ related
- use C++17, but can only use these C++17 features
- std::string_view
- constexpr if