public EntityGroup CreateComponentGroup(int[] componentIndices) { var entityGroup = new EntityGroup(); for (int i = 0; i < parent.Count; i++) { var entity = parent[i]; entityGroup.UpdateEntity(entity, IsComponentGroupValid(entity, componentIndices)); } return(entityGroup); }
public EntityGroup CreateEntityGroup(EntityGroups groups) { var entityGroup = new EntityGroup(); for (int i = 0; i < parent.Count; i++) { var entity = parent[i]; entityGroup.UpdateEntity(entity, IsEntityGroupValid(entity, groups)); } return(entityGroup); }