aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/LandManagement/LandObject.cs
diff options
context:
space:
mode:
authoralondria2008-03-23 18:15:08 +0000
committeralondria2008-03-23 18:15:08 +0000
commit68d016517d929a7db156f845fd570cf89f76764f (patch)
tree1925f4e3ec1ca9fc5b4048a0f3dc0f9680b6f2f7 /OpenSim/Region/Environment/Modules/LandManagement/LandObject.cs
parent* Added a little more stability for getting the object list from the parcel b... (diff)
downloadopensim-SC-68d016517d929a7db156f845fd570cf89f76764f.zip
opensim-SC-68d016517d929a7db156f845fd570cf89f76764f.tar.gz
opensim-SC-68d016517d929a7db156f845fd570cf89f76764f.tar.bz2
opensim-SC-68d016517d929a7db156f845fd570cf89f76764f.tar.xz
Implements llGetParcelPrimOwners()
Diffstat (limited to 'OpenSim/Region/Environment/Modules/LandManagement/LandObject.cs')
-rw-r--r--OpenSim/Region/Environment/Modules/LandManagement/LandObject.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Modules/LandManagement/LandObject.cs b/OpenSim/Region/Environment/Modules/LandManagement/LandObject.cs
index 68e8fcf..46ddf38 100644
--- a/OpenSim/Region/Environment/Modules/LandManagement/LandObject.cs
+++ b/OpenSim/Region/Environment/Modules/LandManagement/LandObject.cs
@@ -809,6 +809,20 @@ namespace OpenSim.Region.Environment.Modules.LandManagement
809 remote_client.OutPacket(pack, ThrottleOutPacketType.Task); 809 remote_client.OutPacket(pack, ThrottleOutPacketType.Task);
810 } 810 }
811 811
812 public Dictionary<LLUUID, int> getLandObjectOwners()
813 {
814 Dictionary<LLUUID, int> ownersAndCount = new Dictionary<LLUUID, int>();
815 foreach (SceneObjectGroup obj in primsOverMe)
816 {
817 if (!ownersAndCount.ContainsKey(obj.OwnerID))
818 {
819 ownersAndCount.Add(obj.OwnerID, 0);
820 }
821 ownersAndCount[obj.OwnerID] += obj.PrimCount;
822 }
823 return ownersAndCount;
824 }
825
812 #endregion 826 #endregion
813 827
814 #region Object Returning 828 #region Object Returning