]> git.r.bdr.sh - rbdr/serpentity-lib/blobdiff - components/weight/index.js
Transfer components to lib repo
[rbdr/serpentity-lib] / components / weight / index.js
diff --git a/components/weight/index.js b/components/weight/index.js
new file mode 100644 (file)
index 0000000..678b8a5
--- /dev/null
@@ -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;
+  }
+};