Add number of inventory items to information displayed via "show part" console command
parent
c9b7ac2ae5
commit
2ca520c1eb
|
@ -456,6 +456,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
|
||||||
sb.AppendFormat("Parent: {0}",
|
sb.AppendFormat("Parent: {0}",
|
||||||
sop.IsRoot ? "Is Root\n" : string.Format("{0} {1}\n", sop.ParentGroup.Name, sop.ParentGroup.UUID));
|
sop.IsRoot ? "Is Root\n" : string.Format("{0} {1}\n", sop.ParentGroup.Name, sop.ParentGroup.UUID));
|
||||||
sb.AppendFormat("Link number: {0}\n", sop.LinkNum);
|
sb.AppendFormat("Link number: {0}\n", sop.LinkNum);
|
||||||
|
sb.AppendFormat("Items: {0}\n", sop.Inventory.Count);
|
||||||
sb.AppendFormat("Flags: {0}\n", sop.Flags);
|
sb.AppendFormat("Flags: {0}\n", sop.Flags);
|
||||||
|
|
||||||
return sb;
|
return sb;
|
||||||
|
|
|
@ -267,18 +267,26 @@ namespace OpenSim.Region.Framework.Interfaces
|
||||||
|
|
||||||
void ApplyGodPermissions(uint perms);
|
void ApplyGodPermissions(uint perms);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Number of items in this inventory.
|
||||||
|
/// </summary>
|
||||||
|
int Count { get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if this inventory contains any scripts
|
/// Returns true if this inventory contains any scripts
|
||||||
/// </summary></returns>
|
/// </summary></returns>
|
||||||
bool ContainsScripts();
|
bool ContainsScripts();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the count of scripts contained
|
/// Number of scripts in this inventory.
|
||||||
/// </summary></returns>
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Includes both running and non running scripts.
|
||||||
|
/// </remarks>
|
||||||
int ScriptCount();
|
int ScriptCount();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the count of running scripts contained
|
/// Number of running scripts in this inventory.
|
||||||
/// </summary></returns>
|
/// </summary></returns>
|
||||||
int RunningScriptCount();
|
int RunningScriptCount();
|
||||||
|
|
||||||
|
|
|
@ -92,6 +92,15 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
QueryScriptStates();
|
QueryScriptStates();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int Count
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
lock (m_items)
|
||||||
|
return m_items.Count;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Constructor
|
/// Constructor
|
||||||
|
|
Loading…
Reference in New Issue