From 72c6c7de12e9833f52bf2d0718d70f044f8ab57e Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Thu, 20 Jul 2023 20:47:32 -0700 Subject: a bit of refactoring; importing engine into bun for server --- engine/components/Moment.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 engine/components/Moment.ts (limited to 'engine/components/Moment.ts') diff --git a/engine/components/Moment.ts b/engine/components/Moment.ts new file mode 100644 index 0000000..3d0dd2f --- /dev/null +++ b/engine/components/Moment.ts @@ -0,0 +1,10 @@ +import { Component, ComponentNames } from "."; + +export class Moment extends Component { + public inertia: number; + + constructor(inertia: number) { + super(ComponentNames.Moment); + this.inertia = inertia; + } +} -- cgit v1.3