addComponents<T extends Component> method
Adds components
to the entity
.
Implementation
void addComponents<T extends Component>(int entity, List<T> components) {
for (final component in components) {
addComponent(entity, component);
}
}