summaryrefslogtreecommitdiff
path: root/engine/components/Control.ts
blob: beec82ce711a8a57cc86413eec36c17a75a6d6a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { Component, ComponentNames, Velocity } from '.';

export class Control extends Component {
  public controlVelocityComponent: Velocity;
  public controllableBy: string;

  constructor(
    controllableBy: string,
    controlVelocityComponent: Velocity = new Velocity()
  ) {
    super(ComponentNames.Control);

    this.controllableBy = controllableBy;
    this.controlVelocityComponent = controlVelocityComponent;
  }
}