components method
Implementation
(A, B)? components(Entity entity) {
if (!_world.isAlive(entity)) return null;
final entityIndex = entity.index;
final aDense = _a.denseIndexOf(entityIndex);
if (aDense < 0) return null;
final bDense = _b.denseIndexOf(entityIndex);
if (bDense < 0) return null;
if (!Query.passesFilters(entityIndex, _withStores, _withoutStores)) {
return null;
}
return (_a.valueAt(aDense), _b.valueAt(bDense));
}