]>
git.r.bdr.sh - rbdr/sumo/blob - lib/components/coupled_entities.js
d3374c95b2538741229bc39e8e4a465c191f7574
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
|| [];