aboutsummaryrefslogtreecommitdiff
path: root/lib/components/coupled_entities.js
blob: d3374c95b2538741229bc39e8e4a465c191f7574 (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
import { Component } from '@serpentity/serpentity';

/**
 * Component that stores a number of entities coupled to this one.
 *
 * @extends {external:Serpentity.Component}
 * @class CoupledEntitiesComponent
 * @param {object} config a configuration object to extend.
 */
export default class CoupledEntitiesComponent extends Component {
  constructor(config) {

    super(config);

    /**
     * An array of coupled entities
     *
     * @property {Array<external:Serpentity.Entity>} coupledEntities
     * @instance
     * @memberof CoupledEntitiesComponent
     */
    this.coupledEntities = this.coupledEntities || [];
  }
}