aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/LandManagement/LandObject.cs
diff options
context:
space:
mode:
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