import { QueryDescriptor, Mut } from 'thyseus';
import { Mut, Query } from "thyseus";
import { PrevTargetTransform, TargetTransform } from "../components";
export function savePrevTargetTransforms(transforms: Query<[
    Mut<PrevTargetTransform>,
    TargetTransform
]>) {
    for (const [prev, transform] of transforms) {
        prev.deserialize();
        transform.deserialize();
        prev.copy(transform);
        prev.serialize();
        transform.serialize();
    }
}
savePrevTargetTransforms.parameters = [new QueryDescriptor([new Mut(PrevTargetTransform), TargetTransform])];
