-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[v3.8.6] Inline enums for CCObjectFlags. #18190
Conversation
15e14fc
to
bddf279
Compare
@@ -111,7 +109,7 @@ export default class Burst { | |||
preFrameTime = (preFrameTime > 0.0) ? preFrameTime : 0.0; | |||
const curFrameTime = repeat(psys.time - psys.startDelay.evaluate(0, 1), psys.duration); | |||
if (this._curTime >= preFrameTime && this._curTime < curFrameTime) { | |||
(psys as any).emit(this.count.evaluate(this._curTime / psys.duration, 1), dt - (curFrameTime - this._curTime)); | |||
psys.emit(this.count.evaluate(this._curTime / psys.duration, 1), dt - (curFrameTime - this._curTime)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't convert to any since we're using Typescript, mark emit
as public and engineInternal.
👍 Package size ⤵ -852 bytes, old: 5242908, new: 5242056Interface Check Report! WARNING this pull request has changed these public interfaces:
@@ -21467,8 +21467,34 @@
}
export let __props__: string[];
export let __values__: string[];
}
+ export enum CCObjectFlags {
+ Destroyed = 1,
+ RealDestroyed = 2,
+ ToDestroy = 4,
+ DontSave = 8,
+ EditorOnly = 16,
+ Dirty = 32,
+ DontDestroy = 64,
+ Destroying = 128,
+ Deactivating = 256,
+ LockedInEditor = 512,
+ HideInHierarchy = 1024,
+ IsOnEnableCalled = 2048,
+ IsEditorOnEnableCalled = 4096,
+ IsPreloadStarted = 8192,
+ IsOnLoadCalled = 16384,
+ IsOnLoadStarted = 32768,
+ IsStartCalled = 65536,
+ IsRotationLocked = 131072,
+ IsScaleLocked = 262144,
+ IsAnchorLocked = 524288,
+ IsSizeLocked = 1048576,
+ IsPositionLocked = 2097152,
+ PersistentMask = "Bad expression <-4192741>",
+ AllHideMasks = 1560
+ }
/**
* @en
* Indicates that the editor should treat this property or array element as an Integer value.
* @zh
@@ -46953,9 +46979,9 @@
* @zh 获取最大的触发粒子数量。
* @param psys @en Particle system to burst. @zh 要触发的粒子系统。
* @returns @en burst max particle count. @zh 一次最多触发的粒子个数。
*/
- getMaxCount(psys: any): number;
+ getMaxCount(psys: ParticleSystem): number;
}
export function loadWasmModuleBox2D(): Promise<void>;
export const Physics2DUtils: {
PolygonSeparator: typeof __private._cocos_physics_2d_framework_utils_polygon_separator;
|
let dirtyBits = 0; | ||
|
||
while (i) { | ||
child = dirtyNodes[--i]; | ||
childMat = child._mat; | ||
childPos = child._pos; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid to invoke child._mat
& child._pos
many times here.
It seems beak compatibility. |
…86-ccobjectflags-enum # Conflicts: # cocos/serialization/instantiate.ts
@minggo Reverted hideFlags setter/getter and optimize the CCObject.Flags definition. |
@cocos-robot run test cases |
@dumganhar, Please check the result of
Task Details
|
@dumganhar, Please check the result of
Task Details
|
PR test failed because editor doesn't update ccbuild. I will update the editor version as soon as possible. |
@cocos-robot run test cases |
@dumganhar, Please check the result of
Task Details |
@dumganhar, Please check the result of
Task Details |
Re: #
Changelog
Continuous Integration
This pull request:
Compatibility Check
This pull request: