public static IsInTown ( Point3D p, Map map ) : bool | ||
p | Point3D | |
map | Map | |
return | bool |
public static bool IsInTown( Point3D p, Map map )
{
if ( map == null )
return false;
GuardedRegion reg = (GuardedRegion) Region.Find( p, map ).GetRegion( typeof( GuardedRegion ) );
return ( reg != null && !reg.IsDisabled() );
}