From dec7b614d895a1b507137e4a96a8999ff63aa179 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Wed, 23 Aug 2023 19:44:59 -0600 Subject: holy fuck we actually got somewhere --- engine/components/Control.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engine/components/Control.ts') 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; } } -- cgit v1.2.3-70-g09d2