aboutsummaryrefslogtreecommitdiff
path: root/lib/nodes/renderable_with_attributes.js
blob: 7eff2b9b248db89a999960fcd1646de8bc614cf3 (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 '@serpentity/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
};