aboutsummaryrefslogtreecommitdiff
path: root/components/weight/index.js
blob: 678b8a57c71f430e3f5d621d02ebbc641e3be5a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { Component } from '@serpentity/serpentity';

/*
 * Weight component, stores the magnitude of weight
 * Public members:
 * -weight <Number> // magnitude of weight
 */
export default class Weight extends Component {
  constructor(config) {

    super(config)

    this.weight = this.weight || 0;
  }
};