mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 03:45:35 +08:00
Add number of inventory items to information displayed via "show part" console command
This commit is contained in:
@@ -267,18 +267,26 @@ namespace OpenSim.Region.Framework.Interfaces
|
||||
|
||||
void ApplyGodPermissions(uint perms);
|
||||
|
||||
/// <summary>
|
||||
/// Number of items in this inventory.
|
||||
/// </summary>
|
||||
int Count { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if this inventory contains any scripts
|
||||
/// </summary></returns>
|
||||
bool ContainsScripts();
|
||||
|
||||
/// <summary>
|
||||
/// Returns the count of scripts contained
|
||||
/// </summary></returns>
|
||||
/// Number of scripts in this inventory.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Includes both running and non running scripts.
|
||||
/// </remarks>
|
||||
int ScriptCount();
|
||||
|
||||
/// <summary>
|
||||
/// Returns the count of running scripts contained
|
||||
/// Number of running scripts in this inventory.
|
||||
/// </summary></returns>
|
||||
int RunningScriptCount();
|
||||
|
||||
|
||||
@@ -92,6 +92,15 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
QueryScriptStates();
|
||||
}
|
||||
}
|
||||
|
||||
public int Count
|
||||
{
|
||||
get
|
||||
{
|
||||
lock (m_items)
|
||||
return m_items.Count;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Constructor
|
||||
|
||||
Reference in New Issue
Block a user