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