blob: b6a3dc359d807eafe9ebbd2f8e256b3f824ecc6d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import { Component, ComponentNames, Velocity } from '.';
export class Control extends Component {
public controlVelocityComponent: Velocity;
public controllableBy: string;
public isControllable?: boolean; // updated by the input system
constructor(
controllableBy: string,
controlVelocityComponent: Velocity = new Velocity(),
isControllable?: boolean
) {
super(ComponentNames.Control);
this.controllableBy = controllableBy;
this.isControllable = isControllable;
this.controlVelocityComponent = controlVelocityComponent;
}
}
|