mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
705c977fc9
* Binary serialization * Update snapshots * Update * rename option ccon -> useCCON * Missing script * encodeCCONJson: chunks -> chunkURLs * Update * (de)serializeSymbol -> (de)serializeTag; * CustomizedSerializable -> CustomSerializable * _deserializePrimitiveObject -> _fillPlainObject * Unify CCClass CCClassConstructor * encodeCCONJson -> parseCCONJson * Custom serializable * Move (de)serializeSuper(This) from context into global * property -> read(write)Property; (de)serializeThis(Super) -> (read)writeThis(Super) * CI and lint * Mock cc env
12 lines
326 B
TypeScript
12 lines
326 B
TypeScript
import { EDITOR } from 'internal:constants';
|
|
import { warnID } from '../platform/debug';
|
|
|
|
export function reportMissingClass (id: string) {
|
|
if (EDITOR && EditorExtends.UuidUtils.isUuid(id)) {
|
|
id = EditorExtends.UuidUtils.decompressUuid(id);
|
|
warnID(5301, id);
|
|
} else {
|
|
warnID(5302, id);
|
|
}
|
|
}
|