import { ResourceDescriptor } from 'thyseus';
import { Time } from "@houseki-engine/core";
import { Res } from "thyseus";
import { PhysicsStore } from "../resources";
export function stepWorld(time: Res<Time>, store: Res<PhysicsStore>) {
    time.deserialize();
    store.world.timestep = time.fixedDelta;
    store.world.step();
    time.serialize();
}
stepWorld.parameters = [new ResourceDescriptor(Time), new ResourceDescriptor(PhysicsStore)];
