mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 12:25:42 +08:00
Implements llGetParcelPrimOwners()
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user