public static IsThereVendor ( Point3D location, Map map, bool &vendor ) : void | ||
location | Point3D | |
map | Map | |
vendor | bool | |
return | void |
public static void IsThereVendor( Point3D location, Map map, out bool vendor )
{
vendor = false;
IPooledEnumerable eable = map.GetObjectsInRange( location, 0 );
foreach ( IEntity entity in eable )
{
if ( Math.Abs( location.Z - entity.Z ) <= 16 )
{
if ( entity is PlayerVendor )
{
vendor = true;
break;
}
}
}
eable.Free();
}