addAssemblageToEntity(entityID, assemblageID) {
            if (!this.assemblages.has(assemblageID))
                return 0;
            let assemblage = this.assemblages.get(assemblageID);
            let addedCount = 0;
            for (let componentID of assemblage) {
                this.addEntityComponent(entityID, componentID);
                addedCount++;
            }
            this.assemblagesEntities.get(assemblageID).add(entityID);
            return addedCount;
        }
/**
         *
         * @param entityID the index of the entity
         * @param assemblageID the assembly to use to create the components
         * @returns number of components added to entity
         */
@param entityID the index of the entity
@param assemblageID the assembly to use to create the components
@returns number of components added to entity
@param entityID the index of the entity @param assemblageID the assembly to use to create the components @returns number of components added to entity
addAssemblageToEntity(entityID, assemblageID) {
            if (!this.assemblages.has(assemblageID))
                return 0;
            let assemblage = this.assemblages.get(assemblageID);
            let addedCount = 0;
            for (let componentID of assemblage) {
                this.addEntityComponent(entityID, componentID);
                addedCount++;
            }
            this.assemblagesEntities.get(assemblageID).add(entityID);
            return addedCount;
        }
addAssemblageToEntity ( entityID , assemblageID ) { if ( ! this . assemblages . has ( assemblageID ) ) return 0 ; let assemblage = this . assemblages . get ( assemblageID ) ; let addedCount = 0 ; for ( let componentID of assemblage ) { this . addEntityComponent ( entityID , componentID ) ; addedCount ++ ; } this . assemblagesEntities . get ( assemblageID ) . add ( entityID ) ; return addedCount ; }
@param entityID the index of the entity
 @param assemblageID the assembly to use to create the components
 @returns number of components added to entity
@param entityID the index of the entity @param assemblageID the assembly to use to create the components @returns number of components added to entity