OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
/// <summary>
/// Returns the count of scripts in this parts inventory.
/// </summary>
/// <returns></returns>
Returns the count of scripts in this parts inventory.
Returns the count of scripts in this parts inventory .
public int ScriptCount()
        {
            int count = 0;
            lock (m_items)
            {
                foreach (TaskInventoryItem item in m_items.Values)
                {
                    if (item.InvType == (int)InventoryType.LSL)
                    {
                        count++;
                    }
                }
            }
            return count;
        }
public int ScriptCount ( ) { int count = 0 ; lock ( m_items ) { foreach ( TaskInventoryItem item in m_items . Values ) { if ( item . InvType == ( int ) InventoryType . LSL ) { count ++ ; } } } return count ; }
Returns the count of scripts in this parts inventory.
Returns the count of scripts in this parts inventory .
None