aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes
diff options
context:
space:
mode:
authorSignpostMarv2012-09-06 11:45:52 +0100
committerJustin Clark-Casey (justincc)2012-09-08 00:44:27 +0100
commite041f09750419f60c819ee7e7a99044fe43a811c (patch)
tree85653d0f58246db0da634c3a84152d94259ea906 /OpenSim/Region/Framework/Scenes
parentMerge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff)
downloadopensim-SC_OLD-e041f09750419f60c819ee7e7a99044fe43a811c.zip
opensim-SC_OLD-e041f09750419f60c819ee7e7a99044fe43a811c.tar.gz
opensim-SC_OLD-e041f09750419f60c819ee7e7a99044fe43a811c.tar.bz2
opensim-SC_OLD-e041f09750419f60c819ee7e7a99044fe43a811c.tar.xz
refactoring to allow Scene.GetLandData to accept Vector3 as an argument. Note that the prior work on LSL_Vector implicit operators means one does not need to explicitly cast a LSL_Vector to Vector3
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index a2d553d..ff3d3af 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -4334,6 +4334,16 @@ namespace OpenSim.Region.Framework.Scenes
4334 return LandChannel.GetLandObject(x, y).LandData; 4334 return LandChannel.GetLandObject(x, y).LandData;
4335 } 4335 }
4336 4336
4337 /// <summary>
4338 /// Get LandData by position.
4339 /// </summary>
4340 /// <param name="pos"></param>
4341 /// <returns></returns>
4342 public LandData GetLandData(Vector3 pos)
4343 {
4344 return GetLandData(pos.X, pos.Y);
4345 }
4346
4337 public LandData GetLandData(uint x, uint y) 4347 public LandData GetLandData(uint x, uint y)
4338 { 4348 {
4339 m_log.DebugFormat("[SCENE]: returning land for {0},{1}", x, y); 4349 m_log.DebugFormat("[SCENE]: returning land for {0},{1}", x, y);