import { Entity } from 'scilla-core/src';
import { Transform } from 'scilla-components/src';

export const setX = (e:Entity, x:number)=>{
    (e.getComponent(Transform) as Transform).position.x =x;
}
export const setY =  (e:Entity, y:number)=>{
    (e.getComponent(Transform) as Transform).position.y =y;
}