aboutsummaryrefslogtreecommitdiff
path: root/components/weight/index.js
diff options
context:
space:
mode:
authorBen Beltran <ben@nsovocal.com>2020-03-09 14:22:58 -0500
committerBen Beltran <ben@nsovocal.com>2020-03-09 14:22:58 -0500
commit582cea2aedd3b5763232837cc4960f07223908fb (patch)
treeaaa3721fe01f4177ba5937f709ca53dd96887b07 /components/weight/index.js
parent8d90115ac567adb5a3c61eefd27ab675fb3c0ef7 (diff)
Transfer components to lib repo
Diffstat (limited to 'components/weight/index.js')
-rw-r--r--components/weight/index.js15
1 files changed, 15 insertions, 0 deletions
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 <Number> // magnitude of weight
+ */
+export default class Weight extends Component {
+ constructor(config) {
+
+ super(config)
+
+ this.weight = this.weight || 0;
+ }
+};