10 lines
455 B
TypeScript
10 lines
455 B
TypeScript
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);
|