]>
git.r.bdr.sh - rbdr/sumo/blob - lib/components/coupled_entities.js
29db81310b041eda3ce70e0ab91538efe2093ea5
1 import { Component
} from '@serpentity/serpentity';
4 * Component that stores a number of entities coupled to this one.
6 * @extends {external:Serpentity.Component}
7 * @class CoupledEntitiesComponent
8 * @param {object} config a configuration object to extend.
10 export default class CoupledEntitiesComponent
extends Component
{
16 * An array of coupled entities
18 * @property {Array<external:Serpentity.Entity>} coupledEntities
20 * @memberof CoupledEntitiesComponent
22 this.coupledEntities
= this.coupledEntities
|| [];