mirror of
https://github.com/cocos/cocos-engine.git
synced 2026-09-06 15:48:37 +08:00
* 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
22 lines
517 B
TypeScript
22 lines
517 B
TypeScript
import { Node, Prefab } from 'cc';
|
|
import { PORTS_BOTH_DYNAMIC_COMPILED, testEachPort } from "../port";
|
|
import { runTest } from '../utils';
|
|
|
|
const prefabs: Prefab[] = [];
|
|
|
|
function setPrefabNode(node: Node, prefabInfo: Prefab._utils.PrefabInfo) {
|
|
(node as unknown as { _prefab?: Prefab._utils.PrefabInfo })._prefab = prefabInfo;
|
|
return node;
|
|
}
|
|
|
|
const value = prefabs;
|
|
|
|
testEachPort(PORTS_BOTH_DYNAMIC_COMPILED, async (port) => {
|
|
await runTest(
|
|
__filename,
|
|
port,
|
|
value,
|
|
);
|
|
});
|
|
|