aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/InnerScene.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-07-12 21:43:35 +0000
committerJustin Clarke Casey2008-07-12 21:43:35 +0000
commit23c4a409b754e708cc36cd13108060e9569fb08d (patch)
tree61f8fbb31ef34733a59ea9d053da1c78675511bf /OpenSim/Region/Environment/Scenes/InnerScene.cs
parent* minor: thought up a better name for the last allocated local id (diff)
downloadopensim-SC_OLD-23c4a409b754e708cc36cd13108060e9569fb08d.zip
opensim-SC_OLD-23c4a409b754e708cc36cd13108060e9569fb08d.tar.gz
opensim-SC_OLD-23c4a409b754e708cc36cd13108060e9569fb08d.tar.bz2
opensim-SC_OLD-23c4a409b754e708cc36cd13108060e9569fb08d.tar.xz
minor: method documentation
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/InnerScene.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/InnerScene.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/InnerScene.cs b/OpenSim/Region/Environment/Scenes/InnerScene.cs
index d553f4b..6a2b2d9 100644
--- a/OpenSim/Region/Environment/Scenes/InnerScene.cs
+++ b/OpenSim/Region/Environment/Scenes/InnerScene.cs
@@ -747,6 +747,11 @@ namespace OpenSim.Region.Environment.Scenes
747 return sp; 747 return sp;
748 } 748 }
749 749
750 /// <summary>
751 /// Get a scene object group that contains the prim with the given local id
752 /// </summary>
753 /// <param name="localID"></param>
754 /// <returns>null if no scene object group containing that prim is found</returns>
750 private SceneObjectGroup GetGroupByPrim(uint localID) 755 private SceneObjectGroup GetGroupByPrim(uint localID)
751 { 756 {
752 List<EntityBase> EntityList = GetEntities(); 757 List<EntityBase> EntityList = GetEntities();
@@ -762,6 +767,11 @@ namespace OpenSim.Region.Environment.Scenes
762 return null; 767 return null;
763 } 768 }
764 769
770 /// <summary>
771 /// Get a scene object group that contains the prim with the given uuid
772 /// </summary>
773 /// <param name="fullID"></param>
774 /// <returns>null if no scene object group containing that prim is found</returns>
765 private SceneObjectGroup GetGroupByPrim(LLUUID fullID) 775 private SceneObjectGroup GetGroupByPrim(LLUUID fullID)
766 { 776 {
767 List<EntityBase> EntityList = GetEntities(); 777 List<EntityBase> EntityList = GetEntities();
@@ -802,15 +812,26 @@ namespace OpenSim.Region.Environment.Scenes
802 return returnResult; 812 return returnResult;
803 } 813 }
804 814
815 /// <summary>
816 /// Get a part contained in this scene.
817 /// </summary>
818 /// <param name="localID"></param>
819 /// <returns>null if the part was not found</returns>
805 protected internal SceneObjectPart GetSceneObjectPart(uint localID) 820 protected internal SceneObjectPart GetSceneObjectPart(uint localID)
806 { 821 {
807 SceneObjectGroup group = GetGroupByPrim(localID); 822 SceneObjectGroup group = GetGroupByPrim(localID);
823
808 if (group != null) 824 if (group != null)
809 return group.GetChildPart(localID); 825 return group.GetChildPart(localID);
810 else 826 else
811 return null; 827 return null;
812 } 828 }
813 829
830 /// <summary>
831 /// Get a part contained in this scene.
832 /// </summary>
833 /// <param name="fullID"></param>
834 /// <returns>null if the part was not found</returns>
814 protected internal SceneObjectPart GetSceneObjectPart(LLUUID fullID) 835 protected internal SceneObjectPart GetSceneObjectPart(LLUUID fullID)
815 { 836 {
816 SceneObjectGroup group = GetGroupByPrim(fullID); 837 SceneObjectGroup group = GetGroupByPrim(fullID);