summaryrefslogtreecommitdiff
path: root/engine/components/Control.ts
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-08-23 19:44:59 -0600
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-08-23 19:44:59 -0600
commitdec7b614d895a1b507137e4a96a8999ff63aa179 (patch)
tree827437755bf9674db51818ee59d919c74a4ea2fc /engine/components/Control.ts
parentd64ffb5016119e54f0e20d05ae8ac9c96955d9d5 (diff)
downloadjumpstorm-dec7b614d895a1b507137e4a96a8999ff63aa179.tar.gz
jumpstorm-dec7b614d895a1b507137e4a96a8999ff63aa179.zip
holy fuck we actually got somewhere
Diffstat (limited to 'engine/components/Control.ts')
-rw-r--r--engine/components/Control.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/engine/components/Control.ts b/engine/components/Control.ts
index a3621b0..a8dae59 100644
--- a/engine/components/Control.ts
+++ b/engine/components/Control.ts
@@ -2,13 +2,15 @@ import { Component, ComponentNames, Velocity } from ".";
export class Control extends Component {
public controlVelocityComponent: Velocity;
+ public controllableBy: string;
constructor(
+ controllableBy: string,
controlVelocityComponent: Velocity = new Velocity(),
- controllableBy: string
) {
super(ComponentNames.Control);
+ this.controllableBy = controllableBy;
this.controlVelocityComponent = controlVelocityComponent;
}
}