aboutsummaryrefslogtreecommitdiff
path: root/lib/nodes/renderable_with_attributes.js
blob: 817036cb7b53584fc06956d9e2c3bc48faf66936 (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
import { Node } from '@serpentity/serpentity';

import AngleComponent from '../components/angle';
import PixiContainerComponent from '../components/pixi_container';
import PositionComponent from '@serpentity/components.position';

/**
 * Node identifying a renderable entity, should have position and a
 * symbol to render
 *
 * @extends {external:Serpentity.Node}
 * @class RenderableWithAttributesNode
 */
export default class RenderableWithAttributesNode extends Node {

};

/**
 * Holds the types that are used to identify a renderable with external
 * attributes
 *
 * @property {object} types
 * @name types
 * @memberof RenderableWithAttributesNode
 */
RenderableWithAttributesNode.types = {
  angle: AngleComponent,
  position: PositionComponent,
  container: PixiContainerComponent
};