jumpstorm/engine/components/Control.ts

15 lines
354 B
TypeScript

import { Component, ComponentNames, Velocity } from ".";
export class Control extends Component {
public controlVelocityComponent: Velocity;
constructor(
controlVelocityComponent: Velocity = new Velocity(),
controllableBy: string
) {
super(ComponentNames.Control);
this.controlVelocityComponent = controlVelocityComponent;
}
}