aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
diff options
context:
space:
mode:
authorMelanie2012-04-09 21:40:03 +0100
committerMelanie2012-04-09 21:40:03 +0100
commit67d4f1d66cef2ff51453f113bdaef375004b17c9 (patch)
tree975abcb48e2492950ea974567379de88809f57f5 /OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
parentMerge branch 'master' into careminster (diff)
parentMantis5502 implementation of some of the new constants (diff)
downloadopensim-SC-67d4f1d66cef2ff51453f113bdaef375004b17c9.zip
opensim-SC-67d4f1d66cef2ff51453f113bdaef375004b17c9.tar.gz
opensim-SC-67d4f1d66cef2ff51453f113bdaef375004b17c9.tar.bz2
opensim-SC-67d4f1d66cef2ff51453f113bdaef375004b17c9.tar.xz
Merge branch 'master' into careminster
Conflicts: OpenSim/Region/Framework/Interfaces/IScriptModule.cs OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs28
1 files changed, 27 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
index 107d9b6..5786f48 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
@@ -4017,7 +4017,33 @@ namespace OpenSim.Region.Framework.Scenes
4017 for (int i = 0; i < parts.Length; i++) 4017 for (int i = 0; i < parts.Length; i++)
4018 parts[i].TriggerScriptChangedEvent(val); 4018 parts[i].TriggerScriptChangedEvent(val);
4019 } 4019 }
4020 4020
4021 /// <summary>
4022 /// Returns a count of the number of scripts in this groups parts.
4023 /// </summary>
4024 public int ScriptCount()
4025 {
4026 int count = 0;
4027 SceneObjectPart[] parts = m_parts.GetArray();
4028 for (int i = 0; i < parts.Length; i++)
4029 count += parts[i].Inventory.ScriptCount();
4030
4031 return count;
4032 }
4033
4034 /// <summary>
4035 /// Returns a count of the number of running scripts in this groups parts.
4036 /// </summary>
4037 public int RunningScriptCount()
4038 {
4039 int count = 0;
4040 SceneObjectPart[] parts = m_parts.GetArray();
4041 for (int i = 0; i < parts.Length; i++)
4042 count += parts[i].Inventory.RunningScriptCount();
4043
4044 return count;
4045 }
4046
4021 public override string ToString() 4047 public override string ToString()
4022 { 4048 {
4023 return String.Format("{0} {1} ({2})", Name, UUID, AbsolutePosition); 4049 return String.Format("{0} {1} ({2})", Name, UUID, AbsolutePosition);