]>
Commit | Line | Data |
---|---|---|
1 | import { Node } from '@serpentity/serpentity'; | |
2 | ||
3 | import BodyComponent from '../components/body'; | |
4 | import GrabAreaComponent from '../components/grab_area'; | |
5 | import GrabComponent from '../components/grab'; | |
6 | ||
7 | /** | |
8 | * Node identifying an entity that can grab another | |
9 | * | |
10 | * @extends {external:Serpentity.Node} | |
11 | * @class GrabberNode | |
12 | */ | |
13 | export default class GrabberNode extends Node { | |
14 | ||
15 | } | |
16 | ||
17 | /** | |
18 | * Holds the types that are used to identify a grabber entity | |
19 | * | |
20 | * @property {object} types | |
21 | * @name types | |
22 | * @memberof GrabberNode | |
23 | */ | |
24 | GrabberNode.types = { | |
25 | body: BodyComponent, | |
26 | grabArea: GrabAreaComponent, | |
27 | grab: GrabComponent | |
28 | }; | |
29 |