blob: 96ba79da8f7184b872c4a808733084f888d34a3c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
};
|