]> git.r.bdr.sh - rbdr/sumo/blame - lib/nodes/grabber.js
Deploy to Pages
[rbdr/sumo] / lib / nodes / grabber.js
CommitLineData
1676911c
RBR
1import { Node } from '@serpentity/serpentity';
2
3import BodyComponent from '../components/body';
4import GrabAreaComponent from '../components/grab_area';
5import 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 */
13export 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 */
24GrabberNode.types = {
25 body: BodyComponent,
26 grabArea: GrabAreaComponent,
27 grab: GrabComponent
28};
29