]>
Commit | Line | Data |
---|---|---|
582cea2a BB |
1 | import { Component } from '@serpentity/serpentity'; |
2 | ||
3 | /* | |
4 | * Weight component, stores the magnitude of weight | |
5 | * Public members: | |
6 | * -weight <Number> // magnitude of weight | |
7 | */ | |
8 | export default class Weight extends Component { | |
9 | constructor(config) { | |
10 | ||
11 | super(config) | |
12 | ||
13 | this.weight = this.weight || 0; | |
14 | } | |
15 | }; |