]> git.r.bdr.sh - rbdr/sumo/blob - lib/components/coupled_entities.js
Add control via keyboard (#6)
[rbdr/sumo] / lib / components / coupled_entities.js
1 import { Component } from '@serpentity/serpentity';
2
3 /**
4 * Component that stores a number of entities coupled to this one.
5 *
6 * @extends {external:Serpentity.Component}
7 * @class CoupledEntitiesComponent
8 * @param {object} config a configuration object to extend.
9 */
10 export default class CoupledEntitiesComponent extends Component {
11 constructor(config) {
12
13 super(config);
14
15 /**
16 * An array of coupled entities
17 *
18 * @property {Array<external:Serpentity.Entity>} coupledEntities
19 * @instance
20 * @memberof CoupledEntitiesComponent
21 */
22 this.coupledEntities = this.coupledEntities || [];
23 }
24 };
25