Implements llGetParcelPrimOwners()

This commit is contained in:
alondria
2008-03-23 18:15:08 +00:00
parent f82227a186
commit 68d016517d
2 changed files with 26 additions and 2 deletions

View File

@@ -809,6 +809,20 @@ namespace OpenSim.Region.Environment.Modules.LandManagement
remote_client.OutPacket(pack, ThrottleOutPacketType.Task);
}
public Dictionary<LLUUID, int> getLandObjectOwners()
{
Dictionary<LLUUID, int> ownersAndCount = new Dictionary<LLUUID, int>();
foreach (SceneObjectGroup obj in primsOverMe)
{
if (!ownersAndCount.ContainsKey(obj.OwnerID))
{
ownersAndCount.Add(obj.OwnerID, 0);
}
ownersAndCount[obj.OwnerID] += obj.PrimCount;
}
return ownersAndCount;
}
#endregion
#region Object Returning