Add ILandChannel.GetLandObject(Vector3 position) as this is a very common input to GetLandObject()
This conforms to the existing ILandChannel.ParcelsNearPoint() methoduser_profiles
							parent
							
								
									c09f4ff483
								
							
						
					
					
						commit
						c1115e4c2e
					
				| 
						 | 
				
			
			@ -55,6 +55,13 @@ namespace OpenSim.Region.Framework.Interfaces
 | 
			
		|||
        /// <returns>Land object at the point supplied</returns>
 | 
			
		||||
        ILandObject GetLandObject(float x, float y);
 | 
			
		||||
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// Get the parcel at the specified point
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        /// <param name="position">Vector where x and y components are between 0 and 256.  z component is ignored.</param>
 | 
			
		||||
        /// <returns>Land object at the point supplied</returns>
 | 
			
		||||
        ILandObject GetLandObject(Vector3 position);
 | 
			
		||||
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// Get the parcels near the specified point
 | 
			
		||||
        /// </summary>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -95,6 +95,11 @@ namespace OpenSim.Region.CoreModules.World.Land
 | 
			
		|||
            return null;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        public ILandObject GetLandObject(Vector3 position)
 | 
			
		||||
        {
 | 
			
		||||
            return GetLandObject(position.X, position.Y);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        public ILandObject GetLandObject(int x, int y)
 | 
			
		||||
        {
 | 
			
		||||
            if (m_landManagementModule != null)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -68,6 +68,11 @@ public class RegionCombinerLargeLandChannel : ILandChannel
 | 
			
		|||
            RootRegionLandChannel.Clear(setupDefaultParcel);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        public ILandObject GetLandObject(Vector3 position)
 | 
			
		||||
        {
 | 
			
		||||
            return GetLandObject(position.X, position.Y);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        public ILandObject GetLandObject(int x, int y)
 | 
			
		||||
        {
 | 
			
		||||
            //m_log.DebugFormat("[BIGLANDTESTINT]: <{0},{1}>", x, y);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -81,6 +81,11 @@ namespace OpenSim.Tests.Common.Mock
 | 
			
		|||
            return obj;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        public ILandObject GetLandObject(Vector3 position)
 | 
			
		||||
        {
 | 
			
		||||
            return GetLandObject(position.X, position.Y);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        public ILandObject GetLandObject(int x, int y)
 | 
			
		||||
        {
 | 
			
		||||
            return GetNoLand();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue