A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
test(physics): keep lifecycle fixtures on the current module contract
yhh9dd72e669997
diff --git a/sdk/tests/physics-plugin-lifecycle.test.ts b/sdk/tests/physics-plugin-lifecycle.test.tsindex d208cece7..99f2811f8 100644--- a/sdk/tests/physics-plugin-lifecycle.test.ts+++ b/sdk/tests/physics-plugin-lifecycle.test.ts@@ -12,6 +12,7 @@ function module() {'_physics_capturePoses', '_physics_getInterpolatedCount', '_physics_getInterpolatedTransforms','_physics_collectEvents', '_physics_getDynamicBodyCount', '_physics_getDynamicBodyTransforms','_physics_setBodyTransform',+ '_physics_setOneWayPlatformLocal','_physics_getCollisionEnterCount', '_physics_getCollisionExitCount', '_physics_getHitEventCount','_physics_getSensorEnterCount', '_physics_getSensorExitCount',].map(name => [name, vi.fn(() => 0)])) as unknown as PhysicsWasmModule;diff --git a/sdk/tests/plugin-cleanup.test.ts b/sdk/tests/plugin-cleanup.test.tsindex c90094ca2..6140a3473 100644--- a/sdk/tests/plugin-cleanup.test.ts+++ b/sdk/tests/plugin-cleanup.test.ts@@ -75,6 +75,7 @@ describe('Physics2DPlugin.cleanup', () => {'_physics_init', '_physics_setWorldConfig', '_physics_step', '_physics_capturePoses','_physics_getInterpolatedCount', '_physics_getInterpolatedTransforms', '_physics_collectEvents','_physics_getDynamicBodyCount', '_physics_getDynamicBodyTransforms', '_physics_setBodyTransform',+ '_physics_setOneWayPlatformLocal',].map(name => [name, vi.fn(() => 0)])) as unknown as PhysicsWasmModule;module._physics_shutdown = shutdown;const plugin = new Physics2DPlugin('', {}, async () => module);diff --git a/tools/releaseNotes.mjs b/tools/releaseNotes.mjsindex 35bb03821..d8334a733 100644--- a/tools/releaseNotes.mjs+++ b/tools/releaseNotes.mjs@@ -28,6 +28,8 @@ export const NOTES_FLOOR = 'v0.65.0';* the reader recognises anyway.*/export const NOTED = {+ 'test(physics): keep lifecycle fixtures on the current module contract':+ { internal: 'Updates lifecycle and shutdown module doubles to provide the new body-local one-way normal entry point while preserving native contract rejection tests.' },'test(editor): verify rotated tile layers through play':{ internal: 'Extends the existing CI tilemap layout check with layer and parent rotation pixels, comparing cached draws with an explicitly rebuilt reference.' },'test(editor): synchronize rotated tile play checks':