]> git.r.bdr.sh - rbdr/sumo/blob - lib/nodes/physical_with_attributes.js
Use Parcel (#5)
[rbdr/sumo] / lib / nodes / physical_with_attributes.js
1 import { Node } from '@serpentity/serpentity';
2
3 import AngleComponent from '../components/angle';
4 import BodyComponent from '../components/body';
5 import PositionComponent from '@serpentity/components.position';
6
7 /**
8 * Node identifying an entity that can interact with physics and has
9 * components updated from its values
10 *
11 * @extends {external:Serpentity.Node}
12 * @class PhysicalWithAttributesNode
13 */
14 export default class PhysicalWithAttributesNode extends Node {
15
16 };
17
18 /**
19 * Holds the types that are used to identify an entity with a physics
20 * object and external attributes
21 *
22 * @property {object} types
23 * @name types
24 * @memberof PhysicalWithAttributesNode
25 */
26 PhysicalWithAttributesNode.types = {
27 angle: AngleComponent,
28 position: PositionComponent,
29 body: BodyComponent
30 };
31