diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Interfaces/IEntityInventory.cs | 14 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | 9 |
2 files changed, 20 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Interfaces/IEntityInventory.cs b/OpenSim/Region/Framework/Interfaces/IEntityInventory.cs index 8d62847..c457b2f 100644 --- a/OpenSim/Region/Framework/Interfaces/IEntityInventory.cs +++ b/OpenSim/Region/Framework/Interfaces/IEntityInventory.cs | |||
@@ -268,17 +268,25 @@ namespace OpenSim.Region.Framework.Interfaces | |||
268 | void ApplyGodPermissions(uint perms); | 268 | void ApplyGodPermissions(uint perms); |
269 | 269 | ||
270 | /// <summary> | 270 | /// <summary> |
271 | /// Number of items in this inventory. | ||
272 | /// </summary> | ||
273 | int Count { get; } | ||
274 | |||
275 | /// <summary> | ||
271 | /// Returns true if this inventory contains any scripts | 276 | /// Returns true if this inventory contains any scripts |
272 | /// </summary></returns> | 277 | /// </summary></returns> |
273 | bool ContainsScripts(); | 278 | bool ContainsScripts(); |
274 | 279 | ||
275 | /// <summary> | 280 | /// <summary> |
276 | /// Returns the count of scripts contained | 281 | /// Number of scripts in this inventory. |
277 | /// </summary></returns> | 282 | /// </summary> |
283 | /// <remarks> | ||
284 | /// Includes both running and non running scripts. | ||
285 | /// </remarks> | ||
278 | int ScriptCount(); | 286 | int ScriptCount(); |
279 | 287 | ||
280 | /// <summary> | 288 | /// <summary> |
281 | /// Returns the count of running scripts contained | 289 | /// Number of running scripts in this inventory. |
282 | /// </summary></returns> | 290 | /// </summary></returns> |
283 | int RunningScriptCount(); | 291 | int RunningScriptCount(); |
284 | 292 | ||
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs index 821fd81..bdb0446 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | |||
@@ -92,6 +92,15 @@ namespace OpenSim.Region.Framework.Scenes | |||
92 | QueryScriptStates(); | 92 | QueryScriptStates(); |
93 | } | 93 | } |
94 | } | 94 | } |
95 | |||
96 | public int Count | ||
97 | { | ||
98 | get | ||
99 | { | ||
100 | lock (m_items) | ||
101 | return m_items.Count; | ||
102 | } | ||
103 | } | ||
95 | 104 | ||
96 | /// <summary> | 105 | /// <summary> |
97 | /// Constructor | 106 | /// Constructor |