getComponentsFor method
Returns all components of entity
.
Implementation
List<Component> getComponentsFor(int entity) {
final result = <Component>[];
_forComponentsOfEntity(
entity,
(components, _) => result.add(components[entity]),
);
return result;
}