jumpstorm/engine/components/Mass.ts

11 lines
200 B
TypeScript

import { Component, ComponentNames } from '.';
export class Mass extends Component {
public mass: number;
constructor(mass: number) {
super(ComponentNames.Mass);
this.mass = mass;
}
}