aboutsummaryrefslogtreecommitdiff
path: root/lib/nodes/physical_with_attributes.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/nodes/physical_with_attributes.js')
-rw-r--r--lib/nodes/physical_with_attributes.js31
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/nodes/physical_with_attributes.js b/lib/nodes/physical_with_attributes.js
new file mode 100644
index 0000000..96ba79d
--- /dev/null
+++ b/lib/nodes/physical_with_attributes.js
@@ -0,0 +1,31 @@
+import { Node } from '@serpentity/serpentity';
+
+import AngleComponent from '../components/angle';
+import BodyComponent from '../components/body';
+import PositionComponent from '@serpentity/components.position';
+
+/**
+ * Node identifying an entity that can interact with physics and has
+ * components updated from its values
+ *
+ * @extends {external:Serpentity.Node}
+ * @class PhysicalWithAttributesNode
+ */
+export default class PhysicalWithAttributesNode extends Node {
+
+};
+
+/**
+ * Holds the types that are used to identify an entity with a physics
+ * object and external attributes
+ *
+ * @property {object} types
+ * @name types
+ * @memberof PhysicalWithAttributesNode
+ */
+PhysicalWithAttributesNode.types = {
+ angle: AngleComponent,
+ position: PositionComponent,
+ body: BodyComponent
+};
+