feat(web): continue source-backed implementation waves
This commit is contained in:
9
web/protocol/physics-commands.ts
Normal file
9
web/protocol/physics-commands.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import type { PhysicsSimulationManifestIR } from "./physics-simulation";
|
||||
import type { WebEngineEditCommand } from "./web-engine";
|
||||
|
||||
/** Typed constructor for bounded physics metadata commits to WebEngine Main. */
|
||||
export const physicsCommands = Object.freeze({
|
||||
setManifest(manifest: PhysicsSimulationManifestIR): Extract<WebEngineEditCommand, { type: "setPhysicsSimulation" }> {
|
||||
return { type: "setPhysicsSimulation", manifest };
|
||||
},
|
||||
} as const);
|
||||
Reference in New Issue
Block a user