From 582cea2aedd3b5763232837cc4960f07223908fb Mon Sep 17 00:00:00 2001 From: Ben Beltran Date: Mon, 9 Mar 2020 14:22:58 -0500 Subject: Transfer components to lib repo --- components/weight/index.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 components/weight/index.js (limited to 'components/weight/index.js') diff --git a/components/weight/index.js b/components/weight/index.js new file mode 100644 index 0000000..678b8a5 --- /dev/null +++ b/components/weight/index.js @@ -0,0 +1,15 @@ +import { Component } from '@serpentity/serpentity'; + +/* + * Weight component, stores the magnitude of weight + * Public members: + * -weight // magnitude of weight + */ +export default class Weight extends Component { + constructor(config) { + + super(config) + + this.weight = this.weight || 0; + } +}; -- cgit