aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/CoreModules/World/Land/PrimCountModule.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/PrimCountModule.cs b/OpenSim/Region/CoreModules/World/Land/PrimCountModule.cs
index 46c7eed..ae85798 100644
--- a/OpenSim/Region/CoreModules/World/Land/PrimCountModule.cs
+++ b/OpenSim/Region/CoreModules/World/Land/PrimCountModule.cs
@@ -229,6 +229,12 @@ namespace OpenSim.Region.CoreModules.World.Land
229 return primCounts; 229 return primCounts;
230 } 230 }
231 231
232
233 /// <summary>
234 /// Get the number of prims on the parcel that are owned by the parcel owner.
235 /// </summary>
236 /// <param name="parcelID"></param>
237 /// <returns></returns>
232 public int GetOwnerCount(UUID parcelID) 238 public int GetOwnerCount(UUID parcelID)
233 { 239 {
234// m_log.DebugFormat("[PRIM COUNT MODULE]: GetOwnerCount for {0}", parcelID); 240// m_log.DebugFormat("[PRIM COUNT MODULE]: GetOwnerCount for {0}", parcelID);
@@ -245,6 +251,11 @@ namespace OpenSim.Region.CoreModules.World.Land
245 return 0; 251 return 0;
246 } 252 }
247 253
254 /// <summary>
255 /// Get the number of prims on the parcel that have been set to the group that owns the parcel.
256 /// </summary>
257 /// <param name="parcelID"></param>
258 /// <returns></returns>
248 public int GetGroupCount(UUID parcelID) 259 public int GetGroupCount(UUID parcelID)
249 { 260 {
250 lock (m_TaintLock) 261 lock (m_TaintLock)
@@ -259,6 +270,11 @@ namespace OpenSim.Region.CoreModules.World.Land
259 return 0; 270 return 0;
260 } 271 }
261 272
273 /// <summary>
274 /// Get the number of prims on the parcel that are not owned by the parcel owner or set to the parcel group.
275 /// </summary>
276 /// <param name="parcelID"></param>
277 /// <returns></returns>
262 public int GetOthersCount(UUID parcelID) 278 public int GetOthersCount(UUID parcelID)
263 { 279 {
264 lock (m_TaintLock) 280 lock (m_TaintLock)
@@ -273,6 +289,11 @@ namespace OpenSim.Region.CoreModules.World.Land
273 return 0; 289 return 0;
274 } 290 }
275 291
292 /// <summary>
293 /// Get the number of prims that are in the entire simulator for the owner of this parcel.
294 /// </summary>
295 /// <param name="parcelID"></param>
296 /// <returns></returns>
276 public int GetSimulatorCount(UUID parcelID) 297 public int GetSimulatorCount(UUID parcelID)
277 { 298 {
278 lock (m_TaintLock) 299 lock (m_TaintLock)
@@ -291,6 +312,12 @@ namespace OpenSim.Region.CoreModules.World.Land
291 return 0; 312 return 0;
292 } 313 }
293 314
315 /// <summary>
316 /// Get the number of prims that a particular user owns on this parcel.
317 /// </summary>
318 /// <param name="parcelID"></param>
319 /// <param name="userID"></param>
320 /// <returns></returns>
294 public int GetUserCount(UUID parcelID, UUID userID) 321 public int GetUserCount(UUID parcelID, UUID userID)
295 { 322 {
296 lock (m_TaintLock) 323 lock (m_TaintLock)