public bool ProcessEntry( BlockDBEntry entry ) { if ( selector( entry ) ) { int index = map.Index( entry.X, entry.Y, entry.Z ); result[index] = entry; count++; if ( count >= max ) { return false; } } return true; }